SLIDING WINDOW PROTOCOL – Programmerbay https://programmerbay.com A Tech Bay for Tech Savvy Mon, 05 Oct 2020 15:17:50 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://programmerbay.com/wp-content/uploads/2019/09/cropped-without-transparent-32x32.jpg SLIDING WINDOW PROTOCOL – Programmerbay https://programmerbay.com 32 32 Difference Between Selective Repeat And Go-Back-N Sliding Window Protocol https://programmerbay.com/difference-between-selective-repeat-and-go-back-n-sliding-window-protocol/ https://programmerbay.com/difference-between-selective-repeat-and-go-back-n-sliding-window-protocol/#respond Fri, 22 May 2020 09:26:38 +0000 https://www.programmerbay.com/?p=2629 Go-Back-N protocol and Selective-Repeat protocol are sliding window protocols used to deal with errors that is occurred during data transmission.

sliding window protocols
The main difference between them is, Go-Back-N protocol retransmits all the frames starting from the damaged or corrupted frame, whereas Selective Repeat protocol only retransmits frames that are damaged.

Difference between Selective Repeat and Go-Back- N sliding window protocol:

Go-Back-N Sliding Window Protocol Selective repeat Sliding Window protocol
It acts by retransmitting all the frames in the particular order after a damaged or corrupted frame is encounteredIt acts by retransmitting only those frames which are damaged or corrupted while transmission
It uses cumulative acknowledgements It uses independent acknowledgement
In this protocol, there is a great amount of wastage of the bandwidth, if there is a high error rate in the transmissionIn this protocol, there is less wastage as compared to Go-Back-N sliding window protocol in retransmission of frames
In this, there is absolutely no need for sorting the sender or the receiver sideIn this protocol, there is a need for the sorting of frames that too on the receiver side to maintain the proper sequence of frames
Sliding window size of receiver is 1. For sender, it is NSliding window size of receiver is N. For sender, it is same as receiver which is N
It is fairly less complicated than other protocolsIt is slightly more complicated solely because it uses strategies, logics, etc. which is not present in all protocols
The receiver does not store any frame that is received after encountering the damaged frame, till the damaged frame is retransmittedThe receiver stores the frames that are received after encountering the damaged frame in a buffer, till the damaged frame is resent by the sender
It is more frequently used as compared to Selective repeat Sliding WindowIt is less frequently used as compared to Go-Back-N

 

Selective Repeat sliding window protocol:

Selective repeat is one of the sliding window protocols which is essentially responsible for detecting and correcting the error caused in the data link layer.

The Selective repeat protocol basically only retransmits the damaged or lost frame.

The retransmitted frame in the selective repeat protocol is always received out of sequence.

 

Go-back-N sliding window protocol:

Go-back-N is also one of the sliding window protocols. This protocol mechanism is essentially used to control and detect the errors occurring in the data link layer.

During the data transmission between the sender and the receiver; if the acknowledgement is lost or the frame has been damaged then the sender has to resend all the frames starting from the damaged or corrupted frame.

]]>
https://programmerbay.com/difference-between-selective-repeat-and-go-back-n-sliding-window-protocol/feed/ 0