← all topics

6 · CUBIC, delay-based control, ECN, fairness, QUIC

Slides 3-84 → 3-99 · HW4 P41 (fairness diagram) · Book 3.7–3.8

TCP CUBIC (3-84, 3-85)

The bottleneck link (3-86, 3-87)

Delay-based congestion control (3-88 → 3-90)

Explicit congestion notification, ECN (3-91)

Fairness (3-92 → 3-94)

Apps that aren't fair (3-94)

How to solve: share with parallel connections

Q (slide 3-94): A bottleneck link of rate R already carries 9 TCP connections. A new app starts using the link, and every connection gets an equal share.

  1. (a) What rate does the new app get if it opens 1 TCP connection?
  2. (b) What rate does it get if it opens 11 parallel TCP connections?
  1. Count all connections on the link: existing n plus the new app's m.
  2. Each connection gets R / (n + m).
  3. The new app gets m · R / (n + m).
Slide 3-94: link R, 9 existing connections
  new app opens 1:   1 · R/(9+1)  = R/10
  new app opens 11: 11 · R/(9+11) = 11R/20 ≈ R/2

Evolving transport (3-95)

ScenarioChallenge
Long, fat pipesMany packets in flight; a loss shuts down the pipeline
WirelessLoss from noise or mobility, which TCP wrongly treats as congestion
Long-delay linksExtremely long RTTs
Data centersLatency sensitive
Background flowsLow-priority TCP flows

QUIC: Quick UDP Internet Connections (3-96 → 3-99)

Traps
• QUIC is application layer, not a new transport protocol. It runs over UDP.
• QUIC streams: separate reliability, shared congestion control (3-97). Don't say congestion control is per stream.
• ECN: the router marks the IP header; the receiver sets ECE in the TCP ACK; the sender reacts and sets CWR. Routers don't talk to the sender directly.
• CUBIC ramps fast far from Wmax and slow near it. Not the other way around.
• Delay-based compares measured throughput to cwnd/RTTmin. It decreases before any loss.
• Pushing past the bottleneck adds delay, not throughput.
• TCP fairness needs equal RTTs. UDP and parallel connections break it.

Quick check

1. What is Wmax in CUBIC, how does CUBIC grow toward it, and where is it the default? The window at which the last loss happened. CUBIC grows fast when far from Wmax, slowly near it (cube of the time distance to K). Default TCP in Linux.
2. Why does CUBIC get more throughput than Reno? After a loss it returns to near Wmax quickly and stays there, instead of climbing back at +1 MSS per RTT.
3. The bottleneck link is already congested. You double your sending rate. What happens to throughput and RTT? Throughput stays about the same (it's capped by the bottleneck). RTT goes up, because the extra packets sit in the queue.
4. Delay-based: cwnd = 30,000 bytes, RTTmin = 100 ms, measured RTT = 150 ms (all 30,000 bytes sent in the last RTT). Increase or decrease cwnd?
uncongested = 30,000 × 8 / 0.100 = 2.4 Mbps
measured    = 30,000 × 8 / 0.150 = 1.6 Mbps
Measured is far below uncongested (only 2/3) → path congested → decrease cwnd linearly. (This is the idea behind Google's BBR.)
5. Same as #4, but measured RTT = 102 ms. Increase or decrease? Measured = 240,000 / 0.102 ≈ 2.35 Mbps, very close to 2.4 Mbps → not congested → increase cwnd linearly.
6. ECN: who sets which bit? A router marks the 2 ECN bits in the IP header (10 → 11). The receiver sets ECE in the TCP ACK. The sender halves cwnd and sets CWR.
7. A link of rate R has 4 existing connections. A new app opens 6 parallel TCP connections. What share does it get? 6 · R/(4 + 6) = 0.6R. (With 1 connection it would get R/5 = 0.2R.)
8. In the fairness diagram, what do AI and MD do to the operating point? AI moves it at slope 1 (both +1). MD moves it toward the origin, halving the gap. Together they converge to the equal-share line at R/2 each.
9. Name three things that make TCP fairness fail in practice. Different RTTs, apps using UDP (no congestion control), apps opening parallel TCP connections.
10. What layer is QUIC, and what runs on top of it? Application layer, over UDP. HTTP/3 runs on top of it.
11. How many handshakes does QUIC need vs TCP + TLS? QUIC: 1 (reliability, congestion, auth, crypto together). TCP + TLS: 2 serial.
12. What is HOL blocking, and how does QUIC avoid it? Over one TCP connection, a lost segment stalls every request queued behind it. QUIC gives each stream its own reliable delivery, so a loss only stalls that stream.

← prev · all topics · next →