QUIC and HTTP/3, Decrypted: Chrome to Cloudflare, Packet by Packet

This walkthrough uses a public capture, chrome-cloudflare-quic-with-secrets.pcapng, shared on CloudShark. You can download it there and follow along in Wireshark. We decoded and annotated it with VisualEther, which turns a Wireshark PCAP into a sequence diagram with a plain-English caption on every message.

QUIC encrypts almost everything, so most QUIC captures show little more than Protected Payload on every packet. This one is different. It carries the browser's TLS secrets inside the file, so Wireshark decrypts every packet: the handshake, the HTTP/3 frames, the ACKs, all of it. That makes it a rare chance to read QUIC the way the endpoints see it.

The capture records Chrome 107 on macOS loading https://cloudflare-quic.com/ twice in November 2022. The first load goes over TCP, TLS 1.3, and HTTP/2. The response tells Chrome that HTTP/3 is available, so the reload five seconds later goes over QUIC. With both connections in one 83-frame file, you can compare the two stacks packet for packet.

We drew the whole capture as one annotated sequence diagram with two lanes, Chrome and Cloudflare. Each of the 59 messages is an arrow, numbered as in Wireshark and captioned with what the packet does and why it matters. The walkthrough below uses the same frame numbers. The diagram comes in three forms:

💡 Read the walkthrough and the diagram side by side: open the interactive diagram in a split-screen window, or open it in a new tab and snap the two windows side by side.

Overview

The capture tells a short story in four phases:

  1. The first visit, over TCP (frames 1–46). TCP handshake, TLS 1.3 handshake, then GET / over HTTP/2. The response carries an alt-svc header advertising HTTP/3.
  2. The QUIC handshake (frames 47–53). 5.4 seconds later Chrome reloads the page, this time over QUIC. One round trip sets up the connection and its encryption.
  3. HTTP/3 over the 1-RTT connection (frames 54–79). Both sides open their control and header-compression streams, Chrome sends GET /, and Cloudflare returns the same page. Along the way, Cloudflare tests Chrome with a deliberately unknown stream type.
  4. Teardown (frames 80–83). Chrome closes both connections at the same moment.
sequenceDiagram accTitle: Chrome loads cloudflare-quic.com over HTTP/2, then over HTTP/3 accDescr: Chrome opens a TCP connection, completes a TLS 1.3 handshake, and requests the page over HTTP/2. The response includes an alt-svc header advertising HTTP/3 on UDP port 443. Five seconds later Chrome reloads the page over QUIC. The QUIC Initial and Handshake packets complete the handshake in one round trip, and the request and response travel as HTTP/3 frames. participant C as Chrome participant S as Cloudflare C->>S: [1] TCP SYN S-->>C: [2] TCP SYN-ACK C->>S: [4] TLS Client Hello (ALPN h2) S-->>C: [6-8] TLS Server Hello to Finished C->>S: [12] HTTP/2 GET / S-->>C: [19] 200 OK, alt-svc h3 Note over C,S: 5.4 s later, the reload C->>S: [47] QUIC Initial, Client Hello (ALPN h3) S-->>C: [49-51] Server Hello to Finished C->>S: [55] HTTP/3 GET / S-->>C: [62] HTTP/3 200 OK
The capture at a glance. The first load uses TCP, TLS, and HTTP/2; its response advertises HTTP/3 with Alt-Svc. The reload uses QUIC, where one round trip replaces the separate TCP and TLS handshakes. Frame numbers are in brackets.

A primer on QUIC and HTTP/3

QUIC (RFC 9000) is a transport protocol that runs over UDP and does the jobs TCP and TLS used to do: reliable delivery, flow control, congestion control, and encryption. HTTP/3 (RFC 9114) is HTTP mapped onto QUIC. A few ideas make the frames easy to read:

The three sets of keys map onto the handshake like this:

stateDiagram-v2 accTitle: QUIC encryption levels during the handshake accDescr: The connection starts at the Initial level, whose keys come from the client's connection ID. The Server Hello moves both sides to the Handshake level. After the Finished messages, both sides use the 1-RTT application keys until the connection closes. state "1-RTT (application keys)" as OneRTT [*] --> Initial: Client Hello, frame 47 Initial --> Handshake: Server Hello, frame 49 Handshake --> OneRTT: Finished, frames 51 and 53 OneRTT --> [*]: CONNECTION_CLOSE, frame 81
QUIC's encryption levels in this capture. Each level has its own keys and its own packet number space. Only the Initial level can be decrypted without the TLS secrets.

Phase 1 — The first visit, over TCP (frames 1–46)

On a first visit, Chrome has no evidence that cloudflare-quic.com speaks HTTP/3, so it starts with the stack every server supports: TCP, TLS, and HTTP/2. Its TLS Client Hello offers ALPN h2 and http/1.1, not h3, because HTTP/3 can't run over TCP.

sequenceDiagram accTitle: The first page load over TCP, TLS 1.3, and HTTP/2 accDescr: Chrome and Cloudflare complete the TCP three-way handshake, then the TLS 1.3 handshake. Chrome sends its HTTP/2 GET 45.7 ms after the first SYN. The 200 OK arrives at 79.2 ms with an alt-svc header advertising h3 on port 443. participant C as Chrome participant S as Cloudflare C->>S: [1] SYN S-->>C: [2] SYN-ACK, 11.5 ms C->>S: [4] Client Hello S-->>C: [6] Server Hello S-->>C: [8] Encrypted Extensions to Finished C->>S: [10] Finished, 45.4 ms C->>S: [12] GET / on stream 1, 45.7 ms S-->>C: [19] 200 OK, alt-svc h3, 79.2 ms
Frames 1 to 19. TCP and TLS each cost a round trip before Chrome can send its request. The response advertises HTTP/3 in its alt-svc header.

Frames 1–3 — the TCP handshake. One round trip before any data can flow. The TCP sequence diagrams cover this handshake in detail.

Frames 4–10 — the TLS 1.3 handshake. A second round trip. Chrome's Client Hello lists 16 cipher suites, including TLS 1.2 suites for older servers and a GREASE value. It also sends a 32-byte legacy session ID, and both sides send a dummy Change Cipher Spec record. These two are TLS 1.3's middlebox compatibility mode: they make the handshake look like TLS 1.2 to old network boxes. Hold on to these details; the QUIC version of this handshake drops all of them.

Frames 11–16 — HTTP/2 setup and the request. Chrome sends the HTTP/2 preface, its SETTINGS, and GET / on stream 1, 45.7 ms after its first SYN.

Frame 19 — the hint. The 200 OK arrives at 79.2 ms and carries this header:

alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400

Alt-Svc (RFC 7838) tells Chrome the same site is available over HTTP/3 on UDP port 443, and that it can remember this for 86,400 seconds, one day. h3-29 names an earlier draft version for older clients.

Frames 23–46 — the body. About 10 KB of Brotli-compressed HTML, in HTTP/2 DATA frames of 4,226, 3,163, and 2,719 bytes, then an empty DATA frame with END_STREAM at 81.6 ms. The connection then sits idle until Chrome closes it in frame 80.

Phase 2 — The QUIC handshake (frames 47–53)

5.4 seconds later, Chrome loads the page again. The request headers include cache-control: no-cache, so this is a reload that skips the browser cache. This time Chrome remembers the alt-svc hint and goes straight to QUIC. The TCP connection from phase 1 is still open but stays silent.

sequenceDiagram accTitle: The QUIC handshake in one round trip accDescr: Chrome sends an Initial packet containing the TLS Client Hello. Cloudflare answers with an Initial ACK, an Initial packet containing the Server Hello, and two Handshake packets containing Encrypted Extensions, the certificate, Certificate Verify, and Finished. Chrome acknowledges them and sends its own Finished in a Handshake packet, 24.0 ms after its first packet. participant C as Chrome participant S as Cloudflare C->>S: [47] Initial pkt 1, Client Hello S-->>C: [48] Initial pkt 0, ACK S-->>C: [49] Initial pkt 1, Server Hello S-->>C: [50-51] Handshake pkts 0-1, certificate, Finished C->>S: [52] Handshake pkt 2, ACK C->>S: [53] Handshake pkt 3, Finished, 24.0 ms
Frames 47 to 53. Initial packets carry the Client Hello and Server Hello. Handshake packets carry the rest of the TLS handshake. Chrome can send its request right after its Finished, one round trip after its first packet.

Frame 47 — the Initial anyone can read

QUIC encrypts even the first packet, but the key is no secret. RFC 9001 derives the Initial keys from the Destination Connection ID in Chrome's packet, here the 8 random bytes 203f9e9f68698274, and a salt published in the RFC. Any observer can repeat the calculation, and Wireshark does so automatically. The protection stops off-path tampering and casual inspection, not decryption. So this Client Hello is readable even without the embedded secrets, and the rest of the handshake is not.

Compared with the TCP Client Hello in frame 4, the QUIC one is lean:

Three more details are worth spotting:

Frames 48–51 — Cloudflare's flight

Cloudflare answers 18.6 ms later with four datagrams:

Encrypted Extensions confirms ALPN h3 and carries Cloudflare's transport parameters. One of them, original_destination_connection_id, echoes Chrome's 203f9e9f68698274, which proves no Retry packet was involved. QUIC version 1 was accepted on the first try, with no version negotiation. Cloudflare's idle timeout is 180 seconds, against Chrome's 30; the smaller one applies.

Connection IDs

Each side chose the connection ID its peer must use:

DirectionDestination connection IDWho chose it
Chrome → Cloudflare, first Initial203f9e9f68698274 (8 bytes)Chrome, at random
Cloudflare → Chromenone (zero length)Chrome, in frame 47
Chrome → Cloudflare, from frame 52 on0130dfc5a047e6acd230b5c5e047ced9b0a6bbf0 (20 bytes)Cloudflare, in frame 48

Chrome's random first ID matters only for the first round trip and for deriving the Initial keys. From frame 52 on, Chrome uses the 20-byte ID Cloudflare chose. Cloudflare's 1-RTT packets carry no connection ID at all; Wireshark shows them with just a packet number.

Frames 52–53 — Chrome finishes

Chrome acknowledges the Handshake packets and sends its own Finished 24.0 ms after its first packet. That completes the handshake in one round trip. Over TCP, the equivalent point, frame 10, came at 45.4 ms, after two round trips.

Packet number spaces, side by side

The packet numbers show the three spaces at work:

SpaceChrome's packetsCloudflare's packets
Initial1 (frame 47)0, 1 (frames 48–49)
Handshake2, 3 (frames 52–53)0, 1, 2 (frames 50, 51, 56)
1-RTT4 to 14 (frames 54–81)0 to 15 (frames 56–78)

Cloudflare restarts at 0 in each space, as RFC 9000 describes. Chrome's numbers run 1, then 2–3, then 4–14, as if drawn from a single counter. RFC 9000 says each space starts at packet number 0. Receivers depend only on numbers increasing within a space, so the gaps do no harm, and Cloudflare's ACKs simply name the numbers Chrome used.

Phase 3 — HTTP/3 over the 1-RTT connection (frames 54–79)

sequenceDiagram accTitle: HTTP/3 streams in the 1-RTT phase accDescr: Chrome opens its control stream 2 with SETTINGS and sends GET on stream 0. Cloudflare confirms the handshake with HANDSHAKE_DONE and opens its control stream 3 with SETTINGS, then QPACK streams 7 and 11 and a GREASE stream 15. Chrome sends STOP_SENDING on stream 15, and Cloudflare resets it. Cloudflare sends the 200 OK and the body on stream 0, ending with FIN. participant C as Chrome participant S as Cloudflare C->>S: [54] stream 2, control, SETTINGS C->>S: [55] stream 0, HEADERS GET / S-->>C: [56] HANDSHAKE_DONE, stream 3 SETTINGS S-->>C: [57-60] streams 7, 11, and 15 (GREASE) C->>S: [61] STOP_SENDING stream 15 S-->>C: [62] stream 0, HEADERS 200 OK S-->>C: [68] RESET_STREAM stream 15 S-->>C: [78] stream 0, last DATA, FIN
Frames 54 to 78, simplified. Each side opens a control stream with SETTINGS. Chrome's request uses stream 0. Cloudflare opens a GREASE stream that Chrome rejects with STOP_SENDING, then answers the request on stream 0.

Frames 54–55 — Chrome opens its streams and sends the request

Right after its Finished, Chrome switches to short-header 1-RTT packets.

Frame 54 opens Chrome's control stream, unidirectional stream 2, with stream type 0x00 and a SETTINGS frame: a QPACK dynamic table of up to 65,536 bytes, header sections up to 262,144 bytes, and up to 100 streams allowed to wait on the table. Chrome also slips in a reserved GREASE setting and an empty GREASE frame.

Frame 55 carries GET / on bidirectional stream 0, the first client request stream, with the FIN bit set because a GET has no body. The same packet adds a PRIORITY_UPDATE frame on the control stream (RFC 9218) that gives stream 0 urgency u=0, the highest.

The request leaves 24.2 ms after Chrome's first QUIC packet. Over TCP it took 45.7 ms.

Here is frame 55 as Wireshark decodes it with the secrets loaded. The QUIC layer shows the short header and two STREAM frames; the HTTP/3 layers below show the PRIORITY_UPDATE and the full decoded request headers. Without the secrets, all of this is a single Protected Payload field.

🔗 [00031] Frame 55 HTTP/3 HEADERS 2022-11-10T21:06:50.617811Z Chrome → Cloudflare
frame : Frame 55: Packet, 540 bytes on wire (4320 bits), 540 bytes captured (4320 bits) on interface eth0, id 0
Section number : 1
Interface id : 0 (eth0)
Interface name : eth0
Interface description : Ethernet
Packet flags : 0x00000000
.... .... .... .... .... .... .... ..00 = Direction : Unknown (0x0)
.... .... .... .... .... .... ...0 00.. = Reception type : Not specified (0)
.... .... .... .... .... ...0 000. .... = FCS length : 0
.... .... .... .... 0000 000. .... .... = Reserved : 0
.... ...0 .... .... .... .... .... .... = CRC error : Not set
.... ..0. .... .... .... .... .... .... = Packet too long error : Not set
.... .0.. .... .... .... .... .... .... = Packet too short error : Not set
.... 0... .... .... .... .... .... .... = Wrong interframe gap error : Not set
...0 .... .... .... .... .... .... .... = Unaligned frame error : Not set
..0. .... .... .... .... .... .... .... = Start frame delimiter error : Not set
.0.. .... .... .... .... .... .... .... = Preamble error : Not set
0... .... .... .... .... .... .... .... = Symbol error : Not set
Encapsulation type : Ethernet (1)
Arrival Time : Nov 11, 2022 02:36:50.617811000 India Standard Time
UTC Arrival Time : Nov 10, 2022 21:06:50.617811000 UTC
Epoch Arrival Time : 1668114410.617811000
Time shift for this packet : 0.000000000 seconds
Time delta from previous captured frame : 117.000 microseconds
Time delta from previous displayed frame : 117.000 microseconds
Time since reference or first frame : 5.502856000 seconds
Frame Number : 55
Frame Length : 540 bytes (4320 bits)
Capture Length : 540 bytes (4320 bits)
Frame is marked : False
Frame is ignored : False
Protocols in frame : eth:ethertype:ipv6:udp:quic:http3:http3
Character encoding : ASCII (0)
eth : Ethernet II, Src: f0:18:98:e8:7a:f3, Dst: 00:03:2d:87:59:70
Destination : 00:03:2d:87:59:70
Destination (resolved) : 00:03:2d:87:59:70
Destination OUI : 00:03:2d (IBASE Technology, Inc.)
Destination OUI (resolved) : IBASE Technology, Inc.
.... ..0. .... .... .... .... = LG bit : Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit : Individual address (unicast)
Address : 00:03:2d:87:59:70
Address (resolved) : 00:03:2d:87:59:70
Address OUI : 00:03:2d (IBASE Technology, Inc.)
Address OUI (resolved) : IBASE Technology, Inc.
.... ..0. .... .... .... .... = LG bit : Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit : Individual address (unicast)
Source : f0:18:98:e8:7a:f3
Source (resolved) : f0:18:98:e8:7a:f3
Source OUI : f0:18:98 (Apple, Inc.)
Source OUI (resolved) : Apple, Inc.
.... ..0. .... .... .... .... = LG bit : Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit : Individual address (unicast)
Address : f0:18:98:e8:7a:f3
Address (resolved) : f0:18:98:e8:7a:f3
Address OUI : f0:18:98 (Apple, Inc.)
Address OUI (resolved) : Apple, Inc.
.... ..0. .... .... .... .... = LG bit : Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit : Individual address (unicast)
Type : IPv6 (0x86dd)
Stream index : 0
ipv6 : Internet Protocol Version 6, Src: 2001:db8:1::1, Dst: 2606:4700:10::6816:826
0110 .... = Version : 6
0110 .... = Version : 6 [This field makes the filter match on "ip.version == 6" possible]
.... 0000 0000 .... .... .... .... .... = Traffic Class : 0x00 (DSCP: CS0, ECN: Not-ECT)
.... 0000 00.. .... .... .... .... .... = Differentiated Services Codepoint : Default (0)
.... .... ..00 .... .... .... .... .... = Explicit Congestion Notification : Not ECN-Capable Transport (0)
.... 0011 0000 1110 0000 0000 = Flow Label : 0x30e00
Payload Length : 486
Next Header : UDP (17)
Hop Limit : 64
Source Address : 2001:db8:1::1
Address Space : Global Unicast
Special-Purpose Allocation : Documentation
Source : False
Destination : False
Forwardable : False
Globally Reachable : False
Reserved-by-Protocol : False
Source or Destination Address : 2001:db8:1::1
Address Space : Global Unicast
Special-Purpose Allocation : Documentation
Source : False
Destination : False
Forwardable : False
Globally Reachable : False
Reserved-by-Protocol : False
Source Host : 2001:db8:1::1
Source or Destination Host : 2001:db8:1::1
Destination Address : 2606:4700:10::6816:826
Address Space : Global Unicast
Source or Destination Address : 2606:4700:10::6816:826
Address Space : Global Unicast
Destination Host : 2606:4700:10::6816:826
Source or Destination Host : 2606:4700:10::6816:826
Stream index : 0
udp : User Datagram Protocol, Src Port: 50280, Dst Port: 443
Source Port : 50280
Destination Port : 443
Source or Destination Port : 50280
Source or Destination Port : 443
Length : 486
Checksum : 0x8df1 [unverified]
Checksum Status : Unverified
Stream index : 0
Stream Packet Number : 9
Timestamps
Time since first frame : 24.220000 milliseconds
Time since previous frame : 117.000 microseconds
UDP payload (478 bytes)
quic : QUIC IETF
QUIC Connection information
Connection Number : 0
Packet Length : 478
QUIC Short Header DCID=0130dfc5a047e6acd230b5c5e047ced9b0a6bbf0 PKN=5
0... .... = Header Form : Short Header (0)
.1.. .... = Fixed Bit : True
..0. .... = Spin Bit : False
...0 0... = Reserved : 0
.... .0.. = Key Phase Bit : False
.... ..00 = Packet Number Length : 1 bytes (0)
Destination Connection ID : 0130dfc5a047e6acd230b5c5e047ced9b0a6bbf0
Packet Number : 5
Protected Payload […] : a2273b3bc94a848cf591bad9abe139da2b812d8bb55451ef11dc1544a85b10de1167d22149425ff1f823635b2dfc0209975a1caf735238c487412da5a84cf70f7a5600d458442950691699256043005bae148b40e50334a10367e15ebb8678414f5f18b2422b2e01202b01
STREAM id=2 fin=0 off=41 len=9 dir=Unidirectional origin=Client-initiated
Frame Type : STREAM (0x000000000000000e)
.... ...0 = Fin : False
.... ..1. = Len(gth) : True
.... .1.. = Off(set) : True
Stream ID : 2
.... .... .... .... .... .... .... .... .... .... .... .... .... .... .... ...0 = Stream initiator : Client-initiated (0)
.... .... .... .... .... .... .... .... .... .... .... .... .... .... .... ..1. = Stream direction : Unidirectional (1)
Offset : 41
Length : 9
Stream Data : 800f07000400753d30
STREAM id=0 fin=1 off=0 len=425 dir=Bidirectional origin=Client-initiated
Frame Type : STREAM (0x0000000000000009)
.... ...1 = Fin : True
.... ..0. = Len(gth) : False
.... .0.. = Off(set) : False
Stream ID : 0
.... .... .... .... .... .... .... .... .... .... .... .... .... .... .... ...0 = Stream initiator : Client-initiated (0)
.... .... .... .... .... .... .... .... .... .... .... .... .... .... .... ..0. = Stream direction : Bidirectional (0)
Stream Data […] : 0141a60000d1508e2507b649681d855bb5a622e43d3fd7c12daec1cd48ff86a8eb10649cbfe72f004148b1275ad1ffb8fe711cf350552f4f61e92ff3f7de0fe42077f9fa53f9bd3d87a4d6d3fcfdf783f9081dfe7e94fe749d3043fe5db07549fcfdf783f9135fcf2f044148b127
http3 : Hypertext Transfer Protocol Version 3
Uni Stream
PRIORITY_UPDATE len=4
Stream ID : 2
Type : PRIORITY_UPDATE (0x00000000000f0700)
Length : 4
Frame Payload : 00753d30
Priority Update Element ID : 0
Priority Update Field Value : u=0
http3 : Hypertext Transfer Protocol Version 3
Request Stream
HEADERS len=422
Stream ID : 0
Type : HEADERS (0x0000000000000001)
Length : 422
Frame Payload […] : 0000d1508e2507b649681d855bb5a622e43d3fd7c12daec1cd48ff86a8eb10649cbfe72f004148b1275ad1ffb8fe711cf350552f4f61e92ff3f7de0fe42077f9fa53f9bd3d87a4d6d3fcfdf783f9081dfe7e94fe749d3043fe5db07549fcfdf783f9135fcf2f044148b1275ad1
Decoded Headers Length : 786
Headers Count : 18
Header : :method: GET
Name Length : 7
Name : :method
Value Length : 3
Value : GET
:method : GET
Header : :authority: cloudflare-quic.com
Name Length : 10
Name : :authority
Value Length : 19
Value : cloudflare-quic.com
:authority : cloudflare-quic.com
Header : :scheme: https
Name Length : 7
Name : :scheme
Value Length : 5
Value : https
:scheme : https
Header : :path: /
Name Length : 5
Name : :path
Value Length : 1
Value : /
:path : /
Header : pragma: no-cache
Name Length : 6
Name : pragma
Value Length : 8
Value : no-cache
Header : cache-control: no-cache
Name Length : 13
Name : cache-control
Value Length : 8
Value : no-cache
cache-control : no-cache
Header : sec-ch-ua: "Google Chrome";v="107", "Chromium";v="107", "Not=A?Brand";v="24"
Name Length : 9
Name : sec-ch-ua
Value Length : 65
Value : "Google Chrome";v="107", "Chromium";v="107", "Not=A?Brand";v="24"
Header : sec-ch-ua-mobile: ?0
Name Length : 16
Name : sec-ch-ua-mobile
Value Length : 2
Value : ?0
Header : sec-ch-ua-platform: "macOS"
Name Length : 18
Name : sec-ch-ua-platform
Value Length : 7
Value : "macOS"
Header : upgrade-insecure-requests: 1
Name Length : 25
Name : upgrade-insecure-requests
Value Length : 1
Value : 1
Header : user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Name Length : 10
Name : user-agent
Value Length : 117
Value : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
user-agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Header : accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Name Length : 6
Name : accept
Value Length : 135
Value : text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
accept : text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Header : sec-fetch-site: none
Name Length : 14
Name : sec-fetch-site
Value Length : 4
Value : none
Header : sec-fetch-mode: navigate
Name Length : 14
Name : sec-fetch-mode
Value Length : 8
Value : navigate
Header : sec-fetch-user: ?1
Name Length : 14
Name : sec-fetch-user
Value Length : 2
Value : ?1
Header : sec-fetch-dest: document
Name Length : 14
Name : sec-fetch-dest
Value Length : 8
Value : document
Header : accept-encoding: gzip, deflate, br
Name Length : 15
Name : accept-encoding
Value Length : 17
Value : gzip, deflate, br
accept-encoding : gzip, deflate, br
Header : accept-language: en-US,en;q=0.9
Name Length : 15
Name : accept-language
Value Length : 14
Value : en-US,en;q=0.9
accept-language : en-US,en;q=0.9
Full request URI : https://cloudflare-quic.com/
Rendered from a Wireshark PCAP by VisualEther.

Frame 55, Chrome's HTTP/3 request, decrypted. Open the QUIC layer for the short header (destination connection ID and packet number 5) and the STREAM frames for streams 2 and 0. The HTTP/3 layers hold the PRIORITY_UPDATE and the HEADERS frame with :method GET and the rest of the request.

Frame 56 — handshake confirmed, and Cloudflare's control stream

Frame 56 is one UDP datagram with two coalesced QUIC packets:

Frames 57–59 — the QPACK streams

HTTP/3 compresses headers with QPACK, which can keep a dynamic table of recently used headers. Updates to that table travel on two dedicated unidirectional streams, separate from the requests. Cloudflare opens its encoder stream (stream 7, type 0x02) and decoder stream (stream 11, type 0x03), and sends nothing on them beyond the stream type.

The table stays empty in both directions. Cloudflare doesn't use the 65,536-byte table Chrome offered. Chrome can't use one toward Cloudflare: Cloudflare's SETTINGS advertise no table capacity, so the default of 0 applies. Both header blocks in this connection use only QPACK's static table and literal header fields. Chrome never opens its own QPACK streams in this capture.

Frames 60, 61, and 68 — the GREASE stream test

Frame 60. Cloudflare opens a fourth unidirectional stream, 15, with stream type 0x1cd3763bdc59087d. That value has the reserved form 0x1f × N + 0x21: it is GREASE, a stream type that no implementation understands. Cloudflare sends 26 bytes and closes its side.

Frame 61. Chrome passes the test. It sends STOP_SENDING for stream 15 with error code 0x103, H3_STREAM_CREATION_ERROR. RFC 9114 says a receiver must abort or discard a stream of unknown type, preferably with that code, and must never treat it as a connection error.

Frame 68. Cloudflare answers with RESET_STREAM for stream 15, echoing error 0x103, with a final size of 26 bytes. RFC 9000 requires an endpoint that receives STOP_SENDING to send RESET_STREAM, and recommends copying the error code. The GREASE stream is now closed in both directions, and the rest of the connection is unaffected.

Frames 62–78 — the response

Frame 62. The 200 OK arrives 56.6 ms after Chrome's first QUIC packet; over TCP it took 79.2 ms. Stream 0 starts with two more GREASE frames, one carrying the ASCII text GREASE is the word, then the HEADERS frame. The response repeats the alt-svc header, renewing the HTTP/3 hint for another day.

Frames 63–78. The body follows as HTTP/3 DATA frames of 4,226, 2,147, 1,019, 2,718, and 1 bytes. HTTP/3 frames don't line up with packets: Wireshark reassembled the first DATA frame from four packets (62, 63, 65, and 66). The diagram shows packets with no frame boundary as QUIC STREAM arrows, with their stream offset. Packet 15 (frame 78) sets FIN on stream 0 at offset 10,288, 70.3 ms after Chrome's first packet. It also carries an empty DATA frame, which HTTP/3 doesn't need: the stream's FIN is what ends the response.

The ACKs

Chrome acknowledges Cloudflare's 1-RTT packets with small ACK-only packets, each with a few bytes of PADDING. An ACK frame reports the largest packet number received, then ranges of received packets counting down from it:

FrameChrome's packetAcknowledges Cloudflare's packets
5860–1
6170–3
6480–5
6790–7
71103–9
74113–11
77123–13
79133–15

Every range is unbroken: no packet was lost, and nothing was retransmitted. The drop from 0–7 to 3–9 in frame 71 is deliberate. In frame 68, Cloudflare acknowledged Chrome's packet 7, which carried the ACK reporting packets up to 3. Chrome now knows that Cloudflare saw that report, so it stops repeating packets 0–2 (RFC 9000 section 13.2.4). This keeps ACK frames short on long connections.

Cloudflare acknowledges far less often. Its only 1-RTT ACKs are in frame 56 (Chrome's packets 4–5) and frame 68 (packets 6–7). Chrome's later packets hold nothing but ACK frames and padding, and RFC 9000 doesn't require anyone to acknowledge a packet like that. Packet 7 got an ACK because it also carried the STOP_SENDING.

Phase 4 — Teardown (frames 80–83)

Both connections then sit idle for 5.3 seconds. At 10.8 seconds Chrome closes both within half a millisecond: a TCP FIN in frame 80 and a QUIC CONNECTION_CLOSE in frame 81.

The CONNECTION_CLOSE carries transport error NO_ERROR with the reason phrase 70:net error from Chrome's network stack. It isn't an idle timeout, which would take 30 seconds. The same packet repeats the ACK of Cloudflare's packets 3–15. Its ACK Delay field reads 659,814. Multiplied by 2³ (the default ack_delay_exponent of 3, which Chrome didn't change), that is 5.28 seconds, exactly the time since Cloudflare's last packet.

TCP needs Cloudflare's FIN and Chrome's final ACK (frames 82–83) to finish. QUIC needs nothing more: once a CONNECTION_CLOSE is sent, the connection is over.

TCP versus QUIC, same page, same server

MilestoneTCP + TLS + HTTP/2QUIC + HTTP/3
Handshake complete (client Finished)45.4 ms (frame 10)24.0 ms (frame 53)
Request sent45.7 ms (frame 12)24.2 ms (frame 55)
Response headers received79.2 ms (frame 19)56.6 ms (frame 62)
Response complete81.6 ms (frame 44)70.3 ms (frame 78)
Round trips before the request21

Times are from each connection's first packet. The response headers arrived 22.6 ms sooner over QUIC, roughly one round trip on this path. That is the saved handshake round trip. One page load on one network doesn't prove a speedup in general, but the round-trip count is structural: TCP and TLS each need their own, and QUIC does both in one.

Capturing your own decrypted QUIC trace

The embedded secrets are what make this capture readable. You can make one like it:

  1. Log the TLS secrets. Chrome, Firefox, and curl write their TLS session secrets to the file named in the SSLKEYLOGFILE environment variable, in the NSS key log format. Set it before starting the browser:

    export SSLKEYLOGFILE=$HOME/tls-keys.log    # macOS / Linux
    setx SSLKEYLOGFILE "%USERPROFILE%\tls-keys.log"    # Windows, then restart the browser

    QUIC uses the same TLS 1.3 secrets, so the same file covers both TCP and QUIC connections.

  2. Capture the traffic with Wireshark or tcpdump while you browse. QUIC runs on UDP port 443.

  3. Decrypt. In Wireshark, point Preferences → Protocols → TLS → (Pre)-Master-Secret log filename at the key log. With tshark, add -o tls.keylog_file:tls-keys.log.

  4. Embed the secrets in the capture so it decrypts anywhere, with no separate key file:

    editcap --inject-secrets tls,tls-keys.log capture.pcapng capture-with-secrets.pcapng

    This writes a pcapng Decryption Secrets Block. editcap --extract-secrets reads it back out. The capture in this article carries ten secret lines: five for each of its two TLS sessions, the TCP one and the QUIC one.

A key log decrypts every session recorded in it, so treat it like a password. Before you share a capture, make sure the embedded file holds only the sessions you mean to share, not your whole browsing history.

Takeaways

  1. The first visit uses TCP, by design. A browser can't know a server speaks HTTP/3 until it tells it. Here the alt-svc header in the HTTP/2 response did that, and the next load used QUIC.
  2. One round trip instead of two. QUIC folds the transport and TLS handshakes together. The request left after 24 ms instead of 46, and the response headers arrived 23 ms sooner.
  3. The Initial is readable by anyone, the rest isn't. Initial keys come from the packet itself. Everything from the Handshake packets on needs the TLS secrets, which is why SSLKEYLOGFILE matters for QUIC troubleshooting.
  4. Connection IDs replace the 4-tuple. Each side picks the ID its peer uses. Chrome chose a zero-length one, so Cloudflare's packets carry none.
  5. Each packet number space keeps its own count and its own ACKs. Cloudflare restarted at 0 in each space; Chrome's numbers kept climbing across them. Both work, because receivers only need numbers to increase within a space.
  6. GREASE is visible once decrypted. Reserved settings, frames, and a whole reserved stream show both sides checking that the other ignores what it doesn't understand. Chrome's STOP_SENDING and Cloudflare's RESET_STREAM on stream 15 are that check working.