What Is an Ethernet Switch and How Does It Work?

An Ethernet switch is a networking device that connects multiple devices on a local network and directs data only to the specific device that needs it. Unlike older networking hardware that blasts data to every connected device, a switch learns which device is plugged into which port and sends each piece of data directly to its destination. This makes it the foundational building block of virtually every wired network, from a small home office to a large data center.

How a Switch Moves Data

Every device on a network has a unique hardware identifier called a MAC address, burned into its network adapter at the factory. A switch uses these addresses to figure out where to send data. It maintains an internal lookup table that maps each MAC address to a specific physical port on the switch.

The switch builds this table automatically. Every time a data frame arrives on a port, the switch reads the sender’s MAC address and records which port it came from. If that address isn’t in the table yet, it gets added. If it’s already there, the switch resets a five-minute timer on that entry. This means the table stays current as devices connect, disconnect, or move around the network.

When a frame needs to go somewhere, the switch checks the destination MAC address against its table. If it finds a match, it sends the frame out only through that one port. If the destination address isn’t in the table yet (because that device hasn’t sent anything recently), the switch temporarily sends the frame out all ports except the one it arrived on. Once the destination device responds, the switch learns its location and directs future traffic precisely.

Why Switches Replaced Hubs

Before switches became affordable, most small networks used hubs. A hub is a simple repeater: when data arrives on one port, the hub copies it out every other port. Every device on the network sees every transmission, which creates two problems. First, it wastes bandwidth because devices receive data they don’t need. Second, if two devices transmit at the same time, their signals collide and both transmissions fail, forcing a retry.

A switch eliminates both issues. Each port on a switch is its own collision domain, meaning two devices plugged into different ports can send data simultaneously without interfering with each other. Every connection gets the full bandwidth of the link rather than sharing it. A 24-port gigabit switch, for instance, can handle 24 separate one-gigabit conversations at the same time. Hubs are essentially obsolete because of this.

Switches vs. Routers

Switches and routers do different jobs. A switch connects devices within a single local network: computers, printers, servers, cameras, and access points in a building or campus. It works using hardware addresses and operates fast because it doesn’t need to analyze the contents of each data packet deeply.

A router connects separate networks together and provides access to the internet. It works with IP addresses (the logical addresses assigned by your network) and makes decisions about the best path for data to travel between networks. In a typical setup, a switch ties all local devices together, and a router sits between that local network and the outside world. Many home “routers” actually have a small built-in switch with four or five ports on the back, which is why the distinction can feel blurry.

Unmanaged vs. Managed Switches

Unmanaged switches are plug-and-play. You connect your cables, power it on, and it works. There’s no configuration interface and no settings to adjust. For a home network or a small office where you just need to connect a handful of devices, an unmanaged switch is all you need.

Managed switches add a layer of control that matters for larger or more complex networks. They offer features like:

  • VLANs: the ability to segment one physical switch into multiple virtual networks, keeping traffic separated between departments or device types
  • Quality of service (QoS): prioritizing certain traffic, like video calls, over less time-sensitive data like file downloads
  • Remote management: configuring and monitoring the switch from anywhere through a web interface or command line
  • Security controls: restricting which devices can access the network, monitoring for attacks, and logging traffic data
  • Redundancy protocols: supporting network layouts like mesh or ring topologies so the network stays up even if a link fails

Managed switches cost more and require someone who knows how to configure them, but they’re essential for business networks with dozens or hundreds of devices.

Layer 2 vs. Layer 3 Switches

A standard switch operates at what networking professionals call Layer 2, the data link layer. It makes decisions based solely on MAC addresses and doesn’t care about IP addresses at all. This makes it extremely efficient because it forwards data frames without modifying them.

A Layer 3 switch adds routing capability. It can read IP addresses and direct traffic between different network segments or VLANs without needing a separate router. Layer 3 switches use a technique called cut-through switching, where the routing decision is made based on just the first portion of each data packet rather than waiting for the whole thing to arrive. This lowers latency significantly compared to a traditional router, which receives and analyzes an entire packet before forwarding it. Large enterprise networks commonly use Layer 3 switches to handle traffic between internal network segments while still using a dedicated router for internet connectivity.

Power Over Ethernet (PoE)

Some switches can deliver electrical power to connected devices through the same cable that carries data. This is called Power over Ethernet, and it’s invaluable for devices like security cameras, wireless access points, and VoIP phones that would otherwise need a separate power outlet at their installation location.

PoE comes in several tiers. The original standard delivers up to 15.4 watts per port, enough for basic IP phones and simple cameras. PoE+ bumps that to 25.5 watts, which handles more demanding devices like pan-tilt-zoom cameras and high-performance wireless access points. The newest standard, PoE++, pushes power delivery to 60 or even 90 watts per port, supporting things like video displays, point-of-sale terminals, and laptop docking stations.

Speed and Port Options

Most switches sold today support gigabit Ethernet, meaning each port handles 1 billion bits per second. That’s fast enough for everyday office work, streaming, and file transfers. For environments with heavier demands, 10-gigabit Ethernet switches are common in server rooms and data centers. At the high end, enterprise switches support 100-gigabit connections for backbone links where massive throughput and minimal latency are critical.

The total capacity of a switch is limited by its backplane bandwidth, which is the maximum amount of data the switch’s internal circuitry can handle at once. A well-designed switch has enough backplane bandwidth to run every port at full speed simultaneously. For example, a 26-port gigabit switch needs at least 52 Gbps of backplane bandwidth to achieve full line-rate switching (26 ports times 1 Gbps times 2, since each port sends and receives). If a switch’s backplane can’t keep up with all its ports at once, performance degrades under heavy load.

Common Form Factors

Desktop switches are compact, fanless units designed to sit on a desk or shelf. They typically offer 5 to 8 ports and are the standard choice for home offices or small workgroups. They’re quiet, inexpensive, and need nothing more than a power cable to get started.

Rack-mount switches are built for server rooms and network closets. They fit into standard 19-inch equipment racks and commonly offer 24 or 48 ports, often with a couple of additional high-speed uplink ports (SFP slots) for connecting to other switches or core network equipment using fiber optic cable. A typical configuration might be 24 gigabit Ethernet ports plus 2 SFP slots for fiber uplinks. These switches usually include fans for active cooling and are designed to run continuously in temperature-controlled environments.

Industrial switches are ruggedized versions built for harsh conditions like factory floors, outdoor enclosures, or transportation systems. They handle extreme temperatures, vibration, and dust that would kill a standard office switch.