Lesson 1 of 6

Ask for a page

Trail Notes is a fictional website where people read hiking guides. Imagine opening https://trailnotes.example/guide and follow one request. For this lesson, assume the browser already knows the server's address.

  1. Browser
  2. Trail Notes server
The browser sends GET /guide. The server returns 200 OK and the guide HTML.
  1. The browser is the client. It sends the request over a secure connection.
  2. The server reads the path /guide and sends a response. Status 200 OK indicates success, and the response body contains the HTML.
  3. The browser renders the HTML. It may ask for styles or images in additional requests, using the same connection when possible.

Predict. An established connection has a 50 ms round-trip time. The server takes 20 ms to produce a small response. What is the estimated time from sending the request to receiving the response? What might a new connection add?

Reveal the answer

About 70 ms in this model. The outbound request and inbound response use one network round trip, and server work adds another 20 ms. This estimate omits payload transfer time and browser rendering. A new HTTPS connection can add connection and encryption setup. How much it adds depends on the protocol and whether an earlier session can be resumed.

Next lesson