Use it to understand why traffic is hardware-switched with CEF, and what it means when packets are punted to the CPU.
Switching Mechanisms
Process switching, fast switching and Cisco Express Forwarding concepts and why modern forwarding separates control-plane learning from data-plane lookup.
packet → CEF lookup (hardware/software) → forward; exceptions → process switch
show ip route shows the destination, but traffic is dropped, slow-pathed or reaches the wrong next hop.
Possible stored cause: The forwarding table (CEF/FIB) or adjacency for the next hop is missing or incomplete, so the hardware cannot forward what the RIB selected.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
show ip route shows the destination, but traffic is dropped, slow-pathed or reaches the wrong next hop.
Step 1 Verification & evidence Verify boundary
show ip route; show ip cef; show adjacency; platform forwarding commands where available.
Step 2 Common failure modes Narrow the fault
Missing/incorrect adjacency, incomplete resolution, control-plane route absent, or forwarding state not programmed as expected.
Step 3 Troubleshooting workflow Narrow the fault
Focus for this topic: Missing/incorrect adjacency, incomplete resolution, control-plane route absent, or forwarding state not programmed as expected.
Step 4 Common mistakes Narrow the fault
- Assuming cut-through switching forwards bad frames forever — modern switches fall back to store-and-forward on errors or speed changes.
- Comparing switching modes when the real latency is in queues or the application.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
show ip cef switching statistics— CEF countersshow interfaces stats— process vs fast switched
ReferenceWhat it is1 section · depth on demand
Concept overview
Process switching, fast switching and Cisco Express Forwarding concepts and why modern forwarding separates control-plane learning from data-plane lookup.
Key ideas: The control plane builds forwarding knowledge; the data plane uses optimized structures to forward packets at scale. CEF uses the FIB and adjacency information.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
From process switching to CEF
How a router moves packets has changed from per-packet CPU decisions to pre-computed forwarding tables. Cisco's CEF overview describes CEF as a Layer 3 switching technology, enabled by default on most platforms since IOS 12.0. Its FIB mirrors the routing table entry for entry and is updated whenever routing changes, so no route cache needs to be built or maintained. The overview contrasts this with fast switching. Fast switching caches routes on demand, and routing changes invalidate that cache, pushing traffic back to the CPU. CEF is also less CPU-intensive than fast-switching route caching.
Switching methods compared
| Method | How it decides | Weakness |
|---|---|---|
| Process switching | The CPU does a full lookup for every packet | Slow; limited by the CPU |
| Fast switching | The first packet is process-switched, then cached | Cache misses and invalidation after routing changes |
| CEF | A pre-built FIB plus an adjacency table | Needs memory for full tables |
| Hardware CEF (ASICs) | The FIB is programmed into TCAM | Limited by hardware table sizes |
Central and distributed CEF (overview)
| Mode | Where the FIB lives | Use |
|---|---|---|
| Central CEF | On the route processor | Non-distributed platforms |
| Distributed CEF (dCEF) | Copies on each linecard, synchronised | Scales with linecards; offloads the RP |
When packets still reach the CPU
| Reason | Example |
|---|---|
| Punt adjacency | Features that need special handling |
| Glean adjacency | First packet to a host whose ARP entry doesn't exist yet |
| Traffic to the router itself | Routing protocols, SSH, SNMP |
| Exceptions | TTL expiry, IP options, fragmentation with DF set |
R1# show ip cef summary
R1# show ip cef 10.40.0.0 detail
R1# show cef interface GigabitEthernet0/0/1 | include switching|CEF
R1# show ip interface GigabitEthernet0/0/1 | include switching
IP fast switching is enabled
IP CEF switching is enabled
R1# show processes cpu sorted | include IP Input|ARP Input
SW1# show platform software fed switch active punt cause summary
Reading CPU symptoms
High CPU in the "IP Input" process means packets are being process-switched instead of forwarded by CEF or hardware. Look for punted traffic, such as unresolved adjacencies, features that force punting, or traffic addressed to the device.
Documented example, not captured output.
Quick reference
Switching mechanisms describe how a switch forwards a frame once it has received it. Store-and-forward waits for the whole frame and checks it for errors; cut-through starts forwarding as soon as it knows the destination, saving latency at the cost of passing on damaged frames. In routers, a similar evolution led from per-packet CPU processing to hardware forwarding tables (CEF).
Switching mechanisms on Ethernet switches:
| Mechanism | Behaviour |
|---|---|
| Store-and-forward | Receive whole frame, check FCS, then forward — default on most enterprise switches |
| Cut-through | Forward after reading the destination MAC — lower latency, forwards corrupt frames |
| Fragment-free | Forward after 64 bytes (legacy) |
In routers, the evolution was process switching (CPU per packet) → fast switching (route cache) → CEF (FIB + adjacency table, precomputed). On hardware platforms, forwarding happens in ASICs programmed from the FIB/MAC tables; anything punted to the CPU is slow path.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Architecture → Switching Mechanisms. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
An adjacency is a protocol relationship that has progressed far enough for the protocol to exchange or synchronize the state needed for route calculation. In OSPF, not every discovered neighbor becomes fully adjacent on every network type.
Forwarding · relatedCEFCisco Express Forwarding: Cisco's forwarding architecture that uses the FIB and the adjacency table to switch packets.
Forwarding · relatedFIBForwarding Information Base: the forwarding copy of selected routes used for data-plane lookups.