Both Stop and Wait protocol and Sliding Window protocol are the techniques to the solution of flow control handling. The main difference between Stop-and-wait protocol and Sliding window protocol is that in Stop-and-Wait Protocol, the sender sends one frame and wait for acknowledgment from the receiver whereas in sliding window protocol, the sender sends more than one frame to the receiver and re-transmits the frame(s) which is/are damaged or suspected.
Difference between Stop and Wait protocol and Sliding Window protocol:
|S.NO||Stop-and-Wait Protocol||Sliding Window Protocol|
|1.||In Stop-and-Wait Protocol, sender sends one frame and wait for acknowledgment from receiver side.||In sliding window protocol, sender sends more than one frame to the receiver side and re-transmits the frame(s) which is/are damaged or suspected.|
|2.||Efficiency of Stop-and-Wait Protocol is worse.||Efficiency of sliding window protocol is better.|
|3.||Sender window size of Stop-and-Wait Protocol is 1.||Sender window size of sliding window protocol is N.|
|4.||Receiver window size of Stop-and-Wait Protocol is 1.||Receiver window size of sliding window protocol may be 1 or N.|
|5.||In Stop-and-Wait Protocol, sorting is not necessary.||In sliding window protocol, sorting may be or may not be necessary.|
|6.||Efficiency of Stop-and-Wait Protocol is
|Efficiency of sliding window protocol is
|7.||Stop-and-Wait Protocol is half duplex.||Sliding window protocol is full duplex.|
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.