tcp连接close过程
来源:互联网 发布:手机正装照软件 编辑:程序博客网 时间:2024/06/05 09:10
active passive
TCP_FIN_WAIT1 -------FIN------->
TCP_FIN_WAIT2 <------ACK--------TCP_CLOSE_WAIT
<------DATA-------
<------FIN--------TCP_LAST_ACK
TCP_TIME_WAIT --------ACK------->TCP_CLOSE
|
|2MSL
\|/
TCP_CLOSE
其中:主动发起fin的一端的TCP_TIME_WAIT状态中,可以发给passive的ACK丢失,会重发,但是2MSL时间后,强行进入TCP_CLOSE
如果在TCP_FIN_WAIT1阶段收到对端发送的FIN信号,则双方都进入TCP_CLOSING
active passive
TCP_FIN_WAIT1 -------FIN------->
TCP_CLOSING <-------FIN-------- TCP_FIN_WAIT1
|
\|/
TCP_CLOSING
TCP_TIME_WAIT --------ACK------->
<-------ACK------- TCP_TIME_WAIT
| |
|2MSL | 2MSL
\|/ \|/
TCP_CLOSE TCP_CLOSE
TCP_FIN_WAIT1 -------FIN------->
TCP_FIN_WAIT2 <------ACK--------TCP_CLOSE_WAIT
<------DATA-------
<------FIN--------TCP_LAST_ACK
TCP_TIME_WAIT --------ACK------->TCP_CLOSE
|
|2MSL
\|/
TCP_CLOSE
其中:主动发起fin的一端的TCP_TIME_WAIT状态中,可以发给passive的ACK丢失,会重发,但是2MSL时间后,强行进入TCP_CLOSE
如果在TCP_FIN_WAIT1阶段收到对端发送的FIN信号,则双方都进入TCP_CLOSING
active passive
TCP_FIN_WAIT1 -------FIN------->
TCP_CLOSING <-------FIN-------- TCP_FIN_WAIT1
|
\|/
TCP_CLOSING
TCP_TIME_WAIT --------ACK------->
<-------ACK------- TCP_TIME_WAIT
| |
|2MSL | 2MSL
\|/ \|/
TCP_CLOSE TCP_CLOSE
- tcp连接close过程
- 关于TCP连接的Close
- TCP连接中的close和shutdown
- TCP连接关闭—close和shutdown
- TCP连接关闭—close和shutdown
- TCP Close
- TCP连接过程
- TCP连接过程详解
- tcp 连接过程 详解
- TCP连接过程详解
- TCP连接过程详解
- TCP连接过程详解
- TCP建立连接过程
- TCP连接过程详解
- TCP连接过程
- TCP连接过程解析
- 终止TCP连接时close()和shutdown()的区别
- TCP连接建立过程和TCP连接终止过程
- 0719
- asmlinkage
- Mac下配置PHP+MySql环境
- Poj 1088 滑雪
- Gallery控件的基本使用
- tcp连接close过程
- Linux程序设计入门--网络编程
- Windows系统部署 Android 开发环境以及验证之傻瓜式教程(SDK+Eclipse+ADT)
- Document Fingerprinting in MATLAB
- android lcd调试 高通平台lcd调试深入分析总结(mipi和rgb接口)
- 轻松实现类VC界面
- 加载LSI驱动
- MFC中如何让弹出窗口在任务栏显示图标?
- 【C++ Primer】自己动手编写函数 atoi(char *str)