Ethernet Switch vs Hub: The Short Answer
The confusion is understandable: both are small metal boxes with a row of RJ45 ports and a power brick. The difference is what happens inside when two devices talk at once. On a hub, they collide. On a switch, they do not.
How Each Device Handles Traffic
A hub is a repeater with extra ports. Anything that arrives on one port is regenerated and sent out of every other port, with no idea who the message is for. Every device therefore hears every conversation, and every device shares one pool of bandwidth. It works at the physical layer, so it never looks at MAC addresses, never learns which device sits on which port, and cannot separate traffic in any way.
A switch is a small forwarding computer. It reads the source MAC address of each incoming frame, builds a table of which device lives on which port, and then forwards frames only to the port that leads to the destination. Unicast traffic between two PCs never reaches the other ports. Each port is its own collision domain and runs full duplex, so a five-port gigabit switch gives five devices gigabit each, simultaneously.
Head-to-Head Comparison
| What matters | Ethernet switch | Hub |
|---|---|---|
| OSI layer | Layer 2: reads MAC addresses and forwards frames out of the correct port | Layer 1: repeats every incoming signal out of every other port, no addressing |
| Bandwidth per port | Dedicated link per port; a five-port gigabit switch serves five devices at gigabit at once | One shared pool; every device added cuts the speed the others get |
| Duplex | Full duplex: send and receive at the same time, both directions | Half duplex: devices take turns, so collisions are routine |
| Collisions | Each port is its own collision domain, so ports never collide with each other | All ports sit in one collision domain and back off and retransmit |
| Traffic visibility | Unicast traffic stays on its own port; you need port mirroring or a tap to capture | Every frame appears on every port, which makes packet capture trivial |
| Typical speeds | Fast Ethernet, gigabit, 2.5G, 5G and 10G models are all common | Usually 10/100 Mbps; gigabit hubs were rare when hubs were still sold |
| Security | Traffic is isolated per port; managed models add VLANs and port security | Every attached device sees all traffic, including anything sent in the clear |
| Best use today | Homes, offices, labs, cameras, access points, NAS boxes and servers | Packet capture, network study, or keeping old 10BASE-T gear alive |
Where a Switch Wins and Where It Does Not
Strengths of a switch
- Full speed on every port at the same time, so adding a device does not slow the others
- Frames go only where they need to go, which trims wasted bandwidth on a busy network
- Full duplex removes collisions entirely between switch ports
- Managed models add VLANs, link aggregation, port mirroring and per-port security
- Cheap unmanaged five- and eight-port models are sold everywhere
Where a switch falls short
- You cannot passively watch other devices' traffic without setting up port mirroring
- Managed switches bring a web login, firmware and configuration most homes never touch
- Looping two ports together without STP can flood the network
Who Should Choose an Ethernet Switch
Pick a switch if any of these sound like you:
- Your router has four LAN ports and you now have six things that want a cable: a desktop, a laptop dock, a printer, a NAS, a games console and a smart TV.
- You are running IP cameras or Wi-Fi access points and want each one on a stable, full-speed link instead of fighting for airtime.
- You work with large files over the LAN and notice transfers crawling when someone else is streaming.
- You want a tidy structured setup where a patch panel feeds one switch that feeds the whole house.
For most homes an unmanaged gigabit switch with five or eight ports is all that is needed: plug it into a router LAN port, plug the devices into it, done. Choose a managed switch only if you genuinely need VLANs, link aggregation or per-port monitoring.
Who Should Still Choose a Hub
There are two honest reasons to keep a hub around. The first is visibility: because a hub echoes everything out of every port, plugging a laptop running Wireshark into a spare port shows you all traffic on that segment without configuring anything. That is genuinely useful when you are teaching how Ethernet works or chasing a misbehaving device on an isolated bench network.
The second is legacy hardware. A device built for 10BASE-T, or an old industrial controller that never negotiated properly with a switch, may only come to life behind a hub. Keep it on its own little segment, never as the core of a working network.
Picking the Right Switch in Practice
- Port count
- Count your devices, then add two spare ports. Five and eight ports cover most homes; 16 and 24 suit small offices.
- Speed
- Gigabit (10/100/1000) is the sensible floor. Buy 2.5G or 10G only if your router, NAS or internet plan actually exceeds gigabit.
- Managed or unmanaged
- Unmanaged is plug-and-play. Managed adds VLANs, mirroring and monitoring, and expects someone to maintain it.
- Placement
- Put the switch where the cables converge, near a power outlet, and keep it out of a closed metal cabinet in a hot room.
- Cabling
- Cat5e handles gigabit over normal runs; Cat6 or better pays off for 2.5G, 10G and long runs near electrical noise.
- Power over Ethernet
- Choose a PoE switch if you plan to run cameras or access points and would rather not add a power injector at each one.
Final Verdict
The switch wins, and it is not close. A hub was a reasonable answer when Ethernet was a shared bus and every device on the segment was expected to hear everything; that model has been obsolete for decades. A switch delivers more speed per device, removes collisions, keeps unicast traffic private and costs little in its simplest form.
Buy a switch for the network you rely on. Keep a hub — or better, a switch with port mirroring — for the narrow job of watching traffic on a bench. If you already own a hub and everything works, replacing it with an unmanaged gigabit switch is one of the cheapest upgrades you can make to a wired network.
Frequently asked questions
Can I plug a hub into a switch?
Yes. The hub behaves like one slow, chatty device on that switch port. Devices behind the hub still share its bandwidth and stay half duplex, and the switch port will show collisions that the rest of the network never sees.
Is a hub the same thing as a repeater?
A hub is essentially a multi-port repeater. Both work at the physical layer: they regenerate the incoming electrical signal and send it onward without reading addresses. A repeater has two ports, a hub has several.
Will a switch slow down my internet connection?
No. A switch adds a negligible amount of forwarding delay and passes traffic between the router and your devices at line speed. Your internet plan and the router remain the real limits.
Do hubs need a crossover cable?
Many older hubs lack auto-MDIX, so connecting them to another hub or to some older devices may require a crossover cable. Modern switches handle the wiring automatically.
Can two ports on the same switch be connected together?
Physically yes, but doing so creates a loop and can flood the network with broadcast traffic unless the switch runs spanning tree. It is a common cause of a network that suddenly crawls.



