当前位置:网站首页>Graphic network: uncover the principle behind TCP's four waves, combined with the example of boyfriend and girlfriend breaking up, which is easy to understand
Graphic network: uncover the principle behind TCP's four waves, combined with the example of boyfriend and girlfriend breaking up, which is easy to understand
2022-07-08 01:42:00 【InfoQ】
TCP A brief review of the three handshakes
- First, the client will send aSYNnews (
SYNchronize Abbreviation ) Indicates that the client wants to establish a connection with the server .
- The server receives... From the client SYN After the message , replySYN-ACKmessage , Including a SYN Serial number and one ACK Number .
- The client receives... From the server SYN-ACK After the news , Send to serverACKnews .

TCP Four waves
Examples in life

- for the first time : Xiaomei said to Xiaoming “ Xiao Ming , Have been together for so long , I don't think we're suitable , Break up ”
- The second time : Xiao Ming was not too surprised after hearing it , But you can't promise directly , Otherwise, I'll become an iron scum man , So wave your hand for the second time , He said politely “ other , I have something else to say to you , In fact, you are quite good , Not only are people beautiful , Good personality, too , Also reasonable , I study hard , I'm very happy to meet you in College !”
- third time : Xiao Ming's bilibala is about the same , It's time to show your true face , Then he said to Xiaomei “ Now that you have made up your mind , It's no fun for me to pester you again , Then break up peacefully ~”
- The fourth time : Xiaomei heard a lot of false words from Xiao Ming , Very angry , Just dumped a “ That's it , Delete each other's wechat , bye !”

Analysis of the principle of four waves

- The client will send a FIN news ,FINyes
FINISHAbbreviation ,FIN The purpose of the message is to make TCP Ability to gracefully terminate established connections , Then the client goes into what is calledFIN-WAIT stateThe state of , stay FIN-WAIT State, , The client continues to receive messages from the server , And continue to process messages that are already in the queue , But the client will not send any additional data .
- The server sends... To the client ACK news , Confirm that he has received the end message , At this time, the server will no longer accept data from the client .
- The server can continue to send data to the client ( Finally, tell me something ), If the server has no more data to send , It will also be sent by FIN Message to terminate the connection .
- Then the client sends to the server ACK Confirm that you have received the message of active disconnection from the server .

- The client sends... To the serverFIN MTo the server .
- The server sends... To the clientACK M+1, Client received M+1, I know that the server has received its own Finish news .
- The server sends... To the clientFIN NThe representative is that the server actively sends the end message to the client .
- The client replies to the serverACK N+1news , The server sees that it is its own N, So I know that the client also received its own end message .
Maximum life cycle of disconnection

- Prevent the use of homologous addresses 、 Source port 、 Other of destination address and destination port TCP The connection received a delayed data segment .
- Guarantee TCP The connection was properly closed remotely , That is, wait for the party that passively closes the connection to receive ACK The corresponding message .
summary
- TCP A brief review of the three handshakes
- TCP Four waves
- Examples in life
- Analysis of the principle of four waves
- Maximum life cycle of disconnection
- summary
边栏推荐
- Usage of xcolor color in latex
- 如何制作企业招聘二维码?
- Voice of users | understanding of gbase 8A database learning
- 2022 high voltage electrician examination skills and high voltage electrician reexamination examination
- break net
- Common operations of numpy on two-dimensional array
- DataWorks值班表
- pb9.0 insert ole control 错误的修复工具
- 2021 tea master (primary) examination materials and tea master (primary) simulation test questions
- From starfish OS' continued deflationary consumption of SFO, the value of SFO in the long run
猜你喜欢

2022 safety officer-b certificate examination question bank and safety officer-b certificate simulation test questions

qt--将程序打包--不要安装qt-可以直接运行

redis的持久化方式-RDB和AOF 两种持久化机制

2021 tea master (primary) examination materials and tea master (primary) simulation test questions

5. Discrete control and continuous control

ANSI / NEMA- MW- 1000-2020 磁铁线标准。. 最新原版

Different methods for setting headers of different pages in word (the same for footer and page number)

QT--创建QT程序

The difference between distribution function and probability density function of random variables

滑环在直驱电机转子的应用领域
随机推荐
Redis集群
Transportation, new infrastructure and smart highway
GBASE观察 | 数据泄露频发 信息系统安全应如何守护
2022 examination for safety production management personnel of hazardous chemical production units and new version of examination questions for safety production management personnel of hazardous chem
From starfish OS' continued deflationary consumption of SFO, the value of SFO in the long run
滑环使用如何固定
Qt - - Packaging Programs - - Don't install Qt - can run directly
Redis cluster
2、TD+Learning
The usage of rand function in MATLAB
跨模态语义关联对齐检索-图像文本匹配(Image-Text Matching)
滑环在直驱电机转子的应用领域
2、TD+Learning
如何制作企业招聘二维码?
Urban land use distribution data / urban functional zoning distribution data / urban POI points of interest / vegetation type distribution
2022 operation certificate examination for main principals of hazardous chemical business units and main principals of hazardous chemical business units
Kafka-connect将Kafka数据同步到Mysql
The Ministry of housing and urban rural development officially issued the technical standard for urban information model (CIM) basic platform, which will be implemented from June 1
NPM internal split module
About snake equation (2)