当前位置:网站首页>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
边栏推荐
- Tapdata 的 2.0 版 ,開源的 Live Data Platform 現已發布
- 2、TD+Learning
- Gnuradio transmits video and displays it in real time using VLC
- AttributeError: ‘str‘ object has no attribute ‘strftime‘
- 项目经理有必要考NPDP吗?我告诉你答案
- 从cmath文件看名字是怎样被添加到命名空间std中的
- Understanding of prior probability, posterior probability and Bayesian formula
- How to get the first and last days of a given month
- 2022 refrigeration and air conditioning equipment operation examination questions and refrigeration and air conditioning equipment operation examination skills
- Plot function drawing of MATLAB
猜你喜欢

ArrayList源码深度剖析,从最基本的扩容原理,到魔幻的迭代器和fast-fail机制,你想要的这都有!!!

Understanding of expectation, variance, covariance and correlation coefficient

Redux使用

The examination contents of the third batch of Guangdong Provincial Safety Officer a certificate (main person in charge) in 2021 and the free examination questions of the third batch of Guangdong Prov

用户之声 | 冬去春来,静待花开 ——浅谈GBase 8a学习感悟

2022 R1 fast opening pressure vessel operation test question bank and R1 fast opening pressure vessel operation free test questions

2022 safety officer-a certificate free examination questions and safety officer-a certificate mock examination

LeetCode 练习——剑指 Offer 36. 二叉搜索树与双向链表

云原生应用开发之 gRPC 入门

碳刷滑环在发电机中的作用
随机推荐
Understanding of expectation, variance, covariance and correlation coefficient
2022 new examination questions for crane driver (limited to bridge crane) and question bank for crane driver (limited to bridge crane) operation examination
Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布
能力贡献 GBASE三大解决方案入选“金融信创生态实验室-金融信创解决方案(第一批)”
redis的持久化方式-RDB和AOF 两种持久化机制
Guojingxin center "friendship and righteousness" - the meta universe based on friendship and friendship, and the parallel of "honguniverse"
About snake equation (2)
Redis集群
Usage of xcolor color in latex
碳刷滑环在发电机中的作用
2、TD+Learning
Gnuradio operation error: error thread [thread per block [12]: < block OFDM_ cyclic_ prefixer(8)>]: Buffer too small
uniapp一键复制功能效果demo(整理)
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
Redux使用
【SolidWorks】修改工程图格式
LeetCode 练习——剑指 Offer 36. 二叉搜索树与双向链表
Getting started STM32 -- how to learn stm32
ArrayList源码深度剖析,从最基本的扩容原理,到魔幻的迭代器和fast-fail机制,你想要的这都有!!!
5. Contrôle discret et contrôle continu