How the Internet Actually Works
Every click triggers a chain reaction across the globe. Here's how DNS, HTTP, TCP/IP, servers, CDNs, and routing actually work — the infrastructure behind the internet, explained simply.
You typed "google.com" and a miracle happened
You open your laptop, type "google.com" into your browser, and hit Enter. In under 300 milliseconds, a fully rendered page appears. It feels instant. Effortless.
But in that fraction of a second, your request traveled through copper wires, fiber-optic cables, and maybe a satellite. It got translated from a human-readable name into a numeric address. It was chopped into tiny packets, each one finding its own route across a global network of interconnected machines. Those packets arrived at a Google data centre — possibly thousands of miles away — where a server assembled your response and sent it back, piece by piece, through a completely different route. Your browser stitched everything together and painted the page you see.
All of that happened faster than you blinked. And it happens billions of times per day for billions of people. That is the internet.
The internet is just computers talking to each other
Strip away the jargon, and the internet is a global network of computers that agreed on a common language for exchanging information. That's it. Every website, every video call, every email — they're all computers sending messages to other computers using shared rules called protocols.
Think of it like the postal system. You write a letter, put an address on it, drop it in a mailbox, and the postal service figures out how to get it to the right house. You don't need to know the route. You just need the address and the shared system.
Step 1: DNS — Translating names into addresses
You type "google.com" because it is easy to remember. But computers don't understand names — they understand numbers. Every device on the internet has a unique numerical address called an IP address (like 142.250.80.46).
DNS (Domain Name System) is the internet's phone book. It translates "google.com" into 142.250.80.46 so your computer knows where to send the request.
This lookup happens in milliseconds. And once your computer knows the IP address, it caches (remembers) it so it doesn't have to ask again for a while.
There Are No Dumb Questions
Why don't we just use IP addresses directly?
You can! Type 142.250.80.46 into your browser and you'll likely reach Google. But imagine memorizing a different number for every website you visit. DNS exists because humans are good with names and bad with numbers.
What happens if DNS goes down?
If DNS fails, your browser can't translate names to addresses — so websites "disappear" even though the servers are fine. In October 2021, Facebook's DNS configuration broke and the entire platform — Facebook, Instagram, WhatsApp — went offline for about 6 hours for billions of users. The servers were running. Nobody could find them.
Step 2: TCP/IP — The rules of the conversation
Once your computer has the IP address, it needs to send a request. But how do two computers on opposite sides of the planet exchange data reliably?
They use TCP/IP — two protocols that work together:
| Protocol | What it does | Analogy |
|---|---|---|
| IP (Internet Protocol) | Addresses and routes packets to the right destination | The address on an envelope — tells the postal system where to deliver |
| TCP (Transmission Control Protocol) | Ensures all packets arrive, in order, without errors | The tracking number + signature confirmation — guarantees delivery |
Here is the key insight: your data doesn't travel as one big chunk. TCP breaks it into small packets (typically 1,500 bytes each), numbers them, and sends them off. Each packet may take a different route across the network. When they arrive at the destination, TCP reassembles them in the correct order and asks for any missing packets to be resent.
Packet delivery
25 XPStep 3: HTTP — The language of the web
Your computer now knows the address (DNS) and how to deliver packets reliably (TCP/IP). But what does it actually say to the server? That's where HTTP (HyperText Transfer Protocol) comes in.
HTTP defines the format of the conversation between your browser and a web server:
Your browser sends a request: "GET me the homepage of google.com"
The server processes it: finds the right page, gathers the HTML, CSS, images
The server sends a response: "Here's the page — status 200 (OK)"
Your browser renders it: paints the HTML, applies styles, loads images
Common HTTP status codes you've probably seen:
| Code | Meaning | When you see it |
|---|---|---|
| 200 | OK — everything worked | Every successful page load (you just don't see it) |
| 301 | Moved Permanently — this page has a new address | Old URLs that redirect to new ones |
| 404 | Not Found — this page doesn't exist | Broken links, mistyped URLs |
| 500 | Internal Server Error — something broke on the server | Server crashes, bugs in code |
| 503 | Service Unavailable — server is overloaded or down | Traffic spikes, maintenance |
Step 4: Servers — The computers that answer your requests
When your request reaches its destination, it arrives at a server — a computer whose only job is to listen for requests and send back responses. Servers run 24/7 in data centres.
A single Google data centre can hold hundreds of thousands of servers stacked in rows of racks in warehouses the size of football stadiums. They are cooled by massive air conditioning systems (or in some cases, ocean water). Google, Amazon, and Microsoft each operate dozens of these facilities worldwide.
The server that handles your request might be running web server software like Nginx or Apache, which receives the HTTP request, fetches the right content (from a database, from files, from another service), and sends back the response.
There Are No Dumb Questions
Is a server just a regular computer?
Physically, yes — a server is a computer with a processor, memory, and storage, just like your laptop. But it's optimized for running 24/7, handling thousands of simultaneous connections, and it has no screen or keyboard attached. You interact with it remotely.
Can I run a server on my laptop?
Absolutely. Developers do this every day during development. Any computer can be a server — it just needs software that listens for incoming requests. The difference with a "real" server is reliability, speed, and scale.
Step 5: Routing — How packets find their way
Between your computer and the server, your packets pass through multiple routers — devices that read the destination IP address on each packet and forward it toward the next step in the journey.
No single router knows the full path. Each router only knows: "For this destination, the best next hop is this direction." Packets get passed from router to router like a relay race, each handoff getting closer to the destination.
This is why the internet is resilient. If one path is congested or broken, routers automatically find alternative routes — just like GPS rerouting you around a traffic jam.
Step 6: CDNs — Bringing content closer to you
If you're in Tokyo and a website's server is in Virginia, every request has to cross the Pacific Ocean. That adds latency (delay). CDNs (Content Delivery Networks) solve this by caching copies of content on servers around the world.
When you visit a site using a CDN, you're actually served content from the nearest CDN server — called an edge server — not from the origin server thousands of miles away.
✗ Without AI
- ✗Every request goes to origin server in Virginia
- ✗User in Tokyo waits 200+ ms for every asset
- ✗Origin server handles all global traffic
- ✗One server location = one point of failure
✓ With AI
- ✓Static content cached on servers in 200+ cities
- ✓User in Tokyo gets content from a Tokyo edge server in 10-20 ms
- ✓Load distributed across global network
- ✓Multiple locations = built-in redundancy
Major CDN providers include Cloudflare, Akamai, AWS CloudFront, and Fastly. Most of the websites you visit daily use a CDN without you knowing.
Trace the journey
25 XPPutting it all together
Here's the full journey of a single web request:
Browser checks its local DNS cache first
Translates domain name to IP address via recursive DNS resolution
Your computer and the server establish a reliable connection (SYN, SYN-ACK, ACK)
If HTTPS, encryption keys are exchanged to secure the connection
Browser sends GET request, server processes it and sends back HTML, CSS, JS
Browser parses HTML, applies CSS, executes JavaScript, paints the page
All of this — DNS, TCP, TLS, HTTP, routing, rendering — happens in under a second for most websites. The infrastructure that makes this possible is one of humanity's most complex engineering achievements.
The physical internet
The internet is not wireless or "in the cloud" in any abstract sense. It runs on physical infrastructure:
- 550+ undersea cables spanning 1.4 million km across ocean floors, carrying 99% of intercontinental data (TeleGeography, 2024)
- Millions of miles of fiber-optic cable on land
- Internet Exchange Points (IXPs) — buildings where networks physically connect and exchange traffic
- Data centres — warehouses full of servers, from Google's massive campuses to small colocation facilities
When a cable is damaged — by a ship's anchor, an earthquake, or a shark bite (yes, this happens) — internet traffic is rerouted through other cables. But in some regions with few cables, a single break can slow or cut internet access for entire countries.
Explain it to a 10-year-old
50 XPThere Are No Dumb Questions
Who owns the internet?
Nobody — and everybody. The physical cables are owned by telecom companies. The protocols (TCP/IP, HTTP, DNS) are maintained by non-profit organizations like the IETF and ICANN. No single company, government, or person controls the internet as a whole. That decentralized design is what makes it resilient.
What happens when "the internet goes down"?
The internet as a whole almost never goes down — it was designed to survive nuclear war (literally — its precursor, ARPANET, was a US military project). When people say "the internet is down," they usually mean their ISP is having issues, or a major service like Cloudflare or AWS is experiencing an outage that takes many websites offline simultaneously.
Back to that 300-millisecond miracle
When you typed "google.com" and the page appeared, you triggered a chain reaction involving DNS servers, TCP packet splitting, router relay races across undersea cables, HTTP request-response cycles, and CDN edge servers — all coordinated by protocols designed decades ago that still power everything we do online. The internet is not magic. It is plumbing — extraordinary, global-scale plumbing that humanity built one protocol at a time.
Key takeaways
- DNS translates human-readable domain names into IP addresses — the internet's phone book
- TCP/IP breaks data into packets, routes them independently, and reassembles them reliably at the destination
- HTTP/HTTPS defines how browsers and servers communicate; HTTPS adds encryption for security
- Servers are computers that listen for requests and send responses, running 24/7 in data centres
- Routers forward packets hop-by-hop toward their destination, automatically rerouting around failures
- CDNs cache content at edge servers worldwide, reducing latency by serving content from nearby locations
- The physical internet runs on 550+ undersea cables, millions of miles of fiber, and massive data centres — it is engineering, not magic
Knowledge Check
1.When you type 'google.com' into your browser, what is the first thing that needs to happen before your computer can contact Google's server?
2.What does TCP do when sending data across the internet?
3.A user in Tokyo visits a US-based website that uses a CDN. Where does the content most likely come from?
4.What is the difference between HTTP and HTTPS?