|hadron|: QQT-007 the shipped pair is the matrix’s adjudication — 4 MiB per stream and bbr are defaults, not inheritance: at the stock 1.25 MB window a single stream stops at ~111 Mbit/s on a 90 ms path, and under 1% loss a single shared cubic domain collapses an 8-stream aggregate to single digits where bbr holds hundreds. Change either default without re-running the matrix and the change is unpriced.
qqt’s long-fat-path behavior is a designed set, not a default the transport inherited: every knob below exists because a measured matrix priced it. The measured record (production path, emulated loss matrix, and the ten-cell controller/window matrix) lives in rationale_qqt-benchmarks.md; this page is the engineering record: what ships, why, and what the design is waiting on.
What ships
| surface | shipped value | flag |
|---|---|---|
| per-stream receive window | 4 MiB | --recv-window BYTES (server, client; up passes it to the remote start line) |
| connection-level receive window | max(64 MiB, --recv-window) |
— |
| congestion controller | bbr | --cc bbr\|cubic (server, client; up passes it to the remote start line) |
Both flow-control values apply to both roles: the receiver of a direction advertises the window that direction runs at, so the download direction rides the client’s setting and the upload the server’s. The connection-level window keeps quinn’s invariant (receive_window >= stream_receive_window) while bounding what the connection as a whole may buffer.
The flow-control pair
A single QUIC stream cannot exceed window/RTT. On a 90 ms path quinn’s stock 1.25 MB stream window holds ~111 Mbit/s per stream (measured 99–104), and the bandwidth-delay product of the production path class (500 Mbit/s × 90 ms ≈ 5.6 MB) sits past it. 4 MiB — the default qqt ships — is the measured sweet spot: it lifts a single stream to ~324 Mbit/s (324.0 and 326.2 measured, 326.1/325.9 on verification), while 8 MiB breaks cubic’s clean-path aggregate — the receiving kernel drops the bursts (measured 57.7 Mbit/s at 8 MiB where 4 MiB delivers 453; the sender’s lost-packet count and the receiver’s RcvbufErrors deltas pin the cause). A window is a burst license as much as a throughput license.
The connection-level cap is not decoration: quinn’s default connection window is unbounded (VarInt::MAX), and qqt’s own raised stream ceiling (MAX_STREAMS, 1024 — quinn’s default is 100) makes the worst case 1024 × the stream window. The cap bounds receiver memory at 64 MiB; an explicit --recv-window past it rides the cap upward, never below it.
The controller choice
bbr is the default. cubic is the selectable alternative, and the difference is a measured cliff, not a taste: on the 90 ms path at 1% loss, cubic’s multiplicative decrease collapses an 8-stream aggregate to 2.5–8.6 Mbit/s while bbr holds 336–367. bbr is a model-based controller — it sends at its estimate of the path’s max bandwidth × min RTT and does not treat loss as congestion, where a loss-based controller must halve and re-climb after every loss event; on a long fat path that ramp never completes under sustained loss.
The default carries two costs, neither negotiable away by tuning:
- Fairness. bbrv1 takes roughly twice its fair share against cubic co-flows on a shared bottleneck — the same reading that keeps ESnet from recommending bbrv1 on mixed networks. On a household uplink shared with other traffic this is a real cost, and the doc’s guidance says so plainly.
- cwnd growth is unbounded in quinn’s current bbr. bbr’s design assumes the pacer derives its rate from the bandwidth estimate; quinn’s bbr paces at a cwnd-derived rate instead, so nothing in the controller ties cwnd to the path. The shipped connection-level window bounds it in practice: the 0.6.0 verification reads cwnd at 31–46 MB under the 64 MiB cap on the same clean cells where the unbounded-connection-window experiment read 683–687 MB (rationale_qqt-benchmarks.md §3). The bound is flow control’s credit, not a rate model — the pacer port remains the principled fix.
The start window and the idle gap
quinn 0.11.19’s bbr has no idle hook: cwnd survives an idle gap untouched, and only a new connection (or an explicit path change) constructs a controller at the 240 000-byte start window — 200 packets, 20× the 12 000 bytes its own doc comment recommends and cubic/new_reno ship. Measured on an emulated 40 ms path: a 1.2 MB upload after 1.2 s idle costs 43.3 ms warm against 84.4 ms on a fresh connection, so the start window is a redial cost of about one round trip. A gap longer than bbr’s 10 s min-RTT window costs more: the first request after 12 s idle is 117.8 ms, with --stats showing the window capped at 745.9 KiB (0.75×BDP) for one round trip by ProbeRtt — not the start window, and not prevented by a 5 s keepalive (100.7 ms). Raising the start window buys ~40 ms on a redial at the price of a burst licence; the ProbeRtt cap needs a controller wrapper or an upstream quinn change. The 240 KB default stays.
The measured record
The ten-cell matrix — controller × window × loss on the netem-shaped 90 ms / 500 Mbit/s path, tunnel restarted per cell, both ends’ stats scraped — is rationale_qqt-benchmarks.md §3; the load-bearing cells are quoted where the argument needs them above. The same harness run against the shipped flags (rather than the experiment knobs the matrix was measured with) is the verification record, in the same section: every band reproduces, the shipped pair bounds bbr’s cwnd growth, and the unshaped baseline puts the pair at 5.2–7.6 Gbit/s.
Operator guidance
- Healthy path, shared uplink: run the default. Nothing in this set is for token-stream traffic: a 300-token response is a couple of KB against 4 MiB of credit, and the measured idle latency is untouched at every setting the matrix covered (91 ms p50/p90 at all ten cells). Everything here is for bulk and for loss.
- Lossy path, fast or dedicated link: run the default. The measured gap under loss is a factor of 40–100 on the aggregate.
- Shared uplink with household cubic co-flows:
--cc cubic, eyes open. bbr’s fairness cost is real there; cubic is steady and well-mannered. - Slow uplink (≤100 Mbit/s): consider a smaller
--recv-window. 4 MiB is up to 7× the BDP there, and a concurrent bulk transfer can park that much data in the queue ahead of token traffic. The structural fix is the auto-tune below; until it lands, the mitigation is a smaller window or a second connection for bulk. - Host qdisc. On the datacenter side,
tc fq maxrate <path rate>caps the UDP flow’s bursts — the one host-tuning item from ESnet’s long-fat guidance that transfers to a userspace QUIC tunnel (plainfqdoes not pace UDP; see instructions_qqt-tuning.md). - Socket buffers are window-dependent, not settled. The tuning page’s “buffers were not the ceiling” verdict was measured at quinn’s stock 1.25 MB window, below qqt’s shipped 4 MiB; the 8 MiB cell’s receive-socket drops are the ceiling returning with the window. Measure at your window, not at someone else’s.
What the design is waiting on
- The rate pacer (~150–250 LoC, upstream-first): one defaulted
Controller::pacing_rate()trait method (cubic returnsNone, byte-identical behavior), a rate-parameterized refill in quinn’s pacer, one transmit-loop call site; quic-go’s token bucket is the port source. Bounded cwnd by construction is the fix the default’s cost waits on. - Receive-window auto-tune (quic-go’s rule: grow the window per epoch when consumption outpaces 4×fraction×RTT, floored and capped, gated by a connection budget): the end state that retires the static knob — it never grows on token-stream cadence (growth needs a sustained drain three orders above token rates) and self-limits on slow uplinks.
- An MTU/payload knob. The transmitted payload is 1452 bytes (
MtuDiscoveryConfig::upper_bound); quinn’s 1472-bytemax_udp_payload_sizeis a different parameter. ESnet’s jumbo-frame finding (4–5× for UDP at 9K MTU) is unreachable without upstream work, and is the largest remaining long-fat-path item the transport cannot touch today.