Home > other >  The concept of the TCP three-way handshake and advantage
The concept of the TCP three-way handshake and advantage

Time:10-04

More than the second handshake is a confirmation and reply what

CodePudding user response:

No, is a more just,

CodePudding user response:

The process of three-way handshake:



First by the Client request to connect the SYN ACK=0=1 (please see head field), regulations on TCP SYN=1 when not carry data, but consumes a serial number, and declare his serial number is seq=x

Then the Server reply to confirm that the SYN ACK=1=1 seq=y, ACK=x + 1,

Then the Client again to confirm, but need not SYN, at this moment is the ACK=1, seq=x + 1, ACK=y + 1.

CodePudding user response:

So profound explanation

CodePudding user response:

Client request connection ACK=0 (or in some teaching materials at first request without an ACK)
Server responded to ACK=1 (said received confirmation)
The Client again confirm ACK=1 (said received confirmation)

If the simple understanding, seq just serial number, ack is to ensure that the two sides to communicate,

CodePudding user response:

The purpose of the TCP three-way handshake:
1. Make sure each other to know oneself is can communication,
2. Make sure can be communication,

To achieve these two purposes, need four message:
1. 1 told his each other can communication message
1.2 the other feedback aware of their own communication message

2.1 the other party told that their communication message
2.2 their feedback has clearly each other in the state of can communication


With 1.2 and 2.1 can be combined into one packet,
Thus the TCP need three-way handshake,

CodePudding user response:

Three-way handshake is to establish a reliable communication

CodePudding user response:

reference 4 floor m0_37812816 response:
Client request connection ACK=0 (or in some teaching materials at first request without an ACK)
Server responded to ACK=1 (said received confirmation)
The Client again confirm ACK=1 (said received confirmation)

If the simple understanding, seq just serial number, ack is to ensure that both sides to communicate,


Client request connection ACK=0 (who can tell me this was issued under which API function)
Server responded to ACK=1 (who can tell me this is confirmed under which API function)
Client again confirm ACK=1 (who can tell me this is confirmed under which API function)

CodePudding user response:

Secondary ddos

CodePudding user response:

A teacher called interpretation is easy to understand

CodePudding user response:

Just like people, a returning back to the second! Three good trust...

CodePudding user response:

Here not to dwell on the concept of the TCP three-way handshake, a lot of books and articles have, but what is the advantage of the three-way handshake and purpose?
In Xie Xiren "computer network" in the fourth edition of "three-way handshake" is the purpose of "to prevent the connection request failed message segment suddenly and transmitted to the server, thus produce error",
  • Related