Lesson 8 of 18 · 22m
QUIC and HTTP/3: TCP Rewritten in Userspace
HTTP/2 multiplexed streams onto a serializer; QUIC keeps per-stream ordering over UDP, folds TLS 1.3 into 1 RTT, and survives IP changes.
Meta reported back in 2020 that more than 75% of its internet traffic ran on QUIC and HTTP/3 — a transport protocol that didn't exist as an RFC until May 2021 (RFC 9000; HTTP/3 is RFC 9114, June 2022). QUIC isn't a faster TCP. It's a deliberate escape from TCP, rebuilt in userspace on UDP so the transport can evolve faster than kernels and middleboxes permit.
Why TCP had to be escaped
HTTP/2 multiplexed many logical streams onto one TCP connection and hit a wall TCP cannot fix: head-of-line blocking at the transport. TCP delivers one ordered byte stream. One lost packet stalls every multiplexed stream until the retransmit lands — your parallelism sits above a serializer.
The second reason is quieter: ossification. Middleboxes learned TCP's shape and drop what they don't recognize. TCP Fast Open (RFC 7413, 2014) was standardized and is still effectively undeployable at internet scale because middleboxes discard SYNs carrying data. A transport that can't change without middlebox permission can't improve. QUIC's answer: encrypt everything except the connection ID. You can't ossify what you can't read.
What's actually different
- Streams are independent. QUIC keeps per-stream ordering inside UDP datagrams; a lost packet stalls only the stream that lost data.
- The handshake is 1 RTT and carries data. TLS 1.3 is the transport handshake — no TCP-then-TLS stacking. Resumed sessions can send 0-RTT early data, which is replayable by design: an attacker can replay it, so early data must be idempotent.
- Connections survive re-addressing. A connection ID, not the four-tuple, identifies the session. Wi-Fi-to-LTE handoff is a path change, not a reconnect — the feature mobile networks wanted.
- Loss recovery, ACKs, and pacing live in userspace. The kernel sees datagrams. The QUIC library — not your distro's TCP stack — decides behavior, and upgrading it doesn't mean rebooting a kernel.
What it costs you
UDP enjoys less kernel offload than TCP — TSO/GSO/GRO for UDP exist only on recent kernels and stacks that use them, so QUIC burns more CPU per bit delivered. Datapath tuning is real: undersized UDP socket buffers (net.core.rmem_max/wmem_max) drop packets exactly as silently as the TCP-vs-UDP lesson covered.
Observability degrades on purpose. tcpdump sees opaque datagrams — no readable handshake, no visible streams, no retransmit counters you can watch. Debugging moves to endpoint logs and QUIC-aware tooling (qlog, exporter-side metrics). Firewalls that can't classify QUIC either allow all UDP/443 or block it — and a blocked client falls back to TCP+h2 via Alt-Svc, hiding the breakage the same way Happy Eyeballs hides broken IPv6.
There's a network-defense angle too: TLS-intercepting proxies only see TCP/443. When a client negotiates h3, the encrypted transport sails past the inspection point — enterprise DLP and IDS lose the channel entirely. If your egress policy assumes TLS interception, your h3 policy has to be explicit: allow UDP/443 to known endpoints, or force the TCP fallback and inspect that.
Server-side support has been real for a while: nginx shipped HTTP/3 in mainline 1.25.x, Caddy has it on by default, and every major CDN terminates QUIC at the edge. The work isn't enabling it — it's confirming UDP/443 reaches you and your buffer sizing doesn't silently eat datagrams.
Try this
curl -V # needs an h3-capable build (ngtcp2/quiche)
curl --http3-only https://cloudflare-quic.com -v
dig HTTPS your.domain +short # HTTPS/SVCB records can advertise h3
# Chrome: chrome://net-export -> NetLog viewer shows h3 sessionsField notes
Alt-Svc: h3=":443"on an HTTP/2 response is how clients discover the UDP endpoint.- QUIC doesn't remove ordering within a stream — request/response framing per stream stays sequential. A resource that matters most still needs its own stream (RFC 9218 priorities).
- QUIC stacks enforce a 3x amplification limit during the handshake (RFC 9000 §8.1) precisely because UDP services are reflection weapons — honor it in anything you build on QUIC.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
What is a Web Server? Apache, Nginx, and How the Internet Delivers Web Pages
A web server accepts HTTP requests and returns responses. Apache has been doing this since 1995. Nginx rebuilt the model in 2004 and took over the cloud. Here's how they work, how they differ, and how to pick between them.
How to Install NGINX on Debian & Ubuntu: Server Blocks, HTTPS and Reverse Proxy
When it comes to running a web server for all of my online projects, NGINX is the first that comes to mind for me. By default, it follows my guidelines of running a piece of software – meaning that the software is security-minded, performance-driven, and honestly, really easy to manage all the aspects of it. NGINX is most likely the most popular web server software in the world, and it's well known for being the backbone of some of the biggest sites on the internet to date. It is a lightweight
Minecraft 26.4 Replaced Its Decade-Old Login Crypto. Here's What key-rotation-period-seconds Actually Does.
26.4 Snapshot 9 rewrote how a Java Edition client and server agree on an encryption key. RSA-1024 is out, X25519 is in, and a new key-rotation-period-seconds setting decides how often the server's key changes. I opened the snapshot server jar, timed the login crypto, and checked what changes for...
The Same Researcher Broke apt the Same Way Twice, Seven Years Apart
In 2019 Max Justicz showed apt would install a package an attacker swapped in over a redirect. In November 2026 he did it again, CVE-2026-109518, through a different door that ends in the same place: code as root from a man in the middle. The fix shows how apt reuses files on disk.