TIME-WAIT must wait for 2MLS because waiting for 2MLS can ensure that the client’s last message segment can reach the server. If it does not arrive, the server will time out and retransmit the connection release segment, making the client and server All can enter the CLOSE closed state normally.
TIME-WAIT is a TCP state. Waiting for 2MLS can ensure that the client's last message segment can reach the server. If it does not arrive, the server will time out and retransmit the connection to release the message segment, so that both the client and the server can enter the CLOSE state normally.
Related introduction:
TIME-WAIT is a TCP state.
The start time of time-wait is the state in which the connected party actively closes the connected party after sending the last wave among the four waves of tcp, that is, after the signal of ACK=1 ends.
Then the duration of time-wait is 2MSL. MSL is Maximum Segment Lifetime, translated as "maximum packet survival time", which can be 30s, 1min or 2min. 2msl is twice the time. In engineering terms, it is 2 minutes, and 2msl is 4 minutes. But it is generally determined based on the actual network conditions.
The above is the detailed content of Why does TIME-WAIT have to wait for 2MLS. For more information, please follow other related articles on the PHP Chinese website!