QUIC Explained: The Transport Protocol Under HTTP/3
See how QUIC combines transport and encryption over UDP, why HTTP/3 uses it and what it changes for users and operators.
Key takeaways
- QUIC provides reliable, encrypted transport over UDP, and TLS 1.3 is built into its setup.
- A new connection typically needs one round trip before the request can be sent, and repeat visits may send data even sooner.
- Independent streams mean a lost packet delays only the streams whose data it carried.
- Browsers fall back to TCP-based versions of HTTP when a network blocks or mangles QUIC.
QUIC is a transport protocol that runs on top of UDP and does the work that TCP and TLS used to do separately: it sets up an encrypted connection quickly, carries many independent streams at once and can survive a change of network. HTTP/3 is the version of the web's protocol designed to run over it.
You probably use it already without noticing, since major browsers and many large sites support it. The differences show up most on lossy or changing networks, such as a phone moving between Wi-Fi and mobile data.
Why the web needed a new transport
For decades the web ran on TCP, usually with TLS layered over it. That stack works well but has three awkward traits.
First, setup takes multiple exchanges: the TCP handshake and then the TLS handshake. Second, TCP delivers one ordered stream. HTTP/2 sends many requests over a single connection, so a single lost packet stalls all of them until it's resent. This is head-of-line blocking. Third, a TCP connection is tied to a pair of addresses and ports. Change your IP address and the connection dies.
Fixing these inside TCP is hard. TCP lives in operating system kernels, which update slowly, and many network devices inspect TCP headers and drop options or behavior they don't recognize.
Why it runs over UDP
UDP adds almost nothing to IP except port numbers and a checksum, and firewalls and routers already pass it. Building on UDP lets QUIC be implemented in applications and libraries, which can be updated with the browser or server, and lets it define its own reliability, ordering and congestion control.
That doesn't make it unreliable. The reliability is simply handled by QUIC instead of UDP. TCP vs. UDP explains the underlying contrast.
The core specification is RFC 9000, published in 2021, with companion documents for the use of TLS (RFC 9001) and for loss detection and congestion control (RFC 9002). HTTP/3 itself is RFC 9114. QUIC began as a project at Google and was substantially redesigned during standardization at the IETF.
A faster start
QUIC merges the transport handshake with the TLS 1.3 handshake. The client's first flight carries the cryptographic material needed to begin. The server replies with its own, along with its certificate, and after one round trip the client can send its request, protected.
With TCP and TLS 1.3, you typically wait one round trip for TCP and another for TLS before the request goes out.
A client that has connected before may use 0-RTT, sending data in its very first flight using keys derived from the earlier session. The catch is that such early data can be captured and replayed by an attacker. Servers should accept it only for requests that are safe to repeat, such as fetching a page, and never for something like placing an order.
Because a server answering a small first packet could be tricked into flooding a forged address, QUIC requires the client's initial datagrams to be padded to a minimum size and limits how much a server sends before the address is confirmed.
Streams that don't block each other
Inside one QUIC connection, data travels on numbered streams. Each stream is ordered, but streams are independent of one another. If a packet carrying part of an image is lost, the stylesheet arriving on another stream can still be delivered while the image waits.
Blocking isn't eliminated entirely. Within a single stream, order still matters, and all streams share the same congestion control, so heavy loss slows everything. HTTP/3 also uses a header compression scheme called QPACK, designed so that compression itself reintroduces as little cross-stream waiting as possible. The progression across web protocol versions is laid out in HTTP/1.1 vs. HTTP/2 vs. HTTP/3.
Loss recovery and congestion control
Because QUIC replaces TCP, it has to solve the same problems of lost packets and crowded links. It borrows heavily from decades of TCP experience and cleans up some awkward corners.
Every QUIC packet gets a new packet number, even when it carries data that is being sent again. In TCP, a retransmitted segment reuses its sequence numbers, so an acknowledgment can be ambiguous: did it confirm the first copy or the second? QUIC's numbering removes that doubt, which makes round-trip measurements cleaner. The position of data within a stream is tracked separately.
Acknowledgments can describe many ranges of received packets at once, so a sender learns quickly which gaps to fill. Flow control works at two levels, limiting both each stream and the connection as a whole, so one large download can't consume all the receiver's buffer.
Congestion control is still required. RFC 9002 describes a baseline approach similar to established TCP behavior, and implementations may use other algorithms. Because the logic lives in the browser or server software, developers can improve it with an ordinary update instead of waiting for operating systems to change.
QUIC also defines an optional extension, in RFC 9221, for unreliable datagrams inside a secured connection. It suits data that loses value quickly, such as some media or game traffic, while keeping the same encryption and congestion control.
Connections that survive moving
QUIC identifies a connection by a connection ID carried in its packets, not only by addresses and ports. If your phone leaves home Wi-Fi and switches to mobile data, it can continue the same connection from the new address, after the server verifies the new path.
The same property helps when a home router forgets an idle mapping and assigns a new external port. Whether you benefit depends on both the client and the server supporting migration, including any load balancers in front of the server.
Encryption of nearly everything
With TCP, the header is readable and modifiable by devices along the path. QUIC encrypts the payload and also protects most of the transport details, such as packet numbers and acknowledgments.
This improves privacy and stops middle boxes from depending on, and thereby freezing, internal protocol details. It does not hide that you are communicating, or with which IP address. Information visible during setup can also reveal the site name unless additional protections are in use.
For network operators the change is a real trade-off. Tools that diagnosed performance by watching TCP sequence numbers see much less. Operators rely more on endpoint logs, and QUIC implementations commonly offer a structured logging format for that purpose.
How a browser finds out
A browser can't assume a site speaks HTTP/3. There are two common ways it learns.
- The server includes an
Alt-Svcresponse header over an earlier HTTP/1.1 or HTTP/2 connection, advertising that HTTP/3 is available on a UDP port. - The domain publishes an HTTPS record in DNS that lists supported protocols, described in SVCB and HTTPS records.
A typical advertisement looks like this:
Alt-Svc: h3=":443"; ma=86400 Here h3 means HTTP/3, the port is 443 and ma says how many seconds the hint may be remembered. If the QUIC attempt fails, the browser carries on over TCP, so users rarely see an error.
Checking and enabling it
To see which protocol a page used, open your browser's developer tools, go to the network panel and turn on the protocol column. Entries marked h3 used HTTP/3, h2 HTTP/2 and http/1.1 the older version. The first visit may show h2 and later ones h3.
If your version of curl was built with HTTP/3 support, you can test directly:
curl --http3 -I https://example.com/ Many builds lack the feature and will say so.
For site owners, enabling HTTP/3 is often a setting at a content delivery network or hosting provider. If you run your own server:
- Confirm your web server version supports HTTP/3 and TLS 1.3.
- Allow UDP port 443 through firewalls and cloud security rules, in addition to TCP 443.
- Keep HTTP/2 and HTTP/1.1 enabled for fallback.
- Advertise support with
Alt-Svcor an HTTPS DNS record. - Verify in a browser and watch server load and error logs.
The forgotten UDP firewall rule is the classic mistake: everything appears to work because browsers quietly fall back.
When it helps and when it doesn't
QUIC tends to help most where round trips are long, packet loss is noticeable or the network changes during a session. On a fast, stable wired connection to a nearby server, the gain may be too small to feel.
It also has costs. Processing QUIC in application software can use more server CPU than well-optimized TCP, especially for very large transfers, though implementations keep improving. Some corporate and public networks block or limit UDP. And none of it fixes oversized pages or slow back-end code, which usually matter more to visitors.
Common questions
Is QUIC only for web browsing?
No. It's a general transport. Other protocols have been defined to run over it, including DNS over QUIC in RFC 9250.
Do I need to change anything as a user?
Usually not. Current browsers negotiate it automatically. If a particular network behaves strangely, an administrator may check how it treats UDP on port 443.
Does QUIC replace TCP?
It replaces TCP for much web traffic where both ends support it. TCP remains fundamental for email, remote administration, databases and a great deal else, and it is still the web's fallback.