flokinet-006 - Layer 2 Broadcast vs Unicast

title: flokinet-006 - Layer 2 Broadcast vs Unicast
author: Nicholas Morrison
draft: false
tags: [network, workshop, arista, presentation]
categories: [workshop]
noindex: true

Broadcast vs Unicast

Broadcast Frames Unicast Frames
- sent to every host - sent to a single host
- processed by every host - ignored by other hosts
- MAC address destination FF:FF:FF:FF:FF:FF - MAC address destination of the host
- eg: ARP, IPv6-NDP, OSPF, DHCP - eg: ping, ssh, http, ftp, traceroute
- all about discovery - transferring data from host to host

Broadcast Domain

Broadcast example: ARP

Broadcast example: ARP

A single broadcast domain shared by 24 hosts.

Single broadcast domain
Single broadcast domain

Broadcast example: ARP

192.168.0.24 (MAC 44:e5:17:00:00:18) wants to send a packet to 192.168.0.15, so it needs to know 192.168.0.15’s MAC address. It sends a single layer 2 broadcast to the network, addressed to ff:ff:ff:ff:ff:ff.

ARP packet sent
ARP packet sent

Broadcast example: ARP

The switch sees the broadcast coming in on port 24, and copies that broadcast to every port in the same VLAN, except port 24. Every host must send this packet to its CPU and take a look at it.

ARP packet copied
ARP packet copied

Broadcast example: ARP

The host that HAS the address 192.168.0.15 realises that this question is for it, and replies quietly (with a UNICAST frame) to the host who asked. All other hosts stay silent on the matter.

Now the two hosts can communicate directly with one another!

The host replies
The host replies

Broadcast example: ARP

Broadcast packets are not forwarded by routers into other broadcast domains!

Broadcast packets are not forwarded
Broadcast packets are not forwarded

Broadcast and (Unknown-)Unicast and Multicast and Switches

Layer 2 Loops and Broadcast Storms

Happy network with no loop

Network with no loop
Network with no loop

Happy network with two switches and no loop

Two switches, no loop
Two switches, no loop

Sad network a loop between two switches

Somebody disabled spanning tree.

A network with a loop
A network with a loop

The beginning of the storm - an innocent “arp who-has”

Calm before the storm
Calm before the storm

The broadcast who-has is repeated by the switches

The packet is forwarded
The packet is forwarded

.. and the broadcast storm begins ..

The storm begins
The storm begins

.. and continues until devices run out of capacity

The storm destroys everything
The storm destroys everything

Aftermath