Broadcast, Unicast, and Multicast

Initially, a switch will not know which port is connected to which MAC address. It learns from the Ethernet frames it receives.

../../_images/switch_0.png

Port

MAC

1

?

2

?

3

?

4

?

It takes note of the source MAC and the source port of each Ethernet frame in the so-called forwarding table or forwarding information base (FIB).

If the destination MAC of an Ethernet frame is not known, the switch will broadcast the frame to all ports.

../../_images/switch_1.png

Port

MAC

1

A

2

?

3

?

4

?

../../_images/switch_2.png

Port

MAC

1

A

2

?

3

?

4

?

../../_images/switch_3.png

Port

MAC

1

A

2

?

3

?

4

?

Once it has learned which port reaches a MAC address, it will send frames addressed to this MAC directly to the target port. This is called unicast.

../../_images/unicast.png

Port

MAC

1

A

2

?

3

?

4

C

Beside unicast and broadcast, there is also multicast, which means an Ethernet frame is sent to multiple MACs at the same time.

../../_images/multicast.png