当前位置:网站首页>Sliding window technology based on byte in transport layer
Sliding window technology based on byte in transport layer
2022-06-25 00:24:00 【Foxconn quality inspector zhangquandan】
The previous principle of reliable transmission , More generally , For example, stop waiting for the agreement , continuity ARQ And sliding windows , In fact, the sliding window technology in bytes is to say continuous in detail ARQ And how sliding windows are implemented .
The application will transfer the file to another computer , In fact, this file is put into the cache in the form of byte stream , Segment bytes in the cache ,

piecewise , Each sequence number is the first in the segment .
Detailed explanation of sliding window technology

a and b When the computer communicates, it is necessary to establish a connection ,b Computer tells a The receiving window on the computer side is 400 Bytes , Maximum supported message segment mss yes 100 Bytes , This is a b Computer tells a The computer ,400 Bytes is the acceptance window .
This is the time a Set a send window in the cache , This window is 400 Bytes , Then, the contents transmitted inside are transmitted in the form of byte stream 100 Byte grouping , And number .
There will be 4 Groups are in this sliding window , This time you can send 1,2,3,4 Groups , This is continuous ARQ, The first sequence number is 1, The second serial number is 101...........
b When received , The application reads these consecutive received data from the cache , At this time, the receiving window starts to move , It is equivalent to making room , Before you receive it 4 Data segments for a Send a confirmation , Confirmation no. ack Tag bit of ACK=1, The confirmation number is 401, This means that the front 400 Bytes all received , You should send me 401 The bytes , At this time, the sending window also starts to move , Then the following data segment runs into the sliding window , Repeat the above steps .
After receiving the confirmation , The sent data segments can be deleted in the cache .
At the time of sending , The first 7 If you lose it , The receiver received it 5,6,8, After receiving it at this time, due to 7 Have not received , The window cannot move forward , At this time, I will ask a Send a confirmation , You should send me 601 了 , I have received it before , The receiving end starts sliding the window , that 9,10 Into the sliding window , And then send 9,10.
7 lost , When will it be sent ? Each time a packet is sent, there is a timing , Waiting for a round trip , Automatically resend after timeout . After receiving the confirmation , It wasn't immediately lost 7, Instead, move the window first , Falling on the window 9 and 10 Hair .( Because it supports selective confirmation , that 8 It won't be reissued )
7 8 9 10 received , Start reading these continuous data , Read consecutive bytes and send them confirmation 1001.
The above is the sliding window technology in bytes .
The size of this sliding window is b Computer tells a Of .
边栏推荐
- JDBC —— 数据库连接
- Go crawler framework -colly actual combat (IV) -- Zhihu answer crawl (I)
- D does not require opapply() as a domain
- Uniapp encapsulated incentive advertisement, screen insert advertisement and banner advertisement
- 5G dtu无线通信模块的电力应用
- Helm chart仓库操作
- On the difficulty of developing large im instant messaging system
- Unimportant tokens can be stopped in advance! NVIDIA proposes an efficient visual transformer network a-vit with adaptive token to improve the throughput of the model
- Analysis report on operation trend and investment strategy of global and Chinese tetrahydrofurfuryl propionate industry from 2022 to 2028
- Why are life science enterprises on the cloud in succession?
猜你喜欢

微搭低代码中实现增删改查

融合模型权限管理设计方案

傳輸層 以字節為單比特的滑動窗口技術

What exactly is Nacos
WordPress add photo album function [advanced custom fields Pro custom fields plug-in series tutorial]

Virtual machine - network configuration

Eye gaze estimation using webcam

Im instant messaging development application keeping alive process anti kill
Is it so difficult to calculate the REM size of the web page according to the design draft?

iNFTnews | 国内NFT发展仅限于数字藏品吗?
随机推荐
在企业级开发过程中我发现有位同事用select * from where 条件 for update
技术分享| WVP+ZLMediaKit实现摄像头GB28181推流播放
ServerSocket and socket connection
Technology sharing | wvp+zlmediakit realizes streaming playback of camera gb28181
Use of JMeter easynmon
im即时通讯开发应用保活之进程防杀
Paper review: U2 net, u-net composed of u-net
C程序设计专题 15-16年期末考试习题解答(上)
Go crawler framework -colly actual combat (4) -- Zhihu answer crawl (2) -- visual word cloud
打卡smart精灵#1,品牌不缺吸引力,产品本身实力如何?
UE4 WebBrowser图表不能显示问题
Alternative to log4j
The drawableleft of the custom textview in kotlin is displayed in the center together with the text
5G dtu无线通信模块的电力应用
iNFTnews | 国内NFT发展仅限于数字藏品吗?
Time unified system
JPA learning 1 - overview, JPA, JPA core annotations, JPA core objects
Use coordinatorlayout+appbarlayout+collapsingtoolbarlayout to create a collapsed status bar
JDBC —— 数据库连接
Report on operation mode and future development trend of global and Chinese propenyl isovalerate industry from 2022 to 2028