Networking & IoT · Interview question

How does a modern switch differ from an old hub?

A strong answer

A hub is a dumb physical-layer repeater: any bits arriving on one port are blasted out all other ports, so every device shares one collision domain, only one device can transmit at a time without colliding, and the medium ran half-duplex with CSMA/CD (carrier sense multiple access with collision detection) to arbitrate. A switch is a layer-2 device that learns which MAC address is reachable on which port, by recording the source MAC of frames it sees, and then forwards each unicast frame only to the port where the destination MAC lives. That gives each port its own collision domain, so devices run full-duplex with no collisions at all, and aggregate bandwidth scales because multiple conversations happen simultaneously on different ports. Broadcasts and unknown-destination frames still go to all ports (the broadcast domain), and switches build a MAC address table that ages out stale entries. The upshot is that switched full-duplex Ethernet eliminated the collision-and-backoff regime that limited shared hubs, which is why CSMA/CD is essentially historical for wired Ethernet today.

What a weak answer sounds like

You know the answer. Do you know what gets you dinged?

Pro breaks down the answer most candidates actually give to this question — and the specific reason an interviewer marks it down. It’s the difference between sounding correct and sounding senior, on all 472 questions.

From the lesson

Ethernet Basics

The dominant link layer: MAC addresses and frame format, the MAC-vs-PHY split (and how MCUs pair an on-chip MAC with an external PHY over RMII), and how switches forward by MAC.

More Ethernet Basics questions

Browse all 472 interview questions
How does a modern switch differ from an old hub? | EmbeddedPrep.io