http three-way handshake with four wave

  • Http three-way handshake:

       

  1.    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.
  2.    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.
  3.    Third handshake: the client server responds again with an ACK acknowledgment that I was ready.
  • Http 4 times waved:

  1.   The first wave: TCP send the FIN a (end), to disable the client-server connections.
  2.   The second wave: the server sends back an ACK receive confirmation mark, confirming receipt of the FIN.
  3.   The third wave: the server sends a FIN to the client, the server closes the client connection.
  4.   The fourth wave: the client sends an ACK packet to confirm, so close to complete.

Guess you like

Origin www.cnblogs.com/LX51/p/12195873.html