Networking & Protocols (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)
How does TCP Congestion Control work (Slow Start, Congestion Avoidance, Fast Retransmit)?
senior LevelSystem Design
In Simple Words: Prevents the sender from overwhelming the intermediary network routers and links:
- Sender maintains a Congestion Window (
cwnd):- Slow Start: Starts with a small
cwnd(e.g. 10 MSS) and doubles exponentially every round-trip until reachingssthresh. - Congestion Avoidance: Switches to linear additive increase ($+1$ MSS per round-trip).
- Packet Loss Detection: If packet loss occurs (3 duplicate ACKs or timeout), TCP slashes
cwndin half (Multiplicative Decrease) to relieve network congestion.
- Slow Start: Starts with a small