Network security

What Is a Network Switch? Types, How It Works & How to Choose

A switch is the traffic controller of your local network: it learns which device sits on which port and sends each frame only where it needs to go.

Cysoro Security TeamPublished · 8 min read
24-port gigabit switch PC WiFi TV NETWORK SECURITY Networkswitch The traffic controller of your LAN.
Quick answer

A network switch is a hardware device that connects computers, printers, servers and wireless access points inside a local area network (LAN) and forwards Ethernet frames to the correct destination port using MAC addresses. It operates mainly at Layer 2 of the OSI model. Managed switches add configuration such as VLANs and QoS, while unmanaged switches are plug-and-play.

Key takeaways

  • A switch forwards each Ethernet frame only to the port that reaches its destination MAC address, unlike a hub, which copies traffic everywhere.
  • Unmanaged switches are plug-and-play; managed switches add VLANs, QoS, monitoring and security controls for business networks.
  • PoE switches deliver power and data over one Ethernet cable, which simplifies installing access points, cameras and VoIP phones.

Every wired device in your home or office plugs into something — and that something is usually a network switch. It is the traffic controller of your local network, quietly deciding which device each piece of data goes to, thousands of times a second.

What is a network switch?

A network switch is a hardware device that connects computers, printers, servers and wireless access points inside a local area network (LAN) and forwards each Ethernet frame to the one port that reaches its destination. It works at Layer 2, the data link layer, of the OSI model.

Think of it as a post office for your network. Every device has a unique MAC address, which works like a postal address for network hardware. The switch reads the destination MAC address on each frame and sends it out of the correct port only — it never copies traffic to every port the way an old hub did.

Switches are essential in business networks because they handle the heavy traffic many users generate at once. Each port runs full-duplex and has its own collision domain, so many devices can send and receive simultaneously without collisions.

How does a network switch work?

A switch learns where each device is by reading the source MAC address of every frame it receives, then builds a MAC address table mapping each address to a port. Later traffic goes only where it needs to go.

The process has four steps:

  1. Learn: when a frame arrives, the switch records the source MAC address and the port it came from.
  2. Look up: it checks the destination MAC address against its table.
  3. Forward: if the destination is known, the frame goes out of that one port only.
  4. Flood: if the destination is unknown, the frame is sent to all ports except the one it came from, and the reply teaches the switch the right port.

This self-learning process is called transparent bridging, and it is what makes a switch plug-and-play: there is nothing to configure before it starts working. The switch operates under the IEEE 802.3 Ethernet standard, which is what separates it from a hub at Layer 1 and a router at Layer 3, as TheCoreITech's explainer describes.

How a switch forwards one frameSwitchMAC table: laptop → port 1Laptopport 1Printerport 2 — receives itServerport 3 — sees nothingThe frame goes to the printer only — the server never sees it.
A switch forwards by MAC address, so traffic goes only where it is needed. Illustration by Cysoro.

Switch vs hub vs router: what's the difference?

Hubs, switches and routers are often confused because they all connect devices, but they work at different layers and do very different jobs. The switch replaced the hub entirely in modern Ethernet.

DeviceOSI layerForwards bySends traffic toStill used?
HubLayer 1 (physical)Nothing — no addressesEvery portNo, obsolete
SwitchLayer 2 (data link)MAC addressOne destination portYes, everywhere
RouterLayer 3 (network)IP addressThe next networkYes, at network edges

A hub works at Layer 1 with no addresses at all: it repeats every incoming bit out of all ports, creating one shared half-duplex collision domain where only a single device can send at a time. A switch is selective, giving each port its own collision domain and full-duplex sending.

A router operates at Layer 3 and connects different networks, such as a local network to the internet. Your home router usually contains a small switch built in — the four Ethernet ports on the back are a switch, while the router part handles the internet connection.

What are the types of network switch?

Switches split into types by how configurable they are, what layer they operate at, and whether they deliver power. The right one depends on whether your network needs segmentation and control, or only more ports.

Unmanaged switches

An unmanaged switch is plug-and-play: connect devices and it forwards frames straight away, at a lower price and with nothing to set up or maintain. It cannot do VLANs, QoS or monitoring, and every port sits on the same flat network. Best for homes, small offices and adding a few extra wired ports.

Smart (web-managed) switches

A smart switch sits between unmanaged and fully managed. It provides a web interface for basic configuration: simple VLAN assignment, port-based QoS and basic port monitoring. Best for growing small businesses that need basic traffic separation, such as a guest Wi-Fi network.

Managed switches

A managed switch lets administrators configure how traffic is forwarded, segmented, prioritized and monitored, through a web interface, command-line interface or centralized controller, as TP-Link's managed switch guide explains. Core features include VLAN segmentation (IEEE 802.1Q), QoS, PoE management, link aggregation, SNMP and syslog monitoring, and access control lists. Best for medium and large business networks.

PoE switches

A Power over Ethernet switch delivers data and DC power over a standard Cat5e or Cat6 Ethernet cable, so devices do not need a separate power socket. This simplifies installing wireless access points, IP cameras and VoIP phones in ceilings and corridors.

PoE standardPower per portTypical use
PoE (802.3af)15.4 WBasic VoIP phones, simple cameras
PoE+ (802.3at)30 WMost Wi-Fi access points, PTZ cameras
PoE++ (802.3bt)60–90 WWi-Fi 6 and Wi-Fi 7 access points, high-power devices

Layer 3 (multilayer) switches

A Layer 3 switch combines Layer 2 switching speed with Layer 3 IP routing functions. It performs hardware-based routing between VLANs, processes IP packet headers and enforces access control lists, reducing the load on the edge router. Best for enterprise office floors and campus networks with many VLANs.

Managed vs unmanaged switch: which should you choose?

Choose an unmanaged switch when you only need more ports and nothing else. Choose a managed switch when the network needs segmentation, traffic prioritization or visibility — for example, separating guest Wi-Fi from staff systems, prioritizing VoIP calls, or troubleshooting remotely across sites.

  • Pick unmanaged if: you have a home network or a very simple office, you want zero setup, and every device can share one flat network.
  • Pick smart if: you need basic VLANs and QoS on a small budget, such as separating a guest network or a point-of-sale system.
  • Pick managed if: you need network segmentation, remote troubleshooting, monitoring, or security policies such as port security and 802.1X authentication.

Cost is the trade-off: managed switches cost more, use more power and need someone who can configure them. An unmanaged switch you never touch is better than a managed switch nobody maintains. If you are unsure, a smart switch is a reasonable middle ground.

Unmanaged vs smart vs managedUnmanagedPlug-and-playNo configurationLowest priceHome, small officeSmartWeb interfaceBasic VLANs, QoSMid priceGrowing businessManagedFull controlVLANs, ACLs, SNMPHighest priceEnterprise
More control costs more money and needs more skill. Start simple unless you have a reason not to. Illustration by Cysoro.

How do you secure a network switch?

A switch is part of your security perimeter, not just plumbing. An attacker with physical access to a switch port can join your network, and a misconfigured switch can leak traffic between segments that should be isolated.

  • Change default credentials on any managed or smart switch, and use a strong unique admin password.
  • Disable unused ports so an empty wall socket cannot be used to join the network.
  • Use VLANs to segment traffic — keep guest Wi-Fi, IoT devices, staff computers and servers on separate VLANs.
  • Turn on port security and 802.1X where the switch supports it, so only authorized devices can connect.
  • Keep firmware updated, just like any other network device, and monitor logs for unusual activity.
  • Lock the switch away in a cabinet or comms room. Physical access defeats most port controls.

Switch security is one piece of a wider plan. Our small business cybersecurity checklist covers network segmentation alongside backups, updates and access control.

How to choose a network switch

Work through these five decisions in order and the right switch usually picks itself.

  1. Count ports. Count the wired devices you need now, add two or three spares, and pick the next size up: 5, 8, 16, 24 or 48 ports.
  2. Pick a speed. Gigabit (1 Gbps) is the minimum for new purchases; consider 2.5 Gbps or 10 Gbps uplinks if you have a NAS or a fast internet connection.
  3. Decide managed or unmanaged. Use the guidance above — if you do not need VLANs or monitoring, unmanaged is cheaper and simpler.
  4. Support PoE where needed. Add up the power your access points, cameras and phones need, and check the switch's total PoE budget, not just the per-port figure.
  5. Check the environment. Fanless switches are silent for offices and homes; rack-mount switches suit a comms cabinet; check power draw and noise before buying.

Before you buy, check what your network currently looks like with our free what is my IP tool — it shows the public side of the network your switch sits behind.

What mistakes do people make with switches?

The most common mistake is creating a loop: connecting two ports of the same switch together, or connecting two switches with two cables and no spanning-tree protection. Loops flood the network with broadcast traffic and can take everything down in seconds. Managed switches run Spanning Tree Protocol to prevent this; unmanaged switches usually do not, so be careful with extra cables.

Another mistake is buying too few ports and then daisy-chaining cheap switches, which creates bottlenecks and more points of failure. One well-sized switch beats three small ones.

A third mistake is ignoring PoE budgets. A switch may offer PoE on every port but only have enough total power for half of them at full load. Always check the total budget against the devices you plan to power.

The bottom line

A network switch is the device that connects your wired network together and sends each frame to the right destination by MAC address. For most homes, a small unmanaged gigabit switch is all you need. For a business, a managed switch adds the VLANs, QoS and monitoring that keep traffic separated and visible.

Count your ports, decide whether you need PoE, and pick managed only if you will actually use the control it offers. Then secure it like any other network device: change the default password, disable unused ports and keep the firmware updated. Check your network's public side with the free what is my IP tool.

Frequently asked questions

What is a network switch in simple terms?

A network switch is a box that connects the wired devices in a building — computers, printers, servers and Wi-Fi access points — and sends each piece of data only to the device it is meant for, using that device's MAC address.

What is the difference between a switch and a router?

A switch connects devices inside one local network and forwards traffic between them at Layer 2, using MAC addresses. A router connects different networks — such as your local network to the internet — and forwards traffic at Layer 3, using IP addresses.

What is the difference between a managed and unmanaged switch?

An unmanaged switch is plug-and-play: you connect devices and it forwards traffic with no configuration. A managed switch can be configured through a web interface or command line, adding VLANs, QoS, monitoring and security policies.

What is a PoE switch?

A PoE (Power over Ethernet) switch delivers both data and electrical power over a standard Ethernet cable. That lets you install wireless access points, IP cameras and VoIP phones where there is no power socket nearby.

Do I need a network switch at home?

You need one if you have more wired devices than your router has Ethernet ports, or if you want faster, more reliable connections than Wi-Fi for a desktop, TV or games console. A small unmanaged gigabit switch is enough for most homes.

What is a Layer 3 switch?

A Layer 3 switch, also called a multilayer switch, combines Layer 2 switching with IP routing. It can route traffic between VLANs in hardware, which is faster than sending that traffic to a separate router.

How many ports should a switch have?

Count the wired devices you need to connect now, add two or three spare ports for growth, and pick the next size up. Common sizes are 5, 8, 16, 24 and 48 ports; 8 ports suits most homes, while small offices usually start at 16 or 24.

Sources

  1. TP-Link — What Is a Managed Switch? Features, Benefits, and Uses
  2. TP-Link — Network Switch Explained: Types, Uses, and How to Choose
  3. TheCoreITech — What Is a Network Switch?
  4. Purple — What is a network switch: Layer 2 vs 3, PoE and WiFi setup
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against TP-Link's switch guides, TheCoreITech's explainer and the IEEE 802.3 Ethernet standard.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free