AlgoPlus//networking / congestion-control
Read the theory

TCP Congestion Control

Slow start ramps up exponentially; AIMD probes gently and backs off hard on loss.

cwnd
ssthresh
Phase
Legend
Slow start
Congestion avoidance
Loss
AI Tutor Workspace
In a nutshell
Nothing tells TCP the link speed, so it probes with a congestion window (cwnd) — how much unacknowledged data it allows. Slow start doubles cwnd each round trip until a threshold; then congestion avoidance adds one per round trip. A loss signals congestion, so cwnd is halved. This AIMD loop makes a sawtooth that hovers near capacity.
Ready
Press play to begin the cinematic walkthrough.
Nobody tells TCP the link speed, so it guesses: ramp up fast, then crawl, and the instant a packet drops, halve and back off. The result is a sawtooth that hovers near capacity.
Key terms
Go deeper in the lesson
Read the full theory, intuition & complexity for TCP Congestion Control.