ZBLOG

c. Why is flow control necessary in computer networks? Compare 3 flow control schemes in data link layer: Stop-and-Wait, Go-back-N, and Selective Repeat. What are the differ- ences comparing flow control implementations in data link layer and tran...

Flow control is necessary in computer networks to prevent the sender from overwhelming the receiver with more data than it can handle, which could result in lost or corrupted data. This is especially important in situations where the sender and receiver have different processing speeds or network capacities.

There are three main flow control schemes used in the data link layer: Stop-and-Wait, Go-back-N, and Selective Repeat.

Stop-and-Wait: In this scheme, the sender sends one frame at a time and waits for an acknowledgement from the receiver before sending the next frame. The receiver acknowledges each frame as it receives them. This method is simple but inefficient because it wastes time waiting for acknowledgements.

Go-back-N: In this scheme, the sender can send multiple frames without waiting for acknowledgements. However, if a frame is lost or corrupted during transmission, all subsequent frames must be retransmitted by the sender starting from the lost/corrupted frame. This results in wasted bandwidth and slower transmission speeds.

Selective Repeat: In this scheme, both the sender and receiver maintain a window of acceptable sequence numbers. The sender can send multiple frames within its window without waiting for acknowledgements. If a frame is lost or corrupted during transmission, only that particular frame needs to be retransmitted by the sender while other frames within their respective windows continue to be transmitted and received.

The difference between flow control implementations in data link layer and transport layer lies mainly in their scope of operation. Data link layer flow control operates on individual frames while transport layer flow control operates on entire streams of data (e.g., TCP). Transport layer flow control also considers network congestion as a factor when adjusting its transmission rate whereas data link layer flow control does not typically account for network congestion.

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://sdn.0voice.com/?id=1022

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?