Go-Back-N 窗口大小 [英] Go-Back-N window size

查看:66
本文介绍了Go-Back-N 窗口大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么在 TCP 的 Go-Back-N 算法中,窗口大小(N)必须小于序列号空间(S):S>N?我试着自己弄清楚,但不要安静

Why in TCP's Go-Back-N Algorithm window size(N) has to be smaller than the sequence number space(S): S>N? I tried figuring it out myself but don't quiet get it

推荐答案

假设序列空间为 4(序列号 0、1、2、3).假设窗口大小也是 4.发送方发送 4 个带有序列号 (0,1,2,3) 的数据包.接收器接收所有四个数据包.所以它发送 4 个确认(0,1,2,3).现在假设所有的确认都丢失了.发送方将重新发送所有四个数据包,但接收方将假定它们是新的.为了避免丢失确认引起的混淆,我们保持 n <

Assume that sequence space was four (sequence numbers 0,1,2,3). Lets say window size was also 4. Sender sends 4 packets with sequence numbers (0,1,2,3). Receiver receives all four packets. So it sends 4 acknowledgements(0,1,2,3). Now assume all acknowledgements are lost. Sender will resend all four packets but receiver will assume they're the new ones. To avoid confusions arising from lost acknowledgements, we keep n < s

这篇关于Go-Back-N 窗口大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆