当前位置:网站首页>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 (
SYNchroniz
e 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
FINISH
Abbreviation ,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
边栏推荐
- COMSOL----微阻梁模型的搭建---最终的温度分布和变形情况----几何模型的建立
- Urban land use distribution data / urban functional zoning distribution data / urban POI points of interest / vegetation type distribution
- STM32GPIO口的工作原理
- npm 內部拆分模塊
- Guojingxin center "APEC education +" Shanghai Jiaotong University Japan Cooperation Center x Fudan philosophy class "Zhe Yi" 2022 New Year greetings
- Sum of submatrix
- 2022 safety officer-c certificate examination summary and safety officer-c certificate reexamination examination
- uniapp一键复制功能效果demo(整理)
- php 获取音频时长等信息
- 什么样的MES系统才是好系统
猜你喜欢
滑环在直驱电机转子的应用领域
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
Leetcode exercise - Sword finger offer 36 Binary search tree and bidirectional linked list
STM32GPIO口的工作原理
qt--将程序打包--不要安装qt-可以直接运行
2022 tea master (intermediate) examination questions and tea master (intermediate) examination skills
子矩阵的和
2022 chemical automation control instrument examination summary and chemical automation control instrument simulation examination questions
Redux使用
生态 | 湖仓一体的优选:GBase 8a MPP + XEOS
随机推荐
【SolidWorks】修改工程图格式
After modifying the background of jupyter notebook and adding jupyterthemes, enter 'JT -l' and the error 'JT' is not an internal or external command, nor a runnable program
Urban land use distribution data / urban functional zoning distribution data / urban POI points of interest / vegetation type distribution
第七章 行为级建模
Problems of font legend and time scale display of MATLAB drawing coordinate axis
Matlab code about cosine similarity
uniapp一键复制功能效果demo(整理)
COMSOL----微阻梁模型的搭建---最终的温度分布和变形情况----几何模型的建立
Tapdata 的 2.0 版 ,開源的 Live Data Platform 現已發布
The beauty of Mathematics -- the principle of fine Fourier transform
3、多智能体强化学习
Redis集群
MySQL数据库(2)
图解网络:揭开TCP四次挥手背后的原理,结合男女朋友分手的例子,通俗易懂
About snake equation (3)
5. Contrôle discret et contrôle continu
Is it safe to open an account on your mobile phone for small amount of stock speculation?
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
5. Discrete control and continuous control
5、離散控制與連續控制