Course contentsShow
← Web Development
Lesson 2129 of 2,98239. Network PerformanceFree lesson

0-RTT Connection Establishment

Learn how HTTP/3 enables zero round-trip time resumption for faster reconnections.

0-RTT Connection Establishment

You'll learn how HTTP/3 enables instant reconnections without waiting for handshake round-trips.

The Problem with Traditional Handshakes

Normally, when your browser reconnects to a server, it must complete a handshake dance before sending real data. This involves:

  1. Client sends "hello"
  2. Server responds with "hello back"
  3. Keys are exchanged and verified
  4. Finally, actual data can be sent

That's multiple round-trips eating precious milliseconds, especially over high-latency connections.

How 0-RTT Works

0-RTT (Zero Round-Trip Time) connection establishment lets your browser skip the handshake when reconnecting to a previously visited server. It's like having a VIP pass that lets you walk straight into a venue you've been to before—no ID check needed.

Here's what happens:

When you first visit a site using HTTP/3, the server sends session resumption data (a ticket). Your browser stores this securely. On your next visit, the browser immediately sends application data encrypted with the stored session keys—without waiting for the server to respond first.

The server recognizes the valid resumption ticket, decrypts your data instantly, and starts processing your request right away.

Real-World Impact

Think of a mobile user browsing on spotty LTE with 100ms latency. Without 0-RTT, that's 200-300ms added just for reconnecting. With 0-RTT, requests start processing immediately—making subsequent page loads feel instantaneous.

Important Trade-off

0-RTT data can be vulnerable to replay attacks (someone resending captured data), so it's typically restricted to safe, non-state-changing requests like GET operations.

Key Takeaway: HTTP/3's 0-RTT feature eliminates handshake delays for return visitors by reusing previously established session credentials, dramatically improving perceived performance on subsequent connections.