- Http three-way handshake:
- The first handshake: the client sends a SYN with a TCP packet to the server that the client and server side wants to establish a connection.
- The second handshake: server receives the client's request, the client returns the packet, the packet with SYN and ACK confirmation mark, access to the client is ready.
- Third handshake: the client server responds again with an ACK acknowledgment that I was ready.
- Http 4 times waved:
- The first wave: TCP send the FIN a (end), to disable the client-server connections.
- The second wave: the server sends back an ACK receive confirmation mark, confirming receipt of the FIN.
- The third wave: the server sends a FIN to the client, the server closes the client connection.
- The fourth wave: the client sends an ACK packet to confirm, so close to complete.