当前位置:网站首页>20210520 TCP sliding window
20210520 TCP sliding window
2022-07-27 12:19:00 【Anethole job】
TCP The sliding window
effect :
1. Provide TCP reliability : Confirm the sent data
2. flow control : The window size varies with the link
One 、TCP Window control
TCP Window size in refers to tcp How many data does the protocol transmit at a time . because TCP It is a reliable connection oriented transmission protocol , Since it is reliable, it is necessary to confirm the transmitted data .TCP There are two window mechanisms , One is fixed window size , The other is sliding window . When data is transmitted ,TCP All data will be numbered , The sender always keeps a window during the sending process , Only data frames falling in the transmission window are allowed to be transmitted ; At the same time, the receiver always maintains an acceptance window , Only the data falling in the window will be received . In this way, the flow control can be realized by changing the size of the sending window and the receiving window .
Two 、TCP Window size
TCP The window sliding technology adjusts the data transmission between two hosts by dynamically changing the size of the window . Every TCP/IP The host supports full duplex data transmission , therefore TCP There are two sliding windows , One for receiving data , One for sending data . The receiving device requires a window size of 0 when , Indicates that the receiver has received all the data , Or the receiving application doesn't have time to read the data , Request to suspend sending .
TCP When transmitting data , The first receiver window size is determined by the link bandwidth , But after receiving the data , return ack Confirmation message , At the same time, it also tells the sender its own window size , At this time, when the sender sends data for the second time , It will change the size of its own window to be consistent with that of the receiver .
When the window is too large , It will cause unnecessary data to jam our links , But the window is too small , It will cause great delay , For example 1 when , Every time the sender sends a data , The receiver will return a ack message , The sender does not receive the confirmation message from the receiver ack The next transmission will not be made before .( When the link gets better or worse, this window will change , It's not the first time we've negotiated that it will never change .)【 I don't quite understand this sentence 】
3、 ... and 、 Window slide
边栏推荐
- SMA TE: Semi-Supervised Spatio-Temporal RepresentationLearning on Multivariate Time Series
- 数据湖(二十):Flink兼容Iceberg目前不足和Iceberg与Hudi对比
- One article to understand the index of like in MySQL
- go入门篇 (2)
- EfficientNet
- 20210408 longest public prefix
- Top 10 in the 5.3 billion Bi Market: fansoft, Microsoft, Yonghong, sap, Baidu, IBM, SAS, smart, salesforce, Inspur soft
- Idea: can't use subversion command line client: SVN solution
- 广东:剧本杀等新行业新业态场所,消防安全监管不再“缺位”
- mysql分页查询实例_mysql分页查询实例讲解「建议收藏」
猜你喜欢

The first case of monkeypox in pregnant women in the United States: the newborn was injected with immunoglobulin and was safely born

MySQL数据库主从复制集群原理概念以及搭建流程

Idea: can't use subversion command line client: SVN solution

Fundamentals of mathematics 01

Go Beginner (4)

Weibo comment crawler + visualization

Bishi journey

阿里云云数据库RDS版Exception during pool initialization

About the problem that the onapplicationevent method of the custom listener is executed multiple times

SMA TE: Semi-Supervised Spatio-Temporal RepresentationLearning on Multivariate Time Series
随机推荐
解决方案:Can not issue executeUpdate() or executeLargeUpdate() for SELECTs
Unity Shader 一 激光特效Shader[通俗易懂]
Wechat applet must use interface "suggestions collection"
Shell script text three swordsmen sed
The use of omitempty in go
意外收获史诗级分布式资源,从基础到进阶都干货满满,大佬就是强!
你尚未连接代理服务器可能有问题或地址不正确(如何查看代理服务器ip)
Flash quickly builds an API
V-show failure
Shake quickly to rescue the "frustrated person"
阿里云云数据库RDS版Exception during pool initialization
Sword finger offer notes: T53 - ii Missing numbers from 0 to n-1
Leetcode 01: t1. sum of two numbers; T1108. IP address invalidation; T344. Reverse string
Go Introduction (2)
Docker MySQL Usage Note
Image segmentation vs Adobe Photoshop (PS)
Ali II: what if the AOF file in redis is too large?
配置更改删除了路由过滤器,分布路由器不堪重负:加拿大网络大瘫痪
5V升压9V芯片
go入门篇 (4)