The Plain Picture#
The world's roads aren't owned by one company. Your street belongs to the city, highways to the state, international routes to various countries — and they all agree to connect at borders and let traffic through.
The Real Names#
An ISP (Internet Service Provider) — Jio, Airtel, ACT — connects you to the internet.
The internet is tens of thousands of independently run networks (ISPs, big companies like Google and Amazon, universities). Each is an autonomous system (AS), identified by an AS number.
Autonomous systems tell each other which IP ranges they can reach using BGP (Border Gateway Protocol). BGP is how the routing tables of Chapter 7 are filled in across the whole internet. A BGP mistake can make a whole company vanish from the internet — as happened to Facebook for about six hours in October 2021.
Physically, continents are linked by submarine fibre-optic cables on the ocean floor; data centres are where servers live.
A first look at cloud networks#
When you build StudyBuddy on AWS or GCP (AWS (coming soon), Google Cloud (coming soon)), you'll create a private network in the cloud using exactly what's in this file:
VPC 10.0.0.0/16 (your private network in the cloud — Ch 5, Ch 6)
├── public subnet 10.0.1.0/24 has a route 0.0.0.0/0 → internet gateway (Ch 7)
│ └── load balancer (the only thing with a public IP)
├── private subnet 10.0.11.0/24 no direct internet route
│ └── app servers (private IPs only)
└── private subnet 10.0.21.0/24
└── database (private IP only — unreachable from the internet)VPC (Virtual Private Cloud) = your own private network range inside the cloud.
A public subnet is one whose routing table sends
0.0.0.0/0to the internet.A private subnet has no such route, so its servers can't be reached from the internet directly.
Every word in that diagram is now familiar. That's the point of this file.
Check yourself
3 questionsWhat is an autonomous system?
Show answerHide answer
A network run by one organisation (ISP, company, university) with its own AS number, as one unit of internet routing.
What does BGP do?
Show answerHide answer
Lets autonomous systems tell each other which IP ranges they can reach, filling in routing tables across the internet.
In a cloud VPC, what makes a subnet "public"?
Show answerHide answer
Its routing table has a default route (0.0.0.0/0) to the internet gateway.