Skip to main content
InterviewHubPRO
Section Overview
Q18

Question 18 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

36%
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):
    1. Slow Start: Starts with a small cwnd (e.g. 10 MSS) and doubles exponentially every round-trip until reaching ssthresh.
    2. Congestion Avoidance: Switches to linear additive increase ($+1$ MSS per round-trip).
    3. Packet Loss Detection: If packet loss occurs (3 duplicate ACKs or timeout), TCP slashes cwnd in half (Multiplicative Decrease) to relieve network congestion.