Lab 4 · HTTP & HTTPS
Make a page load fast
One HTML file, eight images, one question: how much time do the handshakes cost?
Shown in slow motion · every number is real.
Nothing loaded yet. Answer the guess, then load the page to draw its round trips.
Before anything loads: how many round trips happen before the first byte of HTML?
How many round trips happen before the first byte of HTML?
About this model
Simplified: nine files (1 HTML + 8 images), one 1-RTT TCP handshake and one 1-RTT TLS 1.3 handshake per new connection, 1 RTT per request, and a fixed 10 ms of server work per request served one at a time. Keep-alive ×6 assumes the browser’s six connections were already open (warm), which is why the images skip the handshake there. A real browser overlaps more work; these numbers isolate the cost of setting up connections.