RFC 9114: HTTP/3 over QUIC
Summary
In June 2022, Mike Bishop of Akamai published the mapping of HTTP onto the transport protocol QUIC in RFC 9114. HTTP/3 puts each request on its own QUIC stream, so that a lost packet only delays that request and not all the others. HTTP/3 compresses headers with QPACK from RFC 9204, and clients learn via an Alt-Svc header that a server offers HTTP/3.
How a client finds HTTP/3
Because HTTP/3 runs over UDP, a browser cannot simply open a TCP connection and upgrade it. Instead a server announces HTTP/3 with an Alt-Svc header, for example Alt-Svc: h3=":50781" for UDP port 50781 on the same host.
The RFC expects UDP to be blocked: if the QUIC connection fails, clients should fall back to HTTP over TCP. HTTP/3 is negotiated via ALPN with the identifier h3.
What remains of HTTP/2
Many tasks that HTTP/2 handled itself are now taken over by QUIC: streams, flow control and loss recovery. HTTP/3 therefore stays leaner; frames for priorities and windows are dropped.
HPACK could not be reused because it requires strictly ordered delivery. QPACK therefore puts table updates and headers on separate streams. Server push still exists in HTTP/3.
Ideas
- Each request uses its own QUIC stream.
- Packet loss only slows the affected stream.
- Alt-Svc announces HTTP/3 on a UDP port.
- If UDP is blocked, clients fall back to TCP.
- QPACK replaces HPACK for unordered streams.
- The ALPN identifier h3 negotiates HTTP/3.
Insights
- HTTP/3 is less a new HTTP than the same HTTP on a better transport.
- The dependency on UDP makes network policy part of web performance again.
Facts
- RFC 9114 appeared in June 2022 as a Proposed Standard.
- RFC 9204 on QPACK and RFC 9110 on HTTP semantics appeared at the same time.
- The ALPN identifier for HTTP/3 is h3.
- Clients should try TCP-based HTTP versions if the QUIC connection fails.
References
- RFC 9114: HTTP/3
- RFC 9204: QPACK: Field Compression for HTTP/3 (2022)
- RFC 9000: QUIC: A UDP-Based Multiplexed and Secure Transport (2021)
Remarks
- curl --http3 can check specifically whether a server speaks HTTP/3, provided curl was built with QUIC support.
Recommendations
- Offer HTTP/3 only in addition to HTTP/2, never as the only route.
- Open UDP port 443 in firewall and load balancer together.
- Keep the Alt-Svc lifetime short while HTTP/3 is being tested.
Read the RFC at the RFC Editor
Found a mistake or have something to add? Get in touch.
Links to the original source and the Web Archive open in a new tab.