Home >Common Problem >Why does TIME-WAIT have to wait for 2MLS

Why does TIME-WAIT have to wait for 2MLS

藏色散人
藏色散人Original
2020-06-29 09:32:065792browse

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.

Why does TIME-WAIT have to wait for 2MLS

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What does HTTP refer to?Next article:What does HTTP refer to?