Free tech learning for everyone, from basics to pro

Photo: Stephen Phillips - Hostreviews.co.uk on Unsplash

ComparisonsBeginner

Hub vs Switch: what is the difference?

In short: A hub is an old Layer 1 device that copies every signal to all ports, so devices share bandwidth and collide. A switch learns MAC addresses and forwards each frame only to the right port, giving every device full speed.

Animation: Hub vs Switch at a glance. It plays on a loop with no sound.

Hub vs Switch in one sentence

A hub blindly repeats every signal to every port, while a switch learns where each device is and sends traffic only to the right port.

Side-by-side comparison

FeatureHubSwitch
OSI layerLayer 1 (physical)Layer 2 (data link)
ForwardingCopies to all portsOnly to the destination port
Collision domainsOne shared domainOne per port
DuplexHalf duplex onlyFull duplex
BandwidthShared by all devicesFull speed per port
SecurityAnyone can see all trafficTraffic only goes where it should
TodayObsoleteStandard everywhere

What is Hub?

A hub is a simple repeater with many ports. Whatever arrives on one port goes out of all the others. Only one device can send at a time; if two send together, their signals collide and both must try again.

What is Switch?

A switch reads MAC addresses and builds a table of which device is on which port. Each port is its own collision domain and can send and receive at the same time (full duplex), so a busy network stays fast.

Which one should you use?

Use a switch. Hubs have not been sold for normal networks for many years. You may still meet the idea in exams, and network engineers sometimes use a network tap or switch port mirroring (SPAN) when they want to copy traffic for analysis, which is the only job hubs used to be "good" at.

Common mistakes and myths

  • Calling a cheap unmanaged switch a "hub". It is still a switch.
  • Thinking a switch stops broadcasts. It does not; routers and VLANs do.

Learn more

Key takeaways

  • Hubs repeat everything; switches forward intelligently.
  • Switches give each port its own collision domain and full duplex.
  • Hubs are obsolete; use switches or port mirroring for captures.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

© 2026 FM TecHub. Original content written for FM TecHub. Share the link freely; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.