Level 0: Orientation & prerequisites · L0.3 Networking: TCP/IP, TLS, HTTP/2/3, QUIC
Counting round trips (a latency budget)
Add up DNS, TCP, TLS and request round trips for a first page load.
10 min · Free
What you take away
- A first page load is a handful of round trips: DNS, TCP, TLS, then the request itself.
- Multiply the round trips by the user's RTT before blaming the server — setup usually dominates a first visit.
- There are only three moves: remove trips, shorten trips, or overlap them.
- A repeat visit skips almost all of it, which is why first-visit numbers are the ones worth budgeting.
How the class is laid out
- The problem
- The simple version
- Where a first visit's time goes
- The only three moves
- TCP vs UDP
- TLS 1.3
- HTTP versions
- Latency budget
- Check your understanding