当前位置:网站首页>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
边栏推荐
- compute_ class_ weight() takes 1 positional argument but 3 were given
- STS下载教程(include官网无法下载解决方案)
- Wechat applet must use interface "suggestions collection"
- Go Beginner (4)
- 象棋机器人「弄折了」棋童的手指。。。
- How to make a graph? Multiple subgraphs in a graph are histogram (or other graphs)
- Bishi journey
- 广东:剧本杀等新行业新业态场所,消防安全监管不再“缺位”
- Fundamentals of mathematics 01
- Makefile template
猜你喜欢

Solution: the idea project does not display a tree view

Chapter 7 exception handling

Solution: can not issue executeupdate() or executelargeupdate() for selections

广东:剧本杀等新行业新业态场所,消防安全监管不再“缺位”

Chapter 8 multithreading

Introduction to box diagram
Several rounds of SQL queries in a database

评价自动化测试优劣的隐性指标

Source code compilation and installation lamp

2021-3-22-directed graph sorting
随机推荐
iptables防火墙
Go Beginner (3)
最强分布式锁工具:Redisson
The configuration change removed the routing filter, and the distributed router was overwhelmed: the Canadian network was paralyzed
go入门篇 (2)
Leetcode 03: t58. Length of the last word (simple); Sword finger offer 05. replace spaces (simple); Sword finger offer 58 - ii Rotate string left (simple)
Solve the problem of @onetomany query falling into circular reference
Sword finger offer notes: T53 - ii Missing numbers from 0 to n-1
Unexpected harvest of epic distributed resources, from basic to advanced are full of dry goods, big guys are strong!
Fundamentals of mathematics 02 - sequence limit
go语言之sync.Map
Sword finger offer notes: t57 - I. and two numbers of S
Lonely young people can't quit jellycat
matlab二分法例题(用二分法求零点例题)
Shake quickly to rescue the "frustrated person"
USB network card drive data stream
Go replace with local code
mysql分页查询实例_mysql分页查询实例讲解「建议收藏」
Strictly control outdoor operation time! Foshan housing and Urban Rural Development Bureau issued a document: strengthening construction safety management during high temperature
Detailed explanation of flask framework