What a network actually is
Two computers and one cable work perfectly. The third computer is where the entire discipline begins.
- You can say what a switch does that a cable cannot, and what a router does that a switch cannot.
- You can explain why the internet is described as a network of networks instead of one big network.
You plug a cable into two laptops and they can talk. Send a file, play a game, share a printer. Nothing about this is mysterious: one wire, two ends, bits travel along it.
Now add a third laptop. You cannot simply splice a third end onto a cable. Copper carries one signal at a time, and three devices all transmitting produce noise. The moment you need a third participant you need something that decides who speaks and who hears it — and that device is the first real piece of network engineering in this course.
1.1Three things every network needs
Strip away the products and every network is the same three ingredients.
| Ingredient | What it does | What breaks without it |
|---|---|---|
| A link | Moves bits between two points — copper, fiber, radio | Nothing arrives; the interface is down |
| An address | Says who is sending and who should receive | Everyone hears everything; no one can reply |
| An agreement | Rules for framing, ordering and errors — a protocol | Two devices connected, exchanging nothing useful |
Most beginner confusion comes from collapsing the middle one. An address is not a name for a machine; it is a name for an interface. A laptop with Wi-Fi and Ethernet has two addresses. A server with a public and a private address has two. That single fact explains a surprising number of "but it's the same computer" arguments later.
1.2Two devices that solve different problems
A switch connects devices inside one network. It learns which physical port each hardware address lives on, then forwards a frame only out of the port that needs it. Before switches, a hub repeated every signal to every port, so three devices shared one conversation. A switch gave each pair their own.
A router connects different networks. It has an address in each one, receives a packet, looks at the destination address, and hands it to whichever neighbour is closer to that destination. It does not know where everything is; it knows which way to go next.
A single cable. Both ends transmit on the same pair, so a collision is a matter of timing; modern Ethernet negotiates who sends when, which is why a direct cable between two machines works without any configuration at all.
What you have to agree on: addresses in the same range, and nothing else. No gateway, no DNS, no DHCP.
Three devices need a switch. Each port is its own collision domain, so pc 1 and pc 2 can talk at full speed while pc 3 talks to the printer. The switch learns which MAC address is on which port by watching source addresses, and forwards only where it must.
What changed: you can now run out of ports, and you have a device that can fail, needs power, and can be misconfigured.
A second room is a second network. Its addresses are in a different range, and a switch cannot help — switches do not understand the difference between "local" and "somewhere else". A router has one address in each network and is the only device that can forward between them.
What changed: every device now needs a gateway — the router's address — and every packet for the other room is addressed to the gateway's hardware address, not the destination's.
1.3A network of networks
Your home network connects to your provider's network, which connects to others, which connect to the server hosting the page you want. Nobody owns the whole thing. Each network agrees to carry traffic for the others, under commercial and technical terms, and the agreement is expressed in a routing protocol.
That is why "the internet is down" is almost never true. What is down is a link, a provider, a name server, or one service. The internet is a mesh with enough redundancy that a cable cut in the Atlantic becomes a slightly slower path for a few hours.
The cloud is somebody else's network, reachable over the same public internet, with the same cables, the same DNS and the same failure modes — plus a control panel that can make a change in seconds without anyone reviewing it. When a cloud service is unreachable, the diagnosis follows exactly the same steps as for anything else, which is what the rest of this course is about.
Two computers on different subnets are plugged into the same switch. What is missing?
60-second recap
- Link, address, agreement. Every network is those three things, at every scale.
- Switch inside, router between. A switch forwards by hardware address within one network; a router forwards between networks.
- Addresses identify interfaces. One machine can have several, and usually does.