AP Networking • Unit 3 • Topic 3.2

AP Networking Topic 3.2: Switching Topologies

Understand switched Ethernet by tracing MAC learning, known and unknown unicast forwarding, VLAN broadcast boundaries, access ports, trunks, redundant links, STP behavior, and evidence from MAC tables.

Independent AP Networking resource • Updated 2026-09-13 • Includes 24 free digital flashcards
Switching rule: follow the frame through VLAN context, MAC learning, trunk carriage, and the first failed Layer 2 boundary.
Practice with Flashcards
Switching model

A switched topology is a forwarding system, not just a drawing of cables

The most useful way to study switching is to follow one Ethernet frame at a time. Ask where the frame enters, which VLAN it belongs to, what source MAC the switch learns, whether the destination MAC is known, which links are eligible to carry the frame, and where the Layer 2 domain ends. This turns topology diagrams into operational evidence instead of memorization.

Frame reasoning chain: Ingress Port → VLAN Context → Source MAC Learning → Destination Lookup → Forward / Flood → Trunk Carriage → Layer 2 Boundary → Layer 3 Gateway if needed.
Source MAC learning

The switch learns where senders are

When a frame arrives, the switch records the source MAC address on the ingress port for the relevant VLAN. That learning is dynamic. If the device moves and transmits from another port, the switch can update the entry. If the device disappears long enough, the entry can age out.

Frame arrives: SRC 00:11:22:33:44:55 DST aa:bb:cc:dd:ee:ff Ingress Gi1/0/7 VLAN 20 MAC table update: 00:11:22:33:44:55 → Gi1/0/7, VLAN 20
Known unicast

A learned destination narrows the forwarding path

If the destination MAC already exists in the MAC table for that VLAN, the switch forwards the frame toward the associated port rather than sending it everywhere. That is the normal selective-forwarding behavior that distinguishes a switch from a hub.

Important nuance: the lookup is VLAN-aware. A destination learned in VLAN 20 is not automatically a valid destination entry for VLAN 30.
Unknown unicast

Flooding is how a switch handles a destination it has not learned

If the destination MAC is unknown, the switch floods the frame through eligible ports in the same VLAN except the ingress port. When the destination replies, switches along the path learn the return source MAC, so later traffic can become known unicast.

Do not confuse unknown unicast with broadcast. The destination MAC is still a unicast address even though the switch floods it because the location is unknown.
Broadcasts

A VLAN defines the Layer 2 broadcast boundary

Ethernet broadcast frames such as ARP requests are delivered throughout the VLAN, not across unrelated VLANs. This is one reason VLANs are useful for segmentation: they create separate Layer 2 broadcast domains even when devices share the same physical switch infrastructure.

Host A: VLAN 10 ARP request: Who has 10.10.0.50? Flood scope: VLAN 10 only Host C: VLAN 20 does not receive the VLAN 10 broadcast
Access ports

An access port places an ordinary endpoint into one VLAN

In a common access-port design, the endpoint sends ordinary untagged Ethernet frames. The switch associates those frames with the configured access VLAN. A wrong access VLAN can therefore produce a completely healthy physical link while the host receives the wrong DHCP scope or cannot reach expected peers.

Expected: Gi1/0/18 → VLAN 20 Configured: Gi1/0/18 → VLAN 30 Observed lease: 10.30.0.44 Interpretation: Layer 1 healthy; logical placement wrong
Trunks

One physical link can carry several VLANs

A trunk allows multiple VLANs to cross the same inter-switch or switch-to-router infrastructure link. VLAN tagging commonly preserves the logical network identity while frames travel over the shared cable.

Access link

Usually one endpoint VLAN.

Trunk

Several VLANs over one link.

Key evidence

A working VLAN proves the physical trunk can carry traffic.

Partial trunk failure

One VLAN can fail while the trunk itself remains up

Trunk: up/up Allowed VLANs: 10,20 Expected VLANs: 10,20,30 Observed: VLAN 10 crosses ✓ VLAN 20 crosses ✓ VLAN 30 fails ✕

The shared link is already proven operational for VLANs 10 and 20. The stronger branch is VLAN 30 allowance, VLAN existence, or tagging—not a dead cable.

MAC tables are VLAN-aware

The same switch keeps logical forwarding contexts separated

MAC-table entries should be read with VLAN context. Seeing a host MAC on the expected physical port but under the wrong VLAN can be direct evidence of logical misplacement.

Expected: aa:bb:cc:dd:ee:ff Gi1/0/18 VLAN 20 Observed: aa:bb:cc:dd:ee:ff Gi1/0/18 VLAN 30

The cable and port may be fine. The logical placement is wrong.

Worked two-switch trace

Predict forwarding before looking at a command output

Switch A: Host A MAC AA on port 3 Uplink to Switch B on port 24 Switch B: Host B MAC BB on port 8 Case: A sends to B

If Switch A knows BB is reachable through port 24, it forwards only to the trunk. Switch B then forwards only to port 8. If Switch A does not yet know BB, it floods the frame inside the VLAN, including the trunk, until learning occurs from the reply.

Frame-learning sequence

One exchange can teach both switches

1. A transmits
Switch A learns A on the access port.
2. B unknown
A's frame is flooded within the VLAN.
3. B replies
Switch B learns B on its access port; Switch A learns B toward the trunk.
4. Later traffic
Known-unicast forwarding becomes selective in both directions.
Redundancy and loops

Two Layer 2 paths can create a forwarding loop

Redundancy is valuable, but arbitrary Layer 2 forwarding across parallel paths is dangerous. Ethernet broadcasts and unknown unicasts can circulate because Ethernet frames do not have an IP-style TTL that naturally stops them after a set number of hops.

Loop signature: widespread slowdown, high broadcast traffic, MAC movement, high switch CPU, packet loss, and instability across the Layer 2 domain.
Spanning Tree

STP keeps physical redundancy while creating a loop-free forwarding topology

Spanning Tree Protocol and related mechanisms prevent Layer 2 loops by placing redundant links or ports into non-forwarding states when necessary. If the active path fails, a previously blocked path can transition according to protocol behavior.

Key distinction: a physically connected redundant link does not necessarily mean that link is forwarding user frames right now.
MAC flapping

Rapid MAC movement can expose an unexpected Layer 2 path

10:02:11 MAC aa:aa moves Gi1/0/47 → Gi1/0/48 10:02:12 MAC aa:aa moves Gi1/0/48 → Gi1/0/47 10:02:13 MAC aa:aa moves Gi1/0/47 → Gi1/0/48

If the endpoint is not intentionally moving, rapid alternation between infrastructure ports can indicate a loop, miswired connection, duplicate bridging path, or another topology problem.

Broadcast storm evidence

One slow application is not enough to diagnose a switching loop

Broadcast storms usually have broad scope. Look for abnormal broadcast or multicast rates, rapidly increasing interface utilization, widespread loss, unstable MAC learning, topology events, and multiple affected hosts. The scope should match a shared Layer 2 failure.

Star topology

Failure scope follows shared components

In a star, each endpoint connects to a central switch. An endpoint cable failure affects one endpoint, while failure of the central switch affects all attached devices. In a hierarchical star, a shared uplink or distribution device can affect multiple downstream access segments.

★ Layer 2 Review • Switching Topologies

A five-minute warm-up for AP Networking Topic 3.2: Switching Topologies

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
Topology clue: who fails together is often as important as what device failed.
Hierarchical topology

Use the diagram to predict the failure domain before testing

If one access switch loses upstream connectivity while neighboring access switches remain healthy, investigate that switch's uplink or local path. If several access switches behind the same distribution device fail together, the shared distribution or upstream dependency becomes stronger.

Case 1

Local same-switch traffic works, but remote-switch traffic fails

Host A ↔ Host B same switch, same VLAN: works Host A ↔ Host C remote switch, same VLAN: fails

Local switching is proven. Inspect the inter-switch path, trunk state, VLAN allowance, and whether the remote switch has the VLAN defined and forwarding.

Switching & VLAN Lab • 120 Missions

Let students try AP Networking Topic 3.2: Switching Topologies 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 AP Networking Topic 3.2: Switching Topologies.

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

VLAN 10 crosses the uplink but VLAN 20 does not

This is one of the highest-information switching signatures. The uplink cannot be completely dead if VLAN 10 is using it successfully. The next inspection should be specific to VLAN 20.

VLAN 10: cross-switch ping works ✓ VLAN 20: cross-switch ping fails ✕ Local VLAN 20: works ✓ Strong branch: VLAN 20 trunk carriage/existence
Case 3

Same-VLAN traffic works, but inter-VLAN traffic fails

If hosts communicate within VLAN 20 but cannot reach VLAN 30, the switch may already be forwarding Layer 2 traffic correctly. Move upward to the default gateway, SVI/router interface, route table, and firewall/policy.

Layer 2 Exam Practice • Ap Networking 3 2 Switching Topologies

Check whether AP Networking Topic 3.2: Switching Topologies 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
Boundary shift: do not keep troubleshooting access switching after the Layer 2 path is proven.
Case 4

A host is missing from the MAC table after expected transmission

If an endpoint is known to be transmitting but the access switch never learns its source MAC, inspect the endpoint link, interface state, access VLAN, cabling, NIC behavior, and whether traffic actually reaches that switch port.

Case 5

The MAC appears upstream, but not where you expected

Access switch: client MAC on Gi1/0/18 Distribution switch: same MAC learned on unexpected trunk Expected: different access block

The upstream MAC location can reveal an unintended path, wrong physical attachment, loop, or topology mismatch. MAC tables can therefore be used as a path-tracing artifact, not just as a local switch table.

Native VLAN nuance

Tagged VLANs can work while untagged traffic fails

If trunk endpoints disagree about the native or untagged VLAN, tagged VLANs may continue to pass while untagged frames land in different logical networks. That creates a partial failure that can be misread as a generic trunk problem.

Premium Artifact Reasoning

Spend less time marking explanations about AP Networking Topic 3.2: Switching Topologies

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
Evidence boundaries

MAC and topology artifacts prove Layer 2 facts—not the entire application path

ArtifactWhat it provesWhat it does not prove
MAC learned on access portSource traffic arrived thereGateway or application works
MAC learned toward trunkSource traffic came through that trunk pathDestination service works
VLAN 10 crosses trunkPhysical trunk can carry trafficVLAN 20 is correctly allowed
Same-VLAN peer worksLocal Layer 2 forwarding worksInter-VLAN routing/policy works
STP blocks a portPort is intentionally non-forwardingPhysical link is bad

Swipe horizontally to see the evidence boundaries.

Troubleshooting sequence

Trace the first failed Layer 2 boundary

Applied lab

Predict the path before you read the MAC table

Topology: Host A — SW1 — trunk — SW2 — Host B A and B: VLAN 10 Host C: VLAN 20 on SW2 MAC tables: initially empty

When A first sends to B, both switches learn A's source location. Because B is unknown, the frame floods only in VLAN 10. Host C in VLAN 20 should not receive the frame. B's reply teaches the reverse location, after which A-to-B forwarding becomes selective.

NEW • COMPLETE 180-DAY TEACHER CURRICULUM

Teach AP Networking Topic 3.2: Switching Topologies 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

Now remove VLAN 10 from the trunk. A and B cannot exchange frames across switches, but Host C's VLAN 20 path can remain healthy if VLAN 20 is still permitted. That is a logical partial failure, not a total uplink failure.

Verification

A switching fix must restore the failed VLAN without damaging known-good paths

If you add VLAN 20 to a trunk, confirm VLAN 20 cross-switch communication now works and VLAN 10 still works. If you correct an access VLAN, confirm the endpoint receives the intended subnet and can reach expected same-VLAN peers. If you change STP or redundancy, verify loop-free forwarding and failover behavior according to the design.

Verification rule: test the repaired path and at least one control that should remain unchanged.
Exam transfer

Strong answers describe the forwarding mechanism

Instead of saying “the trunk is broken,” say: “VLAN 10 crosses the trunk successfully, so the shared physical link is operational. VLAN 20 works locally but is absent from the trunk allowed set, making VLAN 20 trunk carriage the first failed boundary.”

Answer pattern: forwarding rule → topology evidence → working control → failed boundary → correction → verification.
Free digital flashcards

24 Switching Topologies digital flashcards

Practice MAC learning, known and unknown unicast, VLAN broadcast domains, access ports, trunks, partial failures, STP, loops, MAC flapping, topology scope, evidence boundaries, and verification.

All switching cards
Click or press Enter/Space to reveal.
Trace the frame through VLAN context, learning, trunk carriage, and the Layer 2 boundary.
0 seen•24 cards
Continue studying

Move from switching behavior into verification and segmented-LAN troubleshooting