We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
我们先来看看什么是 2MSL ? MSL: Maximum Segment Lifetime, 最长报文段寿命 意思是,需要等候 2 * MSL 时间,才会进入关闭状态
然后再来看哪个阶段需要 2MSL ?
从上图来看,是在 [发送方] 发送完 ACK 后,进入 TIME_WAIT 阶段,这个阶段需要等候 2*MSL,才将 TCP 关闭
为什么要等候 2*MSL ?
用足够长的等候时间,来确保 [接收方] 能收到 ACK 包
防止当前连接延迟到达的数据段,被新的 TCP 连接收到
TIME_WAIT 等候时间长短问题
等候时间过短
等候时间过长
Sorry, something went wrong.
可以参考知乎这个问题:
目的是为了优雅地关闭 TCP 连接。
为什么TCP4次挥手时等待为2MSL?
#26
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: