Personal understanding of three-way handshake and four-way handshake

Personal understanding of three-way handshake and four-way handshake

Three-way handshake (connection establishment)

  1. Client –> server (client initiates a connection request)
  2. Server –> client (the server receives the client's request and allows the connection)
  3. Client –> server (the client receives the permission command from the server and confirms the connection)
    insert image description here

Four-way handshake (release)

  1. Client –> server (client initiates a close request)
  2. Server –> client (the server receives the client request and informs the client that it has received the request)
  3. Server –> client (send close connection message)
  4. Client –> server (the client receives the close connection message from the server, sends a message to the server, and the connection is completely released)
    insert image description here

You can refer to Baidu Encyclopedia to learn and understand

Guess you like

Origin blog.csdn.net/succeedcow/article/details/117019045