当前位置:网站首页>Why do I need to wait for 2msl?
Why do I need to wait for 2msl?
2022-07-27 23:48:00 【Hua Weiyun】
1.5.5.5 TCP Four waves ( Connection release )
name effect
SYN Synchronization sequence number , Used to establish the connection process , In the connection request ,SYN=1 and ACK=0 Indicates that the data segment does not use the acknowledgement field of the piggyback , And the connection response comes with a confirmation , namely SYN=1 and ACK=1
FIN For releasing connections , by 1 Indicates that the sender has not sent
ACK by 1 Indicates that the confirmation number is valid , by 0 Indicates that the message does not contain confirmation information , Ignore the confirmation number field , The validity of the above confirmation number is controlled by this identification
ack Is the sequence number of the first data byte that is expected to be received from the other party's next segment
seq TCP Each byte in the byte stream passed in the connection is sequentially numbered
notes :
The first paragraph means :
FIN=1:(A) To release the connection !
seq=u: Sent a lot of data , I'm just using u Refer to , here u There is a definite value
The second paragraph means :
ACK=1: The connection is established , After that ACK Must be set to 1
seq=v: Sent a lot of data , I'm just using v Refer to , here v There is a definite value
ack=u+1: Previous sender (A) It is said that the number sent is u Bit data , So I (B) What I want is u+1 Bit data ( Even though at this time A It has been decided to release the connection )
The third paragraph means :
FIN=1:(B) To release the connection !
ACK=1: The connection is established , After that ACK Must be set to 1
seq=w: Sent a lot of data , I'm just using w Refer to , here w There is a definite value
ack=u+1: Previous sender (A) It is said that the number sent is u Bit data , So I (B) What I want is u+1 Bit data ( because A Don't send data directly , So in the second and third paragraph ack All are u+1)
The fourth paragraph means :
ACK=1: The connection is established , After that ACK Must be set to 1
seq=u+1: The data sent before is u Bit data ,B Also the first u+1 Bit data , So I send the first u+1 Bit data
ack=w+1: Previous sender (B) It is said that the number sent is w Bit data , So I (A) What I want is w+1 Bit data
Why wait for the time 2MSL?
Because it can guarantee B You can receive A And then enter the closed state
For example, if A The fourth segment of the message is lost , Then wait for one MSL after B It will retransmit the third message , The cost is less than 1MSL after A You will receive the third message , Then you can go to B Send the fourth message prompt B Close the connection
1.5.8.1.2 Fast retransmission and fast recovery
This is similar to the first steps of slow start and congestion avoidance above , It is first exponential growth and then linear growth .
The difference is that fast retransmission and fast recovery algorithms are received continuously ack Execute after confirmation , there ack It's redundancy ack, redundancy ack The feature is that if the data requested for a certain section is not received many times , When a certain number is reached, retransmission will be performed immediately . But it's only down to now cwnd Half of , Re linear growth . Instead of starting from scratch like slow start and congestion avoidance
1.6.2.2 Domain name server (DNS The server )
DNS There are many servers , It is divided into three layers according to the hierarchy , Root domain server , Top-level domain server , Domain name server
The local domain name server is not a hierarchy , The feature is that the main engine is relatively close , When the host communicates with another host that is closer , You don't have to go to any more advanced servers
The root domain name server is not a domain name, but only one , Instead, one domain name corresponds to multiple domain name servers , There is a total of 13 Such a domain name , Namely a.rootservers.net,b.rootservers.net,c.rootservers.net,~m.rootservers.net
In the permission domain name server , Although it seems that abc.com Than y.abc.com One less , But their status is still equal , The corresponding two domain name servers
边栏推荐
- 2022夏暑假每日一题(五)
- 置信区间之正态
- Redis distributed lock
- proteus仿真arduino中调用DHT11/22温湿度传感器
- [CVA valuation training camp] how to quickly read the annual reports of listed companies - Lesson 4
- Solve 5g pain points, Meizu 17 smart 5g fast and stable technology release
- Which one is better to request to merge -- three skills of interface request merging, and the performance directly explodes the table
- Software test function test full set of common interview questions [function test] interview summary 4-2
- [signal processing] weak signal detection in communication system based on the characteristics of high-order statistics with matlab code
- 四次挥手的Socket交互流程
猜你喜欢

Redefine analysis - release of eventbridge real-time event analysis platform

NDK series (6): let's talk about the way and time to register JNI functions

TOGAF10标准读书会首场活动圆满举办,精彩时刻回顾!

Can Siemens PLC collect analog data of multiple slave stations in real time and wirelessly?

Flink怎么使用Savepoint

华为鸿蒙 3 正式发布,这个安全功能解决了一大痛点
Software test function test full set of common interview questions [function test] interview summary 4-2

Sudden, wechat important notice

File & recursion 14.1

JUC toolkit learning
随机推荐
Socket interaction process of four waves
QT with OpenGL(Shadow Mapping)(平行光篇)
台积电3nm细节曝光:晶体管密度高达2.5亿个/mm²,性能及能效大幅提升
Master data management theory and Practice
并发和并行有什么区别?
Figure basic knowledge code
Introduction to several common usage scenarios of message queue
What is the difference between concurrency and parallelism?
NDK 系列(6):说一下注册 JNI 函数的方式和时机
Accelerate IGBT localization! BYD semiconductor will be listed independently, with a market value of 30billion yuan!
Redis hash underlying data structure
Reinforcement learning - pytorch realizes advantage actor critical (A2C)
Winform怎么使用FTP实现自动更新
面试官问线程安全的List,看完再也不怕了!
29. Learn the stacked column chart of highcharts using percentage
2022 summer vacation daily question (5)
TSMC 3nm detail exposure: transistor density as high as 250million /mm ², Greatly improved performance and energy efficiency
Under the epidemic, TSMC's growth in the first quarter exceeded expectations, with 7Nm accounting for 35%! Second quarter or record high
Current situation and future of Nb IOT industry: cross the threshold of 100million shipments and rush to 5g connection!
CaEGCN: Cross-Attention Fusion based Enhanced Graph Convolutional Network for Clustering 2021