QUIC and HTTP/3: Transport Over UDP With Built-In TLS
Why QUIC was built, how it runs over UDP with TLS 1.3 inside its handshake, what the network can and can't see, streams without head-of-line blocking, loss recovery, 0-RTT and its replay risk, connection migration, and HTTP/3, with real lab captures and timings.
kvi5hnuCode Sprout team member23 min readOn this page
For forty years, a reliable Internet connection meant TCP. TCP is still everywhere, but a large and growing share of web traffic now travels over a different transport: QUIC. QUIC gives applications what TCP plus TLS gives them (a reliable, encrypted, congestion-controlled connection) and adds several things TCP can't: many independent streams in one connection, a handshake that saves a round trip, and connections that survive a change of IP address. HTTP/3 is HTTP running over QUIC.
This article explains how QUIC works, using what you've learned about TCP in Parts 10 to 12 and about TLS in article 83. Every capture and timing below comes from the course lab, using a real HTTP/3 server (nginx), curl, and a small Python client and server built on the aioquic library.
Why build a new transport?
QUIC was started at Google around 2012, deployed in Chrome and Google's servers, and then redesigned and standardized by the IETF, which published QUIC version 1 in May 2021. It answers four problems with TCP:
- Handshake latency. A new HTTPS connection over TCP needs one round trip for TCP's handshake and another for TLS 1.3 before the request can even be sent. On a 100 ms path, that's 200 ms of waiting before any useful work.
- Head-of-line blocking. HTTP/2 sends many requests over one TCP connection. TCP delivers bytes strictly in order, so one lost packet stalls every request until it's retransmitted, even requests whose data arrived safely.
- Ossification. Firewalls, NAT devices (article 35) and load balancers read and sometimes rewrite TCP headers. A device that doesn't recognize a new TCP option may drop the packet. That makes TCP very hard to change: features such as TCP Fast Open (article 60) and Multipath TCP (article 87) work only where middleboxes allow them.
- Kernel-bound evolution. TCP lives in the operating system kernel. Improving it means waiting for every phone, laptop and server to update its OS.
QUIC's answers: combine the transport and TLS handshakes into one, give each stream its own ordering, encrypt almost the whole packet so middleboxes can't depend on its contents, and run in user space over UDP so an application can ship a new QUIC version with its next update.

UDP is used because it's the one transport besides TCP that almost every network passes. It contributes only ports and a checksum. Everything else is QUIC's job.
The QUIC family of standards
QUIC isn't one document. The core specifications are:
| RFC | What it defines |
|---|---|
| RFC 8999 | Version-independent properties: the few header fields every QUIC version must keep |
| RFC 9000 | QUIC version 1: packets, frames, streams, flow control, connection IDs, migration |
| RFC 9001 | How TLS 1.3 secures QUIC |
| RFC 9002 | Loss detection and congestion control |
| RFC 9114 | HTTP/3 |
| RFC 9204 | QPACK, HTTP/3's header compression |
| RFC 9221 | Unreliable datagrams inside a QUIC connection |
| RFC 9297 | HTTP datagrams and the capsule protocol (used for proxying UDP over HTTP) |
| RFC 9368, 9369 | Compatible version negotiation, and QUIC version 2 |
| RFC 10069 | Multipath QUIC: using several paths in one connection (November 2026) |
QUIC version 2 (RFC 9369) does nothing new functionally. It exists to exercise version negotiation and to change constants such as the packet-type codes, so that middleboxes can't hard-code version 1's values and ossify QUIC the way they ossified TCP.
Packets, headers and what the network can see
A QUIC connection is identified by connection IDs, not by the address-and-port 4-tuple TCP uses. Each side picks the IDs the other must put in packets sent to it (up to 20 bytes each in version 1). That's what lets a connection move to a new address, as you'll see below.
QUIC has two header formats:
- Long headers are used during the handshake. The packet types are Initial, 0-RTT, Handshake and Retry. They carry the version and both connection IDs.
- Short headers are used for everything after the handshake (1-RTT packets). They carry only the destination connection ID and a packet number.

Everything after the header is encrypted. Even part of the header is hidden: header protection masks the packet number and some first-byte bits. Here's the start of a real HTTP/3 request captured on the client, decoded by tshark without any keys. This is what any router, firewall or Wi-Fi eavesdropper sees:
No. Time Source UDP len Header Long-header type Version
1 0.000 192.0.2.10 1208 long Initial 0x00000001
2 0.026 198.51.100.10 1208 long Initial+Handshake 0x00000001,0x00000001
3 0.050 192.0.2.10 1208 long Initial+Handshake 0x00000001,0x00000001
4 0.050 192.0.2.10 79 short (1-RTT packet)
5 0.074 198.51.100.10 881 short (1-RTT packet)
6 0.074 198.51.100.10 1208 short (1-RTT packet)
7 0.074 198.51.100.10 1021 short (1-RTT packet)
8 0.095 192.0.2.10 55 short (1-RTT packet)
9 0.095 192.0.2.10 52 short (1-RTT packet)
10 0.119 198.51.100.10 42 short (1-RTT packet)
11 0.144 192.0.2.10 53 short (1-RTT packet)
12 0.176 198.51.100.10 1358 short (1-RTT packet)
The columns are the packet number in the capture, the time, the sender, the UDP length, the header form, the long-header packet type (a datagram can hold several, joined by +), and the QUIC version (0x00000001 is version 1).
Compare that with TCP, where every observer can read sequence numbers, ACKs, window sizes and flags. Here the only readable things are the header form, the long-header type, the version and the connection IDs. Two details are worth noticing:
- The client's first datagrams are 1,208 bytes (1,200 bytes of QUIC plus the 8-byte UDP header). RFC 9000 requires a client to pad datagrams carrying Initial packets to at least 1,200 bytes. That proves the path can carry reasonably large packets, and it limits amplification attacks: until the server has validated the client's address, it may send at most three times as many bytes as it received.
- Several packets can share one datagram ("coalescing"). Datagram 2 holds an Initial packet and a Handshake packet.
Initial packets are encrypted but not secret
Initial packets are encrypted, but with keys derived from the destination connection ID and a constant published in RFC 9001. Anyone who sees the first packet can derive them, and tshark does so automatically:
packet 1 decrypted WITHOUT any keys: ClientHello (handshake type 1), server name: www.example.com, ALPN: h3
So the server name (SNI) a client is connecting to is visible on the wire, just as with TLS over TCP. The Initial encryption protects against tampering by off-path attackers and middleboxes that don't implement QUIC, not against observers. Hiding the server name needs Encrypted Client Hello (ECH), covered in article 83.
The same packets with the keys
The lab client logged its TLS secrets to a key-log file (the same SSLKEYLOGFILE format browsers use). With that file, tshark decrypts everything and shows the frames inside each packet, plus the TLS messages carried in CRYPTO frames:
No. Source QUIC frames (and TLS messages inside CRYPTO frames)
1 192.0.2.10 CRYPTO [ClientHello]
2 198.51.100.10 ACK, CRYPTO x5, PADDING [ServerHello, EncryptedExtensions, Certificate, CertificateVerify, Finished]
3 192.0.2.10 ACK x2, CRYPTO, NEW_CONNECTION_ID, STREAM x3, PADDING [Finished]
4 192.0.2.10 STREAM
5 198.51.100.10 ACK, CRYPTO x2, HANDSHAKE_DONE, NEW_CONNECTION_ID x7, STREAM x3 [NewSessionTicket, NewSessionTicket]
6 198.51.100.10 ACK, STREAM
7 198.51.100.10 STREAM x2
8 192.0.2.10 STREAM
9 192.0.2.10 ACK
10 198.51.100.10 ACK, MAX_STREAMS
11 192.0.2.10 ACK
12 198.51.100.10 PING, PADDING
Reading it from the top:
- Packet 1: the client's Initial carries a CRYPTO frame holding the TLS ClientHello.
- Packet 2: the server answers with its whole TLS flight in CRYPTO frames: ServerHello, EncryptedExtensions, Certificate, CertificateVerify and Finished, plus an ACK.
- Packets 3 and 4: the client sends its TLS Finished and, in the same flight, STREAM frames carrying the HTTP/3 control streams and the GET request. That's the saved round trip: the request leaves one RTT after the first packet.
- Packet 5: the server confirms the handshake (HANDSHAKE_DONE), sends session tickets for future 0-RTT, hands out spare connection IDs (NEW_CONNECTION_ID) and starts the response in STREAM frames.
Everything QUIC does is expressed as frames: STREAM for data, ACK for acknowledgments, CRYPTO for the TLS handshake, MAX_DATA and MAX_STREAMS for flow control, PATH_CHALLENGE for migration, CONNECTION_CLOSE to finish.
Streams without head-of-line blocking
A QUIC connection carries many streams. Each is an ordered byte stream, like a small TCP connection, and streams are independent of one another. Streams can be bidirectional or unidirectional, and either side can open them. The two lowest bits of the stream ID say which kind it is:
| Low bits | Opened by | Direction | IDs |
|---|---|---|---|
00 | client | bidirectional | 0, 4, 8, … |
01 | server | bidirectional | 1, 5, 9, … |
10 | client | unidirectional | 2, 6, 10, … |
11 | server | unidirectional | 3, 7, 11, … |
HTTP/3 sends each request and response on its own client-initiated bidirectional stream, so requests use streams 0, 4, 8 and so on. You'll see streams 0 and 4 in the migration demo below. It also uses unidirectional streams for its control stream and for QPACK.
Because each stream is ordered separately, a lost packet delays only the streams whose data it carried:

Flow control works at two levels, using the same ideas as TCP's receive window (article 69): a limit per stream (MAX_STREAM_DATA) and a limit for the whole connection (MAX_DATA). A third limit, MAX_STREAMS, caps how many streams the peer may open.
Loss detection and congestion control
QUIC's reliability (RFC 9002) fixes several old TCP problems:
- Packet numbers only go up. Every packet gets a new number, including retransmissions. A retransmitted frame travels in a new packet with a new number. TCP reuses the same sequence numbers when it retransmits, so when an ACK arrives it can't tell whether it acknowledges the original or the copy (the retransmission ambiguity, article 64). QUIC never has that problem, so every ACK gives a clean RTT sample.
- ACKs are rich. An ACK frame lists many ranges of received packets, like TCP's SACK but without TCP's limit of a few blocks. It also reports how long the receiver deliberately delayed the ACK, so the sender can remove that delay from its RTT estimate.
- Separate packet number spaces for Initial, Handshake and application data keep handshake losses from confusing data recovery.
- Probe timeout (PTO) replaces TCP's retransmission timeout. When it fires, QUIC sends a probe packet instead of collapsing its congestion window. Loss is declared by packet or time thresholds, much like TCP's RACK (article 66).
- Congestion control is pluggable. RFC 9002 describes a NewReno-style controller, but real implementations commonly use CUBIC or BBR (articles 75 and 76). Because QUIC runs in user space, a service can change its congestion controller with an application update instead of a kernel upgrade.
Counting the round trips
Here's the main latency claim, measured. In the lab, the client fetched a 2,000-byte file over HTTPS from nginx, again and again, while netem (the Linux network emulator) added a round-trip delay of 20 to 200 ms. HTTP/2 over TCP and TLS 1.3 and HTTP/3 over QUIC were both fetched with curl. The 0-RTT runs used the Python client and server, because the lab's nginx 1.26 can't accept QUIC 0-RTT. (nginx added that in 1.29.1 for OpenSSL 3.5.1 and later.)
RTT (ms) TCP+TLS 1.3 QUIC new QUIC 0-RTT (median time to first response byte, ms; 5 runs each)
20 85 52 118
60 218 144 165
100 334 216 141
150 484 322 229
200 626 431 249
A straight-line fit through each series tells you how many round trips each one costs:
tcp: 2.99 round trips per extra ms of RTT (fit), intercept 32 ms, runs 25
quic: 2.08 round trips per extra ms of RTT (fit), intercept 13 ms, runs 25
zrtt: 0.73 round trips per extra ms of RTT (fit), intercept 103 ms, runs 25
The slope is milliseconds of waiting per extra millisecond of RTT. If the time to first byte grows by 3 ms for every 1 ms added to the RTT, the fetch must be waiting for 3 round trips. For example, the TCP column grows from 85 to 626 ms while the RTT grows from 20 to 200 ms: (626 − 85) ÷ (200 − 20) = 541 ÷ 180 ≈ 3.0.


The TCP and QUIC slopes match the ladder diagrams almost exactly: 3 round trips to the first byte for TCP plus TLS 1.3 and 2 for QUIC. The ladder predicts 1 for QUIC with 0-RTT, and every 0-RTT point is indeed one RTT plus processing time, but the Python code's processing time varied between about 40 and 100 ms from one RTT setting to the next, which pulls its fitted slope down to 0.73. The intercepts (the time left over at zero RTT) are processing time, and they're larger for the Python code. That's why the slope over several points, not any single point, is the fair comparison, and why the 0-RTT estimate is the roughest of the three.
0-RTT and replay
With 0-RTT, a client that has talked to a server before (and kept a session ticket from it) sends its request in its very first flight, encrypted with keys derived from the earlier session. The response comes back after one round trip.
0-RTT data has two weaknesses, the same ones as TLS 1.3 early data over TCP:
- It can be replayed. An attacker who records the client's first flight can send it to the server again. The server may then process the request twice.
- It doesn't have forward secrecy. It's protected only by keys from the earlier session, so anyone who later steals the server's ticket key can decrypt it.
So servers should accept 0-RTT only for requests that are safe to repeat, such as GET requests for public pages, and never for "pay $100" or "post this comment". HTTP has a status code for this: 425 Too Early asks the client to retry the request after the handshake completes. Many servers disable 0-RTT or limit it to safe methods.
Connection migration
A TCP connection is identified by source address, source port, destination address and destination port. If any of them changes, the connection is gone. That happens all the time: a phone moves from Wi-Fi to mobile data, or a NAT device forgets an idle mapping and assigns a new external port, which is called NAT rebinding.
A QUIC connection is identified by its connection IDs, so it can survive. When the server sees a known connection ID arrive from a new address, it checks that the client can really receive at the new address. It sends a PATH_CHALLENGE frame with 8 random bytes, the client must echo them in a PATH_RESPONSE, and the connection continues.
The lab makes the router NAT the client's traffic with random port selection. The client makes one request, waits four seconds, and makes a second request on the same connection. In between, the router's NAT table is flushed, so the second request leaves through a new external port. The same was done with an HTTP/1.1 keep-alive connection over TCP:
request 1 on stream 0: complete
request 2 on stream 4: complete, same QUIC connection
request 1: status 200
request 2 failed: ConnectionResetError [Errno 104] Connection reset by peer
Here's what the server saw for QUIC. The client's address, as the server sees it, is the router's (198.51.100.1) because of the NAT:
0.000 198.51.100.1:1906 -> 198.51.100.10:8443 CRYPTO
0.004 198.51.100.10:8443 -> 198.51.100.1:1906 ACK, CRYPTO
0.005 198.51.100.1:1906 -> 198.51.100.10:8443 ACK, CRYPTO, NEW_CONNECTION_ID, STREAM, PADDING
0.005 198.51.100.10:8443 -> 198.51.100.1:1906 HANDSHAKE_DONE, NEW_CONNECTION_ID, STREAM
0.005 198.51.100.1:1906 -> 198.51.100.10:8443 STREAM
0.006 198.51.100.1:1906 -> 198.51.100.10:8443 STREAM
0.006 198.51.100.10:8443 -> 198.51.100.1:1906 STREAM
0.006 198.51.100.10:8443 -> 198.51.100.1:1906 STREAM
0.008 198.51.100.10:8443 -> 198.51.100.1:1906 ACK
0.008 198.51.100.1:1906 -> 198.51.100.10:8443 ACK
4.014 198.51.100.1:44660 -> 198.51.100.10:8443 STREAM
4.015 198.51.100.10:8443 -> 198.51.100.1:44660 PATH_CHALLENGE, STREAM
4.015 198.51.100.1:44660 -> 198.51.100.10:8443 PATH_RESPONSE, STREAM
4.015 198.51.100.10:8443 -> 198.51.100.1:44660 ACK, STREAM
4.015 198.51.100.10:8443 -> 198.51.100.1:44660 STREAM
4.015 198.51.100.1:44660 -> 198.51.100.10:8443 CONNECTION_CLOSE
Look at the source port. The first request used one external port; after the flush, the client's next packet arrives from a different one. (The port numbers are random and will differ in every run.) The server recognizes the connection ID, answers the request, and at the same time sends a PATH_CHALLENGE, which the client answers with a PATH_RESPONSE. Request 2 completes on the same connection. While a new path is still unvalidated, the server limits itself to three times the bytes it received from that address, so a spoofed address can't be used to aim large replies at a victim.
TCP had no such luck:
4.206 198.51.100.1:21861 -> 198.51.100.10:443 ··········S· len=0
4.206 198.51.100.10:443 -> 198.51.100.1:21861 ·······A··S· len=0
4.206 198.51.100.1:21861 -> 198.51.100.10:443 ·······A···· len=0
4.206 198.51.100.1:21861 -> 198.51.100.10:443 ·······AP··· len=1533
4.206 198.51.100.10:443 -> 198.51.100.1:21861 ·······A···· len=0
4.207 198.51.100.10:443 -> 198.51.100.1:21861 ·······AP··· len=1884
4.207 198.51.100.1:21861 -> 198.51.100.10:443 ·······A···· len=0
4.207 198.51.100.1:21861 -> 198.51.100.10:443 ·······AP··· len=80
4.207 198.51.100.1:21861 -> 198.51.100.10:443 ·······AP··· len=90
4.207 198.51.100.10:443 -> 198.51.100.1:21861 ·······AP··· len=279
4.207 198.51.100.10:443 -> 198.51.100.1:21861 ·······AP··· len=279
4.208 198.51.100.1:21861 -> 198.51.100.10:443 ·······A···· len=0
4.208 198.51.100.10:443 -> 198.51.100.1:21861 ·······AP··· len=2291
4.208 198.51.100.1:21861 -> 198.51.100.10:443 ·······A···· len=0
8.218 198.51.100.1:60384 -> 198.51.100.10:443 ·······AP··· len=90
8.218 198.51.100.10:443 -> 198.51.100.1:60384 ·········R·· len=0
The flag strings are tshark's, as explained in article 77: one position per flag, with S for SYN, A for ACK, P for PSH and R for RST. The first group is the handshake, TLS and the first request; the last two lines are the second request, four seconds later, from a new port.
The second request's packet arrived from a new port. To the server, that's a segment for a connection that doesn't exist, so it answered with a reset (the R flag), exactly as article 62 describes. The client had to open a new connection.
QUIC also supports deliberate migration: a phone can start using its mobile address on purpose, switching to a fresh connection ID so an observer can't link the old path and the new one. In version 1 only the client may migrate, and only one path carries data at a time. Multipath QUIC (RFC 10069) lets a connection use several paths at once, the way Multipath TCP does (article 87).
What the network can still measure
Operators used to estimate latency by watching TCP sequence and ACK numbers pass by. QUIC hides those, so it offers one optional bit for this: the spin bit in the short header. Each side flips it once per round trip, so an observer can measure the RTT by timing the flips. Endpoints may choose not to use it, and RFC 9000 requires them to disable it on at least one in every 16 connections, so the bit doesn't become something networks depend on. Beyond that, the network sees packet sizes and timing, and nothing else.
HTTP/3
HTTP/3 (RFC 9114) keeps HTTP's meaning (methods, status codes, headers) and maps it onto QUIC:
- Each request and response uses its own bidirectional stream, so there's no head-of-line blocking between requests.
- HTTP/2's own stream layer and flow control are gone, because QUIC provides them.
- Header compression is QPACK instead of HPACK (HTTP/2's header compression). HPACK assumes every header block arrives in order, which QUIC streams no longer guarantee, so QPACK sends its table updates on separate streams.
- Server push exists in the specification but browsers dropped support for it.
How a client finds out a server supports HTTP/3. The first visit usually goes over TCP. The server's response includes an Alt-Svc header such as Alt-Svc: h3=":443"; ma=86400, and the client switches to QUIC for later connections. The lab's nginx sends exactly that header. A faster way is the DNS HTTPS record (article 52), which can advertise alpn=h3 before the first connection. Browsers also race QUIC against TCP and quietly fall back to TCP when UDP is blocked, as some corporate firewalls do.
Deployment. All major browsers support HTTP/3, as do the big CDNs (content delivery networks) and servers such as nginx, Caddy and LiteSpeed. W3Techs reported in November 2026 that 41.2% of websites support HTTP/3. Command-line support depends on how your tools were built. The lab's curl lists HTTP/3 because it was built with OpenSSL 3.5's QUIC support and nghttp3:
Features: HTTP2 HTTP3
If HTTP3 is missing from your curl -V output, curl --http3 won't work, and you'll need a build with QUIC support.
QUIC is also used beyond the web: DNS over QUIC (article 55), SMB (Server Message Block, Windows file sharing) over QUIC in Windows Server, and MASQUE (Multiplexed Application Substrate over QUIC Encryption), which tunnels UDP and IP over HTTP/3 and is used by some privacy relays and VPNs.
Common questions
Is QUIC just "TCP over UDP"?
No. It gives the same guarantees as TCP plus TLS, but its design differs: independent streams, packet numbers that are never reused, an encrypted header and payload, connection IDs instead of a 4-tuple, and a handshake merged with TLS. UDP only carries it through the network.
Is QUIC unreliable because it uses UDP?
No. UDP doesn't retransmit, but QUIC does, on top of it. Data on QUIC streams is delivered completely and in order within each stream, just like TCP. QUIC can also carry unreliable datagrams (RFC 9221) when an application asks for them, for example for real-time media.
Can I use QUIC without TLS?
Not with standard QUIC. TLS 1.3 is built into the handshake and every QUIC connection is encrypted. That's a deliberate choice, both for privacy and to stop middleboxes from depending on transport details.
Why does my firewall team dislike QUIC?
Because they can't see inside it. Tools that inspected TCP flags, sequence numbers or decrypted TLS through a proxy don't work on QUIC, so some networks block UDP port 443 to force browsers back to TCP. Browsers fall back automatically, so blocking it works, at the cost of slower connections.
Is QUIC always faster than TCP?
No. It saves a round trip on new connections and avoids head-of-line blocking under loss, which helps most on high-latency or lossy links. On a fast, clean network with long-lived connections the difference is small. QUIC can also use more CPU than kernel TCP, because it runs in user space and does more work per packet. Kernel features such as UDP segmentation and receive offload (GSO and GRO, which let the kernel handle many datagrams as one large buffer) narrow that gap.
Why does tshark decode my Initial packets but not the rest without keys?
Initial packet keys are derived from public information: the destination connection ID and a constant in RFC 9001. Handshake and 1-RTT keys come from the TLS key exchange, which an observer can't reproduce. That's also why the server name in the ClientHello is visible unless the client uses ECH.
Does QUIC replace TCP in the kernel?
No. TCP stays the default for most traffic, and QUIC implementations are libraries inside applications (in browsers, quiche, msquic, ngtcp2, OpenSSL and others). An in-kernel QUIC implementation for kernel users such as SMB and NFS (Network File System) has been under review for Linux, but applications will keep shipping their own QUIC for the foreseeable future.
Summary
- QUIC is a transport protocol over UDP that combines reliability, congestion control, multiplexed streams and TLS 1.3. HTTP/3 is HTTP over QUIC. Version 1 is RFC 9000, with RFCs 9001, 9002, 9114 and others.
- It was designed to cut handshake latency, remove head-of-line blocking between streams, resist middlebox ossification and evolve in user space.
- Connections are identified by connection IDs. Only the header form, type, version, connection IDs and the optional spin bit are visible to the network. Initial packets can be decrypted by anyone, so the SNI is visible without ECH.
- Measured in the lab: about 3 round trips to the first response byte for TCP plus TLS 1.3, 2 for QUIC, and about 1 (with noisier timings) for QUIC with 0-RTT. 0-RTT data can be replayed, so use it only for safe requests.
- Packet numbers are never reused, ACKs carry many ranges plus the ACK delay, and congestion control is pluggable.
- Connections survive address changes: in the lab, NAT rebinding reset a TCP connection, while QUIC validated the new path with PATH_CHALLENGE and PATH_RESPONSE and carried on.
- Clients discover HTTP/3 through
Alt-Svcor DNS HTTPS records and fall back to TCP when UDP is blocked.
Practice questions
1. A new HTTPS connection crosses a 150 ms round-trip path. Roughly how long until the first response byte with HTTP/2 over TCP and TLS 1.3, with HTTP/3, and with HTTP/3 using 0-RTT, ignoring processing time?
Answer
About 450 ms (3 round trips), 300 ms (2) and 150 ms (1). The lab's measured medians at 150 ms, in the table above, are close to those, plus some processing time, which is largest in the Python code used for 0-RTT.
2. Why must a QUIC client pad its Initial datagrams to at least 1,200 bytes?
Answer
Two reasons. It confirms the path can carry datagrams of at least that size, which QUIC needs. And it limits amplification: before validating the client's address, a server may send at most three times the bytes it received, so a large first datagram lets the server send its certificate flight without becoming a tool for reflecting traffic at a spoofed victim.
3. An HTTP/3 page loads 30 images on one connection, and one packet carrying part of image 7 is lost. Which images are delayed? What would happen with HTTP/2?
Answer
With HTTP/3, only image 7's stream waits for the retransmission, and the other images keep being delivered. With HTTP/2 over TCP, all the data behind the lost bytes in TCP's single byte stream waits, so every image (and anything else on that connection) stalls until the retransmission arrives.
4. A server accepts 0-RTT for every request. Give an example of a request that could cause harm, and say what the server should do instead.
Answer
A POST that transfers money or places an order. An attacker could replay the captured first flight and make the server process it twice. The server should accept 0-RTT only for idempotent, safe requests such as GET of public content, and answer others with 425 Too Early so the client retries after the handshake, or disable 0-RTT entirely.
5. A phone on Wi-Fi has a QUIC connection and a TCP connection to the same server. It switches to mobile data. What happens to each?
Answer
The TCP connection breaks, because its source address changed and the server doesn't recognize segments from the new address (it sends a reset or the connection times out). The QUIC connection can migrate: the phone keeps sending with the same connection, usually switching to a fresh connection ID, and the server validates the new address with PATH_CHALLENGE and PATH_RESPONSE before sending at full speed.
6. In the captured handshake, which packet first carried the HTTP request, and why does that save time compared with TCP?
Answer
Packet 3 (with more STREAM data in packet 4), sent right after the server's handshake flight arrived, together with the client's TLS Finished. With TCP plus TLS 1.3, the client must first finish TCP's handshake (one round trip) before even starting TLS, so the request leaves one round trip later.
7. Why can an operator no longer measure RTT by matching sequence and ACK numbers on QUIC traffic? What does QUIC offer instead?
Answer
Packet numbers are hidden by header protection and ACKs are inside the encrypted payload, so an observer can't match data to acknowledgments. QUIC offers the optional spin bit, which each side flips once per round trip, so an observer can estimate the RTT from the timing of the flips. Some connections disable it.

More in TCP/IP Course
Quiz: TCP/IP Delicate Details
Twenty-five questions on the details that catch out experienced engineers: sequence numbers for SYN and FIN, TIME_WAIT versus tcp_fin_timeout, Karn's algorithm, socket buffer doubling, even and odd ephemeral ports, IPv6 checksums and fragmentation, negative DNS caching, and capture filter traps.
Quiz: TCP/IP Interview Questions
Thirty-three networking questions of the kind asked in developer, SRE and network engineering interviews: what happens when you load a URL, TCP versus UDP, handshakes, closing and TIME_WAIT, subnetting, NAT, DNS, MTU problems, congestion, TLS and QUIC, and debugging slow or failing connections.
Quiz: TCP/IP Course Final Exam (All Parts)
The final exam for the TCP/IP course: thirty questions across all fourteen parts, from packets and addressing through Ethernet, ARP, IP, DHCP, NAT, ICMP, UDP, DNS, TCP connections, reliability, congestion control, security, QUIC and troubleshooting.
Quiz: Modern Transports and Troubleshooting (TCP/IP Part 14)
Review modern transports and troubleshooting: QUIC packets, handshakes, 0-RTT, streams and connection migration, HTTP/3, Multipath TCP, SCTP multihoming, and a layered method for diagnosing real network faults.
Discussion
Sign in to ask a question or share what you learned.