Router vs Network Switch
People think a router and a switch are the same box, and they are not. A switch links devices inside one network, like the laptops in one office. A router joins one network to another, like your home to the internet. Most home routers have a small switch built in, which is why the two get mixed up.
Router
A box that passes packets from one network to the next. Your home router joins you to the internet.
A router moves packets between networks. It reads the address on each packet and picks the next step on its way. At home, the router joins your LAN to the internet. Most home routers also hand out local addresses, share one public address and run the Wi-Fi. On the internet, many routers pass each packet along until it arrives.
Network Switch
A box that links devices on one network by cable. It sends data only where it is needed.
A network switch links devices inside one local network by cable. Each device plugs into a port on the switch. The switch learns which device sits on which port by its MAC address. Then it sends each piece of data only to the port that needs it. This keeps traffic off the other cables.
In one line
- Router
- A box that passes packets from one network to the next. Your home router joins you to the internet.
- Network Switch
- A box that links devices on one network by cable. It sends data only where it is needed.