The internet is a global network of billions of computers and devices connected together, able to exchange data using a shared set of rules called protocols. When you load a webpage, watch a video, or send a message, data travels through cables and wireless signals across the world — often in under a second.
This guide explains how it all works, from physical cables to the page that appears in your browser.
The Internet in 30 Seconds
| What you do | What actually happens |
|---|---|
| Type a URL | Browser asks DNS for the IP address |
| DNS responds | Browser gets the server's IP (e.g. 93.184.216.34) |
| TCP handshake | Browser and server establish a reliable connection |
| HTTP request | Browser asks the server for the page |
| HTTP response | Server sends back HTML, CSS, JS files |
| Browser renders | Your screen shows the final page |
1. Physical Infrastructure — the "Roads" of the Internet
The internet isn't wireless magic. It runs on physical hardware:
[Your Device]
│
Wi-Fi / Ethernet
│
[Home Router]
│
Coaxial / Fibre cable
│
[ISP (Internet Service Provider)]
│
Undersea or underground fibre
│
[Internet Exchange Point (IXP)]
│
[Tier 1 Network Backbone]
│
[Destination Server / Data Centre]
Key hardware:
| Component | What it does |
|---|---|
| Router | Forwards data packets toward their destination |
| Switch | Connects devices within a local network (LAN) |
| Modem | Converts digital signals to the format your ISP transmits |
| Fibre optic cable | Carries data as pulses of light; backbone of the internet |
| Undersea cables | ~1.3 million km of cable connect continents |
| Data centre | Warehouses of servers that host websites, apps, and data |
| ISP | Internet Service Provider — your gateway to the global network |
| IXP | Internet Exchange Point — where different networks interconnect |
Fun fact: ~95% of all international internet traffic travels through undersea fibre-optic cables, not satellites.
2. IP Addresses — Every Device Has an Address
Every device on the internet needs a unique identifier so data can be sent to the right place: this is the IP address (Internet Protocol address).
IPv4 vs IPv6
| IPv4 | IPv6 | |
|---|---|---|
| Format | 4 decimal numbers (e.g. 192.168.1.1) |
8 groups of hex (e.g. 2001:0db8:85a3::8a2e:0370:7334) |
| Addresses | ~4.3 billion | 340 undecillion |
| Status | Running out | Replacement standard |
| Example | 93.184.216.34 |
2606:2800:220:1:248:1893:25c8:1946 |
Public vs Private IP
| Type | Example | Used for |
|---|---|---|
| Private | 192.168.x.x, 10.x.x.x |
Devices inside your home/office network |
| Public | 93.184.216.34 |
Identifying your network on the internet |
Your router uses NAT (Network Address Translation) to let all your home devices share one public IP.
3. DNS — the Phone Book of the Internet
Humans remember names like google.com. Computers need numbers like 142.250.185.78. DNS (Domain Name System) translates between them.
DNS Lookup Step by Step
Browser: "What is the IP for google.com?"
│
▼
[DNS Resolver] (your ISP or 8.8.8.8)
│ Not cached? Ask up the chain:
▼
[Root Name Server] → "Ask .com TLD server"
│
▼
[.com TLD Server] → "Ask Google's authoritative DNS"
│
▼
[Google's DNS] → "142.250.185.78"
│
▼
Browser: "Got it — connecting to 142.250.185.78"
DNS Record Types
| Record | Purpose | Example |
|---|---|---|
| A | Domain → IPv4 address | google.com → 142.250.185.78 |
| AAAA | Domain → IPv6 address | google.com → 2607:f8b0:4004:c1b::65 |
| CNAME | Alias to another domain | www.example.com → example.com |
| MX | Mail server for a domain | example.com → mail.example.com |
| TXT | Arbitrary text (verification, SPF) | "v=spf1 include:google.com ~all" |
| NS | Authoritative name servers | example.com → ns1.cloudflare.com |
| TTL | How long to cache the result | 3600 (seconds) |
DNS results are cached — your browser, OS, and resolver all remember recent lookups to speed up future requests.
4. Packets — How Data Actually Travels
Data on the internet doesn't travel in one continuous stream. It's broken into small chunks called packets.
Why Packets?
| Single stream | Packets |
|---|---|
| If connection breaks, everything fails | Each packet can take a different route |
| One user monopolises the line | Bandwidth shared efficiently |
| No error checking per segment | Each packet can be verified and retransmitted |
Anatomy of a Packet
┌──────────────────────────────────────────┐
│ HEADER │
│ Source IP: 192.168.1.5 │
│ Destination IP: 93.184.216.34 │
│ Protocol: TCP │
│ Sequence number: 1024 │
│ TTL (Time To Live): 64 │
├──────────────────────────────────────────┤
│ PAYLOAD │
│ (chunk of actual data — e.g. part of │
│ an HTML file) │
└──────────────────────────────────────────┘
Routers read the header and forward each packet toward the destination — like postal sorting offices reading addresses on envelopes.
5. TCP/IP — the Rules of the Road
TCP/IP is the suite of protocols that governs how data is transmitted. The name comes from its two most important protocols:
TCP vs UDP
| TCP | UDP | |
|---|---|---|
| Full name | Transmission Control Protocol | User Datagram Protocol |
| Connection | Establishes connection first (handshake) | No connection setup |
| Reliability | Guaranteed delivery, ordered packets | Best-effort, no guarantees |
| Speed | Slower (overhead for reliability) | Faster (less overhead) |
| Error checking | Yes, retransmits lost packets | No retransmission |
| Use cases | Web, email, file transfer | Video streaming, gaming, DNS, VoIP |
| Example | Loading a webpage | YouTube video, online gaming |
The TCP Three-Way Handshake
Before data flows, TCP establishes a reliable connection:
Client Server
│ │
│──── SYN ─────────▶│ "I want to connect"
│ │
│◀─── SYN-ACK ──────│ "OK, I'm ready"
│ │
│──── ACK ─────────▶│ "Great, let's go"
│ │
│ [Data Transfer] │
│ │
│──── FIN ─────────▶│ "I'm done"
│◀─── FIN-ACK ──────│ "OK, closing"
The IP Layer
IP handles addressing and routing — it defines IP addresses and how packets are routed from source to destination across multiple networks. TCP and UDP run on top of IP.
The OSI Model (Conceptual Framework)
| Layer | Name | Protocols | What it does |
|---|---|---|---|
| 7 | Application | HTTP, HTTPS, DNS, SMTP, FTP | User-facing protocols |
| 6 | Presentation | TLS/SSL, JPEG, ASCII | Encryption, encoding |
| 5 | Session | Sockets | Manages connections |
| 4 | Transport | TCP, UDP | Reliable/fast delivery |
| 3 | Network | IP, ICMP, BGP | Addressing and routing |
| 2 | Data Link | Ethernet, Wi-Fi (802.11) | Node-to-node transfer |
| 1 | Physical | Cables, radio waves | Bits over physical medium |
Simplified: Most engineers think in terms of 4 layers: Application → Transport → Internet → Network Access.
6. HTTP and HTTPS — the Language of the Web
HTTP (HyperText Transfer Protocol) is how browsers and servers communicate. It's a request-response protocol: you request a resource, the server responds.
HTTP Request
GET /index.html HTTP/1.1
Host: example.com
User-Agent: Mozilla/5.0 ...
Accept: text/html,application/xhtml+xml
Connection: keep-alive
HTTP Response
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Content-Length: 1256
Server: nginx
<!DOCTYPE html>
<html>
<head><title>Example</title></head>
<body>Hello, World!</body>
</html>
HTTP Methods
| Method | Purpose | Body? |
|---|---|---|
GET |
Retrieve a resource | No |
POST |
Submit data (create) | Yes |
PUT |
Replace a resource | Yes |
PATCH |
Partially update a resource | Yes |
DELETE |
Remove a resource | No |
HEAD |
Like GET but no body (check headers) | No |
OPTIONS |
Ask what methods are allowed | No |
HTTP Status Codes
| Code | Meaning | Example |
|---|---|---|
| 200 | OK | Page loaded successfully |
| 201 | Created | Resource created (after POST) |
| 301 | Moved Permanently | Redirect (HTTP → HTTPS) |
| 304 | Not Modified | Use cached version |
| 400 | Bad Request | Malformed URL or body |
| 401 | Unauthorized | Not logged in |
| 403 | Forbidden | Logged in but no access |
| 404 | Not Found | Page doesn't exist |
| 429 | Too Many Requests | Rate limited |
| 500 | Internal Server Error | Bug on the server |
| 502 | Bad Gateway | Proxy received bad response |
| 503 | Service Unavailable | Server down or overloaded |
HTTP vs HTTPS
| HTTP | HTTPS | |
|---|---|---|
| Security | No encryption | TLS-encrypted |
| Port | 80 | 443 |
| Data in transit | Readable by anyone | Encrypted, unreadable |
| Certificate | None | SSL/TLS certificate required |
| SEO | Google penalises | Google prefers |
| Modern usage | Obsolete for web | Required |
HTTPS = HTTP + TLS (Transport Layer Security). Your browser and the server negotiate an encrypted channel before any data flows.
HTTP/1.1 vs HTTP/2 vs HTTP/3
| HTTP/1.1 | HTTP/2 | HTTP/3 | |
|---|---|---|---|
| Year | 1997 | 2015 | 2022 |
| Multiplexing | No (one request per connection) | Yes (many requests, one TCP connection) | Yes |
| Transport | TCP | TCP | QUIC (UDP-based) |
| Header compression | No | Yes (HPACK) | Yes (QPACK) |
| Speed | Baseline | ~30-50% faster | Faster on lossy networks |
| Usage (2025) | Legacy | ~65% of sites | Growing (~30%) |
7. What Happens When You Type a URL
Here's the complete journey from keyboard to screen:
1. TYPE URL
You type: https://www.example.com/about
2. BROWSER CACHE CHECK
Browser checks if it already has a cached response.
If yes → skip to step 9.
3. DNS LOOKUP
Browser asks DNS resolver: "What IP is example.com?"
DNS returns: 93.184.216.34
4. TCP CONNECTION
Browser initiates TCP three-way handshake with 93.184.216.34:443
5. TLS HANDSHAKE (for HTTPS)
Browser and server negotiate encryption.
Server sends its SSL certificate.
Encrypted channel established.
6. HTTP REQUEST SENT
Browser sends:
GET /about HTTP/2
Host: www.example.com
7. SERVER PROCESSES REQUEST
Web server (e.g. nginx) receives request.
Passes to app server (e.g. Node.js).
App queries database if needed.
Returns HTML response.
8. HTTP RESPONSE RECEIVED
200 OK + HTML content received.
9. BROWSER PARSES HTML
Builds DOM (Document Object Model).
Finds references to CSS, JS, images.
Makes additional HTTP requests for each.
10. RENDER
CSS applied → CSSOM built.
JS executed.
Layout, paint, composite.
Page visible on screen! ✓
Total time: For a fast site on a good connection, this takes 200–800ms.
8. Routers and Routing
Routers are the "traffic directors" of the internet. When a packet arrives, a router:
- Reads the destination IP address
- Looks up its routing table (a map of known paths)
- Forwards the packet to the next router (the next hop) that gets it closer to the destination
A packet might travel through 10–20 routers (hops) to reach its destination. You can see this with:
traceroute google.com # Linux/Mac
tracert google.com # Windows
BGP — the Routing Protocol of the Internet
BGP (Border Gateway Protocol) is how large networks (Autonomous Systems) advertise their IP ranges and share routing information with each other. When BGP goes wrong, large outages can happen (e.g. the 2021 Facebook outage was a BGP misconfiguration).
9. Wi-Fi and Wireless
Wi-Fi doesn't replace the internet — it's just the last-mile connection between your device and your router. Your router then connects to the internet via a physical cable to your ISP.
| Standard | Speed | Frequency |
|---|---|---|
| Wi-Fi 4 (802.11n) | Up to 600 Mbps | 2.4 GHz / 5 GHz |
| Wi-Fi 5 (802.11ac) | Up to 3.5 Gbps | 5 GHz |
| Wi-Fi 6 (802.11ax) | Up to 9.6 Gbps | 2.4/5/6 GHz |
| Wi-Fi 6E | Up to 9.6 Gbps | 6 GHz only (less interference) |
| Wi-Fi 7 (802.11be) | Up to 46 Gbps | 2.4/5/6 GHz |
| 4G LTE | ~10–50 Mbps | Licensed cellular bands |
| 5G | ~100 Mbps – 10 Gbps | Sub-6 GHz / mmWave |
10. CDNs — Copies Closer to You
CDN (Content Delivery Network) — companies like Cloudflare, Akamai, and AWS CloudFront run servers in hundreds of locations worldwide. When you request a popular website's image, you might receive it from a server 10 miles away instead of one 5,000 miles away.
Without CDN:
User in Berlin → Server in Los Angeles (~140ms)
With CDN:
User in Berlin → CDN node in Frankfurt (~5ms)
CDNs cache static assets (images, JS, CSS) at edge nodes close to users, dramatically improving load times.
11. Key Internet Technologies Table
| Technology | What it does | Example |
|---|---|---|
| IP | Addressing and routing packets | IPv4, IPv6 |
| TCP | Reliable, ordered data delivery | Web, email, SSH |
| UDP | Fast, unreliable data delivery | Video, gaming, DNS |
| DNS | Domain names → IP addresses | google.com → 142.250.185.78 |
| HTTP/HTTPS | Web page requests and responses | Browser ↔ server |
| TLS/SSL | Encryption for HTTPS | Certificate from CA |
| DHCP | Automatically assigns IP to devices | Your router assigns 192.168.1.5 |
| BGP | Inter-network routing protocol | Backbone of the internet |
| NAT | Share one public IP among many devices | Home router |
| CDN | Cache content at edge nodes | Cloudflare, Akamai |
| WebSockets | Full-duplex real-time connection | Chat apps, live dashboards |
| REST API | Standard for web service communication | JSON over HTTP |
| OAuth | Delegated authorisation | "Log in with Google" |
12. The Internet vs The World Wide Web
These are not the same thing:
| Internet | World Wide Web (WWW) | |
|---|---|---|
| What it is | Global network infrastructure | A service running on the internet |
| Invented by | ARPANET (1969), TCP/IP (1983) | Tim Berners-Lee (1989) |
| What it carries | All digital traffic | Websites and web pages (HTTP) |
| Examples | Web, email, FTP, VoIP, streaming | google.com, Wikipedia, YouTube |
| Protocol | TCP/IP | HTTP/HTTPS |
The web is one of many services that run over the internet. Email (SMTP), file transfer (FTP), video calls (WebRTC), online gaming — these also run on the internet but aren't "the web."
13. Security on the Internet
| Threat | What it is | Defence |
|---|---|---|
| Eavesdropping | Reading unencrypted traffic | HTTPS / TLS everywhere |
| Man-in-the-Middle | Attacker intercepts communications | Certificate validation, HSTS |
| DDoS | Flood server with fake requests | CDN, rate limiting, Cloudflare |
| DNS spoofing | Fake DNS response sends you to wrong IP | DNSSEC, DoH (DNS over HTTPS) |
| Phishing | Fake websites stealing credentials | HTTPS, user awareness |
| Packet sniffing | Capturing network packets | Encryption (HTTPS, VPN) |
| SQL injection | Malicious DB queries via web forms | Parameterised queries |
| XSS | Injecting malicious scripts into pages | Content Security Policy, escaping |
Common Mistakes / Misconceptions
| Misconception | Reality |
|---|---|
| "The internet is wireless" | Most traffic travels through physical cables |
| "HTTPS means the website is safe" | HTTPS means the connection is encrypted, not that the site is trustworthy |
| "DNS is just for websites" | DNS also handles email (MX), verification (TXT), and more |
| "My data travels in one path" | Packets take different routes and reassemble at the destination |
| "The internet and the web are the same" | The web is one service on the internet |
| "A faster CPU makes internet faster" | Internet speed depends on your connection, not your CPU |
| "VPN makes you anonymous" | VPN hides traffic from your ISP; you're still identifiable to the VPN provider |
| "Deleting browsing history deletes your data from the internet" | Your ISP, servers, and third parties still have records |
Internet vs Related Terms
| Term | Meaning |
|---|---|
| Internet | Global network of networks using TCP/IP |
| Intranet | Private network using internet protocols, internal to an organisation |
| Extranet | Intranet extended to authorised external users |
| LAN | Local Area Network — devices in one building |
| WAN | Wide Area Network — covers large geographic areas |
| ISP | Company providing internet access |
| Cloud | Servers and services accessed over the internet |
| VPN | Virtual Private Network — encrypts and tunnels your connection |
| Darknet | Overlay networks requiring special software (e.g. Tor) |
| Web3 | Decentralised internet vision built on blockchain |
6 Frequently Asked Questions
Q: Who owns the internet? Nobody owns the entire internet. It's a distributed network — different companies own different parts (backbone cables, ISPs, data centres, domain registries). Standards bodies like IETF and ICANN coordinate protocols and naming.
Q: How fast does data travel on the internet? Through fibre-optic cables, data travels at about 2/3 the speed of light (~200,000 km/s). A signal from New York to London takes ~28ms. Latency in your experience is higher due to routing, processing, and queuing.
Q: What happens when I lose my internet connection? Your router can't communicate with your ISP's equipment. This could mean a problem with your router, the physical connection, your ISP's network, or a wider outage. DNS and TCP connections time out, and you see "No internet" or "ERR_NAME_NOT_RESOLVED" errors.
Q: How does mobile data (4G/5G) work? Your phone connects wirelessly to a cell tower, which connects to your mobile carrier's network over fibre. From there, data travels the same way as wired internet. The "wireless" part is only from your phone to the tower.
Q: What is latency vs bandwidth? Bandwidth is how much data can flow at once (width of the pipe). Latency is how long a round-trip takes (speed of the pipe). A satellite connection can have high bandwidth but terrible latency (~600ms); a fibre connection has both high bandwidth and low latency (~1ms).
Q: Can the internet go down completely? A total global outage is extremely unlikely due to its distributed design. But regional outages happen — from undersea cable cuts, BGP routing errors, or large ISP failures. In 2021, a BGP misconfiguration took Facebook, Instagram, and WhatsApp offline worldwide for ~6 hours.
Quick Reference
URL anatomy:
https://www.example.com:443/path/page?query=value#section
│ │ │ │ │ │ │
│ │ │ │ │ │ └ Fragment (anchor)
│ │ │ │ │ └ Query string
│ │ │ │ └ Path
│ │ │ └ Port (443 for HTTPS, 80 for HTTP)
│ │ └ Domain
│ └ Subdomain
└ Protocol (scheme)
Common ports:
80 → HTTP
443 → HTTPS
22 → SSH
25 → SMTP (email)
53 → DNS
3306 → MySQL
5432 → PostgreSQL
6379 → Redis
27017→ MongoDB