📜  Go-Back-N 和选择性重复协议之间的区别

📅  最后修改于: 2021-09-14 01:23:45             🧑  作者: Mango

Go-Back-N 协议和选择性重复协议都是滑动窗口协议的类型。
这两种协议之间的主要区别在于,在发送的帧中发现可疑或损坏后,go-back-n 协议重新传输所有帧,而选择性重复协议仅重新传输损坏的帧。

现在,我们将看到它们之间的区别:

S.NO Go-Back-N Protocol Selective Repeat Protocol
1. In Go-Back-N Protocol, if the sent frame are find suspected then all the frames are re-transmitted from the lost packet to the last packet transmitted. In selective Repeat protocol, only those frames are re-transmitted which are found suspected.
2. Sender window size of Go-Back-N Protocol is N. Sender window size of selective Repeat protocol is also N.
3. Receiver window size of Go-Back-N Protocol is 1. Receiver window size of selective Repeat protocol is N.
4. Go-Back-N Protocol is less complex. Selective Repeat protocol is more complex.
5. In Go-Back-N Protocol, neither sender nor at receiver need sorting. In selective Repeat protocol, receiver side needs sorting to sort the frames.
6. In Go-Back-N Protocol, type of Acknowledgement is cumulative. In selective Repeat protocol, type of Acknowledgement is individual.
7. In Go-Back-N Protocol, Out-of-Order packets are NOT Accepted (discarded) and the entire window is re-transmitted. In selective Repeat protocol, Out-of-Order packets are Accepted.
8. In Go-Back-N Protocol, if Receives receives a corrupt packet, then also, the entire window is re-transmitted. In selective Repeat protocol, if Receives receives a corrupt packet, it immediately sends a negative acknowledgement and hence only the selective packet is retransmitted.
9. Efficiency of Go-Back-N Protocol is
N/(1+2*a)
Efficiency of selective Repeat protocol is also
N/(1+2*a)