// Lesson 17 of 49 · Switching and VLANs
How a switch forwards frames
A switch makes one decision per frame: which port(s) should this go out of? It answers using its MAC address table (also called the CAM table).
Learning
When a frame arrives, the switch reads the source MAC and records "this MAC lives behind this port, in this VLAN". Learning always uses the source address.
Forwarding and filtering
Then it looks up the destination MAC:
| Destination | Action |
|---|---|
| Known, on another port | Forward out of that port only |
| Known, on the same port it arrived on | Filter (drop) — it's already there |
| Unknown unicast | Flood out of every port in the VLAN except the incoming one |
| Broadcast or (most) multicast | Flood in the VLAN |
Flooding is normal: the first frame to a new destination is flooded, the reply teaches the switch where the destination is, and later frames go directly.
Aging
Entries expire if not refreshed — 300 seconds by default. This lets the table track devices that move or disconnect.
SW1# show mac address-table dynamic
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
10 001a.2b3c.4d5e DYNAMIC Gi1/0/5
10 0050.56aa.0010 DYNAMIC Gi1/0/24
Many MACs on one port (like Gi1/0/24 above) usually means that port leads to another switch, an AP or a server hosting VMs.
Collision and broadcast domains
- Every switch port is its own collision domain (and with full duplex, collisions simply do not happen).
- Every VLAN is one broadcast domain.
- A router (or Layer 3 interface) separates broadcast domains.
Forwarding methods
- Store-and-forward — receive the whole frame, check the FCS, then forward. Default on most Cisco switches; drops corrupted frames.
- Cut-through — start forwarding after reading the destination MAC. Lower latency, used in some data-centre switches.
Key points
- Learn from source MAC; forward on destination MAC.
- Unknown unicast and broadcasts are flooded within the VLAN.
- MAC entries age out after 300 seconds by default.
- One VLAN = one broadcast domain.
Sign in to save your lesson progress across devices. You can read every published lesson without an account.