You type a web address and press Enter
Follow a single request from your keyboard to a server on another continent and back again, in the time it takes to blink.
Following the request, step by step
Scroll through. Each step is something that genuinely happens, with the time it typically takes.
- Step 01<1 ms
The URL is parsed
Your browser splits the address into scheme, host and path.
Typing an address triggers nothing on the network yet. The browser first checks whether the host is a search term or a real address, then breaks it into the parts it needs: how to connect, which machine to reach, and which resource to ask for.
- Step 021–50 ms
DNS lookup begins
The hostname is translated into an IP address.
Computers route by number, not by name. A resolver is asked for the IP address behind the hostname. If the answer is cached from a recent request, this is nearly instant; otherwise the resolver walks a hierarchy of name servers to find it.
- Step 0310–100 ms
A connection is opened
A TCP handshake and a TLS handshake establish a trusted channel.
The browser and server exchange messages to agree that both are ready to talk, then negotiate encryption. Certificates are checked so your browser knows it is talking to the real server and not an impostor. This round trip is often the largest single cost of loading a page.
- Step 0410–200 ms
The request travels
Your packets cross your router, your ISP and the wider internet.
Each packet carries a destination and hops from network to network. Routers only need to know the next sensible step, not the whole path. Physical distance matters: light in fibre takes real time to cross an ocean.
- Step 055–500 ms
The server responds
The server processes the request and sends a response.
A load balancer picks a healthy server. That server may query a database, call other services, or assemble a page from cached fragments. The work itself might take microseconds; queueing and coordination usually dominate.
- Step 0650–500 ms
The browser renders
HTML is parsed, styles applied, layout calculated and pixels drawn.
The browser builds a document tree, works out how much space everything needs, and paints it. JavaScript can change all of this after the first paint, which is why pages often shift as they load.
Drive it yourself
The same sequence as a diagram you can play and step through.
1 · Build Frame
An application's data is wrapped in headers that name the source, destination and channel, then handed to the wireless stack.
Select any part of the diagram to read what it does. Play the sequence, or step through it yourself.
More scenarios
You tap the shutter button
From a tap on glass to a finished JPEG in under a second, a chain of hardware and software decisions is made.
Follow the sequence5 steps · ~120 ms to display onYou press the power button
A short press that looks trivial hides a careful dance between the power management chip, the processor and every subsystem attached to it.
Follow the sequence