计算机网络-后退N帧协议(GBN)窗口大小

计算机网络-后退N帧协议(GBN)窗口大小

转载自:https://upscfever.com/upsc-fever/en/gatecse/en-gatecse-chp97.html

当使用 n n n 比特对帧进行编号的时候,发送窗口的大小应该小于 2 n − 1 2^n-1 2n1

具体解释如下:
Window size for Go-Back-N ARQ

  • We choose m = 2, which means the size of the window can be 2 m − 1 2^m - 1 2m1, or 3. We can now show why the size of the send window must be less than 2 m 2^m 2m.
  • If the size of the window is 3 (less than 2 2 2^2 22) and all three acknowledgments are lost, the frame 0 timer expires and all three frames are resent.
  • The receiver is now expecting frame 3, not frame 0, so the duplicate frame is correctly discarded. On the other hand, if the size of the window is 4 (equal to 2 2 2^2 22) and all acknowledgments are lost, the sender will send a duplicate of frame 0.
  • However, this time the window of the receiver expects to receive frame 0, so it accepts frame 0, not as a duplicate, but as the first frame in the next cycle. This is an error.

在这里插入图片描述

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
后退N协议GBN)是在停止-等待协议的基础上进行改进的一种协议。它是一种滑动窗口协议,用于在发送和接收之间进行可靠的数据传输。在GBN协议中,发送可以连续发送多个,而不需要等待确认。发送维护一个发送窗口,其中包含了已发送但未收到确认的。接收按序接收,并发送累计确认,告知发送该窗口中的已经成功接收。如果发送在超时时间内没有收到确认,那么它会重传窗口中的所有。 在GBN协议中,发送的数据分类可以分为两类:已发送但未确认的和未发送发送需要响应的事件包括累计确认和超时发送机制。接收需要响应的事件包括按序接收和确认发送机制。 GBN协议的运行细节包括发送和接收之间的数据传输和确认机制。发送发送窗口长度决定了可以连续发送的数量。GBN协议的性能可以通过重传没有被确认的来衡量。 综上所述,后退N协议GBN)是一种滑动窗口协议,用于在发送和接收之间进行可靠的数据传输。它通过允许发送连续发送多个来提高传输效率,并通过确认和超时机制来确保数据的可靠传输。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* *3* [【计算机网络】数据链路层 : 后退 N 协议 GBN ( 滑动窗口 | 发送窗口长度 | “发送“ 累计确认、超时...](https://blog.csdn.net/han1202012/article/details/108070859)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值