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
- 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.
- It forwards. It looks up the destination MAC address and sends the frame out of that one port only.
- 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
| Device | What it does | Works with |
|---|---|---|
| Hub (obsolete) | Repeats every frame to every port | Nothing; all devices share the bandwidth |
| Switch | Sends frames only to the right port inside one network | MAC addresses (Layer 2); Layer 3 switches also route between VLANs |
| Router or gateway | Connects different networks, for example the LAN and the internet | IP addresses (Layer 3), NAT, firewall |
More on this in router vs switch vs access point.
The main types of switch
- Unmanaged: plug and play, no settings, no VLANs. Fine for a small desk or a single camera cluster. See unmanaged PoE switches.
- Managed (Layer 2): VLANs, QoS, link aggregation, port security, monitoring. The normal choice for business networks. See L2 managed PoE switches and managed vs unmanaged.
- Layer 3: also routes between VLANs and runs routing protocols such as OSPF. Used in the core of larger sites. See L3 managed switches and Layer 2 vs Layer 3.
- PoE: also powers cameras, phones and access points over the data cable. See what is a PoE switch.
- Industrial: wide temperature range, DIN-rail mounting and redundant power inputs for cabinets, roadsides and plants. See industrial vs commercial switches.
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.
Related
Keep reading
Jumbo frames raise the Ethernet MTU from 1500 to about 9000 bytes. Where they help (storage, backup), why every device must match, and how to test the path.
Read more →What Is a VLAN? Virtual LANs Explained With Simple ExamplesA VLAN splits one physical network into separate virtual networks, so staff, guests, cameras and phones cannot see each other. How VLANs work, tagging, and when you need them.
Read more →Industrial vs Commercial Network Switch: Differences and When You Need IndustrialIndustrial switches are built for heat, cold, dust, vibration and electrical noise; commercial switches for air-conditioned rooms. How they differ and when an industrial switch is worth it.
Read more →PoE Technology in Network DevicesRead more →Need help designing your network?
Navijin engineers provide free design consultations, bills of materials and quotations for business projects.