Free to LearnTCP / BBR lab

Interactive Studio · 5 Steps

Part 1 of 5

Why did the call freeze?

Edit the experiment

Prediction history

    Three Ways In · Layer 3 of 3 · Node.js 22+ · Zero Dependencies

    Build With Your Coding Agent — 5 Rungs + Planted Traps

    Build a bottleneck simulator and BBR-style congestion controller with your coding agent across five rungs: queue-delay wire tracing, app-limited delivery-rate estimation, ProbeBW gain cycling (`1.25x` / `0.75x` / `1.0x`), smooth inter-packet pacing, and periodic `ProbeRTT` min-RTT refresh. Each rung gives you an architect prompt for Claude Code, Codex, or Cursor, a planted bug that unguided agents write, and a deterministic test suite that catches it.

    1. Bottleneck queue clock: Packet arrival, service-start, serialization, and standing-queue latency trace — Planted trap: Starting wire transmission at arrival time even when an earlier packet is still occupying the link.
    2. App-limited delivery rate: Windowed max-bandwidth filter censoring idle/application-starved samples — Planted trap: Letting a quiet pause between user keystrokes overwrite the bottleneck bandwidth estimate downward.
    3. ProbeBW drain phase: 8-phase gain cycle following every 1.25x probe with a 0.75x queue-drain round — Planted trap: Cruising at 1.0x immediately after probing 1.25x, leaving standing queue delay behind.
    4. Smooth packet pacer: Per-packet departure scheduling spacing sends evenly across the round trip — Planted trap: Dumping the entire cwnd - inflight allowance in one zero-millisecond microburst.
    5. ProbeRTT coexistence: Expiring 10-second minRTT window + brief 4-packet drain so late joiners see true propagation delay — Planted trap: Keeping an all-time minimum RTT forever so a second flow mistakes standing queue for physical distance.
    unzip agent-track.zip && cd tcp-bbr-lab/agent-track
    node --test test/*.test.mjs
    mkdir -p src/mine
    BBR_CANDIDATE=src/mine node --test test/rung-01.test.mjs

    Download 5-Rung Agent Track (agent-track.zip) Read AGENT-TRACK.md on GitHub Open agent-track/README.md on GitHub