Explain difference between Stop and Wait protocol and Sliding Window protocol

WindowsComputer NetworkMCA

Stop and Wait protocol

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.

Sliding Window protocol

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.KeyStop and Wait protocolSliding Window protocol
1MechanismIn 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.
2EfficiencyStop and Wait protocol is less efficient.Sliding Window protocol is more efficient than Stop and Wait protocol.
3Window SizeSender's window size in Stop and Wait protocol is 1.Sender's window size in Sliding Window protocol varies from 1 to n.
4SortingSorting of frames is not needed.Sorting of frames helps to increase the efficiency of the protocol.
5EfficiencyStop 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.
6DuplexStop and Wait protocol is half-duplex in nature.Sliding Window protocol is full-duplex in nature.
raja
Published on 15-Apr-2020 07:04:30
Advertisements