QUIC and HTTP/3
QUIC is a transport protocol on top of UDP with TLS 1.3 built in: encrypted, multiplexed and quick to connect. HTTP/3 runs on it, and today a large share of web traffic is QUIC that classic TCP and TLS inspection does not see.
- OSI layer
- 4 Transport, 7 Application
- Carried in
- UDP
- Ports
- 443/udp
- Wireshark filter
quic || http3- Encrypted
- yes
Packet structure
Select a field to see what it does.
After the handshake, packets use the short header: one byte (header form 0, fixed bit, spin bit, key phase, packet number length), the destination connection ID and the packet number. Everything else is encrypted.
How it works
sequenceDiagram
participant C as Client
participant S as Server :443/udp
C->>S: Initial [CRYPTO: TLS ClientHello with SNI, ALPN h3], padded to 1200 bytes
S->>C: Initial [ServerHello] + Handshake [certificate, Finished]
C->>S: Handshake [Finished] + 1-RTT [HTTP/3 request]
S->>C: 1-RTT [HTTP/3 response]
Note over C,S: Short headers, all frames encrypted
- Handshake in one round trip: QUIC carries the TLS 1.3 handshake in CRYPTO frames, so transport and crypto setup happen together. With a resumed session, 0-RTT sends the request in the first flight.
- Streams: many independent streams in one connection. A lost packet only delays the streams it carried (no head-of-line blocking as in TCP).
- Connection IDs: connections are identified by IDs, not by IP and port, so they survive address changes (connection migration).
- Reliability and congestion control are done by QUIC itself (ACK frames, retransmission in new packets), in user space rather than in the kernel.
- Discovery: browsers start on TCP (HTTP/2) and switch to HTTP/3 when the server advertises it in an
Alt-Svc: h3=":443"header or an HTTPS DNS record. If UDP 443 is blocked they fall back to TCP silently.
HTTP/3 maps HTTP onto QUIC streams: each request is a stream, headers use QPACK compression, and the semantics (methods, status codes, headers) are the same as HTTP/1.1 and HTTP/2.
In Wireshark
| Filter | Shows |
|---|---|
quic | All QUIC |
quic.long.packet_type == 0 | Initial packets (connection starts) |
tls.handshake.type == 1 && quic | ClientHellos inside QUIC (Wireshark decrypts Initials automatically) |
tls.handshake.extensions_server_name && quic | Server names (SNI) of QUIC connections |
quic.version == 0 | Version negotiation |
quic.long.packet_type == 3 | Retry packets (server under load or validating addresses) |
http3 | HTTP/3 (needs a TLS key log file) |
udp.port == 443 && !quic | Non-QUIC traffic on UDP 443 (often VPNs or tunnels) |
Initial packets are encrypted with keys derived from the public connection ID, so Wireshark decrypts them without any secrets and shows the SNI. Everything after that needs SSLKEYLOGFILE from the browser, as with TLS.
What normal looks like: browsers and apps talking UDP 443 to large providers (Google, Meta, Cloudflare, Akamai, Microsoft). Long-lived QUIC to an unknown host, QUIC on unusual ports, or a client whose Initial does not look like a browser’s can be a tunnel or C2 framework using QUIC.
Security notes
- Inspection blind spot: firewalls, proxies and DLP that only intercept TCP/TLS do not see QUIC. Many organisations block UDP 443 so browsers fall back to TCP where the proxy can inspect them.
- 0-RTT replay: early data can be replayed by an attacker; servers must only accept idempotent requests in 0-RTT.
- Amplification: servers may send at most 3 times the bytes received before the client’s address is validated; that is why client Initials are padded to 1200 bytes, and why servers use Retry under load.
- Connection migration and tracking: connection IDs change on migration, which hinders tracking by address, but also complicates stateful firewall rules.
- Malware and tunnels: C2 frameworks (e.g. Merlin) and VPNs (MASQUE, Cloudflare WARP) use QUIC to blend in with web traffic. SNI and certificate checks still work on the Initial packets.
- User-space stacks: each application ships its own QUIC implementation, so bugs and patches are per application rather than per OS.
Versions and related
- Google QUIC (gQUIC, 2013) was the experimental predecessor, with a different header; IETF QUIC v1 (RFC 9000, 2021) is the standard, QUIC v2 (RFC 9369) changes only constants to prevent ossification.
- HTTP/3 (RFC 9114) is HTTP over QUIC; DNS over QUIC (RFC 9250), SMB over QUIC and MASQUE proxying also use it.
- Runs over UDP and replaces TCP + TLS for the traffic that uses it. Filed under layer 4 (transport) with HTTP/3 on layer 7.