HTTP/3 and QUIC
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
dig +short HTTPS www.example.comVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Read-only Verification Verify boundary
# 1. Is HTTP/3 advertised?
curl -sSI https://www.example.com/ | grep -i '^alt-svc'
# -> alt-svc: h3=":443"; ma=86400
# 2. HTTPS DNS record (SVCB) with alpn
dig +short HTTPS www.example.com
# 3. Force HTTP/3 (requires curl built with HTTP/3 support; curl -V lists HTTP3)
curl --http3-only -sS -o /dev/null -w "%{http_version}\n" https://www.example.com/
# -> 3
# 4. On the server: who listens on UDP 443?
ss -ulnp 'sport = :443'
If step 1 succeeds but step 3 times out, UDP 443 is blocked somewhere between client and server, or the server advertises h3 without a working QUIC listener. Browsers hide this by falling back; the developer tools' Protocol column shows h3 or h2 per request.
Step 2 Common mistakes Narrow the fault
- Sending
Alt-Svc: h3while UDP 443 is closed. - Forgetting firewall rules: TCP 443 open does not mean UDP 443 is.
- Enabling 0-RTT for non-idempotent endpoints.
- Treating nginx HTTP/3 as mature without checking the module's experimental status for the deployed version.
Step 3 Troubleshooting Narrow the fault
Advertised but never used. Clients cannot reach UDP 443 (corporate firewall, cloud security group, load balancer without UDP listener). Test from outside with curl --http3-only.
Intermittent stalls after enabling HTTP/3. A load balancer distributes UDP packets of one QUIC connection to different backends; use connection-ID aware balancing or consistent hashing.
Works on one network, slow on another. That network blocks or rate-limits UDP; clients waste time before falling back. Lower ma while testing, and ensure TCP fallback is healthy.
nginx starts but no QUIC. The binary lacks --with-http_v3_module (nginx -V), or the TLS library does not support QUIC.
UDP, usually 443 — firewalls and load balancers must allow and handle it. Discovery is opt-in (Alt-Svc / HTTPS RR); the first visit normally uses TCP. 0-RTT data can be replayed — only safe for idempotent requests.
ReferenceWhat it is2 sections · depth on demand
Direct Answer
HTTP/3 (RFC 9114) runs HTTP over QUIC (RFC 9000), a transport on UDP that has TLS 1.3 built in. Each request gets its own QUIC stream, so a lost packet only delays that stream — not every request, as with HTTP/2 on TCP. QUIC connections are identified by connection IDs rather than IP and port, so they can survive a client changing networks. Clients learn that a site offers HTTP/3 from the Alt-Svc header or an HTTPS DNS record, and fall back to HTTP/2 over TCP when UDP is blocked.
Scope and canonical references
- Shared semantics: HTTP; predecessor HTTP/2.
- Packet captures of QUIC and HTTP/3: QUIC & HTTP/3 Packet Evidence in Networking.
- Transport basics: TCP, UDP & Transport.
- CDNs that terminate HTTP/3 for you: Content Delivery Networks.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
What QUIC changes
| HTTP/2 over TCP + TLS | HTTP/3 over QUIC | |
|---|---|---|
| Transport | TCP (kernel) | QUIC on UDP (usually user space) |
| Handshake | TCP, then TLS (1.2 or 1.3) | Combined QUIC + TLS 1.3; 1 RTT, or 0-RTT on resumption |
| Loss impact | Stalls all streams on the connection | Stalls only the affected stream |
| Header compression | HPACK | QPACK (works with out-of-order delivery) |
| Connection identity | IP/port 4-tuple | Connection IDs — survives NAT rebinding and network changes |
| Encryption | Payload | Payload and most transport headers |
Discovery
Browsers do not try UDP blindly. The server advertises HTTP/3:
Alt-Svc: h3=":443"; ma=86400in an HTTP response — the client may switch for later requests, for up tomaseconds.- An HTTPS DNS record (RFC 9460) with
alpn="h3,h2"— the client can use HTTP/3 on the very first connection.
If the QUIC attempt fails, clients fall back to TCP. A broken UDP path therefore usually shows up as slowness, not as a hard error.
0-RTT
On resumption a client can send requests in its first flight. That data can be replayed by an attacker, so servers should accept 0-RTT only for safe, idempotent requests (and many disable it).
Operations
- Allow UDP 443 inbound in firewalls and security groups, and make sure load balancers forward UDP and keep packets of one connection on the same backend (connection-ID aware or hashing on the 4-tuple).
- QUIC traffic is opaque to most middleboxes; inspection devices often block it, which forces fallback to TCP.
- Kernel tuning matters: QUIC stacks benefit from larger UDP socket buffers and GSO/GRO.
Server support (check your release)
| Software | Status |
|---|---|
| nginx | ngx_http_v3_module since 1.25.0; not built by default (--with-http_v3_module) and documented as experimental. listen 443 quic reuseport; alongside listen 443 ssl; plus an Alt-Svc header |
| Caddy | Enabled by default |
| HAProxy | QUIC listeners (quic4@/quic6@ bind) with a QUIC-capable TLS library |
| Apache httpd | No native HTTP/3; put a QUIC-capable proxy or CDN in front |
| CDNs | Commonly terminate HTTP/3 at the edge and talk HTTP/1.1 or HTTP/2 to the origin |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.