ENES

Network switch

A box with many ports that connects devices on the same local network.

A switch with four ports connecting four computers; a message from computer A goes only to computer C, not to the others

A network switch is a box full of Ethernet ports that joins the devices of a local network: computers, printers, cameras, access points. When one device sends data to another, the switch looks at the destination MAC address and sends it out of the single port where that device is plugged in, instead of copying it to everyone.

To do that it learns as it goes. Each time a frame arrives, it notes which MAC address came in through which port and keeps that table in memory. Older hubs simply repeated everything to every port, which wasted capacity and let anyone see everyone else's traffic.

At home you rarely buy one because the router already has a small switch built in: those three or four ports on the back. In an office or a data center, rows of switches with dozens of ports each connect hundreds of machines, and bigger models can split one physical network into several VLANs.

Keep in mind

Go deeper

Related terms

More in Networks