Long-fat paths (high bandwidth × high RTT) are where QUIC throughput complaints live. This page is the operator procedure: the math, the exact sysctls, how to verify what the socket actually got — and what measurement says about when any of it matters. qqt never touches kernel settings itself; everything here is yours to apply by hand.
The math, worked through
The bandwidth-delay product is the bytes in flight needed to fill a path:
BDP = bandwidth × RTT
For the production path behind the benchmark record — ~500 Mbit/s at ~90 ms RTT — that is 500 Mbit/s × 0.09 s ≈ 5.6 MB. A socket whose kernel buffers hold far less than the BDP can, in the classic picture, cap a sender or drop bursts at the receiver. The kernel’s stock UDP receive default is net.core.rmem_default = 212992 (~208 KiB) on Linux — roughly 27× smaller than that BDP. That mismatch is why every long-fat-path guide starts with “raise your UDP buffers.”
Measured: on this kernel, the defaults were not the ceiling
Before instructing anyone to change sysctls, the emulated-path harness tested the suspicion directly: qqt over a rate-capped 500 Mbit/s, 90 ms RTT path, with the socket-buffer sysctls at three settings — stock (208 KiB everywhere), *_max raised to 4 MiB, and *_max + *_default both raised to 4 MiB.
| Setting (both ends) | Delivered, 1 stream | Delivered, 8 streams |
|---|---|---|
| stock (208 KiB) | 471 / 474 Mbit/s | 471 / 474 Mbit/s |
*_max 4 MiB, defaults stock |
470 / 475 Mbit/s | 469 / 474 Mbit/s |
*_max + *_default 4 MiB |
470 / 472 Mbit/s | 471 / 475 Mbit/s |
No measurable difference. quinn (verified in its pinned source, quinn-udp 0.5.16) sets no SO_RCVBUF/SO_SNDBUF — and with GSO/GRO coalescing and a continuously draining reader, the small default buffers held a 5.6 MB-BDP path anyway. qqt’s ~470–500 Mbit/s plateau at 90 ms RTT is the transport’s own congestion behavior, not the socket buffer.
The ceiling is rate-dependent, though, not absent: the flag-verification baseline ran the same pair unshaped at 5.2–7.6 Gbit/s and the receivers’ RcvbufErrors moved again (5,312 on one cell, 304,428 on another) on the same stock 208 KiB defaults. The sweep below was measured under a 500 Mbit/s cap; size for the rate you actually run.
So the honest guidance: measure before tuning. If qqt underdelivers on your long-fat path, the buffer check below is cheap and worth doing first — on other kernels (older, or without GRO), other NIC paths, or other QUIC stacks, the classic mismatch can be real. On the measured kernel it was not.
The knobs, precisely (Linux)
Two sysctls per direction matter for an app that never calls setsockopt:
net.core.rmem_default/net.core.wmem_default— what a new socket actually gets when the app sets nothing. These are the ones an app like qqt rides.net.core.rmem_max/net.core.wmem_max— the ceiling an app may request viaSO_RCVBUF/SO_SNDBUF. An app that never asks is unaffected by these.
Raising only *_max changes nothing for qqt; raising *_default changes every new socket on the host (all protocols, not just qqt). On kernels with per-network-namespace sysctls you can scope the change to the namespace qqt runs in; otherwise it is host-wide — coordinate with your neighbors on the box.
By hand:
# size for your path: BDP in bytes, e.g. 500 Mbit/s × 90 ms ≈ 5.6 MB
sysctl -w net.core.rmem_default=7340032
sysctl -w net.core.wmem_default=7340032
sysctl -w net.core.rmem_max=7340032 # headroom if a tool ever asks
sysctl -w net.core.wmem_max=7340032
# persist via /etc/sysctl.d/90-qqt-bdp.conf if the measurement says so
Verify what the socket actually got
Don’t trust the sysctl alone — check the live socket while qqt runs:
ss -u -m -n | less # look for skmem and the qqt UDP socket
If throughput still underdelivers with buffers verified large, the next suspects are the path itself (measure raw UDP/IP throughput), the congestion controller’s growth at your RTT (short flows on long-fat paths rarely reach steady state), and CPU.
macOS — the names differ, and one is missing
Measured on the arm64 test host (macOS, sysctl values verbatim):
| macOS sysctl | Value on the test host | Role |
|---|---|---|
net.inet.udp.recvspace |
786896 | per-socket UDP receive space (macOS default) |
net.inet.udp.maxdgram |
9216 | max datagrams the UDP layer will queue for a socket |
kern.ipc.maxsockbuf |
8388608 | the system-wide socket-buffer ceiling everything else obeys |
Notably net.inet.udp.sendspace — commonly cited in Linux-centric tuning guides — does not exist on this macOS (sysctl: unknown oid); the send side is bounded by kern.ipc.maxsockbuf. If you tune there, raise kern.ipc.maxsockbuf first — recvspace/maxdgram cannot exceed it. macOS buffer tuning for high-BDP QUIC is not characterized here (no throughput matrix was run on that host) — treat the table as the surface to check, not a prescription.
The transport’s own long-fat knobs
The kernel sysctls above shape the socket; qqt’s two transport flags shape what rides it. The flags, their shipped defaults, the measured cells that priced them, and the when-to-change-each decision are rationale_qqt-congestion-control.md’s design record, with the raw cells in rationale_qqt-benchmarks.md §3. What the kernel side needs from this page:
--recv-window BYTES(default 4194304) — the per-stream receive window; the connection-level window rides at max(64 MiB, this value). This is the flag that changes what the socket must hold: a larger window is a larger burst license, so size the kernel buffers for the window you actually run, not for the stock one.--cc bbr|cubic(default bbr) — the controller; it changes nothing about the socket, so it has no kernel-side consequence.
When tuning the kernel side, size for the window you actually run: the buffer verdicts on this page were measured at the stock window, and the raised windows’ bursts found the ceiling the stock window never touched.
Adjacent path facts
- Max UDP payload: the transmitted payload is 1452 bytes (
MtuDiscoveryConfig::upper_bound); quinn’s 1472-bytemax_udp_payload_sizeis a different parameter. On a jumbo-frame path (9000 MTU) qqt sends small packets; there is no shipped knob to raise the payload yet (the design record’s remaining work, and the README’s future directions). - GSO/GRO: quinn uses UDP GSO on Linux when the path supports it and falls back where it does not (macOS has no UDP GSO). The emulated matrix ran with GSO; no macOS throughput delta is claimed.
- The never-auto rule: qqt will not set kernel state. sysctls are the operator’s hands, deliberately — a tunnel tool that silently rewired host-wide socket memory would be a worse neighbor than the default it ships with.