Ethernet – How does a Hub work when sending broadcast packages

ethernet

I know that hubs send broadcast packets, so every packets is received by each node in the broadcast domain. I read that frames that are received but that aren't addressed to a NIC'S MAC address are dropped. But I mean if it is a broadcast packet, it shouldn't be accepted by each node?

Best Answer

Hubs are layer 1 devices. As they receive electrical impulses constituting a frame, they forward them out all ports other than the receiving port.

This is regardless of whether the l2 destination is unicast, multicast, or broadcast (ff:ff:ff:ff:ff:ff).

This may result in an Ethernet collision if multiple hosts transmit traffic to the hub simultaneously.

A host’s Ethernet adapter will pass certain received frames up the protocol stack for further processing ( generating a cpu interrupt)

  1. Unicast frames which match its Ethernet unicast address
  2. Multicast frames destined to any l2 multicast address which the host is “listening” to
  3. All broadcast l2 frames

If the l2 frame includes a l3 packet, the host cpu will de-encapsulate and process it.

If the interface is placed in “promiscuous mode” ( by tcpdump for example) it is possible for all received Ethernet frames to be sent up the protocol stack and generate interrupts.