Intuitive TCP Congestion Control: AIMD, Slow Start & Windows

TCP congestion control prevents network router collapse by dynamically adjusting a sender's congestion window (cwnd) independently of the receiver's flow buffer (rwnd). Using exponential Slow Start probing, linear Additive Increase Multiplicative Decrease (AIMD), and distinct Tahoe versus Reno loss recovery, TCP keeps unacknowledged in-flight traffic safely bounded below bottleneck link capacity.

Why Two Separate Windows Exist: Flow Control vs. Congestion Control

Picture yourself driving a sports car onto an expressway at midnight. Your destination garage has eight open parking bays, and your car can easily cruise at 180 kilometers per hour. None of that helps if a single two-lane bridge three miles ahead is choked with holiday traffic. If every driver keeps flooring the gas just because the destination garage is empty, queue wait times spiral toward infinity and the bridge gridlocks completely.

Computer networks obey the exact same physics. Every university Computer Networks course—from Kurose & Ross midterms to GATE CS numericals—starts with two distinct bottlenecks that students routinely scramble together on exam day:

  • Flow Control (rwnd — Receiver Window): Protects a slow receiving application (for example, a smartphone writing disk blocks slowly) from having its OS socket buffer overrun by a fast server. The receiver explicitly stamps its remaining free buffer bytes into the 16-bit Window Size header field of every returning ACK.
  • Congestion Control (cwnd — Congestion Window): Protects shared intermediate routers across the internet core from queue buffer overflow. Because intermediate IP routers do not send end-to-end capacity announcements to senders, TCP infers network congestion indirectly from packet loss and round-trip latency spikes.
Three-panel technical visual of TCP Congestion Control comparing rwnd flow control vs cwnd network limits, per-ACK Slow Start and AIMD update rules, and a round-by-round TCP Tahoe vs TCP Reno sawtooth cwnd trajectory graph.
Figure 1: Dual send-window constraint (rwnd vs. cwnd), ACK/loss update rules, and the round-by-round TCP Tahoe vs. TCP Reno cwnd trajectory.

At every instant, the sender must satisfy both constraints simultaneously. TCP enforces this through the governing sliding-window inequality:

LastByteSent - LastByteAcked <= min(cwnd, rwnd)

Notice the min() operator. Even if the internet backbone is wide open (cwnd = 64 KB), a tiny receiver buffer (rwnd = 8 KB) caps in-flight data at 8 KB. Conversely, even if the destination server allocates gigabytes of socket RAM, an overloaded campus Wi-Fi router pulls cwnd down so the sender cannot flood bottleneck queues. When preparing handwritten derivations of sliding windows for semester exams, capturing physical flow diagrams clearly using Handwriting Studio helps preserve byte boundaries cleanly alongside symbolic LaTeX equations.

Inside the Two Probing Gears: Slow Start vs. Congestion Avoidance (AIMD)

When a fresh TCP connection opens, the sender has zero prior measurement of bottleneck bandwidth. Sending 100 packets blindly risks immediate tail-drop congestion; sending strictly 1 packet per round-trip time (RTT) indefinitely wastes gigabit fiber links. TCP solves this exploration dilemma with a two-gear transmission engine governed by a dynamic threshold variable called ssthresh (Slow Start Threshold).

Gear 1: Slow Start (Exponential Growth Until ssthresh)

Students often get tripped up by the name. "Slow Start" sounds sluggish, yet cwnd actually grows exponentially—doubling every single Round-Trip Time. Why did Van Jacobson name it "Slow Start" in 1988? Because earlier TCP implementations blasted an entire advertised receiver window onto the wire at \(t = 0\); starting cautiously at cwnd = 1 MSS (Maximum Segment Size, or small initial values like 2–4 MSS in modern stacks) was dramatically slower at launch, then ramped rapidly to discover available headroom.

Here is the exact per-ACK mechanism inside Slow Start (active whenever cwnd < ssthresh):

  1. Round 1: Sender transmits 1 MSS. Wait 1 RTT. Receiver sends 1 ACK. Sender executes cwnd = cwnd + 1 MSS = 2 MSS.
  2. Round 2: Sender transmits 2 MSS. Receiver returns 2 ACKs. Each ACK adds +1 MSS, leaving cwnd = 4 MSS.
  3. Round 3: Sender transmits 4 MSS, receives 4 ACKs, reaching cwnd = 8 MSS.

Every segment acknowledged adds 1 full MSS to cwnd, which makes total in-flight segments double per RTT (\(1, 2, 4, 8, 16 \dots\)) until cwnd reaches ssthresh or packet loss strikes.

Gear 2: Congestion Avoidance — Additive Increase, Multiplicative Decrease (AIMD)

Once cwnd >= ssthresh, exponential doubling becomes dangerously reckless because one extra doubling could instantly blast twice the bottleneck link's capacity into router queues. TCP immediately shifts down into Congestion Avoidance, switching from exponential probing to cautious linear probing:

  • Additive Increase: Increase cwnd by roughly 1 MSS per complete Round-Trip Time, not per packet. Specifically, whenever a non-duplicate ACK arrives, TCP computes:
    cwnd = cwnd + MSS * (MSS / cwnd)
    If cwnd = 8 MSS, each individual ACK adds 1/8 MSS, so across all 8 ACKs in that round, cwnd grows cleanly from 8 to 9 MSS.
  • Multiplicative Decrease: The moment congestion signals appear, TCP slashes capacity multiplicatively (typically in half), creating the classic asymmetrical TCP sawtooth curve.

Exam Precision Rule (Tahoe vs. Reno Halving): Always compute ssthresh = floor(cwnd / 2) at the exact moment congestion is detected (minimum 2 MSS in RFC implementations). A classic midterm trap asks what happens when cwnd = 13 MSS suffers 3 duplicate ACKs: ssthresh drops to 6 (or 6.5 depending on course rounding convention—check whether your syllabus specifies integer MSS truncation).

TCP Phase / Loss Event Entry Condition Window Update (cwnd) Threshold (ssthresh) Key Exam & Lab Nuance
Slow Start cwnd < ssthresh (or connection open) cwnd += 1 MSS per ACK (~2x per RTT) Unchanged Clamped to ssthresh the moment it touches threshold mid-round
Congestion Avoidance (AIMD) cwnd >= ssthresh cwnd += MSS*(MSS/cwnd) per ACK (+1/RTT) Unchanged Linear upward ramp continues until receiver limit or packet loss
3 Duplicate ACKs (TCP Tahoe) 3 duplicate ACKs arrive for out-of-order packets Resets hard to cwnd = 1 MSS (enters Slow Start) ssthresh = cwnd / 2 Does NOT distinguish mild packet loss from total network blackout
3 Duplicate ACKs (TCP Reno) Fast Retransmit triggered by 3 dup ACKs Fast Recovery: sets cwnd = ssthresh (halves cleanly) ssthresh = cwnd / 2 Skips dropping to 1 MSS because dup ACKs prove packets are still flowing
RTO Timeout (Tahoe & Reno) Retransmission timer expires with zero ACKs Both reset hard to cwnd = 1 MSS (Slow Start) ssthresh = cwnd / 2 Total silence implies severe queue collapse; full Slow Start restart required

Why 3 Duplicate ACKs Differ Fundamentally From an RTO Timeout

To solve Computer Networks problem sets by intuition instead of rote memorization, focus on what the physical network just told the sender in each failure mode:

Suppose a sender fires 12 segments (packets #1 through #12). Router buffers clip just segment #5, while segments #6, #7, and #8 sail smoothly through to the receiver. Because TCP ACKs are cumulative, the receiver replies with ACK 5 upon receiving #6, ACK 5 again for #7, and ACK 5 a third time for #8 (giving the initial ACK plus 3 duplicate ACKs). That burst of duplicate ACKs carries priceless diagnostic proof: the network pipe is NOT dead—subsequent segments are actively reaching the receiver right now!

That physical insight explains why TCP Reno outperforms TCP Tahoe under moderate packet loss:

  • TCP Tahoe (1988): Treats 3 duplicate ACKs identically to a catastrophic timeout—it sets ssthresh = cwnd / 2, drops cwnd all the way back to 1 MSS, and crawls upward through Slow Start again, losing multiple RTTs of throughput.
  • TCP Reno (1990 — Fast Retransmit & Fast Recovery): Immediately retransmits lost segment #5 without waiting for the timeout clock, sets ssthresh = cwnd / 2, cuts cwnd directly to ssthresh (rather than 1 MSS), inflates briefly by +1 MSS for each extra duplicate ACK while draining the pipe, and resumes smooth linear AIMD once the missing packet is acknowledged.
  • RTO Timeout (Severe Collapse): If the retransmission timer expires silently with no duplicate ACKs arriving back at all, the path may be severely congested or disconnected. Both Tahoe and Reno slam the brakes completely: ssthresh = cwnd / 2 and cwnd = 1 MSS.

Worked Exam Trace: Walking Through Rounds 1 to 16 Cold

Let us trace the exact numerical trajectory plotted in Figure 1 so you can verify every rule step-by-step on scratch paper. Assume initial parameters cwnd = 1 MSS and ssthresh = 8 MSS:

  1. Rounds 1 to 4 (Slow Start): Starting at 1 MSS, every ACK increments cwnd by 1. At the start of each round: Round 1 = 1, Round 2 = 2, Round 3 = 4, Round 4 = 8. Now cwnd == ssthresh (8), triggering the transition to Congestion Avoidance.
  2. Rounds 5 to 8 (Congestion Avoidance AIMD): Growth switches to +1 MSS per full round: Round 5 = 9, Round 6 = 10, Round 7 = 11, Round 8 = 12 MSS.
  3. Loss Event at Round 8 (3 Duplicate ACKs at cwnd = 12): Both algorithms compute ssthresh = 12 / 2 = 6 MSS.
    • Under TCP Reno, Round 9 drops only to cwnd = 6 MSS (Fast Recovery), skipping Slow Start and climbing linearly: Round 10 = 7, Round 11 = 8, ..., Round 15 = 12 MSS.
    • Under TCP Tahoe, Round 9 collapses to cwnd = 1 MSS, climbs exponentially through Slow Start (Round 10 = 2, Round 11 = 4, Round 12 = 6), and only reaches 9 MSS by Round 15—trailing far behind Reno in cumulative bytes delivered.
  4. Loss Event at Round 15 (RTO Timeout at Reno cwnd = 12): Even TCP Reno resets sharply to cwnd = 1 MSS in Round 16 with ssthresh = 6, rebuilding via Slow Start (Round 17 = 2, Round 18 = 4, Round 19 = 6) before re-entering AIMD at Round 20 (7 MSS).

Notice how clean that visual logic becomes once you separate phase transition thresholds from loss detection signals. If you want a structured schedule to review core Systems chapters before lab tests or midterms, tracking your Computer Networks units alongside our Study Kanban Board or browsing shared course summaries in Peer College Notes keeps backlog topics organized well before exam week.

Why AIMD Guarantees Fairness Across Competing Flows

Why doesn't TCP use Additive Increase, Additive Decrease (AIAD) or Multiplicative Increase, Multiplicative Decrease (MIMD)? In 1989, Dah-Ming Chiu and Raj Jain proved mathematically that when two independent TCP connections share a single congested bottleneck link of capacity \(R\):

  • During Additive Increase (both flows add +1 MSS/RTT), total throughput moves along a 45-degree diagonal toward the efficiency line \(x_1 + x_2 = R\).
  • Upon congestion, Multiplicative Decrease (both flows cut throughput by half) moves the allocation state vector straight toward the origin \((0,0)\)—which preserves their ratio while pulling the overloaded system back below capacity.
  • Repeating these two operations (45-degree step up, radial drop down) causes both flows to zig-zag relentlessly closer to the equal-bandwidth fairness line (\(x_1 = x_2 = R/2\)). Neither AIAD nor MIMD converges onto equal share naturally!

Modern data-center and cloud stacks extend this foundation with delay-based and pacing algorithms (such as TCP CUBIC in Linux kernels and Google BBR), yet university Computer Networks exams, technical systems interviews, and packet-trace debugging labs still test Reno, Tahoe, and AIMD fundamentals relentlessly because every congestion-control trade-off traces back to this exact loop. When practicing past-year questions on this topic, testing yourself with AIgom AI Tutor using your uploaded lecture slides lets you verify your round-by-round table against your professor's exact rounding rules (see our Editorial & Verification Policy for how we validate technical guides). You can also pair this derivation method with our guides on OS Deadlocks & Concurrency and analyzing Previous Year Questions.

Frequently Asked Questions

Why is TCP Slow Start called "slow" when its window grows exponentially?

Slow Start begins conservatively with a tiny initial window (such as 1 to 4 MSS) instead of blasting the receiver's entire advertised buffer onto the network at connection setup. Even though doubling every RTT looks fast on a graph, starting from near zero protects bottleneck router queues during the very first milliseconds of a flow.

What is the exact difference between TCP Tahoe and TCP Reno on 3 duplicate ACKs?

When 3 duplicate ACKs arrive, both TCP Tahoe and TCP Reno cut ssthresh to cwnd / 2. However, Tahoe resets cwnd all the way back to 1 MSS and restarts Slow Start, whereas Reno uses Fast Recovery to drop cwnd only to the new ssthresh and immediately continue linear Congestion Avoidance.

How do you calculate the effective send window when both rwnd and cwnd are given?

TCP limits unacknowledged in-flight data to min(cwnd, rwnd). If cwnd = 24 KB and the receiver advertises rwnd = 16 KB, the sender can transmit at most 16 KB of unacknowledged bytes until ACKs advance the window—always watch unit consistency between KB and MSS segments on exams.

Does ssthresh increase automatically once Slow Start finishes?

No. Once cwnd crosses ssthresh and enters Congestion Avoidance, ssthresh stays constant until the next packet loss event (either 3 duplicate ACKs or a Retransmission Timeout), at which point ssthresh is updated downward to half of the congestion window at failure.

When does TCP reset cwnd back to 1 MSS even in TCP Reno?

A Retransmission Timeout (RTO) forces both TCP Tahoe and TCP Reno to set ssthresh = cwnd / 2 and drop cwnd = 1 MSS. Because no ACKs—not even duplicate ACKs—returned before the timer expired, TCP assumes severe path congestion and probes conservatively from scratch.

Putting TCP Intuition Into Exam Practice

Once you separate receiver buffer protection (rwnd), exponential discovery (Slow Start), linear bottleneck probing (AIMD), and loss signaling (3 duplicate ACKs vs. RTO Timeout), every sawtooth numerical in Computer Networks turns into a predictable state machine rather than a guessing game. Open Etudey with your Computer Networks slides or handwritten class notes, sketch two custom sawtooth trajectories cold on blank paper, and use active verification to lock in your edge cases before finals.

AH

Written & Reviewed by Aliasgar Husain • Etudey Editorial Desk

Aliasgar Husain is the Founder & Lead Systems Architect at Etudey. Every guide follows our 5-Stage Academic Verification Methodology—combining primary cognitive psychology literature, worked STEM derivations, and visual engineering intuition.

Supercharge Your Semester Study Workflow

Upload your syllabus notes, ask targeted questions to AIgom, or convert handwritten engineering derivations to clean markdown text with zero subscription barriers.