📜  停止等待协议和滑动窗口协议的区别

📅  最后修改于: 2021-09-15 01:18:35             🧑  作者: Mango

停止等待协议和滑动窗口协议都是解决流量控制处理的技术。停止等待协议和滑动窗口协议的主要区别在于,在停止等待协议中,发送方发送一帧并等待接收方的确认,而在滑动窗口协议中,发送方发送一帧以上接收器并重新传输损坏或可疑的帧。

停止等待协议和滑动窗口协议的区别:

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
1/(1+2*a)
Efficiency of sliding window protocol is
N/(1+2*a)
7. Stop-and-Wait Protocol is half duplex. Sliding window protocol is full duplex.