Applications, chapter 30 of 36
QUIC: A Transport in Userspace
Any router on the path can decrypt QUIC's first packet: its key comes from eight bytes sent in the clear inside it.
The first response from www.example.net carried alt-svc: h3=":443". The browser's next connection to the server starts with UDP datagrams from port 53901 to port 443. This chapter opens the sample Initial of RFC 9001, Appendix A instead of ours: 1,200 bytes of QUIC, more than three quarters of them padding, and everything after the first 18 bytes looks encrypted.
- 7 percent
- of all Internet traffic, the estimate for Google's QUIC in January 2017
- 3,600 bytes
- what the server may send for one 1,200-byte Initial before it validates the address
- ~3.5 times
- Google's first measure of QUIC's server CPU against TLS over TCP, later about twice
The handshake as the path sees it
A QUIC handshake and the next request, drawn with the sample packets of RFC 9001, Appendix A, field by field, colored by what a box on the path can read. Unmask the Initials as any observer can, then move the laptop to another network.
Why build a new transport on top of UDP?
Chrome gained QUIC in June 2013, behind a command-line flag. By January 2017 it carried more than 30 percent of Google's egress traffic, an estimated 7 percent of all Internet traffic [Langley2017].
The SIGCOMM paper names middleboxes that block unfamiliar transports and kernels on which client populations lag years behind. UDP crosses NATs without any update to them (RFC 9308, Section 2), and a transport on top of it can ship inside the application.
How do you encrypt with a key that everybody knows?
Initial packets use AEAD_AES_128_GCM with keys that depend only on the version and on the destination connection ID of the client's first Initial (RFC 9001, Section 5.2). HKDF-Extract mixes a fixed 20-byte salt with 8394c8f03e515708.
RFC 9001, Section 5 admits that these packets "are not considered to have confidentiality or integrity protection." The keys still do two jobs (RFC 9000, Section 17.2.2). An attacker who cannot see the client's packets cannot forge a server Initial, and a middlebox that knows one version cannot read the next, because RFC 9001, Section 5.2 asks every future version to choose a new salt.
What keeps a QUIC server from becoming an amplifier?
UDP source addresses are easy to forge. Until a server has validated the client's address, it must not send more than three times the bytes it received from that address (RFC 9000, Section 8.1). One 1,200-byte Initial buys the server 3,600 bytes, the two of our ClientHello buy 7,200, and the padding makes an attacker pay one byte for every three.
The address counts as validated once the server processes a Handshake packet from the client, which only a host that received the server's Initial can produce.
How does QUIC acknowledge and recover differently from TCP?
QUIC never retransmits a packet. The information in a lost packet's frames goes out again in new frames, in a new packet with a new packet number (RFC 9000, Section 13.3). Packet numbers say when something was sent and stream offsets where data belongs. TCP uses one number for both and must guess which transmission an ACK answers.
RFC 9002 declares loss after 3 packets or 9/8 of an RTT, tighter than the 5/4 of RACK, and defends it in one line: "Experience with QUIC shows that 9/8 works well" (RFC 9002, Section 6.1.2).
What happens when the laptop's address changes?
A TCP connection is its four-tuple, a QUIC connection its connection IDs. When the home router's NAT mapping for port 53901 expires, the server sees a known connection ID from an unknown address. It sends a PATH_CHALLENGE with 8 unpredictable bytes in a datagram padded to 1,200 bytes (RFC 9000, Section 8.2.1), and the client echoes them in a PATH_RESPONSE (RFC 9000, Section 8.2.2).
Active migration is reserved for the client, and only after the handshake is confirmed (RFC 9000, Section 9). Chromium migrates connections to a new network by default only on Android [Chromium2026].
How do you ship QUIC version 2 past the middleboxes?
In October 2016 Google changed one bit in the flags byte of its QUIC header. One brand of firewall had blocked QUIC by those flags, so its users fell back to TCP. After the change it let the first packets through and dropped the rest, which defeated the fallback [Langley2017].
RFC 9369 defines version 2 to keep the version machinery from rusting. Its number, 0x6b3343cf, is the start of a SHA-256 hash, chosen at random on purpose (RFC 9369, Section 1). RFC 9369, Section 6 predicts the limit: firewalls look at the first packet, which compatible negotiation still sends as version 1.
Why does QUIC live in userspace, and will it stay there?
Userspace let Google change the protocol with each release of its applications and log on a scale the kernel does not. Recording the connection state at every packet event exposed a decade-old CUBIC bug, and the fix cut QUIC's retransmission rate by about 30 percent and TCP's by about 20 percent [Langley2017].
The Linux v7.4-rc1 tree of November 2026 has no QUIC socket type. Xin Long's out-of-tree series adds IPPROTO_QUIC, and revision 11 went to the netdev list on 24 March 2026 [Long2026].
The book keeps asking
This chapter has 5,818 words and 15 questions. These 8 are answered only in the book and the audiobook.
- What may a future QUIC never change?
- What is in the first packet?
- Why hide the packet number?
- How does TLS 1.3 run without TLS records?
- How do streams remove head-of-line blocking, and where does it remain?
- How does a server end a connection it no longer remembers?
- What can the network still see?
- Can one connection use two paths at once?
Open the sources
- RFC 9000 QUIC: A UDP-Based Multiplexed and Secure Transport
- RFC 9001 Using TLS to Secure QUIC
- RFC 9002 QUIC Loss Detection and Congestion Control
- RFC 8999 Version-Independent Properties of QUIC
- RFC 9369 QUIC Version 2
- RFC 10069 Managing Multiple Paths for a QUIC Connection
- [Langley2017] The QUIC Transport Protocol: Design and Internet-Scale Deployment. Proceedings of ACM SIGCOMM '17, Los Angeles, pp. 183-196
All 34 documents this chapter cites, each with a link to its publisher and a copy kept here.
