AP Networking • Study Resource

How Switches Forward Ethernet Frames

Follow an Ethernet frame through a switch: source MAC learning, destination lookup, known-unicast forwarding, flooding, broadcast behavior, VLAN scope, and MAC-table aging.

Independent AP Networking resource • Updated 2026-10-01 • Built for students and teachers
AP Networking Premium: Add guided practice, answer explanations, artifact work, and structured review to the free study system.
Explore Premium Resources
Core mental model

A switch learns from the source and forwards based on the destination

That one sentence explains most Ethernet switching questions. When a frame arrives, the switch can learn where the source MAC came from. It then examines the destination MAC to decide whether to forward to one port, flood within the VLAN, or avoid sending the frame back out the ingress port.

1
Receive
Frame enters an interface in a VLAN context.
2
Learn
Associate source MAC with ingress port/VLAN.
3
Look up
Search for destination MAC in that VLAN's forwarding context.
4
Forward
Known unicast goes toward the learned destination port.
5
Flood if needed
Unknown unicast/broadcast is replicated within the VLAN, except ingress.
Exam trap: switches do not normally choose the outgoing Layer 2 port by looking up the source MAC. The source is used for learning; the destination drives the forwarding decision.
Ethernet evidence

Separate the fields that identify sender and intended Layer 2 receiver

Destination MAC00:BB:BB:BB:BB:BB
Source MAC00:AA:AA:AA:AA:AA
EtherTypeIPv4
PayloadLayer 3 packet

If this frame enters port 3, the switch can learn that source MAC A is reachable through port 3. It then searches for destination MAC B. These are two distinct operations, and mixing them up is one of the easiest ways to miss a switching question.

Source learning

The MAC table is built from observed source addresses

Before frame arrives VLAN MAC address Port 20 00:CC:CC:CC:CC:CC Gi0/9 Incoming frame on Gi0/3, VLAN 20 SRC = 00:AA:AA:AA:AA:AA DST = 00:BB:BB:BB:BB:BB After source learning 20 00:AA:AA:AA:AA:AA Gi0/3 20 00:CC:CC:CC:CC:CC Gi0/9

The switch did not need a management server to tell it where A lives. A's own transmitted frame supplied the evidence. If A later legitimately moves and sends from another port, dynamic learning can update the location.

What this provesThe switch has recently observed frames sourced by MAC A on that port in that VLAN.
What this does not proveIt does not prove A's IP address, default gateway, DNS, application health, or end-to-end reachability.
Known unicast

When the destination is known, forwarding becomes targeted

MAC table, VLAN 20 A → Gi0/3 B → Gi0/8 C → Gi0/9 Frame arrives Gi0/3 SRC A → DST B Decision: learn/refresh A → Gi0/3 lookup B → Gi0/8 forward frame → Gi0/8

The switch does not need to send this frame to C on Gi0/9. Known-unicast forwarding is selective, which is one reason switched Ethernet scales better than a shared medium where every station sees every transmission.

Unknown unicast

An unknown destination causes temporary flooding—not random guessing

If B is not yet in the MAC table, the switch cannot select B's single port. It replicates the frame to eligible ports in the same VLAN except the ingress port. If B is present, B receives the frame and may respond. B's reply gives the switch something it can learn: B as a source.

Sequence: A→B arrives; B is unknown → flood. B replies to A; switch learns B's source location. The next A→B frame can now be known unicast.
Important distinction: unknown unicast flooding is a fallback caused by missing destination-table knowledge. It does not mean the switch has forgotten which VLAN the frame belongs to.
Broadcast

Broadcast flooding is intentional and scoped to the broadcast domain

An Ethernet broadcast destination such as ff:ff:ff:ff:ff:ff is meant for all members of that Layer 2 broadcast domain. A common example is an ARP request asking which local device owns a particular IPv4 address.

Unknown unicastThe switch would prefer one destination port but does not currently know it.
BroadcastThe destination itself intentionally represents all hosts in the broadcast domain.

Both can result in flooding, but the reason is different. That distinction matters on evidence-based questions.

VLAN scope

Flooding does not mean “send everywhere on the switch”

VLAN membership constrains Layer 2 forwarding. A VLAN 10 broadcast is not ordinarily flooded into VLAN 20 simply because both VLANs exist on the same physical switch. VLANs create separate Layer 2 broadcast domains.

Switch ports Gi0/1 access VLAN 10 Gi0/2 access VLAN 10 Gi0/3 access VLAN 20 Gi0/4 access VLAN 20 Broadcast arrives on Gi0/1 in VLAN 10 Eligible local access destination: Gi0/2 Gi0/3 and Gi0/4 are VLAN 20 → not part of VLAN 10 broadcast flood

If an IP design requires VLAN 10 to communicate with VLAN 20, a Layer 3 function must route between the subnets, subject to policy.

Same port case

What if the destination is learned on the same port the frame entered?

If the switch's table says the destination MAC is reachable through the same interface on which the frame arrived, forwarding that frame back out that interface is unnecessary. This can occur when multiple devices are reachable behind another Layer 2 device on one switch port.

Reasoning skill: “Destination known” does not automatically mean “transmit.” You must compare the learned destination port with the ingress port.
Aging

Dynamic MAC aging trades perfect memory for adaptable forwarding

★ Layer 2 Review • How Switches Forward Ethernet Frames

A five-minute warm-up for How Switches Forward Ethernet Frames

Tomorrow’s opening question can pick up where this page leaves off: have students trace the connection and explain why traffic takes that path. The 300 Bell Ringers give you short questions and teacher answers you can use without preparing a new starter each morning.

300 AP Networking Bell Ringers
$74.99
BUY TEACHER PACK → See what is included in the 300 Bell Ringers →
Instant Access • Full-Year Teacher Resource

Dynamic MAC entries are not intended to remain forever. If a host stays silent long enough, its entry can age out. Later traffic destined for that host may temporarily become unknown unicast and be flooded within the VLAN until fresh source traffic lets the switch relearn the host's location.

Normal interpretationAn aged-out entry followed by brief unknown-unicast flooding can be ordinary switching behavior.
Do not overclaimA missing dynamic entry by itself does not prove a cable failure, dead host, or broken switch.
Worked trace

Follow the table as A and B communicate for the first time

EventWhat switch learnsDestination knowledgeAction
1. A sends to B on port 3A → port 3B unknownFlood within VLAN except port 3
2. B receives and replies on port 8B → port 8A known on port 3Forward reply only toward port 3
3. A sends again to BRefresh A → port 3B known on port 8Forward only toward port 8
4. B becomes silent long enough to age outB entry eventually removedB unknown againNext A→B may flood until B is relearned

Swipe horizontally to follow the complete frame trace.

ARP connection

Do not confuse ARP's job with the switch's MAC-table job

ARP / neighbor resolution

A host uses ARP in IPv4 to resolve a local next-hop IPv4 address to a MAC address.

Switching & VLAN Lab • 120 Missions

Let students try How Switches Forward Ethernet Frames for themselves

Reading the explanation is a start. In the browser simulator, students work through a broken network, choose what to test and see whether their fix worked. It gives them another chance to use what they learned about How Switches Forward Ethernet Frames.

AP Networking Browser Troubleshooting Simulator
$29.99
120 Missions • 60 Failure Patterns • Offline Copy
GET THE SIMULATOR → See all 120 missions & features

Switch MAC table

A switch learns which port/VLAN is associated with observed source MAC addresses so it can make Layer 2 forwarding decisions.

A host may first need ARP to discover a destination or gateway MAC. The resulting Ethernet frames then give the switch source-learning opportunities. Related mechanisms participate in the same exchange but solve different problems.

Layer 2 Exam Practice • How Switches Forward Frames

Check whether How Switches Forward Ethernet Frames has really stuck

Once students have worked through this topic, give them questions mixed in with the rest of the course. The Exam Prep Vault includes practice exams, multiple-choice questions and artifact labs so they cannot rely on a chapter heading to tell them what to do.

AP Networking Complete Exam Prep Vault
$39.99
GET THE EXAM PREP VAULT → See the Exam Prep Vault contents →
4 Practice Exams • 320 MCQs • 60 Artifact Labs
Router boundary

The destination MAC can change hop by hop even when the IP destination does not

A sends to a remote subnet: A does not normally build a local Ethernet frame addressed to the remote host's MAC. A sends the local frame toward its default gateway's MAC. The router removes the incoming Layer 2 framing and constructs appropriate Layer 2 framing for the next link. The IP packet's ultimate destination remains the remote host while Layer 2 addressing is link-local.
Exam trap: switches forward Ethernet frames using Layer 2 information; routers make Layer 3 forwarding decisions. Do not treat a remote destination IP as if the local switch directly maps it to a switchport.
Failure signatures

Read the MAC table as evidence, not as a verdict

ObservationReasonable inferenceWhat it does not proveNext evidence
Source MAC absent after host should transmitExpected Layer 2 evidence is missingExact root causeLink/port/VLAN + capture/host activity
MAC learned in wrong VLANPlacement/tagging mismatch is plausibleWhy configuration is wrongAccess/trunk config and design
MAC moves once after user relocatesCould be normal mobilityA loopTiming/topology/context
MAC rapidly alternates between portsLoop/duplicate identity becomes concerningWhich device caused itTopology, STP, port logs, captures
Correct same-VLAN MAC learning, remote access failsShift toward Layer 3/policyThat routing is definitely brokenGateway, routes, ACL/firewall evidence

Swipe horizontally to see the complete evidence table.

Changed-fact reasoning

Change one fact and watch the forwarding answer change

B unknown → B known

The first A→B frame may flood; after B is learned, later A→B traffic can be targeted to B's learned port.

Same VLAN → different VLAN

Premium Switching Feedback

Spend less time marking explanations about How Switches Forward Ethernet Frames

When students explain their answer, it takes more than a right-or-wrong check to see what they understand. The Grading Copilot helps you review how they used the clues, where their explanation falls short and what feedback to give next. You make the final grading decision.

AP Networking Artifact Analysis Grading Copilot
$49.99
8 Criteria • 5 Task Modes • Offline Premium Copy
GET THE GRADING COPILOT → See the free Copilot preview

Pure Layer 2 switching no longer supplies direct inter-VLAN communication; a Layer 3 forwarding function is required.

B entry present → aged out

The next A→B frame can revert from known-unicast forwarding to unknown-unicast flooding.

Destination port different → same as ingress

The switch no longer needs to send the frame back out that same interface.

AP-style reasoning

A stronger answer explains the decision, not just the vocabulary

NEW • COMPLETE 180-DAY TEACHER CURRICULUM

Teach How Switches Forward Ethernet Frames as part of a planned school year

This page gives you one topic. The 180-Day Teacher Curriculum puts it into a full course plan, with daily teaching notes, student activities and checks for understanding. Use it when you need to know what comes before this lesson and what to teach next.

AP Networking Complete 180-Day Teacher Curriculum
$199.99
180 Lessons • 180 Daily Simulators • 36 Teaching Weeks
GET THE 180-DAY CURRICULUM → See 3 free curriculum examples

Instead of writing “the switch floods,” write: “The switch learns the source MAC on the ingress port, cannot find the destination MAC in the VLAN's forwarding table, and therefore floods the unknown-unicast frame to eligible ports in that VLAN except the ingress port.”

That answer shows mechanism, evidence, scope, and consequence. It also transfers to troubleshooting questions where you must explain why a packet capture or MAC-table artifact changes your diagnosis.

Quick misconceptions

Six statements students should be able to correct

  • “A switch learns destination MACs.” It learns locations primarily from source MACs observed on incoming frames.
  • “Unknown unicast goes to every VLAN.” Flooding is constrained by the VLAN/broadcast-domain context.
  • “Broadcast and unknown unicast mean the same thing.” They may both flood, but for different reasons.
  • “A missing MAC entry proves the host is offline.” Dynamic aging or lack of recent source traffic can also explain it.
  • “Same-switch means same broadcast domain.” VLANs can create separate Layer 2 domains on one physical switch.
  • “A switch needs the destination IP to pick an access port.” Ordinary Layer 2 forwarding uses the destination MAC and VLAN context.
Free digital flashcards

24 frame-forwarding flashcards

Use these to practice the actual reasoning sequence: source learning, destination lookup, forwarding scope, aging, evidence interpretation, and changed facts.

All switching cards
Click or press Enter/Space to reveal.
Try to explain the mechanism before moving on.
0 seen•24 cards