Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Switching Mechanisms

Direct answer

Process switching, fast switching and Cisco Express Forwarding concepts and why modern forwarding separates control-plane learning from data-plane lookup.

When to use this

Use it to understand why traffic is hardware-switched with CEF, and what it means when packets are punted to the CPU.

First 30 seconds

1. Switching mechanisms: process switching (CPU), fast switching (cache), CEF (FIB + adjacency).

2. CEF is default and best.

3. Process-switched traffic loads the CPU.

4. Punted traffic indicates special handling.

5. Check CPU when performance drops.

Operational verification

packet → CEF lookup (hardware/software) → forward; exceptions → process switch

Failure signatureRoute is in the routing table but packets are dropped or punted

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
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE
Scope / prerequisiteUse it to understand why traffic is hardware-switched with CEF, and what it means when packets are punted to the CPU.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • Process switching handles each packet in software on the CPU.
  • CEF uses a FIB and adjacency table built in advance for fast forwarding.
  • Hardware switching uses ASICs and TCAM.
Key checks
  • show ip cef switching statistics — CEF counters
  • show 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.

ReferenceWhy it matters1 section · depth on demand

Why it matters

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

MethodHow it decidesWeakness
Process switchingThe CPU does a full lookup for every packetSlow; limited by the CPU
Fast switchingThe first packet is process-switched, then cachedCache misses and invalidation after routing changes
CEFA pre-built FIB plus an adjacency tableNeeds memory for full tables
Hardware CEF (ASICs)The FIB is programmed into TCAMLimited by hardware table sizes

Central and distributed CEF (overview)

ModeWhere the FIB livesUse
Central CEFOn the route processorNon-distributed platforms
Distributed CEF (dCEF)Copies on each linecard, synchronisedScales with linecards; offloads the RP

When packets still reach the CPU

ReasonExample
Punt adjacencyFeatures that need special handling
Glean adjacencyFirst packet to a host whose ARP entry doesn't exist yet
Traffic to the router itselfRouting protocols, SSH, SNMP
ExceptionsTTL 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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:

MechanismBehaviour
Store-and-forwardReceive whole frame, check FCS, then forward — default on most enterprise switches
Cut-throughForward after reading the destination MAC — lower latency, forwards corrupt frames
Fragment-freeForward 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Terminology layer

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.

Depth when you need it

Deep reference

Design & tradeoffs

ENCOR design tradeoffs

Hardware/CEF forwarding improves scale and determinism; troubleshooting must compare RIB/control-plane state with forwarding state.

Confirmation

Confirm action

Continue?