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.
- Browser
- Trail Notes server
- The browser is the client. It sends the request over a secure connection.
- The server reads the path
/guideand sends a response. Status200 OKindicates success, and the response body contains the HTML. - 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.