Switches
Broadcast domain
The set of devices a broadcast reaches: one network at the link layer.
The problem
Some questions, like ARP's "who has this IP address?", must reach every device on the network at once.
- Alice wants carol's MAC, so she sends an ARP request to
ff:ff:ff:ff:ff:ff, the broadcast address. - A switch always floods a broadcast: out of every port but the one it came in on.
- Bob and carol both get it; only carol, who has
10.0.1.12, answers. - Everyone a broadcast reaches is one broadcast domain: here, everything on officeSwitch.
What you'd see
$ tcpdump -e -nn -i eth0 arp
18:49:23.292092 b6:a0:12:30:a8:0b > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 10.0.1.12 (ff:ff:ff:ff:ff:ff) tell 10.0.1.10, length 28
- Recorded on bob while alice looked for carol.
> ff:ff:ff:ff:ff:ff: the frame is for everyone, so bob's card takes it although the question is not his.who-has 10.0.1.12 … tell 10.0.1.10: alice asks for carol's MAC.
Guess first
A router joins officeSwitch to a second network. Does alice's broadcast reach the devices over there?
Show answer
No. Routers do not forward broadcasts, so each network behind a router is its own broadcast domain. VLANs split one switch the same way.
In short
ARP requests and DHCP discovers are broadcasts (to ff:ff:ff:ff:ff:ff), heard by every device in the domain.
Routers do not forward broadcasts, so each network behind a router is its own domain. VLANs split one switch into
several.
Read next
- ARP How a device finds the MAC address behind an IP address on its own network.
- VLAN Several separate networks on one switch, kept apart by a tag in each frame.
- Switch Joins devices into one network, forwarding each frame toward the port its destination MAC was seen on.
- DHCP How a device gets its address, gateway and DNS server when it joins a network.
- Broadcast storm A broadcast copied round a loop of switches for ever, because Ethernet frames have no hop limit.
- DHCP relay A router that passes DHCP broadcasts on to a server on another network, so one server can serve many.
- MAC address table A switch's record of which port each MAC address was last seen on, learned from source addresses.
- Multicast One packet to a group of listeners, like all OSPF routers on a link (224.0.0.5).
- VXLAN Ethernet frames carried inside UDP across a routed network, so one segment can span racks or sites.