Home > other >  Principle of computer network in one small problem of TCP three-way handshake
Principle of computer network in one small problem of TCP three-way handshake

Time:10-01

A and B on the TCP three-way handshake, if the connection is established, A to B in shaking hands for the first time, the packet is lost, then A wait, timeout retransmission, if lost again? Also the retransmission?

And this kind of circumstance should make congestion window is small

If the connection is established at ordinary times, accidentally lost a wrong address, and then will appear the above situation, does that makes his speed slow?

CodePudding user response:

There is a time of waiting for process, if beyond the waiting time, the server will think that their client is not in connection, will not waiting for,

CodePudding user response:

Timeout retransmission mechanism is interesting, you need to look at the source or look at the interpretation of the great god, specific can scrutinize
https://blog.csdn.net/xiongyingzhuantu/article/details/39926325
In short is the first time after a timeout, will soon resend a message; After the second overtime, resend a packet delay is longer than the last time (middle)... After the NTH timeout, return the TCP transmission failure

Because of this mechanism, so the impact on the network are small,

May timeout in milliseconds to resend for the first time, the second overtime may take a few seconds, third timeout needs to dozens of seconds... So it is difficult to to network congestion
  • Related