当前位置:网站首页>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 .
边栏推荐
- 2019强网杯upload
- Digital integrated circuit: CMOS inverter (I) static characteristics
- 如何做数据平滑迁移:双写方案
- 结构型模式-适配器模式
- 冒泡排序(详细)
- Shift right of negative numbers
- 第六章:云数据库
- F - Pre-order and In-order(Atcoder 255)
- Final review of management information system
- Pinia入门到精通,Pinia使用全流程,包含state,actions,getters,以及如何解构,进行响应,actions使用的多种方法
猜你喜欢
深度学习领域图像分割FCN(Fully Convolutional Networks for Semantic Segmentation)

Dry goods | how can independent station operation improve online chat customer service?

干货 | 独立站运营怎么提高在线聊天客户服务?

JS第二天(变量、变量的使用、命名规则、语法扩展)

Prometheus Node Exporter 常用监控指标

Chapter 6: cloud database

How to set user-defined display for Jiaming Watch

Use unity to build a WordArt system

Find a specific number in an ordered array

Maximum value, minimum value, bubble sort in the array
随机推荐
Chapter 6: cloud database
timestamp列使用varchar类型和使用date类型有什么区别?
可视化领域 SVG
Effect Hook
Unity:Resource Merging、Static Batching、Dynamic Batching、GPU Instancing
CEPH operation
RSA asymmetric encryption and decryption signature verification tool
在有序数组找具体某个数字
[C language] recursively explain the tower of Hanoi problem
Technology sharing | gtid that needs to be configured carefully_ mode
Explain left value, right value, left value reference and right value reference in detail
Install and configure Debian on a wired network
Pinia uses plug-ins for persistent storage.
【HCIP】重发布、重分布、重分发实验
详解左值、右值、左值引用以及右值引用
Safety fourth after class exercise
Sed output specified line
How does novice Xiaobai learn to be we media?
利用Power Automate,轻松下载Power BI报告中的数据
pinia的持久化存储,pinia使用插件进行持久化存储。