HTTP/3 and QUIC: Why the Web Moved to UDP
A practical look at HTTP/3 and QUIC: head-of-line blocking, faster handshakes, connection migration, 0-RTT risks, firewall considerations and how to check support.
Key takeaways
- QUIC makes streams independent, so one lost packet no longer stalls the whole page.
- TLS 1.3 is built into QUIC, and a new connection typically needs a single round trip.
- Deployment needs UDP 443 open and a healthy TCP fallback kept in place.
For more than two decades the web has run on TCP. TCP is reliable and battle-tested, but it was designed for a world where a connection did one simple job. HTTP/3, defined in RFC 9114 and built on QUIC (RFC 9000), shows what has to change when we want many simultaneous requests over unstable, mobile networks.
The Problem with TCP: Head-of-Line Blocking
HTTP/2 multiplexes many requests over one TCP connection. TCP, however, sees only a single ordered byte stream. If one packet is lost, everything behind it waits in a buffer until the missing packet is retransmitted, even if the data belongs to a different request. This is head-of-line blocking, and it hurts most on lossy links such as crowded Wi-Fi or cellular networks.
QUIC on Top of UDP
Rather than modify TCP, which is entrenched in operating-system kernels and middleboxes, QUIC is built on UDP and implements what it needs in user space: retransmission, congestion control and multiple streams. Each stream is independent, so loss on one stream delays only that stream. The benefit is most visible on pages with many resources and on unreliable networks, not necessarily on a clean wired connection.
TLS 1.3 Built In
Encryption in QUIC is not optional. The TLS 1.3 handshake is part of the protocol's own handshake (RFC 9001), and much of the packet metadata is encrypted as well. With HTTP/2 you first complete a TCP handshake and then a TLS handshake; QUIC merges the two, so a new connection is usually ready after one round trip (1-RTT). For servers you have talked to before, a 0-RTT mode exists too.
Connection Migration
A TCP connection is identified by the source and destination addresses and ports, so switching from Wi-Fi to mobile data kills it. QUIC uses a Connection ID, which lets a session survive a change of address. That is valuable for video calls, large downloads and anyone on the move.
The 0-RTT Caveat
0-RTT data can be sent before the handshake completes, but it lacks full replay protection: an attacker can capture and resend the same packet. Only idempotent requests, such as a GET with no side effects, should use it. Payments or state-changing operations must never be accepted over 0-RTT without a mechanism that prevents duplicates.
Deployment and Firewalls
HTTP/3 normally runs on UDP port 443. Many corporate firewalls allow only TCP 443 and block or throttle UDP; browsers then fall back to HTTP/2, so never switch off your TCP path. A server advertises HTTP/3 with the Alt-Svc header, and the client uses it on later connections. Other points to consider:
- QUIC usually costs more CPU than TCP, because encryption and packetisation happen in user space.
- Headers are encrypted, so middlebox observability is limited; rely on server logs and qlog instead.
- Configure anti-amplification limits and rate limiting to resist abuse.
How to Check Support
# does your curl build include HTTP/3?
curl -V | grep -i http3
# request over HTTP/3 and show response headers
curl --http3 -I https://example.com/
# look for the advertised alternative service
curl -sI https://example.com/ | grep -i alt-svc
# example value: alt-svc: h3=":443"; ma=86400
In a browser, open the developer tools, go to the Network tab, enable the Protocol column and look for the value h3. Note that the first visit may still use HTTP/2, with HTTP/3 taking over from the next one.
This article is sample educational content; verify against official sources before making important decisions.