IP Addresses & Routing
Every machine on the internet has an address. How your laptop — with its private address behind a home router — talks to a server across the planet is a story of hierarchy and one great hack called NAT.
IPv4 ran out of addresses, and NAT (Network Address Translation) is the patch that kept it alive: your router owns one public IP and rewrites traffic so every device in your home shares it — tracking which internal device each conversation belongs to. It's why your laptop can call out to any server, but servers can't call in to your laptop uninvited (and why game consoles complain about 'strict NAT').
Routing between networks is hierarchical. The internet is ~80,000 autonomous systems — ISPs, clouds, universities — announcing to each other which address blocks they can reach, via a protocol called BGP. Routers don't know every machine; they know which neighbor is closer to each address block. Your packet climbs from home ISP to backbone, crosses, and descends into the destination's network.
When BGP goes wrong, chunks of the internet vanish: Facebook's 2021 six-hour global outage was Facebook accidentally withdrawing its own BGP routes — the servers were fine, but no router on Earth knew a path to them. DNS and BGP failures are behind most 'half the internet is down' days.