December 5, 2026

HTTP/3 and QUIC Explained: Why the Web Moved Off TCP, With a Packet-Loss Model

Ten parallel light trails at night with a gap in one lane

When one packet goes missing on an HTTP/2 connection, every request sharing that connection waits for it. The IETF’s HTTP/3 specification describes the problem in plain terms: on HTTP/2 over TCP, “a lost or reordered packet causes all active transactions to experience a stall.” HTTP/3 exists mainly to stop that from happening. It runs HTTP over QUIC, a transport built on UDP that tracks each stream separately, so a lost packet holds up only the stream it belongs to. A simple model run for this post puts numbers on the difference: at 2 percent packet loss, about 42 percent of packets in a TCP-style connection sat waiting behind someone else’s gap, against under 4 percent with QUIC-style streams.

Video: NGINX on YouTube

The problem HTTP/2 could not fix

Multiplexing on top of a single queue

HTTP/2 let many requests share one TCP connection as interleaved streams, which fixed the one-request-at-a-time queue of HTTP/1.1. It could not fix TCP itself. TCP promises to deliver bytes in exactly the order they were sent, and it knows nothing about the HTTP streams riding inside it.

RFC 9114, the HTTP/3 standard published in June 2022, explains the consequence in its introduction: TCP’s loss recovery cannot see HTTP/2’s parallel streams, so a single lost packet stalls them all until the retransmission arrives. The HTTP/2 specification itself, RFC 9113, says as much in a single sentence: “TCP head-of-line blocking is not addressed by this protocol.”

Why it matters more on phones

On a wired office network, packet loss is rare and the stall is brief. On a crowded cell tower or a weak Wi-Fi signal, loss is routine. Every lost packet on a multiplexed TCP connection pauses images, scripts and API calls that had nothing to do with the missing data.

Sunlight streams through bus window onto seats

What QUIC changes

Streams the transport can see

QUIC, standardised as RFC 9000 in May 2021, moves stream handling down into the transport. RFC 9114 summarises the advantage: QUIC works by “providing reliability at the stream level,” while congestion control still applies to the connection as a whole. If a packet carrying part of stream 7 is lost, stream 7 waits for the retransmission and streams 1 through 6 keep delivering.

QUIC packets travel inside UDP datagrams. UDP itself offers no ordering or reliability, so QUIC implements those, along with congestion control and encryption, in its own layer.

Faster connection setup

The RFC 9000 abstract lists “low-latency connection establishment” among QUIC’s features. The TLS 1.3 handshake is built into QUIC rather than layered on top of a finished TCP handshake, so the two setup steps that TCP plus TLS run one after the other are combined. RFC 9000 also describes “an option for clients to send data immediately (0-RTT)” for clients that have talked to the server before.

Connections that survive a network change

A TCP connection is identified by the two IP addresses and ports at its ends. When a phone moves from Wi-Fi to cellular, its address changes and every TCP connection breaks. QUIC identifies connections by connection IDs instead. RFC 9000 says “Connection migration uses connection identifiers to allow connections to transfer to a new network path,” so a download can continue across the switch.

A model of head-of-line blocking

The setup

To show the size of the effect, a short Python model sent 10 streams of 20 packets each, interleaved round-robin, one packet per time step. Each packet was lost independently with a fixed probability. A lost packet arrived 30 time steps late, standing in for a retransmission after a timeout. The model then delivered packets two ways: TCP-style, where nothing can be handed to the application until every earlier packet on the whole connection has arrived, and QUIC-style, where order is enforced only within each stream. Each loss rate ran 20,000 times.

This is a toy. It ignores congestion control, which slows both protocols after a loss, and real retransmission timing. What it isolates is the ordering rule, which is the part HTTP/3 changed.

The results

Packet loss Packets held behind a gap, TCP-style Average wait (steps) Packets held, QUIC-style Average wait (steps)
0.5% 12.7% 1.99 0.9% 0.14
1% 23.6% 3.80 1.9% 0.28
2% 41.6% 6.97 3.7% 0.56
5% 73.3% 13.79 9.1% 1.39

“Held behind a gap” counts packets that arrived on time but could not be delivered because an earlier packet was still missing. Under TCP rules, a single loss at 0.5 percent was enough to stall one packet in eight. Under QUIC rules, roughly one in a hundred, which is close to the loss rate itself, because a packet now waits only for gaps in its own stream.

Reading the ratio

Across every loss rate the QUIC-style ordering cut the stalled share by roughly a factor of ten, which matches the ten streams in the model. With ten streams, a lost packet blocks one stream instead of all ten. A second run checked what happens with more, smaller streams, closer to a page loading fifty small files at once: 50 streams of 4 packets each, at the same 2 percent loss. The TCP-style share of stalled packets stayed at 41.6 percent, because the connection-wide rule does not care how the data is divided. The QUIC-style share dropped to zero. With fifty streams taking turns, each stream’s next packet arrived more than 30 steps after the previous one, so every retransmission landed before anything in the same stream needed it. That is a quirk of the toy’s fixed timing, not a promise of real-world performance, but it shows the direction: the more independent streams share a connection, the more TCP ordering costs and the less QUIC ordering does.

A close up of a server in a server room

How a browser finds HTTP/3

Alt-Svc

A browser cannot know in advance that a server speaks HTTP/3, since the first connection is usually ordinary HTTPS over TCP. The server advertises HTTP/3 with an Alt-Svc response header. RFC 9114 explains that the token “h3” identifies HTTP/3 and gives the example Alt-Svc: h3=":50781", which offers HTTP/3 on UDP port 50781. The specification adds that “Servers MAY serve HTTP/3 on any UDP port.”

The header is an offer, not a redirect. A browser that cannot reach the advertised UDP port still has the TCP connection it started with, which is why turning on HTTP/3 is a low-risk change for a site: clients that fail to use it carry on over HTTP/2.

Header compression changed too

HTTP/2’s header compression, HPACK, assumes headers arrive in order. RFC 9114 notes that “HTTP/3 replaces HPACK with QPACK,” a variant designed so that header blocks on different streams do not force each other to wait, which would otherwise reintroduce the blocking QUIC removed.

Turning it on in a home lab

nginx

The nginx HTTP/3 module documentation says the module has been available since version 1.25.0, describes it as providing “experimental support for HTTP/3,” and notes that it “is not built by default” and needs the --with-http_v3_module build option. Its example server block listens twice on the same port, once for QUIC and once for TLS over TCP, and advertises HTTP/3 with a header:

listen 8443 quic reuseport;
listen 8443 ssl;
add_header Alt-Svc 'h3=":8443"; ma=86400';

The page recommends using the same port for HTTP/3 and HTTPS “for better compatibility.” Whatever port the site uses for HTTPS, the firewall has to allow UDP on it as well as TCP, or browsers will never complete the QUIC handshake.

Checking the result

The browser’s developer tools show the protocol per request; the Protocol column in the network panel reads h3 for HTTP/3 and h2 for HTTP/2. The first page load usually shows h2, because the browser only learns about HTTP/3 from the Alt-Svc header on that first response. A reload shows whether the upgrade happened. Command-line testing needs a curl build with HTTP/3 support; the curl 8.5.0 used for this post was built without it, which is common in distribution packages.

A row of colorful mail boxes sitting next to a bush

How much of the web uses it

Adoption numbers

Cloudflare’s 2025 Radar Year in Review reported that the shares of global web requests using HTTP/3 and HTTP/2 “both increased slightly in 2025.” A PPC Land summary of the same report gives the split as 21 percent HTTP/3, 50 percent HTTP/2 and 29 percent HTTP/1.x. Those figures cover traffic through Cloudflare’s network, not the whole internet, but they show HTTP/3 carrying about one request in five.

Where it does not help

HTTP/3 is not a free speedup everywhere. On a clean, low-loss wired link the head-of-line problem barely shows up, and the model above agrees: at zero loss both ordering rules deliver every packet the moment it arrives. The nginx documentation’s own label for its module, experimental, is a reminder that server support is younger than the decades-old TCP stack it replaces.

The gains concentrate where networks are worst. A phone on a train, switching towers and dropping a packet every few seconds, is exactly the user the protocol was designed for, and exactly the user a fast office connection never sees in testing.

Sources

  • IETF, RFC 9114, “HTTP/3” (June 2022): https://www.rfc-editor.org/rfc/rfc9114.html
  • IETF, RFC 9000, “QUIC: A UDP-Based Multiplexed and Secure Transport” (May 2021): https://www.rfc-editor.org/rfc/rfc9000.html
  • IETF, RFC 9113, “HTTP/2” (June 2022): https://www.rfc-editor.org/rfc/rfc9113.html
  • nginx documentation, “Module ngx_http_v3_module”: https://nginx.org/en/docs/http/ngx_http_v3_module.html
  • Cloudflare, “The 2025 Cloudflare Radar Year in Review” (December 15, 2025): https://blog.cloudflare.com/radar-2025-year-in-review/
  • PPC Land, “AI crawlers now consume 4.2% of web traffic as internet grows 19% in 2025”: https://ppc.land/ai-crawlers-now-consume-4-2-of-web-traffic-as-internet-grows-19-in-2025/

920 Posts

Peter Kalafatis writes and edits X9M8. He holds a bachelor's degree from LIU Post and a master's in Media Studies from The New School, with academic work in the philosophy of science, human behavior, AI, and memetics.

View All Posts

Leave a Reply

Your email address will not be published. Required fields are marked *