当前位置:网站首页>TCP's three handshakes and four waves
TCP's three handshakes and four waves
2022-07-27 04:50:00 【Angry curls】
One .TCP:(Transmission Control Protocol, Transmission control protocol ) Is a reliable connection oriented transport protocol .
After completing the basic work of the transport layer , It also needs to further ensure the reliability of transmission , Data needs to be connected before transmission , Disconnect after data transmission .
Two .TCP Datagram structure

TCP Identifier for :
URG: Pointer to an emergency (urgent pointer)
ACK: Confirm that the serial number is valid .
PSH: Urge the receiver to deliver the message to the application layer as soon as possible .
RST: Reset connection
SYN: Create a new connection .
FIN: Disconnect a connection .
3、 ... and .TPC Three handshakes of
TCP When establishing a connection, three packets are transmitted , Commonly known as three handshakes
The first handshake : Issued by client SYN The flag requests to establish a connection with the server .
The second handshake : The server replies ACK Confirm the message to the client , confirm The receiving capacity of the server And The sending ability of the client No problem, and allocate resources for this link .
The third handshake : Again, it is sent by the client ACK Message reply server , confirm Client acceptance And The sending capacity of the server No problem and establish a connection .
Four .TCP Four waves
TCP The four waves are the four processes of disconnecting , It allows the computer to release resources that are no longer in use . If the connection does not disconnect normally , Not only will it cause data transmission errors , It also causes the socket to fail to close , Keep taking up resources , If the concurrency is high , Server pressure is worrying .
Process Overview
a( Data transmission completed , Request disconnect .)
b( Disconnect request received , Please give me some time to prepare .)
b( I'm ready , You can disconnect .)
a( well , Thank You for Your Cooperation .)
First wave : The client sends one FIN The end flag is used to disconnect the data transmission from the client to the server .
Second wave : Server received FIN After the end flag , send out ACK The confirmation message replies to the client .
Third wave : Server send FIN End flag to client , Used to disconnect the data transmission from the server to the client .
Fourth wave : Client received FIN After the end flag , send out ACK The confirmation message replies to the server .
边栏推荐
- Cloudcompare & PCL matching point median (or standard deviation) distance suppression
- Effect Hook
- Sed output specified line
- Install and configure Debian on a wired network
- Do you know about wechat merchant billing?
- 管理信息系统期末复习
- Yolov4 network details
- 【AtCoder Beginner Contest 260 (A·B·C)】
- Session&Cookie&token
- Structural mode - adapter mode
猜你喜欢

结构型模式-装饰者模式

结构型模式-适配器模式

Two way republication experiment

Solution to the third game of 2022 Hangzhou Electric Multi school league

可视化领域 SVG

How to set user-defined display for Jiaming Watch

Prometheus Node Exporter 常用监控指标

利用Power Automate,轻松下载Power BI报告中的数据

Three cores of Redux

Use the kubesphere graphical interface dashboard to enable the Devops function
随机推荐
Basic configuration of static routing to achieve network wide accessibility
Pinia入门到精通,Pinia使用全流程,包含state,actions,getters,以及如何解构,进行响应,actions使用的多种方法
IP第十四天笔记
如何做数据平滑迁移:双写方案
Scala immutable map, variable map, map conversion to other data types
冒泡排序(详细)
Wechat applet editor Avatar
Visualization domain svg
The price reduction of iphone13 is just a show. Consumers are waiting for iphone14
Prometheus node exporter common monitoring indicators
Structural mode - bridging mode
Use unity to build a WordArt system
Easy to use mobile app automation testing framework where to find? Just collect this list!
How can I index the Oracle database field date?
博云容器云、DevOps 平台斩获可信云“技术最佳实践奖”
Huawei's entry into the commercial market: due to the trend, there are many challenges
Pinia uses plug-ins for persistent storage.
Skywalking distributed system application performance monitoring tool - medium
关于gorm的BeforeDelete钩子方法不生效的问题
P1438 boring sequence line segment tree + difference