What Happens When You Type a URL
"What happens when you type google.com in the browser and press Enter?" is the most asked networking question of all. It is a test of whether you can connect everything: DNS (turning names into addresses), TCP (reliable delivery), TLS (encryption), HTTP, caching and rendering (drawing the page). A good answer is a short story in order, with one sentence per step and the right protocol names.
After this section you can tell that story in about two minutes, go deeper on any step if the interviewer asks, and say where each step can fail or be skipped.
Topics in this section
- Step 1: the browser checks its caches
- Step 2: DNS lookup
- Step 3: TCP connection (HTTP/1.1 and HTTP/2)
- Step 4: TLS handshake for HTTPS
- Step 5: HTTP request and response
- Step 6: rendering