当前位置:网站首页>为什么需要等待计时2MSL?
为什么需要等待计时2MSL?
2022-07-27 21:02:00 【华为云】
1.5.5.5 TCP四次挥手(连接释放)
名称 作用
SYN 同步序号,用于建立连接过程,在连接请求中,SYN=1和ACK=0表示该数据段没有使用捎带的确认域,而连接应答捎带一个确认,即SYN=1和ACK=1
FIN 用于释放连接,为1时表示发送方没有发送了
ACK 为1表示确认号有效,为0表示报文不含确认信息,忽略确认号字段,上面的确认号是否有效就是通过该标识控制的
ack 是期望收到对方下一个报文段的第一个数据字节的序号
seq TCP连接中传送的字节流中的每个字节都按顺序编号
注释:
第一段的意思是:
FIN=1:(A)要释放连接了!
seq=u:发了好多数据,这里只是用u指代一下,这里u是有确定值的
第二段的意思是:
ACK=1:连接建立了,之后的ACK必须都置为1
seq=v:发了好多数据,这里只是用v指代一下,这里v是有确定值的
ack=u+1:之前发送方(A)说发送的是第u位数据,所以我(B)要的是u+1位数据(尽管此时A已经决定释放连接了)
第三段的意思是:
FIN=1:(B)要释放连接了!
ACK=1:连接建立了,之后的ACK必须都置为1
seq=w:发了好多数据,这里只是用w指代一下,这里w是有确定值的
ack=u+1:之前发送方(A)说发送的是第u位数据,所以我(B)要的是u+1位数据(因为A直接不发数据了,所以第二段第三段的ack都是u+1)
第四段的意思是:
ACK=1:连接建立了,之后的ACK必须都置为1
seq=u+1:之前发的数据时第u位数据,B也要第u+1位数据,所以我发第u+1位数据
ack=w+1:之前发送方(B)说发送的是第w位数据,所以我(A)要的是w+1位数据
为什么需要等待计时2MSL?
因为这样可以保证B可以收到A的终止报文段进而进入关闭状态
比如说如果A的第四段报文丢失,那么等待一个MSL之后B就会重传第三段报文,花费小于1MSL之后A就会再收到第三段报文,之后就可以再次向B发送第四段报文提示B关闭连接
1.5.8.1.2 快重传和快恢复
这里和上面的慢开始和拥塞避免的一开始步骤差不多,都是先指数增长再转变为线性增长。
不同的点是快重传和快恢复算法是在收到连续的ack确认之后执行,这里的ack就是冗余ack,冗余ack的特点是如果多次对某一段请求的数据没有被收到,达到一定数目之后就会立即执行重传。但是此时只是降到现在cwnd的一半,再重新线性增长。而不是像慢开始和拥塞避免的从头开始
1.6.2.2 域名服务器(DNS服务器)
DNS服务器有很多台,根据层次结构分为三层,根域名服务器,顶级域名服务器,权限域名服务器
本地域名服务器不算层次结构,特点是里主机比较近,当主机和另一台比较近的主机通信时,就不用走哪些更高级的服务器了
根域名服务器并不是一个域名只有一台,而是一个域名对应多台域名服务器,全世界一共有13个这样的域名,分别是a.rootservers.net,b.rootservers.net,c.rootservers.net,~m.rootservers.net
在权限域名服务器中,虽然看似abc.com比y.abc.com少了一位,但是他们的地位仍是对等的,对应的两台权限域名服务器
边栏推荐
- Remotely debug idea, configure remote debug, and add JVM startup parameter -xdebug in the program of remote server
- Redis distributed lock
- [image defogging] image defogging based on dark channel and non-mean filtering with matlab code
- Software test function test full set of common interview questions [function test] interview summary 4-2
- See how Gan controls the image generation style step by step? Explain the evolution process of stylegan in detail
- 7.6万人停工!东芝宣布关闭日本所有工厂
- [CVA valuation training camp] how to quickly read the annual reports of listed companies - Lesson 4
- Under the epidemic, TSMC's growth in the first quarter exceeded expectations, with 7Nm accounting for 35%! Second quarter or record high
- Elk log analysis system installation and deployment
- Record the errors about formatc in R language
猜你喜欢
![[signal processing] weak signal detection in communication system based on the characteristics of high-order statistics with matlab code](/img/a7/8f0d929457d285adc8020c7f5d33ea.png)
[signal processing] weak signal detection in communication system based on the characteristics of high-order statistics with matlab code

Lua基础语法学习

Huawei Hongmeng 3 was officially released, and this security feature has solved a major pain point
![[elm classification] classification of UCI data sets based on nuclear limit learning machine and limit learning machine, with matlab code](/img/bd/fe105f0af3a24ad6f220fa35bb5e8d.png)
[elm classification] classification of UCI data sets based on nuclear limit learning machine and limit learning machine, with matlab code

Redis 哈希Hash底层数据结构

怎么使用C# Winform实现复制文件显示进度

Interviewer: let's talk about the specific process of network data transmission
![[number recognition] recognize 0-9 numbers based on Hopfield neural network with matlab code](/img/10/de712b67a7538be03f8fb722271949.png)
[number recognition] recognize 0-9 numbers based on Hopfield neural network with matlab code

2022年土木,建筑与环境工程国际会议(ICCAEE 2022)

Find and leverage xxE – XML external entity injection
随机推荐
进制转换方法
MySQL之数据查询(WHERE)
[CVA valuation training camp] how to quickly read the annual reports of listed companies - Lesson 4
urllib.error. URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: un
股价暴涨180.46%!国产大硅片龙头沪硅产业上市:近4年净利累计不足6000万
Normality of confidence interval
真的很难理解?RecyclerView 缓存机制到底是几级缓存?
用3dmax做折扇的思路方法与步骤
[elm classification] classification of UCI data sets based on nuclear limit learning machine and limit learning machine, with matlab code
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: un
Redis 哈希Hash底层数据结构
The print version of imeta | international standard ISSN is officially confirmed, and the application for dual ISSN is completed
加速IGBT国产化!比亚迪半导体将独立上市,市值或达300亿元!
Under the epidemic, TSMC's growth in the first quarter exceeded expectations, with 7Nm accounting for 35%! Second quarter or record high
怎么使用xshell免费版
What is the difference between concurrency and parallelism?
See how Gan controls the image generation style step by step? Explain the evolution process of stylegan in detail
主数据管理理论与实践
Redis hash underlying data structure
ELK日志分析系统安装和部署