Learn

VISUAL GUIDE · FOUNDATIONS & ESTIMATION

Follow a web request

Step 3 of 10: Open a connection across the ocean

STEP 3 / 10ORIGINAL SKETCH
connect, GET /BrowserMumbaiDNS resolvercaches answersAuthoritativeDNSApp serverVirginia!~200 ms away
A browser looks up a name through a DNS resolver, opens a connection to a distant app server that queries a database, and later goes through a nearby edge that keeps a warm connection to the server.

Where the time goesIllustrative · see assumptions

  • DNS lookup80 ms
  • TCP handshake (1 round trip)200 ms

Total ≈ 280 ms

3 / 10
  1. Slow page
  2. DNS lookup
  3. TCP setup
  4. TLS setup
  5. Request sent
  6. Server work
  7. Response
  8. Reuse
  9. Nearby edge
  10. Fix the query

STEP 3 OF 10 · TCP SETUP

Open a connection across the ocean

With an IP address in hand, the browser opens a TCP connection. The handshake needs a full round trip before any data can flow: a packet to Virginia and an answer back.

Nothing is slow here in the usual sense. The time is distance. Light in fibre plus routing between Mumbai and Virginia costs roughly 200 ms per round trip, and no server upgrade changes that.

Why it matters. Every round trip to a distant server costs the full distance again. Counting round trips is the quickest way to estimate network time.