当前位置:网站首页>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
边栏推荐
- 2022 chemical automation control instrument examination summary and chemical automation control instrument simulation examination questions
- NPDP在国内有认可度吗?看一看就明白了!
- LaTeX 中 xcolor 颜色的用法
- redis的持久化方式-RDB和AOF 两种持久化机制
- 3. Multi agent reinforcement learning
- The persistence mode of redis - RDB and AOF persistence mechanisms
- qt--将程序打包--不要安装qt-可以直接运行
- 用户之声 | 对于GBase 8a数据库学习的感悟
- 2022 safety officer-c certificate examination paper and safety officer-c certificate simulated examination question bank
- Write a pure handwritten QT Hello World
猜你喜欢

COMSOL----微阻梁模型的搭建---最终的温度分布和变形情况---材料的添加

pb9.0 insert ole control 错误的修复工具

为什么更新了 DNS 记录不生效?

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

如何制作企业招聘二维码?

不算不知道,花呗分期的真实利率居然这么高

Understanding of maximum likelihood estimation

液压旋转接头的使用事项

QT build with built-in application framework -- Hello World -- use min GW 32bit

Redux使用
随机推荐
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
About how USRP sets the sampling frequency below the minimum sampling frequency reached by the hardware
2022 safety officer-c certificate examination summary and safety officer-c certificate reexamination examination
Running OFDM in gnuradio_ RX error: gr:: Log: info: packet_ headerparser_ b0 - Detected an invalid packet at item ××
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
powerbuilder 中使用线程的方法
2022 new examination questions for crane driver (limited to bridge crane) and question bank for crane driver (limited to bridge crane) operation examination
The beauty of Mathematics -- the principle of fine Fourier transform
Urban land use distribution data / urban functional zoning distribution data / urban POI points of interest / vegetation type distribution
Guojingxin center "APEC education +" Shanghai Jiaotong University Japan Cooperation Center x Fudan philosophy class "Zhe Yi" 2022 New Year greetings
[loss function] entropy / relative entropy / cross entropy
Version 2.0 de tapdata, Open Source Live Data Platform est maintenant disponible
About snake equation (2)
Is it safe to open an account on your mobile phone for small amount of stock speculation?
How does Matplotlib generate multiple pictures in turn & only save these pictures without displaying them in the compiler
写一个纯手写的qt的hello world
About snake equation (1)
About snake equation (3)
Redux usage
common commands