Skip to content
Optimal Lab

Networking · interactive

The TCP and TLS handshakes

Before a single byte of the page arrives, the browser and the server trade several messages, and each one has to cross the distance between them. Count the round trips, then move the server further away.

TCP + TLS 1.2

round trip 70 ms · 35 ms elapsed

BrowserServerSYN0ms
TCP TLS HTTP

Browser → server: SYN. 35 ms so far.

Protocol

How far away is the server?

1 of 8 messages
  1. 1

    SYN, SYN-ACK, ACK: both sides agree to talk and pick starting sequence numbers. One full round trip before anything else.

    1 round trip.

  2. 2

  3. 3

  4. 4