You type an address, press enter, and a page appears. Between those two moments roughly a dozen independent systems cooperate, most of them operated by people who have never heard of each other, and the whole thing usually finishes in less time than it takes to blink. Here is the whole sequence.
1. The browser works out what you meant
Before anything leaves your machine, the browser decides whether you typed an address or a search. It checks its own history and bookmarks, applies HSTS rules that force certain sites to HTTPS, and normalises the URL.
It then needs an IP address, because the network has no idea what a domain name is.
2. DNS: turning a name into a number
This is a cascade of caches, and the lookup stops at the first one that has an answer:
- The browser's own cache.
- The operating system cache, and the hosts file.
- Your resolver — usually your ISP's, or one you chose.
- The root servers, which know who handles
.com. - The TLD servers, which know which nameservers handle that domain.
- The authoritative nameserver, which has the actual answer.
Most lookups end at step one, two or three. A cold lookup going all the way to the bottom can take a few hundred milliseconds on its own — which is why DNS problems feel like "the internet is broken" rather than like one site failing. Our explainer on what DNS is and how it works covers this layer properly.
3. TCP: opening a connection
With an address, your machine opens a connection — a three-step introduction in which each side confirms the other is listening. One round trip, before a single byte of your actual request has moved.
Over HTTP/3 this step is folded into the next one, which is much of the point of HTTP/3.
4. TLS: agreeing how to keep it private
For an HTTPS site, another negotiation follows. The server presents a certificate, your browser checks it was issued by an authority it trusts and genuinely covers this domain, and the two sides agree on keys.
Another round trip or two. What this does and does not guarantee is worth knowing, and we cover it in what the padlock actually proves.
5. The request
Only now does your browser say what it wants — the path, the method, the headers, any cookies for that domain.
And it may not be talking to the website's own server at all. If the site uses a CDN, you reach a nearby edge server instead, which is the single biggest reason distant websites feel close. Our piece on what a CDN is covers that, and how undersea cables work covers what happens when it genuinely has to cross an ocean.
6. The server thinks
Somewhere a program decides what to send. It may read a database, check a cache, call other services, render a template. This is the part a developer controls, and the part that varies from a millisecond to several seconds.
7. The browser turns a reply into pixels
The HTML arrives and the browser:
- Parses it into a tree of elements.
- Discovers more things it needs — stylesheets, scripts, images, fonts — and requests those, repeating much of the above for each new domain involved.
- Builds a render tree from markup plus styles.
- Lays it out, calculating the position and size of everything.
- Paints it.
Scripts complicate this, because a script can change the document and so the browser may have to stop and wait for it. That is why a page whose HTML arrived in 80 milliseconds can still take three seconds to become usable — a gap we dig into in why software feels slower than it should.
Where it goes wrong, and what each failure looks like
| Step that failed | What you see |
|---|---|
| DNS | "Server not found" — the name never resolved |
| TCP | A long hang, then a timeout |
| TLS | A certificate warning |
| The server | A 500 error — you reached it, it broke |
| Routing | Some sites work, others do not |
Knowing which step produces which message turns "the internet is down" into a diagnosis, which is most of what separates someone who fixes it from someone who restarts the router and hopes.
Written by the WritePures newsroom. Spotted something that needs updating? Tell our editors.
0 Comments
Join the conversation
Replying toNo comments yet. Be the first to share your thoughts.