Pcornel
Browse topics
Options
Recent
Favorites
Web Infrastructure · Technical reference

HTTP/3 and QUIC

Direct answer

HTTP/3 carries HTTP over QUIC, a UDP-based transport with TLS 1.3 built in. Each request has its own QUIC stream, so packet loss on one does not stall the others.

When to use this

Use it on public sites to improve latency on lossy and mobile networks. Clients discover it via the Alt-Svc header or an HTTPS DNS record and fall back to HTTP/2 over TCP if UDP is blocked.

First 30 seconds

1. Is h3 advertised (Alt-Svc or HTTPS record)?

2. Is UDP 443 open end to end and listened on?

3. Does a forced HTTP/3 request succeed?

4. If not, do clients fall back cleanly to HTTP/2?

Operational verification

discovery (Alt-Svc / HTTPS RR) → QUIC handshake on UDP with TLS 1.3 → streams with HEADERS/DATA frames (QPACK) → connection IDs allow migration

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
HTTP/3 per RFC 9114, QUIC per RFC 9000; nginx (experimental module), Caddy, HAProxy examples.
Applicability is projected only from persisted Topic profile and Command metadata.
At a glance

Operational reference

Fast context before you go deeper.

PlatformHTTP/3 per RFC 9114, QUIC per RFC 9000; nginx (experimental module), Caddy, HAProxy examples.
Key commanddig +short HTTPS www.example.com
Scope / prerequisiteUse it on public sites to improve latency on lossy and mobile networks. Clients discover it via the Alt-Svc header or a…
What next?2 suggested next steps
Evidence0
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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: h3 while 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.

Key points

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.

Key checks
  • curl -sSI https://<host>/ | grep -i alt-svc — server advertises h3.
  • curl --http3-only -sS -o /dev/null -w "%{http_version}\n" https://<host>/ — prints 3 (needs a curl built with HTTP/3).
  • dig +short HTTPS <host> — HTTPS record with alpn=h3.
  • ss -ulnp 'sport = :443' — something listens on UDP 443.
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.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

What QUIC changes

HTTP/2 over TCP + TLSHTTP/3 over QUIC
TransportTCP (kernel)QUIC on UDP (usually user space)
HandshakeTCP, then TLS (1.2 or 1.3)Combined QUIC + TLS 1.3; 1 RTT, or 0-RTT on resumption
Loss impactStalls all streams on the connectionStalls only the affected stream
Header compressionHPACKQPACK (works with out-of-order delivery)
Connection identityIP/port 4-tupleConnection IDs — survives NAT rebinding and network changes
EncryptionPayloadPayload and most transport headers

Discovery

Browsers do not try UDP blindly. The server advertises HTTP/3:

  • Alt-Svc: h3=":443"; ma=86400 in an HTTP response — the client may switch for later requests, for up to ma seconds.
  • 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)

SoftwareStatus
nginxngx_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
CaddyEnabled by default
HAProxyQUIC listeners (quic4@/quic6@ bind) with a QUIC-capable TLS library
Apache httpdNo native HTTP/3; put a QUIC-capable proxy or CDN in front
CDNsCommonly 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
Terminology layer

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.

Aliases that resolve here
http/3http3quich3alt-svcqpack
Confirmation

Confirm action

Continue?