networking, updated

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
Specs
RFC 9000, RFC 9001, RFC 9114, RFC 9369
Wireshark filter
quic || http3
Encrypted
yes

Packet structure

QUIC long header (Initial packet)7 bytes + variable

Select a field to see what it does.

RFC 9000 section 17.2. Used during the handshake; afterwards packets switch to a short header (1 byte + destination connection ID + packet number). The low header bits and the packet number are hidden by header protection.

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

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

FilterShows
quicAll QUIC
quic.long.packet_type == 0Initial packets (connection starts)
tls.handshake.type == 1 && quicClientHellos inside QUIC (Wireshark decrypts Initials automatically)
tls.handshake.extensions_server_name && quicServer names (SNI) of QUIC connections
quic.version == 0Version negotiation
quic.long.packet_type == 3Retry packets (server under load or validating addresses)
http3HTTP/3 (needs a TLS key log file)
udp.port == 443 && !quicNon-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

References

§ home
~/knubertus/home/
1,1 Top