▸Protocol notes for this page (click to expand)

QUIC

What it is for

TCP's reliability mechanisms are implemented in the operating system kernel, so changing them means waiting for every operating system to upgrade; a change often takes about a decade to spread.

QUIC implements sequencing, retransmission and congestion control in user space and combines the TLS handshake with the connection handshake; upgrading QUIC only requires updating the application, such as the browser.

QUIC uses UDP because only TCP and UDP pass firewalls and NAT; a new protocol number would be dropped on the way.

Five differences from TCP

· Handshake: QUIC takes one RTT, TCP plus TLS takes two or three;
· Packet loss: in QUIC a loss blocks only its own stream; TCP has a single byte stream, so all data waits;
· Connection identity: QUIC uses a connection ID, TCP uses the four-tuple, so a new network means a new connection;
· Encryption: QUIC mandates it and encrypts its own header too; TCP's TLS is a separate layer added on top;
· Where it runs: QUIC is a user-space library, TCP is in the kernel, where a change takes about a decade to spread.

Common misconceptions

QUIC is a reliable transport: it runs on UDP, but all the reliability mechanisms are there, inside the UDP payload, implemented by the QUIC library at each end.

HTTP/3 differs from HTTP/2 in more than the transport: multiplexing moved down from the HTTP layer into the transport, which is why HTTP/3 solves head-of-line blocking.

QUIC mandates encryption, and most of its header is encrypted as well.