This is HTTP’s three handshakes and four waves

Time:2021-5-13

Taking the state confirmation scene of common conversations in life as the starting point, this paper interprets three handshakes and four waves of HTTP easily.

HTTP three handshakes

1. The client sends a status confirmation query to the server (the first handshake);

This is HTTP's three handshakes and four waves


2. The server confirms the status and asks the client for the status confirmation (the second handshake);

This is HTTP's three handshakes and four waves


3. The client replies the status confirmation of the server and prepares to establish a connection (the third handshake);

This is HTTP's three handshakes and four waves


4. Establish a connection between them and transmit data through TCP (establish a connection).

This is HTTP's three handshakes and four waves


He waved four times

1. The client indicates to the server that it is ready to end the connection (waving for the first time);

This is HTTP's three handshakes and four waves


2. The server indicates to the client that it is starting to finish the connection (waving for the first time);

This is HTTP's three handshakes and four waves


3. The server indicates to the client that the connection can be ended (the third wave);

This is HTTP's three handshakes and four waves


4. The client confirms the end of the connection Reply of the server (the fourth wave);

This is HTTP's three handshakes and four waves


5. Both end the connection.

This is HTTP's three handshakes and four waves


Original source

Up Master of station B: Programmer’s perspective

Video:Programming basis: TCP network communication, three handshakes and four handshakes


This is HTTP's three handshakes and four waves