ARQ Protocol Comparison: Stop-and-Wait, Go-Back-N, and Selective Repeat
When to Use Each Protocol
Read aloud is unavailable in this browser.
From Analysis to Action
We've analyzed the efficiency formulas. We've quantified the complexity costs. Now comes the practical question every network engineer must answer: Which protocol should I use for this specific scenario?
This page synthesizes our analyses into a decision framework. Rather than abstract comparisons, we'll examine concrete deployment scenarios—from IoT sensors to intercontinental data centers—and determine the optimal protocol for each. You'll leave with actionable guidelines applicable to real system design.
By the end of this page, you will be able to select the optimal ARQ protocol for any scenario by evaluating bandwidth-delay product, error rates, resource constraints, and application requirements. You'll understand the decision criteria used in real protocols (HDLC, PPP, TCP, WiFi) and be able to justify protocol choices with quantitative reasoning.
The Protocol Selection Decision Framework
Protocol selection isn't a single-factor decision. Multiple variables interact, and the optimal choice emerges from balancing competing concerns.
Primary Decision Factors:
- •Bandwidth-Delay Product (a) — The ratio t_p/t_f determines whether pipelining is necessary. If a < 0.1, Stop-and-Wait loses only ~17% efficiency; pipelining may not be worth the complexity.
- •Error Rate (p) — High error rates punish Go-Back-N severely. If p > 0.01 and window size is large, Selective Repeat's efficiency advantage becomes substantial.
- •Resource Constraints — Available memory at endpoints determines feasible window sizes and whether receiver-side buffering (SR) is acceptable.
- •Application Requirements — Latency sensitivity, throughput requirements, and reliability guarantees constrain protocol choices.
- •Implementation Constraints — Available development time, verification requirements, and maintenance burden affect complexity tolerance.
The Decision Tree:
The following decision tree captures the structured approach to protocol selection:
Is a > 0.1?
/
No Yes
| |
Stop-and-Wait Is error rate p > 0.01?
(sufficient) /
No Yes
| |
Is receiver memory Is receiver memory
constrained? available?
/ \ /
Yes No No Yes
| | | |
Go-Back-N Either OK Go-Back-N Selective
(saves (GBN (accept Repeat
memory) simpler) inefficiency) (optimal)
This simplifies the multi-factor decision into a sequential evaluation.
Small 'a', low errors → Stop-and-Wait. Large 'a', low errors, constrained receiver → Go-Back-N. Large 'a', high errors, or when throughput is paramount → Selective Repeat. This covers 90% of decisions.
Stop-and-Wait: Where Simplicity Wins
Despite its efficiency limitations, Stop-and-Wait remains the right choice for many scenarios. Its simplicity provides reliability, low resource requirements, and ease of implementation that more complex protocols cannot match.
Ideal Conditions for Stop-and-Wait:
- •Low BDP (a < 0.2) — Frame transmission time is much larger than propagation time. The efficiency loss is minimal.
- •Very low bandwidth links — At 9600 baud, frame transmission time of ~100ms dwarfs any reasonable propagation delay.
- •Short-distance connections — USB, I²C, SPI, UART between devices on the same board—propagation is nanoseconds.
- •Severely resource-constrained endpoints — Microcontrollers with 1-4 KB RAM cannot afford window buffers.
- •Correctness over performance — Safety-critical systems where simplicity reduces verification burden.
- •Infrequent data transfer — If you're sending one frame per second, pipelining provides no benefit.
- •Inherently request-response protocols — Some protocols wait for responses anyway (e.g., NTP, DNS).
| Application | Why Stop-and-Wait | Key Characteristic |
|---|---|---|
| XMODEM file transfer | Simple, widely implemented, 8-bit micro compatible | Legacy over serial links |
| TFTP (Trivial FTP) | UDP-based, minimal state, early bootloader use | Simple file download |
| Modbus RTU (polling) | Industrial sensors, 9600 baud typical | Low-speed serial |
| I²C protocol | On-chip communication, nanosecond propagation | Negligible BDP |
| Bootloader protocols | Runs before OS, minimal RAM available | Constrained state |
| Simple serial consoles | Interactive, human typing speed is bottleneck | Irrelevant efficiency |
| Flash reprogramming over SWD | Reliability paramount, speed acceptable | Safety-critical path |
Numerical Justification:
Consider a Modbus sensor network:
- Bandwidth: 9600 bps
- Frame size: 256 bytes = 2048 bits
- Propagation delay: 1 ms (typical wired installation)
Calculations: $$t_f = \frac{2048}{9600} = 213 \text{ ms}$$ $$a = \frac{1 \text{ ms}}{213 \text{ ms}} = 0.0047$$ $$\eta_{SW} = \frac{1}{1 + 2(0.0047)} = 99.1%$$
Stop-and-Wait achieves 99.1% efficiency! Pipelining would add complexity for <1% improvement. This is a perfect Stop-and-Wait scenario.
Stop-and-Wait naturally provides flow control—the sender cannot overwhelm the receiver because it waits for acknowledgment before continuing. This implicit flow control is valuable when receiver processing speed varies or is unknown. Pipelined protocols must explicitly manage flow control.
Go-Back-N: The Balanced Choice
Go-Back-N occupies the middle ground—substantial efficiency improvement over Stop-and-Wait with moderate complexity increase. It's particularly suited to scenarios with high BDP but reliable channels.
Ideal Conditions for Go-Back-N:
- •High BDP (a > 1) with low error rates (p < 0.01) — Pipelining is needed, but retransmission waste is acceptable.
- •Receiver has minimal buffering capability — GBN keeps the receiver simple; all complexity is at the sender.
- •Cumulative ACK is beneficial — When ACK loss is a concern, cumulative ACKs provide implicit redundancy.
- •Moderate performance requirements — GBN is 'good enough' for many applications.
- •Implementation budget is limited — GBN is significantly simpler than SR while much more efficient than SW.
- •Channel errors are bursty but rare — Individual bursts cause retransmission, but overall throughput is acceptable.
| Application | Why Go-Back-N | Key Characteristic |
|---|---|---|
| HDLC (High-Level Data Link Control) | Standard for WANs, well-established | N=7 or N=127 typical |
| LAPB (X.25 Layer 2) | Legacy packet networks, reliable WAN | Balanced configuration |
| PPP (Point-to-Point Protocol) | Modern dial-up, DSL encapsulation | Modem/phone links |
| Frame Relay | WAN service, PVC circuits | Provider network links |
| Early TCP implementations | Before SACK, cumulative ACK only | Historical simplicity |
| Bluetooth L2CAP (basic mode) | Simple flow control mode | Short-range wireless |
| Satellite modems (basic) | Simple receiver for mobile terminals | Power-constrained RX |
Numerical Justification:
Consider an HDLC link to a branch office:
- Bandwidth: 2 Mbps (T1 equivalent)
- Frame size: 1000 bytes = 8000 bits
- Propagation delay: 10 ms (500 km terrestrial)
- Error rate: 0.1% (p = 0.001)
- Window size: N = 7 (3-bit sequence numbers)
Calculations: $$t_f = \frac{8000}{2 \times 10^6} = 4 \text{ ms}$$ $$a = \frac{10 \text{ ms}}{4 \text{ ms}} = 2.5$$ $$1 + 2a = 6 \quad \text{and} \quad N = 7 \geq 6 \quad \checkmark$$
Error-free efficiency: 100% (window sufficient)
With errors: $$\eta_{GBN} = \frac{1 - 0.001}{1 + 7 \times 0.001} = \frac{0.999}{1.007} = 99.2%$$
At 0.1% error rate, GBN is 99.2% efficient. Selective Repeat would provide 99.9%, but the 0.7% difference doesn't justify the added complexity. This is a classic GBN scenario.
If the error rate were 5% instead of 0.1%, GBN efficiency drops to 73.6% while SR maintains 95%. The crossover point varies with window size—larger windows make GBN's error sensitivity worse. Always check the expected error rate when choosing GBN.
Selective Repeat: Maximum Throughput
Selective Repeat is the protocol of choice when throughput maximization justifies the complexity investment. High error rates, expensive bandwidth, or demanding applications make SR's efficiency essential.
Ideal Conditions for Selective Repeat:
- •High error rates (p > 0.01) — GBN's retransmission penalty becomes unacceptable; SR retransmits only failed frames.
- •Bandwidth is expensive or scarce — Satellite links, metered mobile data, or congested networks where every bit counts.
- •Very high BDP with large windows — Larger windows amplify GBN's error penalty; SR remains efficient.
- •Throughput-critical applications — Bulk data transfer, streaming, backups where maximizing utilization is essential.
- •Receiver has adequate resources — Modern endpoints with MB/GB of RAM can easily buffer out-of-order packets.
- •NAK support is available — Quick error signaling further improves SR efficiency.
| Application | Why Selective Repeat | Key Characteristic |
|---|---|---|
| TCP with SACK option | Dominant Internet transport, SR semantics | High-BDP paths, diverse errors |
| SCTP (Stream Control TP) | Multi-streaming, mobile handoff | Advanced transport needs |
| WiFi 802.11 Block ACK | Wireless error rates, aggregation | OFDM frame bursting |
| Satellite DVB-S2 RCS2 | 500ms RTT, expensive bandwidth | GEO satellite links |
| 5G NR HARQ | Hybrid ARQ with SR scheduling | High-speed mobile |
| QUIC protocol | HTTP/3 transport, loss recovery | Modern web transport |
| iSCSI/FCoE storage | Data integrity critical, high throughput | Datacenter storage |
Numerical Justification:
Consider a GEO satellite internet terminal:
- Bandwidth: 50 Mbps downlink
- Frame size: 1500 bytes = 12,000 bits
- Propagation delay: 270 ms (GEO orbit)
- Error rate: 2% (p = 0.02) due to rain attenuation
- Window size: N = 4096 (12-bit sequence numbers)
Calculations: $$t_f = \frac{12000}{50 \times 10^6} = 0.24 \text{ ms}$$ $$a = \frac{270 \text{ ms}}{0.24 \text{ ms}} = 1125$$ $$1 + 2a = 2251 \quad \text{and} \quad N = 4096 \geq 2251 \quad \checkmark$$
Go-Back-N efficiency: $$\eta_{GBN} = \frac{1 - 0.02}{1 + 4096 \times 0.02} = \frac{0.98}{82.92} = 1.18%$$
Selective Repeat efficiency: $$\eta_{SR} = 1 - 0.02 = 98%$$
Throughput difference:
- GBN: 0.0118 × 50 Mbps = 0.59 Mbps
- SR: 0.98 × 50 Mbps = 49 Mbps
Selective Repeat provides 83× higher throughput in this scenario. The complexity investment is overwhelmingly justified.
On any modern system with adequate memory, Selective Repeat is the default choice for significant data transfer. TCP SACK is enabled by default on virtually all operating systems. The question has shifted from 'Can we afford SR complexity?' to 'Why would we accept anything less?'
Hybrid and Adaptive Approaches
Real-world protocols often combine features from multiple ARQ approaches or adapt their behavior based on channel conditions. This section examines these hybrid strategies.
TCP: The Premier Hybrid Example
TCP demonstrates how protocol design evolves beyond textbook categories:
- Base mechanism: Cumulative ACKs (Go-Back-N heritage)
- Enhancement: Selective Acknowledgment (SACK) option adds SR capability
- Adaptation: SACK-based recovery when out-of-order segments detected; cumulative ACK otherwise
- Backwards compatibility: Works with non-SACK endpoints in GBN mode
- •Cumulative ACK — Every ACK confirms bytes up to the acknowledged sequence number
- •SACK option — Optional blocks reporting non-contiguous received ranges
- •Fast Retransmit — 3 duplicate ACKs trigger retransmission without timeout (reduces latency)
- •Fast Recovery — After fast retransmit, continue sending new segments (doesn't go back to slow start)
- •DSACK — Duplicate SACK reports when duplicate segments are received (helps sender detect spurious retransmissions)
Adaptive Protocol Design:
Some protocols adapt strategy based on observed conditions:
802.11 (WiFi) Block ACK:
- Normal mode: Individual ACKs for each frame (low overhead for sparse traffic)
- Block ACK: Aggregate acknowledgments for burst traffic
- Compressed Block ACK: Bitmap indicating received frames in a window
LTE/5G HARQ:
- Combines Forward Error Correction (FEC) with ARQ
- Soft combining: retransmission bits are combined with original (not replaced)
- Adaptive retransmission: adjust FEC rate based on channel quality
SCTP Multi-streaming:
- Selective Repeat within streams
- Independent sequence spaces per stream
- Head-of-line blocking eliminated between streams
Benefits of Adaptation:
| Benefit | Description | Example |
|---|---|---|
| Graceful degradation | Works with less-capable endpoints | TCP without SACK falls back to GBN |
| Optimal efficiency | Matches strategy to current conditions | WiFi switches Normal/Block ACK |
| Resource scaling | Uses complexity only when needed | SACK processing only on loss |
| Backwards compatibility | New versions work with old | TCP SACK is optional |
| Resilience | Multiple mechanisms provide redundancy | Fast retransmit + timeout as backup |
When designing new protocols, consider building in extension mechanisms (like TCP options). Starting simple with room for enhancement allows deployment on constrained devices while enabling optimization on capable ones. The entire progression from SW to GBN to SR can then be traversed as the ecosystem matures.
Protocol Selection Case Studies
Let's apply our decision framework to diverse real-world scenarios, demonstrating the reasoning process for protocol selection.
Scenario: Agricultural IoT sensors reporting soil moisture to a gateway.
Characteristics:
- Link: LoRaWAN, 5.5 Kbps, Class A
- Range: 5 km, propagation ~17 μs
- Frame size: 51 bytes (max LoRaWAN payload)
- Error rate: 1-2% (typical LoRa BER)
- Endpoint: ARM Cortex-M0, 8 KB RAM
- Traffic: One reading every 15 minutes
Analysis: $$t_f = \frac{408 \text{ bits}}{5500 \text{ bps}} = 74 \text{ ms}$$ $$a = \frac{0.017 \text{ ms}}{74 \text{ ms}} \approx 0.0002$$
With a = 0.0002, Stop-and-Wait efficiency is 99.96%. Additionally:
- Memory constraints prohibit window buffers
- Infrequent traffic makes throughput irrelevant
- Simplicity reduces power consumption
Decision: Stop-and-Wait (LoRaWAN uses confirmed messages with SW semantics)
Notice the patterns: IoT and legacy = Stop-and-Wait; datacenter and satellite = Selective Repeat; moderate WAN with good reliability = Go-Back-N. The bandwidth-delay product and error rate are the dominant factors, with resource constraints as a tiebreaker.
Decision Summary Matrix
The following matrix consolidates protocol selection guidance. Use the parameters of your scenario to identify the recommended protocol.
| BDP (a) | Error Rate (p) | Receiver Memory | Recommended Protocol |
|---|---|---|---|
| Low (a < 0.2) | Any | Any | Stop-and-Wait |
| Medium (0.2 ≤ a < 10) | Low (p < 0.5%) | Constrained | Go-Back-N |
| Medium (0.2 ≤ a < 10) | Low (p < 0.5%) | Available | GBN or SR (either acceptable) |
| Medium (0.2 ≤ a < 10) | High (p ≥ 0.5%) | Constrained | GBN (accept efficiency loss) |
| Medium (0.2 ≤ a < 10) | High (p ≥ 0.5%) | Available | Selective Repeat |
| High (a ≥ 10) | Low (p < 0.1%) | Constrained | Go-Back-N |
| High (a ≥ 10) | Low (p < 0.1%) | Available | SR (future-proofs for errors) |
| High (a ≥ 10) | Medium (0.1% ≤ p < 1%) | Any | Selective Repeat |
| High (a ≥ 10) | High (p ≥ 1%) | Any | Selective Repeat |
Quick Reference Formulas:
When deciding between protocols, these formulas help quantify the benefit:
Stop-and-Wait efficiency check: If η_SW = 1/(1+2a) > 80%, Stop-and-Wait is probably sufficient. This requires a < 0.125.
GBN vs SR crossover: The efficiency ratio is η_SR/η_GBN = (1+Np) when window is sufficient. SR is 2× better when Np = 1, i.e., when N × p = 1.
For N=127, this means SR is 2× better at p = 0.8%. For N=7, SR is 2× better at p = 14%.
Required window size: For full efficiency: N ≥ 1 + 2a Practical margin: N ≥ 1.5 × (1 + 2a) to handle burst losses
The matrix focuses on performance. If implementation time is constrained or verification requirements are stringent, bias toward simpler protocols. A working Stop-and-Wait today beats a buggy Selective Repeat next month.
KEEP LEARNING
Keep learning for free.
Read the complete lesson, save your notes and pick up where you left off with a free account. No card needed.