Free tech learning for everyone, from basics to pro

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

Frequently asked questions

What is the main difference between a hub and a switch?

A hub repeats every signal to all ports. A switch learns which device is on each port using a MAC address table and sends frames only where they need to go.

Which OSI layer do hubs and switches work at?

A hub works at layer 1 (physical). A switch works at layer 2 (data link); layer 3 switches can also route.

Why are hubs no longer used?

All devices on a hub share one collision domain and see each other's traffic, which is slow and insecure. Switches are cheap and give each port its own collision domain.

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.
Verified author✓ Valid
Issued to
FM TecHub Team
Role
Editorial team
Reviewer credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

The team writes practical, plain-English guides on networking, security and cloud.

More about the team →

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

Get free updates by email

New notes, tools, CCNA and Security+ tips and important security news from FM TecHub, explained simply. Free, about twice a month. Unsubscribe anytime; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesup

Free · no spam · past emails · powered by Buttondown