Networkinghttp/3http3

QUIC

Definition

QUIC is a reliable, encrypted, multiplexed transport protocol running over UDP. It combines the transport and TLS 1.3 handshakes and delivers each stream independently.

In practice

With TCP plus TLS, a new connection needs separate handshakes before the first request; QUIC needs one round trip, or zero when resuming. Because loss recovery is per stream, a dropped packet delays only its own stream rather than every request on the connection. Connections are identified by connection IDs, so a phone moving from Wi-Fi to mobile data can keep its connection.

QUIC runs in user space and encrypts almost all headers, which makes it faster to evolve but costs more CPU than kernel TCP and gives middleboxes less to inspect. Some networks block UDP, so browsers discover HTTP/3 through Alt-Svc or DNS records and fall back to HTTP/2. Zero round-trip data can be replayed, so it should only carry idempotent requests.

Example

On a link with 2% packet loss, a page loading 30 resources over HTTP/2 stalls every stream on each loss; over HTTP/3 only the stream whose packet was lost waits.