TL;DR: Your browser turns "google.com" into an IP address (DNS), opens a connection (TCP), secures it (TLS), asks for the page (HTTP), then builds the page from raw HTML, CSS, and JavaScript (rendering). All of it usually finishes in under a second.
It feels instant. You type eleven characters, tap Enter, and Google is just... there.
But between your keypress and those pixels, your computer pulls off one of the most choreographed routines in all of computing. Dozens of steps, several round trips across the planet, and it all finishes before you can blink.
Let's slow it down and walk through every step — for once.
1. First, your browser checks its own memory
Before anything leaves your computer, the browser asks itself a lazy question: "Have I done this recently?"
Browsers, your operating system, and even your router keep little cheat sheets of recent lookups. If you visited google.com an hour ago, the answer might already be sitting in a cache, and a bunch of the steps below get skipped entirely.
Let's assume it's a fresh lookup, so we do the whole journey.
2. DNS: turning a name into a number
Here's the thing most people miss: computers don't understand "google.com." They only understand IP addresses — strings of numbers like 142.250.190.14.
So the browser needs a translator. That translator is DNS, the Domain Name System. Think of it as the phone book of the internet: you give it a name, it gives you back a number.
The lookup happens in a chain, and it's fast:
- Your browser asks a recursive resolver (usually run by your ISP or a service like 1.1.1.1 or 8.8.8.8): "What's the IP for google.com?"
- The resolver asks a root server: "Who handles .com?"
- Then the .com (TLD) server: "Who handles google.com?"
- Then Google's own nameserver, which finally answers: "142.250.190.14."
Each answer gets cached along the way, which is why repeat visits skip most of this.
You can watch it happen yourself:
dig google.com +short
Run that in a terminal and you'll see raw IP addresses come back. That's DNS, live.
3. TCP: shaking hands before talking
Now the browser knows where to go. But it can't just start shouting data at the server. First it opens a proper connection using TCP — and TCP is polite about it.
It performs the famous three-way handshake:
- Your computer sends SYN — "Hey, can we talk?"
- The server replies SYN-ACK — "Sure! Can you hear me?"
- Your computer sends ACK — "Loud and clear."
Only after all three messages does any real data flow. It's like calling a friend: you wait for them to say "hello?" before launching into your story. Rude to do otherwise, and TCP agrees.
4. TLS: the secret handshake (this is the "s" in https)
Notice the URL starts with https, not http. That little "s" means everything between you and Google must be encrypted — no eavesdropping allowed.
So before a single byte of page data moves, your browser and Google's server perform a TLS handshake. The clever part: they agree on secret encryption keys without ever sending those keys out in the open. It's the digital equivalent of agreeing on a secret code while someone is listening to every word you say.
Modern TLS (version 1.3) pulls this off in just one round trip. When you see the little padlock icon in your address bar, this handshake already happened.
5. HTTP: finally asking for the page
Now — after DNS, TCP, and TLS — the browser can finally ask for what it actually wants. The request is plain text, and honestly readable:
GET / HTTP/1.1
Host: www.google.com
User-Agent: Mozilla/5.0 ...
Accept: text/html
Translation: "Give me your homepage. Here's what kind of browser I am, and I can handle HTML."
All that ceremony, just to send a few lines of text. But that text is the entire point of the trip.
6. Google's side of the story
Your request doesn't land on "a computer at Google." It lands on a load balancer — a traffic cop that spreads millions of requests across thousands of servers so no single machine melts down.
One of those servers takes your request, builds the HTML for the homepage, and sends it back with a status line:
HTTP/1.1 200 OK
Content-Type: text/html
That 200 OK is the server saying: "Got it, here's your page." (And now you know what those mysterious 404s and 500s are — same conversation, unhappier ending.)
7. The trip back home
The response doesn't arrive as one neat package. It's chopped into packets that travel back across the internet, possibly taking different routes, and your computer reassembles them in the right order — like getting a jigsaw puzzle in the mail, one piece per envelope.
Then it decrypts everything (remember the TLS keys from step 4) and hands the raw HTML to the browser.
8. Rendering: building the page from scratch
This is where the browser earns its keep. It doesn't "open" the page — it builds it, piece by piece:
- Parse the HTML into a tree structure called the DOM (Document Object Model).
- Fetch the CSS, parse it into the CSSOM, and combine the two into a render tree — what should be shown, and how it should look.
- Layout — calculate exactly where every element goes on screen. Every box, every margin.
- Paint and composite — turn it all into actual pixels.
Then JavaScript runs, images and fonts load in, and the page becomes interactive. The Google homepage you see was literally constructed from raw materials in a few hundred milliseconds.
9. Why the second visit feels faster
It's not your imagination — it really is faster. Caching.
Your browser keeps copies of DNS results, TLS session details, and page assets like images and stylesheets. On your next visit, half the steps above get skipped because the answers are already sitting nearby. The internet's dirty little secret is that it's fast mostly because it's lazy.
The whole thing, in one breath
Eleven characters. One keypress. And behind it: a phone-book lookup spanning the globe, two separate handshakes, an encrypted tunnel negotiated in the open, a polite request written in plain text, a traffic cop routing you to one of thousands of servers, a jigsaw puzzle mailed back across the planet — and a browser building a page from scratch.
All in under a second.
Next time it feels instant, you'll know better.
What's one "simple" thing in tech you'd love to see explained like this? Drop it in the comments — the best suggestions might become the next post.
Top comments (0)