What is Fast Switching?
It was the initial Route caching service enabled on networking devices and was endorsed well by industry leaders due to its functionality of offloading the Route processor. It is actually a reactive cache-based IP forwarding mechanism i.e. the address lookup uses a route cache to find the IP next-hop, outgoing interface, and outbound layer-2 header. Destination addresses are stored in the high-speed cache (Fast Switching) to expedite forwarding. Routers offer better packet-transfer performance when it is enabled.
When using Fast Switching, the first packet for a specific destination is forwarded to the route processor for a switching decision. When the processor completes its processing, it adds a forwarding entry for the destination to the fast cache. When the next packet for that specific destination enters the device, the packet is forwarded using the information available in the fast cache without directly going to the processor for routing decision.
Let’s note that fast switching allows outgoing packets to be load balanced on a per-destination basis, unlike CEF which has both options of per-destination and per-packet load balancing.
Below is “IP route-cache” interface configuration command to enable Fast Switching on a Router –
Below command will verify whether Fast Switching has been enabled on the specified interface (Fa0/0) –
As shown above, “enabled” confirms that Fast Switching is configured on the interface.
A lab setup as shown below was created to verify and understand the “Fast Switching” entries in the cache. The setup is configured so that all the given networks are reachable from any Router
Below command “show ip cache” shows entries for Fast Switching. As seen from the output, this cache is empty since no traffic has traversed till now.
Now after sending traffic from R1 Loopback (184.108.40.206/24) to R3 Loopback (220.127.116.11/24) below is the changes seen in the cache table. Notable is that Entries change to “2” for both the above-said networks in addition to information about the destination, the outgoing interface, the next-hop and age of entry –
Viewers can also understand the clear difference between Fast Switching and Cisco Express Forwarding through this link –
CEF Switching vs Fast Switching
Related- Process Switching vs Fast Switching