Difference between Stop and Wait protocol and Sliding Window protocol

Computer EngineeringComputer NetworkMCA

Stop and Wait protocol

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.

Sliding Window protocol

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.KeyStop and Wait protocolSliding Window protocol
1MechanismIn 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.
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 increasing the efficiency of the protocol.
5EfficiencyStop 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.
6DuplexStop and Wait protocol is half duplex in nature.Sliding Window protocol is full duplex in nature.
raja
Published on 26-Nov-2019 16:28:39
Advertisements