What Is a Network Switch?

Run a Speed Test

A network switch connects multiple wired devices on a local network and intelligently forwards each ethernet frame only to the port where the destination device lives — unlike a hub, which blasts every packet to every port.

What a Switch Does: Layer 2 Forwarding

A network switch operates at Layer 2 of the OSI model — the data link layer — working with ethernet frames and MAC addresses rather than IP addresses. Every device that connects to a network has a unique MAC (Media Access Control) address burned into its network interface. When a frame arrives on a switch port, the switch reads the destination MAC address in the frame header and forwards it only to the port associated with that address. This targeted forwarding is what distinguishes a switch from a hub and makes it the correct device for connecting multiple wired devices on a local network.

How a Switch Learns MAC Addresses

When a switch is first powered on, its MAC address table is empty. When a frame arrives on any port, the switch records the source MAC address and the port number it arrived on — learning which device is reachable through which port. If the destination MAC is not yet in the table, the switch floods the frame to all ports except the one it arrived on (just as a hub would), and waits for a reply that reveals where the destination lives. After a short learning period, the switch builds a complete picture of the network topology and begins forwarding frames directly to their destinations without flooding. MAC address table entries expire after a period of inactivity, allowing the table to stay accurate as devices move or disconnect.

Store-and-Forward vs Cut-Through Switching

Switches use one of two forwarding methods. Store-and-forward switches receive the entire frame, check it for errors using the frame check sequence (FCS), and only then forward it. This eliminates corrupted frames from the network at the cost of a small additional latency. Cut-through switches begin forwarding the frame as soon as they read the destination MAC address — before the entire frame has arrived — which reduces latency but allows corrupted frames to propagate. Most modern home and business switches use store-and-forward, and the latency difference is negligible for typical workloads.

Switch vs Hub

Feature Switch Hub
OSI layer Layer 2 (Data Link) Layer 1 (Physical)
Frame forwarding To destination port only To all ports (broadcast)
MAC address table Yes No
Duplex Full duplex per port Half duplex (shared)
Collision domain One per port Shared across all ports
Current relevance Standard equipment Obsolete

Switch vs Router

A switch and a router are complementary, not interchangeable. A switch operates within a single network — it connects devices on the same LAN and forwards frames between them using MAC addresses. It has no awareness of IP addresses, no routing table, and no ability to direct traffic to a different network. A router connects different networks — most importantly your LAN to the internet — using IP addresses and routing decisions. In a typical home setup, the router handles internet access and the switch (often built into the router as its LAN ports) handles wired device connections within the home.

Unmanaged vs Managed Switches

An unmanaged switch is plug-and-play: connect it to power and ethernet, and it works immediately with no configuration. All ports behave identically. This is appropriate for most home networks and small offices where simplicity is the priority.

A managed switch adds a configuration interface — typically a web UI or command-line interface — that unlocks advanced features. VLANs (virtual LANs) allow you to logically segment the network so that devices on different VLANs cannot communicate without passing through a router, useful for separating guest devices from trusted devices. Port mirroring copies traffic from one port to another for monitoring. Link aggregation bonds multiple physical ports into a single higher-bandwidth logical link. QoS (quality of service) allows priority queuing so that latency-sensitive traffic like voice or video gets forwarded before bulk data transfers. Managed switches are the standard in business environments and are increasingly used by advanced home users.

PoE Switches: Power over Ethernet

A PoE (Power over Ethernet) switch can deliver electrical power through the ethernet cable to connected devices, eliminating the need for a separate power supply at each device. Wireless access points, IP cameras, VoIP phones, and smart building sensors are common PoE-powered devices. PoE switches are rated by their total power budget — the maximum wattage they can deliver across all ports simultaneously — as well as the PoE standard supported (802.3af, 802.3at, or 802.3bt, each providing progressively more power per port).

Port Speeds: Gigabit, 2.5G, and 10G

Home switches are available with gigabit (1 Gbps), 2.5 Gbps, and 10 Gbps ports. For most home use, gigabit ports are sufficient — they max out at 125 MB/s per port, which exceeds most internet plans and internal file transfer workloads. The case for 2.5G or 10G ports arises when transferring large files between local devices at high speed, connecting a network-attached storage device that supports those speeds, or building a home network that serves a multi-gigabit internet plan through a capable router.

When You Need a Switch

Most home routers include four LAN ports. If you have more wired devices than available ports — desktop computers, smart TVs, gaming consoles, network-attached storage, or wired access points — a switch is the correct solution. Connect the switch to one of the router's LAN ports and all devices connected to the switch gain access to the router and internet. The switch adds ports without creating a new network layer, so there is no additional NAT or DHCP complexity.

Daisy-Chaining Switches

If a single switch does not provide enough ports, you can connect a second switch to the first using a standard ethernet cable between any ports on each switch. Devices on both switches can communicate with each other and reach the router. The practical consideration is uplink bandwidth: the single cable connecting the two switches is shared by all devices on the downstream switch, so if multiple devices are simultaneously transferring data at high rates, that uplink can become congested. For most home use — where devices rarely saturate a gigabit link simultaneously — daisy-chaining two switches works well.

Frequently Asked Questions

What is the difference between a switch and a router?

A switch operates at Layer 2 and forwards ethernet frames between devices on the same local network using MAC addresses. A router operates at Layer 3 and routes IP packets between different networks — most importantly between your LAN and the internet. A switch keeps traffic within a network; a router moves traffic between networks.

What is the difference between a switch and a hub?

A hub is a simple repeater that broadcasts every incoming frame to every connected port simultaneously, regardless of the intended destination. A switch maintains a MAC address table and forwards each frame only to the specific port where the destination device is connected. Switches are dramatically more efficient, reduce unnecessary traffic, and allow full-duplex communication. Hubs are obsolete.

Do I need a switch for my home network?

If you have more wired devices than your router has LAN ports — most home routers have four — you need a switch to add more wired connections. If all your devices connect via Wi-Fi and you have fewer than four wired devices, you may not need a separate switch at all.

What is a managed switch?

A managed switch lets you configure its behavior through a web interface or command-line interface. Features include VLANs (virtual LANs to segment network traffic), port mirroring, link aggregation, QoS (quality of service prioritization), and SNMP monitoring. An unmanaged switch works out of the box with no configuration. Managed switches are used in business environments and by advanced home users who need traffic segmentation or monitoring.

Does a switch slow down a network?

No — a switch does not slow down a network under normal conditions. Because a switch forwards frames only to the intended destination port, it reduces unnecessary traffic compared to a hub. Each port on a modern switch operates at full duplex, meaning devices can send and receive simultaneously at the port's rated speed. A switch becomes a bottleneck only if its uplink port to the router is slower than the aggregate traffic it is carrying.

Can I connect a switch to another switch?

Yes. Daisy-chaining switches is common when you need more ports than a single switch provides. You connect one LAN port on the first switch to any port on the second switch using a standard ethernet cable. Devices on both switches can communicate with each other and with the router. There is a practical limit to how many switches you should chain — typically two to three in a home — because each link between switches shares bandwidth among all devices on the downstream switch.

Related Guides

More From This Section