Article
When Certificates Outgrow the Budget: Post-Quantum TLS and QUIC’s 3× Rule
Post-quantum certificates are big, and QUIC lets a server send only three times what it has received before the client proves its address. I measured where that starts to cost a round trip.
4 min read
An ML-DSA-44 certificate chain is about 10 KB. Today's ECDSA chain is about 1 KB. On QUIC, that difference doesn't just cost bandwidth: past a certain size, the server is simply not allowed to finish its first flight, and the handshake takes an extra round trip. I measured where that line is, to the byte.
The rule behind it#
QUIC runs over UDP, so a server can't be sure a client's address is real until the client replies. To stop attackers from bouncing large responses off a server at a spoofed victim, RFC 9000 (section 8.1) caps an unvalidated server at three times the bytes it has received.
A client's first flight is small: one or two padded Initial datagrams. Three times that is the budget the server has for everything it must send before the client answers: ServerHello, encrypted extensions, the certificate chain, its signature and packet overhead. If the certificate doesn't fit, the server stops, waits for the client's next packet, and the handshake costs one more round trip.
The setup#
This was my bonus project for Advanced Computer Networks (CSC11004) at HCMUS.
- Two Linux network namespaces in a VM, with
tc netemadding delay and loss, and segmentation offloads off so netem sees every packet. - A minimal client and server on quic-go, full handshakes only, no resumption.
- Certificate chains padded from 1 B to 20,000 B, plus real ML-DSA-44, -65 and -87 chains made with OpenSSL.
- Two key exchanges: X25519 and the hybrid X25519MLKEM768.
- A control server built with the amplification factor raised to 1,000, so any extra delay can be pinned on the 3× limit itself.
- 27,700 handshakes, with bootstrap confidence intervals.
Where the line is#
With X25519, the handshake stays at one round trip up to about 3,442 B of certificate data (certificate plus its signature message). With the hybrid exchange, up to about 6,060 B.
The obvious estimate, 3 × 1,200 B per client datagram, is off. Reading the constants from quic-go and checking them against packet logs gives a model that matches all 209 measured no-loss cells:
| Budget step (bytes) | X25519 | X25519MLKEM768 |
|---|---|---|
| Naive budget (3 × 1,200 per client datagram) | 3,600 | 7,200 |
| Client datagrams are padded to 1,280 B | +240 | +480 |
| ServerHello | -90 | -1,178 |
| EncryptedExtensions + Finished | -160 | -160 |
| Initial header, AEAD tag, ACK | -41 | -41 |
| Handshake packet headers and tags | -107 | -180 |
| Unused space in the first datagram | 0 | -61 |
| Certificate budget | 3,442 | 6,060 |
Two details made the edge hard to measure. quic-go adds a transport parameter of random length (0-15 bytes) to every handshake, so right at the threshold one or two round trips is a coin flip; the sweep steps in 16 B and the model is checked outside a 32 B band. And the hybrid ServerHello is so large that quic-go pads the first datagram instead of filling it, wasting 61 bytes.
The hybrid key exchange helps less than it looks. Its bigger ClientHello doubles the server's budget (3,840 → 7,680 B), but its ServerHello eats most of the gain: the threshold rises only 76%.
Real post-quantum chains don't fit#
| Chain | Certificate bytes | Fits X25519? | Fits hybrid? |
|---|---|---|---|
| ECDSA P-256 | 1,033 | yes | yes |
| ML-DSA-44 | 10,572 | no | no |
| ML-DSA-65 | 14,519 | no | no |
| ML-DSA-87 | 19,753 | no handshake at all | no handshake at all |
ML-DSA-87 never completes: quic-go refuses more than 16 KiB of handshake data, whether or not the 3× limit applies.
What it costs: usually one round trip, with two surprises#
At 300 ms RTT the penalty is only about 200 ms. The client's probe timer fires before the server's reply arrives, and its two padded probe packets add 7,680 B to the server's budget. The handshake then finishes on the probe instead of waiting a full extra round trip.
Under packet loss, a stuck server can go "deaf". A server at its limit can't even retransmit. If its ServerHello or the client's acknowledgement is lost, both sides wait for the client's timer. That long stall happened in 1.9%, 5.4% and 8.8% of handshakes at 1%, 3% and 5% loss.
What this doesn't show#
One QUIC stack (quic-go) on one VM. Loss was independent per packet, with no bursts. Padded certificates have the size of ML-DSA but not its signing cost. The 300 ms effect depends on quic-go's timer defaults. Certificate compression and QUIC's NEW_TOKEN mechanism, both of which could avoid the extra round trip, weren't measured.
Takeaways#
- The budget is predictable to the byte, so a server can know in advance whether a chain will cost an extra round trip: keep certificate data under about 3,400 B (X25519) or 6,000 B (hybrid).
- Every post-quantum chain I tested is past that line. Until compression or address-validation tokens are in place, plan for one extra round trip on the first post-quantum connection.