QUIC vs. TCP: The Fundamental Differences
QUIC (Quick UDP Internet Connections) is a transport protocol designed by Google and standardized by the IETF; HTTP/3 runs on top of it. Its core changes versus TCP:
| Dimension | TCP | QUIC |
|---|---|---|
| Carrier | Kernel protocol stack | UDP in user space |
| Handshake | TCP three-way + TLS 1.2/1.3 two-way = 3-4 RTT | Transport and cryptographic handshakes merged: 1-RTT, 0-RTT on reconnect |
| Head-of-line blocking | A single lost packet blocks all streams on the connection | Isolated at the stream level |
| Connection migration | Connection is bound to the four-tuple; switching networks drops it | Connection is bound to the Connection ID; switching networks keeps it alive |
| Encryption | Optional; plaintext is the norm | Mandatory — QUIC has no unencrypted option |
For packet capture analysis, the biggest shock is: all QUIC traffic is UDP. You can no longer reason about it the TCP way (SYN, windows, sequence numbers) — you need a new mental model.
Packet Forms: Long Header and Short Header
QUIC packets come in two broad classes, flagged by the highest bit of the first byte:
Long Header (high bit of the first byte = 1) — handshake-phase packets; the header carries a version number and Connection ID:
Initial (type 0) — carries the TLS ClientHello/ServerHello; plaintext (decryptable)
0-RTT (type 1) — application data sent directly on reconnect
Handshake (type 2) — key negotiation after the handshake completes
Retry (type 3) — the server asks the client to reconnect from a new address
Version Negotiation — version negotiation
Short Header (high bit of the first byte = 0) — application data packets after the handshake completes; only the destination Connection ID (DCID) and payload, fully encrypted.
Why Initial Packets Can Be Parsed
This is the most counterintuitive point in QUIC analysis: Initial packets are "sent in the clear," but their contents are actually encrypted — except the encryption key does not come from handshake negotiation; instead, both sides derive it from a fixed salt using a fixed algorithm. The salt value is published in an appendix of RFC 9001.
This means: anyone can decrypt Initial packets. So from Initial packets you can see:
- The complete contents of the TLS ClientHello / ServerHello;
- Plaintext information such as the SNI, ALPN, and supported versions;
- The Connection IDs of both the client and the server.
Once past Initial, the Handshake phase completes key negotiation, and only then do all subsequent packets become truly undecryptable (unless you have an SSLKEYLOG exported by the client).
How-to: Analyzing Traffic in PcapDecoder
Step 1: Open the file and identify QUIC traffic. PcapDecoder automatically recognizes QUIC packets on UDP and classifies them by Long/Short Header. Each QUIC connection in the session list is identified by its DCID.
Step 2: Open an Initial packet to extract connection details. The detail view shows the QUIC-layer fields (version, DCID/SCID, packet number, Token) and the decrypted TLS-layer fields (SNI, ALPN, key exchange parameters).
Step 3: With a key log, decrypt everything. If you have an SSLKEYLOGFILE exported by the client (generated by setting an environment variable in the browser or app), import it and PcapDecoder can decrypt all application data — HTTP/3 request headers and response codes become fully visible. The quic-with-secrets.pcapng sample in our test corpus is a keyed sample whose decryption path has been fully verified.
Step 4: No key? You can still observe behavior. Even without keys, the size distribution and inter-packet timing of Short Header packets still tell a story: abnormally regular full-size 1200-byte packets (path MTU probing), reconnect storms (dense 0-RTT packets), connection migration (DCID changes but the flow continues).
Common QUIC Analysis Questions
| Symptom | Explanation |
|---|---|
| Large numbers of 1200-byte UDP packets | Normal: QUIC sends to the path MTU; filling 1200 bytes is the norm |
| Retry packets appear | The server is validating the client's address (anti-amplification); the connection will be rebuilt |
| Version Negotiation visible | The client used a QUIC version the server does not support |
| All Short Header after Initial | The normal path: Initial negotiates, everything after is encrypted |
| Application data cannot be decrypted | Missing SSLKEYLOG, or a key version mismatch |
Related reading: "How to Analyze a TLS 1.3 Handshake".
