Broadcast domains and boundaries
On this page
A broadcast reaches everyone nearby. You have seen phone capture laptop’s question, although the question asked for router. Web also belongs to the lab. You need a more precise boundary than “everyone” before predicting whether web sees the same frame.
Before you start
Section titled “Before you start”Finish Unicast, broadcast, and flooding. Leave machine shells and run netlab reset from the VM terminal. Keep modes off. Terminal 1 begins at the VM prompt and enters web. Terminal 2 enters laptop. Start web’s listener first, then send laptop’s first ping to router’s home address.
Keep the previous lesson’s arp or icmp filter, numeric addresses and link headers. Router’s eth0 is its home interface; eth1 is its site interface. Web has eth0 on the site network. Those names describe different places even when two interfaces share the name eth0.
Listen beyond the router
Section titled “Listen beyond the router”Predict: will web see the broadcast sent by laptop before its first ping to router?
learner@rootvolt:~$ netlab shell web[sudo] password for learner: learner@web:~$ sudo tcpdump -i eth0 -n -e arp or icmp[sudo] password for learner: tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes^C0 packets captured
0 packets received by filter
0 packets dropped by kernellearner@web:~$ exitlogoutlearner@rootvolt:~$ Steps (17)
- Type
netlab shell web - Press Enter
- Output:
[sudo] password for learner: - Type the password (the terminal shows nothing)
- Press Enter
- Type
sudo tcpdump -i eth0 -n -e arp or icmp - Press Enter
- Output:
[sudo] password for learner: - Type the password (the terminal shows nothing)
- Press Enter
- Output:
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes - Terminal 2 on laptop finished sending. Return to terminal 1.
- Press Ctrl + C
- Output:
0 packets captured 0 packets received by filter 0 packets dropped by kernel - Type
exit - Press Enter
- Output:
logout
learner@laptop:~$ ping -c 1 10.77.10.1PING 10.77.10.1 (10.77.10.1) 56(84) bytes of data.
64 bytes from 10.77.10.1: icmp_seq=1 ttl=64 time=0.397 ms
--- 10.77.10.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.397/0.397/0.397/0.000 mslearner@laptop:~$ Steps (3)
- Type
ping -c 1 10.77.10.1 - Press Enter
- Output:
PING 10.77.10.1 (10.77.10.1) 56(84) bytes of data. 64 bytes from 10.77.10.1: icmp_seq=1 ttl=64 time=0.397 ms --- 10.77.10.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.397/0.397/0.397/0.000 ms
Check your answer
Web captures zero matching frames. The ping succeeds, so a quiet capture on web does not mean laptop failed to send. It means this traffic did not reach the interface where web was listening.
A second recording made at the same time listens at both router interfaces. You can repeat it by listening on router with the same filter: use -i eth0 for home or -i eth1 for site, resetting before each run. On its home interface, the first frame has destination ff:ff:ff:ff:ff:ff and asks who has router’s home address. The site interface and web see none of that broadcast. Compare those points before deciding where the frame stopped.
| Capture point | Matching frames | Home broadcast |
|---|---|---|
| router:eth0 | 4 | Present |
| router:eth1 | 0 | Absent |
| web:eth0 | 0 | Absent |
The four home frames include the question, its answer, the echo request and its reply. Only the first is broadcast. Count the destination addresses as well as the total; four captured frames do not mean four broadcasts.
Put a name on the boundary
Section titled “Put a name on the boundary”A broadcast domain is the set of interfaces a local broadcast can reach through the connected switches. Router’s two sides belong to different broadcast domains. It receives the home broadcast on its home interface and does not forward that frame onto the site network.
Router straddles the boundary, with its eth0 link inside the home domain and its eth1 link inside the site domain.
This gives a concrete meaning to “one network” from LANs, WANs, and the Internet. Laptop, phone and router’s home interface share local broadcast delivery. Web and router’s site interface share a different local broadcast boundary. The router can carry suitable traffic between those networks, but sharing a router does not make them one broadcast domain.
Mistakes to recognize
Section titled “Mistakes to recognize”“A router forwards everything it receives.” Router’s home capture contains the question; its site capture does not. Receiving a frame is not a promise to copy it onto every other interface. Reading the successful ping alone would miss this difference.
“Zero frames means the whole network is silent.” Web’s zero is a result at web. The simultaneous home capture has four frames. Always keep the capture point beside the result when describing evidence.
Good to know
Section titled “Good to know”These counts belong to a fresh, quiet run with the stated filter. Other traffic or an already used lab can change what appears. Begin again before comparing. You are checking whether the home broadcast crosses the boundary, rather than promising a count for every network.
Try it yourself
Section titled “Try it yourself”In this model, sw2 connects one interface of each router. Each router’s other interface connects to an outer switch. Outline every broadcast domain and list its members, including the named machines. Predict which switches a broadcast from pc2 reaches. Then predict what router’s site interface captures from laptop’s first ping to router after a reset. In terminal 1, run netlab shell router, then sudo tcpdump -i eth1 -n -e arp or icmp. In terminal 2, enter laptop with netlab shell laptop and run ping -c 1 10.77.10.1. Stop the listener with Ctrl+C and compare with your prediction.
Solution
There are three domains. One contains pc1, sw1 and r1’s interface facing sw1. The next contains pc2, sw2 and the interfaces of r1 and r2 facing sw2. The last contains pc3, sw3 and r2’s interface facing sw3. A pc2 broadcast reaches both facing router interfaces and neither outer switch.
The site listener captures zero matching frames. This expected result is already proven by the existing simultaneous recording at router:eth1. The home broadcast appears at router eth0 and stops there.
- A broadcast reaches interfaces within its broadcast domain.
- Router separates home broadcast delivery from site broadcast delivery.
- Compare captures at named interfaces to locate a boundary.
Next, Practice: Ethernet and Local Delivery combines byte reading, learning and receiver predictions.
Further reading
Section titled “Further reading”- Linux kernel: Ethernet bridging, for delivery through a bridge.
- Ubuntu: tcpdump manual, for captures at selected interfaces.