background image
192 Chapter 6: IP Routing
Process Switching
Process switching is the slowest of the switching methods. When a packet arrives at an
interface, the system processor is interrupted for the time it takes to copy the packet from the
interface buffer to system memory. The processor looks up the Layer 3 destination address for
the packet in the routing table to determine the exit interface. The packet is rewritten with the
correct header for that interface and is copied to the interface. At this time, an entry is also
placed in the fast-switching cache so that subsequent packets for the destination address can use
the same header. The first packet to a destination is always process-switched.
Fast Switching
Fast switching allows higher throughput by switching a packet using an entry in the fast-
switching cache that was created when a previous packet to the same destination was processed.
With fast switching, a packet is handled immediately, without scheduling an interrupt of the
system processor.
Fast switching maximizes the volume of traffic that the router can handle by streamlining the
router's queuing mechanisms. Fast switching deals with incoming frames in processor
interrupt mode
and minimizes the number of decisions that must be applied. Fast switching
also precaches routes. As soon as an IP destination is process-switched, its route is cached
and is associated with a specific interface. When an IP destination is precached, it is tied to a
specific path.
Steps for Fast Switching
Use the following steps to implement fast switching:
1
A packet comes into an internetwork device.
2
The address or virtual circuit number is examined.
3
A table lookup operation determines where the packet or frame should be sent.
4
Header information might be changed.
5
The packet or frame is transmitted out an interface.
Autonomous Switching
Autonomous switching is available on Cisco 7000-series routers. It uses an autonomous-
switching cache
located on interface processors. Autonomous switching provides faster packet
switching by allowing the ciscoBus controller to switch packets independently, without having
to interrupt the system processor.
87200333.book Page 192 Wednesday, August 22, 2001 2:37 PM