A Step-by-Step Guide to How Your HTTP Requests Navigate the Layers of the Internet 🚀
Вставка
- Опубліковано 26 гру 2023
- A Step-by-Step Guide to How Your HTTP Requests Navigate the Layers of the Internet 🚀
Even before making the HTTP request, there is a detailed three-step handshake happens between server and client! 🤝
Three-Way Handshake:
The client establishes a TCP connection to the server using a three-way handshake.
🚀 SYN (Synchronize): The client sends a SYN packet to the server, indicating the intention to establish a connection.
🤝 SYN-ACK (Synchronize-Acknowledge): The server responds with a SYN-ACK packet, acknowledging the request and indicating its readiness to establish a connection.
✅ ACK (Acknowledge): The client sends an ACK packet to confirm the connection.
WATCH THE VIDEO FOR THREE STEP CONNECTION 🎥
Well, in modern days, over a single TCP connection, HTTP can perform repeatedly. TCP supports persistency on this connection. For the same reason, the cost of making a TCP connection decreases! 💻🔄
Well, a typical flow of an HTTP request follows these steps:
DNS Resolution .
TCP Connection Establishment
HTTP Request
Server Processing
HTTP Response
TCP Connection Closure (Optional) 🌐🔄
If it is HTTPS (Secure Connections):
If using HTTPS (HTTP Secure), an additional step involves the SSL/TLS handshake to establish a secure connection before the HTTP request and response. 🔐🚀
#WebDevelopment #Networking #TCPConnection