Flow Control and ARQ Protocols: Stop-and-Wait, Go-Back-N, and Selective Repeat
With stop-and-wait, a sender waits after every frame. A sliding window allows several outstanding frames. Go-Back-N resends a sequence after loss, while Selective Repeat keeps correctly received frames and resends the missing ones.
If a fast high-speed computer sends 10,000 frames per second to an older slow computer, the receiver’s memory buffer will quickly overflow and drop frames.
Flow Control ensures that a fast sender does not overwhelm a slow receiver. When combined with error control, these protocols are called Automatic Repeat reQuest (ARQ) protocols.
1. Stop-and-Wait ARQ
The simplest flow control protocol:
The sender sends one frame and waits for an acknowledgement. A timeout allows another attempt if the frame or reply was lost.
- Send Frame 0 — Sender transmits Frame 0 and starts countdown timer
- Wait & Acknowledge — Receiver verifies checksum and responds with ACK 1 (expecting Frame 1)
- Send Frame 1 — Sender receives ACK 1, stops timer, and transmits Frame 1
- Next ACK Cycle — Receiver validates Frame 1 and returns ACK 0 to continue sequence
- Sender transmits one single frame and starts a timer.
- Sender stops and waits until it receives an Acknowledgement (ACK) from the receiver.
- If the ACK arrives before the timer expires, sender sends the next frame.
- If the timer expires (frame or ACK was lost), sender retransmits the frame.
- Limitation: Terribly slow! Most of the time, the sender is sitting idle doing nothing while waiting for ACKs.
View diagram · Stop-and-Wait Protocol Handshake Flow
2. Sliding Window Protocols (Pipelined Transmission)
Instead of waiting after every single frame, Sliding Window protocols allow the sender to transmit multiple frames (up to a Window Size W) before stopping to wait for acknowledgements!
Go-Back-N retransmits the missing frame and later outstanding frames. Selective Repeat retains good frames and requests only the missing ones.
- Go-Back-N ARQ (GBN) — Sender window size: Ws = 2^m - 1.
- Selective Repeat ARQ (SR) — Sender window size: Ws = 2^m-1.
View diagram · Go-Back-N vs Selective Repeat ARQ
3. Master Comparison Table for Exams
| Parameter | Stop-and-Wait ARQ | Go-Back-N ARQ (GBN) | Selective Repeat ARQ (SR) |
|---|---|---|---|
| Sender Window Size (Ws) | 1 | 2^m - 1 | 2^m-1 |
| Receiver Window Size (Wr) | 1 | 1 | 2^m-1 |
| Retransmission on Error | Only that 1 frame | All N frames in the window | Only the single damaged frame |
| Receiver Buffer Needed? | No buffer needed | No buffer needed (discards out-of-order) | Yes, needs buffer to store out-of-order frames |
| Efficiency / Bandwidth | Lowest | Moderate (wastes bandwidth re-sending good frames) | Highest efficiency |
| Complexity | Very Simple | Moderate | Most Complex logic |
💡 DAVV Exam Tip
Question (10 Marks): “Explain Sliding Window protocols. Compare Go-Back-N and Selective Repeat ARQ with diagrams.”
- State the receiver window sizes: Wr = 1 for GBN, Wr > 1 for Selective Repeat.
- Explain why GBN retransmits all frames while SR retransmits only the lost frame.
- Write the 6-point comparison table above.