Intermediate Topic 24 of 50 Computer Networks
Sliding Window Protocol
Allowing multiple outstanding unacknowledged packets.
How it works
A sliding window protocol lets a sender transmit several packets before waiting for acknowledgements. The window defines the range of sequence numbers that may be in flight; as acknowledgements arrive, it slides forward. Go-Back-N retransmits everything after a lost packet, while selective repeat retransmits only the missing ones, and the receiver buffers out-of-order data. Throughput approaches window size divided by round-trip time.
Step-by-step walkthrough
- A window of three packets may be in flight.
- Packets 1 to 3 are sent without waiting.
- The ACK for 1 arrives and the window slides forward.
- Packet 4 is now allowed.
- Pipelining keeps the link busy instead of waiting after each packet.
Where it is used
TCP and reliable data-link protocols use sliding windows to keep long, fast links busy instead of stopping after each packet, as stop-and-wait would.
Common pitfall
If the window is smaller than the bandwidth-delay product, the link sits idle part of the time. Sequence-number space must be at least twice the window for selective repeat to avoid ambiguity. Wrong timeout settings cause needless retransmissions. Window scaling is required for large windows in TCP.
Where it fits in the course
Sliding Window Protocol is topic 24 of 50 in Computer Networks, rated Intermediate. It follows Congestion Control. The next topic is Error Detection and Correction.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Computer Networks quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Computer Networks quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Sliding Window Protocol?
Where do people use Sliding Window Protocol?
What is the most common mistake with Sliding Window Protocol?
What should I learn before this topic?
How can I practice it?
Is Sliding Window Protocol hard to learn?
How long does it take to learn Sliding Window Protocol?
Which topics are related to Sliding Window Protocol?
What should I study after Sliding Window Protocol?
Related topics
- Congestion Control (Computer Networks)
- Error Detection and Correction (Computer Networks)
- Flow Control (Computer Networks)
- CRC (Computer Networks)
- Sliding Window (Algorithms)
- Window Functions (Databases)
- Cryptographic Protocol Design (Security & Cryptography)