HomeCybersecurityTCP Congestion Control: Slow Start & AIMD

TCP Congestion Control: Slow Start & AIMD

Interactive 3D simulation of TCP's congestion-control state machine: watch the congestion window grow exponentially in slow start, switch to linear AIMD growth in congestion avoidance, and collapse on packet loss — exactly as RFC 5681 defines it.

Cybersecurity3DModerate60 FPS
network-protocols ↗ Open standalone

Every TCP connection regulates how much data it puts on the wire using a congestion window (cwnd) that grows and shrinks according to a well-defined state machine (RFC 5681). This simulator renders that state machine in 3D: a client and server node are joined by a link, and one packet sphere is spawned per unit of the current congestion window every round trip. Watch cwnd double each RTT during slow start, switch to a slower linear climb once it passes the slow-start threshold (ssthresh), and collapse — via fast recovery or a full timeout, your choice — the moment a simulated packet loss occurs. Live readouts track the window size, threshold, elapsed round trips and effective throughput, with a running graph of cwnd over time.

⚙ Under the hood

Watch TCP's congestion window double during slow start, grow linearly under AIMD in congestion avoidance, and collapse on packet loss, exactly as RFC 5681 defines the algorithm.

tcpcongestion-controlnetworkingaimdprotocolspacket-loss

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)