当前位置:网站首页>TCP three handshakes and four disconnects
TCP three handshakes and four disconnects
2022-07-27 02:31:00 【less than _ ermi】
TCP Three handshakes of 、 Disconnect the main focus four times TCP Serial number and confirmation number of the head and several marked parts . Three handshakes is to establish a TCP When the connection , Confirm the serial numbers of the client and server .
Three handshakes : At the very beginning , Both the client and server are closed , The server actively listens to a port , The client randomly generates serial numbers , Send the connection request to the server , After the server receives the connection request from the client , You can also initialize the corresponding serial number , Send to client , After receiving the message from the server, the client knows that the server already knows its serial number and that it also knows its serial number , At this point, the client only needs to tell the server that it has received the serial number it sent , When the server receives the message sent by the client ( I have received your serial number ) When , The connection between the client and the server is established . To sum up, both parties send their serial numbers to each other , See if the other party can receive , After three handshakes, you can see that both sides have the ability to receive and send .
Four disconnects : After establishing the connection , Both the client and the server are in the state of established connection , If the client wants to actively disconnect , Tell the server that I want to actively disconnect , After receiving the message, the server informs the client that the received message has been confirmed to be received correctly . Now , Wait for the server to confirm that there is no data returned to the client , Tell the client to disconnect , Enter the state of waiting for the connection to be disconnected , The client receives the disconnection information and tells the server to confirm the disconnection , Enter the end of connection state by yourself , After the server receives the confirmation of disconnection , The server enters the shutdown state , The client also enters the shutdown state after waiting for a while in the connection end state .
边栏推荐
- Find a specific number in an ordered array
- 最新多线程&高并发学习资料,面试心里有底气
- [draw sherpinski triangle in C language]
- Handsomeforum Learning Forum
- Hcip day 1
- Open the door of programming
- 全网显示 IP 归属地,是怎么实现的?
- 【你了解Cache吗——全面理解高速缓冲存储器】
- 聊聊自动化测试的度量指标
- (prefix and / thinking) codeforces round 806 (Div. 4) F Yet Another Problem About Pairs Satisfying an Inequality
猜你喜欢

Handsomeforum Learning Forum

Interesting C language
![[draw rectangular coordinate system in C language]](/img/85/cf0c8a8da647888acce5ce3ee871b2.png)
[draw rectangular coordinate system in C language]

NAT网络地址转换协议-拓扑实验
![[do you know cache - fully understand cache]](/img/65/df29f6f1ff6d0d119da4a3971db0fc.png)
[do you know cache - fully understand cache]

Nb-iot access to cloud platform

How does the whole network display IP ownership?

【C语言】阶乘实现
![[draw sherpinski triangle in C language]](/img/e6/9d1d088d1c7675c23725443000329b.png)
[draw sherpinski triangle in C language]

HCIP第一天静态路由综合实验
随机推荐
Open the door of programming
RISC-V工具链编译笔记
N methods of SQL optimization
Full company mGRE and star topology mGRE
HCIP-第五天-OSPF扩展配置实验
How does the whole network display IP ownership?
Prometheus 运维工具 Promtool (三) Debug 功能
[draw sherpinski triangle in C language]
最新京东短信登录+傻妞机器人保姆级部署教程(2022/7/24)
HCIP-第四天-OSPF路由协议
Can bus communication application
Detailed source code of golang bufio reader
【在Visual Studio 2019中使用SQLite3库实现学生信息管理系统】
Wechat applet: user wechat login process (attached: flow chart + source code)
C language -- nesting of relational and logical operators, if statements, switch statements, and branch structures
MGRE, PPP, HDLC comprehensive experiment
毕业进入HW,从测试工程师到项目经理,现如今在鹅厂年收入百万,我的给大家的一些建议...
从单表到分表实现数据平滑迁移
Nb-iot access to cloud platform
多线程中 synchronized 锁升级的原理是什么?