Stop and Wait protocol is a protocol for flow control mechanism. In this protocol, sender sends one frame at a time and waits for acknowledgment from the receiver. Once acknowledged, sender sends another frame to the receiver.
Stop and Wait protocol is also a protocol for flow control mechanism. In this protocol, sender sends multiple frames at a time and retransmit the frames which are found to be corrupted or damaged.
Following are some of the important differences between Stop and Wait protocol and Sliding Window protocol.
|Sr. No.||Key||Stop and Wait protocol||Sliding Window protocol|
|1||Mechanism||In Stop and Wait protocol, sender sends single frame and waits for acknowledgment from the receiver.||In Sliding window protocol, sender sends multiple frames at a time and retransmits the damamged frames.|
|2||Efficiency||Stop and Wait protocol is less efficient.||Sliding Window protocol is more efficient than Stop and Wait protocol.|
|3||Window Size||Sender's window size in Stop and Wait protocol is 1.||Sender's window size in Sliding Window protocol varies from 1 to n.|
|4||Sorting||Sorting of frames is not needed.||Sorting of frames helps increasing the efficiency of the protocol.|
|5||Efficiency||Stop and Wait protocol efficiency is formulated as 1/(1+2a) where a is ratio of propagation delay vs transmission delay.||Sliding Window protocol efficiency is formulated as N/(1+2a) where N is no. of window frames and a is ratio of propagation delay vs transmission delay.|
|6||Duplex||Stop and Wait protocol is half duplex in nature.||Sliding Window protocol is full duplex in nature.|