12-28-2003 06:25 AM - edited 03-02-2019 12:34 PM
Hi All
Could you explain me the difference between Fast Switching, Process Switching and CEF?
I did read Cisco IOS Swtching Path Overview document available on cisco.com. But could not understand.
Thanks and regards
Vijayendran Sridharan
Solved! Go to Solution.
12-28-2003 09:59 AM
Hello Vijayendran,
check out this document, it explains the differences in detail:
How to Choose the Best Router Switching Path for Your Network
Regards,
Georg
12-28-2003 12:36 PM
Basically, wth process switching, every packet entering an interface creates a CPU interrupt, and processed by the main CPU, with fast switching, one step forward: every packet to a certain destination is process switched first and a table called fast switching cache is formed. This table consists of: a destination IP, associated layer-2 address, and output interface. This mechanism makes pavket switcing process faster. A packet to a certain destination is process switched first and meanwhile associated fast switching cache entry is formed. Subsequent packets are fast switched, that's to say: no need for the main CPU for route lookup, fast sw cache contains enough info. CEF is the latest step in switching technology, it has solutions to some drawbacks of fast switching: Fats switching cache is file as traffic comes in and fast sw cache consists of single host entries. CEF maintains two tables: Adjacency Table and FIB (forwarding information base). FIB contains destination networks (learnt from static or routing protocols) and associated outgoing interfaces. Adjacency table contains layer-2 addresses for layer-3 next-hops in FIB. FIB is not traffic driven as with fast switching cache, it's formed as soon as route table is filled, and contains network entries contrast to fast switching cache. CEF and it's distributed form (dCEF) are the most efficient packet switching mechanisms for Cisco routers. Also CEF is required for certain QoS applications.
Regards.
12-28-2003 09:59 AM
Hello Vijayendran,
check out this document, it explains the differences in detail:
How to Choose the Best Router Switching Path for Your Network
Regards,
Georg
12-28-2003 12:36 PM
Basically, wth process switching, every packet entering an interface creates a CPU interrupt, and processed by the main CPU, with fast switching, one step forward: every packet to a certain destination is process switched first and a table called fast switching cache is formed. This table consists of: a destination IP, associated layer-2 address, and output interface. This mechanism makes pavket switcing process faster. A packet to a certain destination is process switched first and meanwhile associated fast switching cache entry is formed. Subsequent packets are fast switched, that's to say: no need for the main CPU for route lookup, fast sw cache contains enough info. CEF is the latest step in switching technology, it has solutions to some drawbacks of fast switching: Fats switching cache is file as traffic comes in and fast sw cache consists of single host entries. CEF maintains two tables: Adjacency Table and FIB (forwarding information base). FIB contains destination networks (learnt from static or routing protocols) and associated outgoing interfaces. Adjacency table contains layer-2 addresses for layer-3 next-hops in FIB. FIB is not traffic driven as with fast switching cache, it's formed as soon as route table is filled, and contains network entries contrast to fast switching cache. CEF and it's distributed form (dCEF) are the most efficient packet switching mechanisms for Cisco routers. Also CEF is required for certain QoS applications.
Regards.
12-29-2003 05:50 AM
Actually, process switched packets are handled by a process on the router, ip input, so the steps are:
-- packet received and placed on the receive ring of the interface
-- CPU interrupted, packet classified and moved to the ip input queue
-- ip input scheduled, eventually runs, does the correct lookups, and then rewrites the mac header
-- packet is placed on the output queue of the right interface
With fast, if there is a fast cache entry, the packet is switched in the first interrupt, after the packet is received. If there is no fast cache entry, the packet is process switched. With cef, the packet is processed in the first interrupt, or it is "punted" to process switching.
Take a look at Inside Cisco IOS Software.
:-)
Russ.W
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide