InfoQSteef-Jan Wiggers5 min readintermediate
Cloudflare Measures Origin TLS Preferences, Cutting Handshake Retries from 52% to 3.7%
Summary
Cloudflare replaced a static assumption about origin TLS preferences with per-origin measurement, significantly reducing HelloRetryRequests (HRR) during TLS 1.3 handshakes. This optimization cut HRR from 52% to 3.7% for scanned origins and improved p90 handshake latency by over 150ms.
- TLS 1.3 requires clients to commit to a key agreement algorithm in the first ClientHello.
- An incorrect client guess results in a HelloRetryRequest (HRR) from the server, adding a round trip.
- Cloudflare moved from a static assumption to dynamically measuring each origin's TLS preferences.
- This change reduced HRR occurrences on scanned origins from 52% to 3.7%.
Engineers managing high-traffic services or CDNs should care about this as it demonstrates a practical, data-driven approach to significantly improve TLS handshake performance and reduce overhead.
6/10




