Foundations · Unit 16 · Lesson 1 of 2
Switches, ARP, and broadcasts
Separate a switch’s forwarding memory from an endpoint’s address-resolution memory.
Helpful before thisLayer 2 and wireless
After this lesson you can
- explain source-address learning and destination-based frame forwarding
- distinguish a MAC table from an ARP cache
- describe the scope and limits of a local broadcast domain
In a fictional office, a laptop prints to a nearby printer through an Ethernet switch. Two different kinds of memory help make that delivery work: the laptop remembers a neighbor’s link address, and the switch remembers where link addresses were seen. Mixing up those tables makes local networking seem more mysterious than it is.
A frame has a source and a destination
An Ethernet frame contains link-layer source and destination addresses. A switch normally learns from the source address of an arriving frame, associating it with the incoming port and VLAN. It then looks at the destination to choose where to forward the frame. Learning the source and forwarding toward the destination are separate operations.
If a destination is known, normal forwarding can select the relevant port. If an ordinary unicast destination is unknown, a common behavior is flooding to eligible other ports in the same VLAN. A broadcast also has local distribution rules. Features such as filtering and flood controls can change what is permitted, so this is a conceptual baseline rather than a promise about every switch.
ARP answers an endpoint’s different question
Before sending an IPv4 packet over Ethernet, the laptop may need the next hop’s MAC address. ARP provides a way to ask for that IPv4-to-link-address relationship and remember the answer in a cache. The next hop may be the printer if it is on the attached network, or a gateway if the destination is remote.
The switch’s table says “MAC B is reached through port 4.” The laptop’s ARP cache says “this neighbor IPv4 address corresponds to MAC B.” Neither statement requires knowing the human owner’s name. IPv6 uses Neighbor Discovery instead of ARP and uses multicast for relevant discovery exchanges; it does not simply reuse the IPv4 broadcast procedure.
PredictThe laptop remembers the printer’s IPv4-to-MAC mapping, but the switch has aged out the printer’s MAC location. Must the laptop’s ARP entry also disappear?
No. They are different tables with different owners and lifetimes. The switch may need to relearn forwarding information while the laptop still has a usable neighbor mapping. One missing entry does not prove every related cache is empty.
Local reach is not identity
Basic ARP does not authenticate its mappings. A MAC address is also not an unchangeable proof of device ownership. These limitations explain why networks combine admission controls, protected management, segmentation, and end-to-end application security. They do not imply that every device automatically receives all traffic or that every local exchange reveals encrypted content.
VLANs keep ordinary layer-2 broadcast domains separate. Crossing between them needs routing and appropriate policy. Keeping the office printer in a limited device zone can reduce unnecessary paths, but the permitted print service still needs its own sensible configuration. The clearest explanation names the table, its scope, and what evidence it actually contains.
Check yourself
No timer. No penalties. Read the explanation and try again whenever you like.
This lesson’s questions have changed. Your reading progress is saved; review the updated questions.
-
A switch receives a frame from laptop A on port 2. What can ordinary learning record?
Show the answer
Correct answer: A’s source MAC address is reachable through port 2 in this VLAN. The incoming source address and interface provide the forwarding-location observation.
-
A laptop has an ARP entry for the gateway. Is that the switch’s MAC table?
Show the answer
Correct answer: No; the tables answer different delivery questions. An endpoint resolves a neighbor address, while the switch selects a local forwarding port.
-
An ordinary switch does not know a unicast destination. What is a common default behavior?
Show the answer
Correct answer: Flood within eligible ports of the same VLAN, excluding ingress. Unknown-unicast handling can duplicate the frame locally; policy and implementation can restrict it.
-
A device appears in a MAC table. Does this establish trusted identity?
Show the answer
Correct answer: No; it establishes a forwarding observation. Admission and application authentication require their own controls.
Try it
- WriteUse paper cards for a fictional laptop A, printer B, and gateway G connected to one switch. Give the switch a table mapping MAC labels to ports, and give A a separate table mapping IP labels to MAC labels. Explain why the two tables answer different questions.