Sent in pieces, rebuilt in order.
You type "reached?" to a friend in another city and press send. One second later, two grey ticks. Nobody laid a wire just for you. So how did it get there?
Cut up, sent apart, put back.
You type "reached?" to a friend in another city and press send. One second later, two grey ticks. Your message crossed your home Wi-Fi, a Jio or Airtel tower, a few cities' worth of cables and your friend's phone, and nobody laid a wire just for you.
So how did it get there?
See it#
Follow one message from your phone to your friend's: what happens to it before it leaves, and how many different places it passes through on the way.
Cut up, sent apart, put back.
Three things happen to it. The message never travels as one piece: it's cut into small numbered pieces. The pieces don't all take the same road. And every hop (one jump from one machine to the next) is a different set of machines, owned by different people, all agreeing to pass the pieces along.
Watch the picture above once more, and follow the one message from your phone to your friend's.
Three things happen to it. The message never travels as one piece: it's cut into small numbered pieces. The pieces don't all take the same road. And each hop, one jump from one machine to the next, lands on machines owned by different people, all agreeing to pass the pieces along. It crossed your home Wi-Fi, a Jio or Airtel tower and a few cities' worth of cables on the way.
Name it#
Everything your message passed through, from your phone to the last tower, has a name. A computer network is a group of devices joined together so they can send data to each other.
The internet is not one giant network. It is a network of networks: your home network, your college's network, Jio's network and millions more, all connected, so a device in any of them can reach a device in any other.
How it works#
Three ideas explain how your message got through: it travels in packets, networks come in sizes, and the devices in a network can be wired in a few standard shapes.
1. The message is cut into packets#
A photo or a long message is too big to send in one go. Your phone cuts it into small pieces called packets. Each packet carries a little label: where it is going, where it came from, and its number in the order. Each one finds its own way, and your friend's phone puts them back together in order. If one is lost, only that one is sent again, not the whole photo.
This is called packet switching: no road is kept for you. Your packets share every cable with everyone else's, and a cable carries whoever's packets are ready next.
The older way is circuit switching, which is how a landline phone call works. Before the call starts, one whole path is set up between the two phones and held for the whole call, even during the silences.
Why did the internet pick packets? Because most of what we send comes in short bursts with long gaps: a message, then nothing for a minute. A reserved circuit sits idle in those gaps. With packets, one person's quiet moment is filled by other people's packets, so the same cable carries far more people.
Packets fill a circuit's gaps.
2. Networks come in three sizes#
Home, city, world: three sizes.
Networks are named by how much ground they cover:
- A LAN (local area network) covers one home, one office building or one college campus. Your home Wi-Fi is a LAN.
- A MAN (metropolitan area network) covers one city: many buildings, tens of kilometres apart. A cable TV operator linking its offices across a city with fibre runs a MAN.
- A WAN (wide area network) covers countries or continents. A bank joining its branches across India uses a WAN, and the internet itself is the biggest WAN of all.
3. Devices can be wired in a few shapes#
Four ways to wire devices.
The shape of the wiring is called the topology. There are four you need to know:
- Star: every device has its own cable to one box in the middle, a switch (lesson 1.3 is about switches). Your home Wi-Fi and most offices work like this. If one cable breaks, only that device goes offline; if the middle box fails, everyone does.
- Bus: every device clips onto one shared backbone cable, with a terminator at each end so the signal doesn't bounce back. It's cheap, but one break in the backbone cuts everyone off.
- Ring: each device is joined to the next, and the last back to the first, so data goes round the circle.
- Mesh: there is a cable between every pair of devices. If one cable fails, there are plenty of other roads.
A full mesh needs a lot of cables. With n devices, each one joins to the other n - 1, but every cable is shared by two devices, so you count each cable once: n(n - 1) / 2. For 5 computers that's 5 x 4 / 2 = 10 cables. (Forgetting to halve gives 20, the usual slip.)
Why it matters#
Every app you use is a network app. WhatsApp, UPI payments, Instagram and online exams all work by sending packets across networks of networks. When a page is slow, a call breaks up or a payment hangs, the cause is usually somewhere along that chain of hops.
In interviews, the opening questions check exactly these words:
| Interviews call it | What you saw |
|---|---|
| Computer network | devices joined so they can send data |
| Internet | a network of networks |
| Packet switching | the message cut into pieces that share every cable |
| Circuit switching | a landline call: one path held for the whole call |
| LAN, MAN, WAN | a home or campus, a city, the world |
| Topology | the shape of the wiring: star, bus, ring, mesh |
How your phone and your friend's find each other among millions of devices is the next lesson, IP addresses. How packets are passed from one network to the next is Routers and switches.
What to remember#
- A computer network is devices joined to send data; the internet is a network of networks.
- Messages travel as packets that share every cable. A landline call is circuit switching: one path held for the whole call.
- Packets win because one person's idle gaps are filled by other people's packets.
- LAN is a home or campus, MAN a city (tens of km), WAN countries.
- Star, bus (one shared cable), ring and mesh. A full mesh of n devices needs n(n - 1) / 2 cables.