Skip to content

Practice: Ethernet and Local Delivery

Module
Ethernet and Local Delivery
Difficulty
Easy
Updated
Tested on
Ubuntu 24.04.5 LTS, netlab 1.0, GNU Bash 5.2.21, tcpdump 4.99.4
On this page

You are checking a quiet capture on phone. Someone expects every frame sent through sw-home to appear there. Before accepting that claim, predict what the switch learns and which cables each frame reaches. Then use a capture and a table read to test your explanation.

Finish Broadcast domains and boundaries. Leave machine shells and run netlab reset from the VM terminal. Keep modes off and open two VM terminals. Both begin at learner@rootvolt:~$. Terminal 1 will enter phone to listen; terminal 2 uses one-command machine calls from the VM.

Write the starting table before sending anything. A test ping would teach the switch early.

Build a prediction from sources and destinations

Section titled “Build a prediction from sources and destinations”

Your sequence begins with router’s first ping to phone. It causes a broadcast address question, phone’s direct answer, an echo request and an echo reply. Then laptop tries the unused address 10.77.10.99, causing an unanswered broadcast question. Keep any retries in your capture; they are repeated frames, not extra machines.

For each of those five steps, write the source interface, destination interface or broadcast address, incoming switch port, table after learning, and receiving cables. Use the real MAC addresses you read in MAC addresses and frames. Read the source before changing the table; then use the destination to choose delivery.

Your goals are to:

  • Identify the source, destination and EtherType in a captured Ethernet header.
  • Predict the table after every source has had a chance to send.
  • Separate intended destination from cables reached through flooding.
  • Explain why a home broadcast does not reach web.
  • Compare the prediction with a real table read and phone capture.

Before looking at the replays, answer two questions. Does router’s question teach phone’s location? After phone answers, will laptop see router’s echo request?

Use the table command from How switches learn before and after the sequence. In terminal 1, start the same arp or icmp listener used in Unicast, broadcast, and flooding. Keep -n and -e so you can compare numeric addresses and link headers.

In terminal 2, use the shown one-command calls to send from router and then laptop. Each terminal may ask for sudo authentication separately. Wait for phone’s listener to start before sending. Return to terminal 1, stop it, leave phone’s shell with exit, and read the table from the VM again.

Check the predicted table and receivers
learner@rootvolt:~$ netlab shell sw-home -- bridge fdb show br sw-home dynamic[sudo] password for learner: learner@rootvolt:~$ netlab shell phonelearner@phone:~$ 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 bytes18:17:51.081190 02:77:10:00:00:01 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 10.77.10.11 tell 10.77.10.1, length 28
18:17:51.081210 02:77:10:00:00:11 > 02:77:10:00:00:01, ethertype ARP (0x0806), length 42: Reply 10.77.10.11 is-at 02:77:10:00:00:11, length 28
18:17:51.081218 02:77:10:00:00:01 > 02:77:10:00:00:11, ethertype IPv4 (0x0800), length 98: 10.77.10.1 > 10.77.10.11: ICMP echo request, id 188, seq 1, length 64
18:17:51.081261 02:77:10:00:00:11 > 02:77:10:00:00:01, ethertype IPv4 (0x0800), length 98: 10.77.10.11 > 10.77.10.1: ICMP echo reply, id 188, seq 1, length 64
18:17:51.649343 02:77:10:00:00:10 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 10.77.10.99 tell 10.77.10.10, length 28
18:17:52.661726 02:77:10:00:00:10 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 10.77.10.99 tell 10.77.10.10, length 28
18:17:53.685869 02:77:10:00:00:10 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 10.77.10.99 tell 10.77.10.10, length 28^C7 packets captured
7 packets received by filter
0 packets dropped by kernellearner@phone:~$ exitlogoutlearner@rootvolt:~$ netlab shell sw-home -- bridge fdb show br sw-home dynamic02:77:10:00:00:10 dev laptop master sw-home 
02:77:10:00:00:11 dev phone master sw-home 
02:77:10:00:00:01 dev router master sw-home learner@rootvolt:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.0), GNU Bash 5.2.21. Terminal 1 checks the empty start, captures on phone, then returns to the VM for the final table read.
Steps (23)
  1. Type netlab shell sw-home -- bridge fdb show br sw-home dynamic
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. Type netlab shell phone
  7. Press Enter
  8. Type sudo tcpdump -i eth0 -n -e arp or icmp
  9. Press Enter
  10. Output: [sudo] password for learner:
  11. Type the password (the terminal shows nothing)
  12. Press Enter
  13. Output: tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
  14. Terminal 2 on the VM sent from router, then laptop. Return here and stop the capture.
  15. Output: 18:17:51.081190 02:77:10:00:00:01 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 10.77.10.11 tell 10.77.10.1, length 28 18:17:51.081210 02:77:10:00:00:11 > 02:77:10:00:00:01, ethertype ARP (0x0806), length 42: Reply 10.77.10.11 is-at 02:77:10:00:00:11, length 28 18:17:51.081218 02:77:10:00:00:01 > 02:77:10:00:00:11, ethertype IPv4 (0x0800), length 98: 10.77.10.1 > 10.77.10.11: ICMP echo request, id 188, seq 1, length 64 18:17:51.081261 02:77:10:00:00:11 > 02:77:10:00:00:01, ethertype IPv4 (0x0800), length 98: 10.77.10.11 > 10.77.10.1: ICMP echo reply, id 188, seq 1, length 64 18:17:51.649343 02:77:10:00:00:10 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 10.77.10.99 tell 10.77.10.10, length 28 18:17:52.661726 02:77:10:00:00:10 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 10.77.10.99 tell 10.77.10.10, length 28 18:17:53.685869 02:77:10:00:00:10 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Request who-has 10.77.10.99 tell 10.77.10.10, length 28
  16. Press Ctrl + C
  17. Output: 7 packets captured 7 packets received by filter 0 packets dropped by kernel
  18. Type exit
  19. Press Enter
  20. Output: logout
  21. Type netlab shell sw-home -- bridge fdb show br sw-home dynamic
  22. Press Enter
  23. Output: 02:77:10:00:00:10 dev laptop master sw-home 02:77:10:00:00:11 dev phone master sw-home 02:77:10:00:00:01 dev router master sw-home
Send from router, then laptop in terminal 2
learner@rootvolt:~$ netlab shell router -- ping -c 1 10.77.10.11[sudo] password for learner: PING 10.77.10.11 (10.77.10.11) 56(84) bytes of data.
64 bytes from 10.77.10.11: icmp_seq=1 ttl=64 time=0.780 ms

--- 10.77.10.11 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.780/0.780/0.780/0.000 mslearner@rootvolt:~$ netlab shell laptop -- ping -c 1 -W 1 10.77.10.99PING 10.77.10.99 (10.77.10.99) 56(84) bytes of data.

--- 10.77.10.99 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0mslearner@rootvolt:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.0), GNU Bash 5.2.21. Terminal 2 on the VM runs one ping on router, then one unanswered attempt on laptop.
Steps (9)
  1. Type netlab shell router -- ping -c 1 10.77.10.11
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. Output: PING 10.77.10.11 (10.77.10.11) 56(84) bytes of data. 64 bytes from 10.77.10.11: icmp_seq=1 ttl=64 time=0.780 ms --- 10.77.10.11 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.780/0.780/0.780/0.000 ms
  7. Type netlab shell laptop -- ping -c 1 -W 1 10.77.10.99
  8. Press Enter
  9. Output: PING 10.77.10.99 (10.77.10.99) 56(84) bytes of data. --- 10.77.10.99 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms
Check your answer

Router’s question teaches router alone. Phone’s answer teaches phone. Their echo request and reply refresh those two entries. Laptop’s later question adds laptop. Merely naming phone in a question does not teach its port. Laptop does not see the later echo request, because phone’s answer has already taught the switch where phone is.

Save your final table and the capture lines as evidence. Pick the echo request and identify its destination, source and type. Write one sentence about any difference between your prediction and the result. A difference is useful evidence; do not remove a line to make the prediction look right.

“Phone’s capture is a list of everything sw-home handled.” Phone sees frames that reach phone’s cable. It cannot report every unicast between other machines.

“Three entries mean three cables received every frame.” Table entries describe learned sources. Receiver decisions still depend on each destination and the table at that moment.

Capture duration matters. Repeated unanswered questions, or later address checks, can add lines. Compare their source and destination instead of assuming that every extra line is another echo request. Keep times and ping identifiers as observed; your numbers will differ.

Predict whether web sees laptop’s unanswered question. Run the check above and compare your saved table and destination addresses with your predictions. Explain every frame phone captures and one frame laptop misses.

Solution

Phone’s listener records seven frames here: the four-frame router–phone exchange and three repeated broadcast questions from laptop. The final table contains laptop, phone and router on their own named ports. The request carries destination 02:77:10:00:00:11, source 02:77:10:00:00:01 and EtherType 0x0800.

Web sees none of the home broadcast: router separates its domain.

  1. Does a switch learn an address merely because it appears as a destination?
  2. Which address comes first in an Ethernet header’s bytes?
  3. Does a flooded unicast acquire a broadcast destination?
  4. Why can tcpdump show phone a frame its programs do not receive?
  5. What stops the home broadcast from reaching web?
Answers
  1. No. It learns a source address and its incoming port.
  2. The destination address comes first.
  3. No. The original unicast destination remains.
  4. Tcpdump asks to see all frames reaching the cable; the system can still drop a frame addressed elsewhere.
  5. Router separates the broadcast domains and does not forward that local frame onto the site link.
  • Separate header order, source learning and destination delivery.
  • Check the table at the time the frame is sent.
  • Run a capture at a named point and compare it with your prediction.

Next, Understanding IPv4 Addresses examines the addresses carried inside these frames.