Switching · 6 min read · 30 November 2026

What Is a Network Switch? How Switches Work, Explained Simply

A network switch connects wired devices in one network and sends each frame only to the port that needs it. How it works, the main types and how to choose.

A network switch connects computers, printers, phones, cameras, access points and servers in one local network, and sends each piece of data only to the port where the receiving device is. It is the device almost every cable in an office, hotel or factory plugs into.

How a switch works

  1. It learns. When a frame arrives, the switch notes the sender's MAC address and the port it came from, and keeps this in its MAC address table.
  2. It forwards. It looks up the destination MAC address and sends the frame out of that one port only.
  3. It floods only when it must. If the destination is not in the table yet, or the frame is a broadcast, the switch sends it to all ports in the same VLAN, then learns from the reply.

Because every port is its own link and works in full duplex, devices do not compete for the cable the way they did on old hubs. A 24-port Gigabit switch can let many pairs of devices talk at full speed at the same time.

Switch vs hub vs router

DeviceWhat it doesWorks with
Hub (obsolete)Repeats every frame to every portNothing; all devices share the bandwidth
SwitchSends frames only to the right port inside one networkMAC addresses (Layer 2); Layer 3 switches also route between VLANs
Router or gatewayConnects different networks, for example the LAN and the internetIP addresses (Layer 3), NAT, firewall

More on this in router vs switch vs access point.

The main types of switch

Reading a switch datasheet

  • Ports: number and speed of copper ports (1G, 2.5G, 10G) and fibre SFP/SFP+ slots for uplinks.
  • Switching capacity: the total of all port speeds counted in both directions. A non-blocking switch with 24 × 1G and 4 × 10G ports needs (24 + 40) × 2 = 128 Gbps.
  • Forwarding rate: in packets per second. Line rate for one 1G port is about 1.488 million 64-byte packets per second.
  • PoE budget: the total power the switch can give to all devices, not only per port. Use the PoE budget guide.
  • Management: web, CLI, SNMP and cloud management.

For a full list of what to check before buying, use the network switch buying checklist.

FAQ

Frequently asked questions

What does a network switch do?

It connects wired devices in the same local network and forwards each frame only to the port where the destination device is, using a table of MAC addresses it learns automatically.

Is a switch the same as a router?

No. A switch connects devices inside one network. A router or gateway connects different networks, such as your LAN and the internet. Layer 3 switches can also route between internal VLANs.

Does a switch slow down the internet?

No. A switch only moves traffic inside the local network. Internet speed depends on the internet line and the router or gateway.

How many ports do I need?

Count every wired device today, including cameras, phones and access points, then add about 20 to 30 percent spare ports for growth.

Need help designing your network?

Navijin engineers provide free design consultations, bills of materials and quotations for business projects.