
Serena D. answered 04/18/19
Bachelors + CCNA certified
Hello, hopefully I can help answer your question. Ill break it down from the beginning.
Stop and Wait, & Sliding window protocol are both methods used for flow control.
Stop and wait- waits for an acknowledgement for each data unit before sending another.
Sliding Window- Transmits several data united before requiring an acknowledgement
Sliding Window is considered more efficient for a few reasons. Sliding window uses full duplex, meaning traffic can be transmitted both ways on the link. Stop and Wait is half duplex, traffic can only go one way at a time. Additionally, with sliding window you are able to send more data before requiring and an acknowledgment therefore allowing more throughput.
Both of these protocols work at the transport layer. Transport layer uses "Segments". Only one would be used at a time.
- Physical - Bits/Bytes
- Data Link- Frames
- Network- Packets
- Transport- Segments
I hope this answers your questions!