Stop and Wait protocol is a protocol for the flow control mechanism. In this protocol, the sender sends one frame at a time and waits for an acknowledgment from the receiver. Once acknowledged, the sender sends another frame to the receiver.
Stop and Wait protocol is also a protocol for the flow control mechanism. In this protocol, the sender sends multiple frames at a time and retransmit the frames which are found to be corrupted or damaged.
The 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, the sender sends a single frame and waits for an acknowledgment from the receiver. | In Sliding window protocol, the sender sends multiple frames at a time and retransmits the damaged 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 to increase the efficiency of the protocol. |
5 | Efficiency | Stop and Wait protocol efficiency is formulated as 1/(1+2a) where a is a 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 a 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. |