Reading notes: RFC 9000 (QUIC)

2026-10-11 · readingprotocols

Notes from going through RFC 9000 end to end, mainly to fix the mental model rather than to implement anything. Written for my future self, so it skips the parts that are obvious once you use QUIC every day.

The framing that made it click

QUIC is usually described as "TCP+TLS in user space", which is true enough to be misleading. The more useful framing: QUIC is a connection-oriented transport built on UDP, where each connection is identified by a connection ID rather than by the four-tuple.

That single change explains most of the rest. A connection survives an address change, because the identifier is in the packet, not in the socket. Which is why migration is a first-class concept instead of something you bolt on.

Streams

Streams are independent, ordered byte streams multiplexed inside one connection. The important consequence: losing a packet on one stream does not block delivery on the others. That is the head-of-line problem HTTP/2 had over a single TCP connection, and it is solved by not sharing one ordering domain.

Handshake and encryption

One round trip for a new connection, zero for a resumed one, and the handshake is encrypted from very early on. The parts that stay observable in the clear are deliberately minimal — enough for middleboxes to do their job without exposing the contents.

Worth remembering the design constraint: every field left visible is a field someone argued for, usually to keep a network operator from breaking paths out of ignorance.

What surprised me

Packet numbers are never reused, and they are not encrypted as part of the header — they are encoded so that observers cannot trivially reconstruct them. This matters for loss detection, which is built on strictly increasing numbers rather than sequence space reuse.

Also: there is no in-band signalling of "this is a retransmission". A retransmitted frame is just data in a new packet. Anything that depended on telling original from retransmitted at the transport layer simply does not exist here.

Practical takeaway

For anyone operating servers rather than writing stacks, the useful part is what breaks in the real world: UDP is filtered in more places than TCP, path MTU matters more because there is no segmentation in the kernel, and CPU cost per byte is higher without hardware offload. All three show up as "it works on my network but not on theirs", which is a much better thing to expect in advance.