cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
539
Views
5
Helpful
3
Replies

cef/fast-switching question

boshardy1
Level 1
Level 1

I am a little confused. Seems by default most interfaces on a router are set for fast switching. What is the difference between cef and fast switching.

What do the following commands do:

ip route-cache cef

ip route-cache

Why would you not want cef/fast-switching?

1 Accepted Solution

Accepted Solutions

paolo bevilacqua
Hall of Fame
Hall of Fame

In short, route-cache keeps a traffic-drive cache of most used destinations, that is aged periodically and doesn't really take much memory. CEF instead builds a table for all the destinations using prefix-based algorithm (Patricia trees) that you can search about.

The reason you disable that, is because certain features (less and less, but still there are some) don't work unless you do that and fail silently.

Hope this helps, please rate post if it does!

View solution in original post

3 Replies 3

paolo bevilacqua
Hall of Fame
Hall of Fame

In short, route-cache keeps a traffic-drive cache of most used destinations, that is aged periodically and doesn't really take much memory. CEF instead builds a table for all the destinations using prefix-based algorithm (Patricia trees) that you can search about.

The reason you disable that, is because certain features (less and less, but still there are some) don't work unless you do that and fail silently.

Hope this helps, please rate post if it does!

Is one of those cases to disable cef when you are doing vpn tunnels on a router?

I assume by your help earlier that cef is the way to go if it's a beefy router?

cef works in most cases of vpn/tunnels. If you want to see how much of you traffic is cef switch and how much is process, do "show interface switching".

A beefy router is needed every time traffic demands is enough. CEF is a must for any more than just moderate traffic.

Review Cisco Networking products for a $25 gift card