Routers, Switches and LANs
Level 1 · Networks and packets
What a computer network is, and how a home or office LAN is built. What a switch does, what a router does, and where the MAC address fits.
Course contentsLesson 1 of 13
Level 1 · Networks and packets
Level 2 · Addresses and ports
Level 3 · How data travels
Level 4 · HTTP, the language of the web
Level 5 · Locked lines and go-betweens
After this lesson you can
- Say what a LAN is
- Tell a switch from a router
- Explain what a MAC address is for
10 mincovers 5 glossary entries
How the devices in a home are joined
A computer network is two or more devices linked so they can share data. The one in your home is a LAN, a local area network. A switch joins the devices inside it. A router joins that whole network to the internet. Most homes have one box that does both jobs, plus Wi-Fi.
A switch links devices by cable inside one network. A small one has 5 or 8 sockets. When data arrives, the switch sends it only to the device it is for, not to every device. That keeps the line free for everyone else.
The switch knows each device by its MAC address. That is a number burned into each network card, written as six pairs of letters and digits, such as 52:54:00:12:34:56. No two cards should share one. It only matters inside one local network, and it never crosses the internet.
A router passes data from one network to the next. Your home router sits between your LAN and your internet provider. Data for a device at home stays inside. Data for anywhere else goes out through the router, which is the only way in or out.
A switch is the hallway inside a block of flats, and the router is the front door. Post between neighbours stays in the hallway. Post for the rest of the city has to go out through the door.
Large networks have many switches and many routers. The internet itself is millions of networks. Routers pass data from one to the next until it arrives. No single machine is in charge of the whole thing.
People often think the box from their provider is just a router. It is usually a router, a switch and a Wi-Fi point in one case. When you add a second box to cover more rooms, you are adding one of those three jobs, not all of them.
Worked example
A café adds a printer
A café has a router from its internet provider with 4 sockets, all in use. It buys an 8-socket switch for 25 euros and plugs it into the router.
The till, the kitchen printer and two laptops plug into the switch. They print to each other inside the café, and still reach the internet through the router.
The words for this lesson5
Check yourself
What does a router do that a switch does not?
Finished this lesson?
Marking it complete also marks its 5 glossary entries learned, which updates your roadmap and your saved page. 0 are already marked.