cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
724
Views
14
Helpful
8
Replies

type of switching method

shiva_ial
Level 1
Level 1

hi all,

from cisco docs i understood fast switching cache the first entry & second entry would be with shortcut and goes on till time out

i am confused in enabling switching method

we use to give ip route-cache flow command to monitor netflow statistics is that mean netflow switching (fast switcing) is enabled.

same command to enable netflow switching also

makes me confused.

8 Replies 8

Richard Burts
Hall of Fame
Hall of Fame

shiva

The situation about switching method is more simple now than it used to be. Recent versions of code implement CEF switching by default. CEF is similar to fast switching in that they both build a cache of entries used to speed up the packet forwarding decision. But where fast switching uses a demand cache which is built when the first packet is switched and will time out after some time, CEF builds its cache before the first packet is switched and therefore has better performance in packet switching than fast switching does (CEF does not need to process switch the first packet like fast switching does).

NetFlow is interesting when considering switching methods. While NetFlow was originally developed as a switching method (it built a cache entry for the flow which was used to switch all packets in the flow) Cisco pretty quickly dropped the switching method part of NetFlow and emphasized the netflow cache as a way to generate information about the traffic flowing through the router. So now running NetFlow has no impact on the switching method used by the router.

So in older versions of code there were multiple switching methods to consider and to configure, in recent code it is pretty much CEF switching.

HTH

Rick

HTH

Rick

hi richard,

thanks for your reply

still i am confused, if i put ip route-cache flow in interface to monitor netflow, will

router use netflow switching method or not

from previous post, you mean to say it will not, then how i am able to see cache information for that particular interface netflow enabled.

pls clarify.

shiva

If you put ip route-cache flow in interface config then the router will build the netflow cache and will generate statistics using that cache. But it does not use that cache to make packet forwarding decisions. The packet forwarding decision is made using CEF - at least that is the way that recent code works. If you go far enough back you could get to versions where enabling netflow would impact the switching method. But not in any recent code.

I hope that clarifies your question. If not ask again.

HTH

Rick

HTH

Rick

hi richard,

happy to see reply from u again,i started thinking of such things

since i am planning to do my ccie,so i thought of covering things clearly without confusion

===============================

my router details

cisco 2620XM

Version 12.3(18a)

"flash:c2600-js-mz.123-18a.bin"

=================================

1 fast ethernet & 2 serial interfaces

i have enabled netflow only in serial0/0,serial0/1 not used

-----------------------------------------------------------------------

router>sh interfaces switching

FastEthernet0/0

Throttle count 0

Drops RP 0 SP 0

SPD Flushes Fast 0 SSE 0

SPD Aggress Fast 0

SPD Priority Inputs 413582 Drops 0

Protocol IP

Switching path Pkts In Chars In Pkts Out Chars Out

Process 60834 13817578 237671 25485439

Cache misses 2911 - - -

Fast 17698810 3105510979 18807246 3143858411

Auton/SSE 0 0 0 0

--------------------------------------------------------------------------

Serial0/0 LINK CONNECTED TO delhi

Throttle count 0

Drops RP 0 SP 0

SPD Flushes Fast 0 SSE 0

SPD Aggress Fast 0

SPD Priority Inputs 374823 Drops 0

Protocol IP

Switching path Pkts In Chars In Pkts Out Chars Out

Process 3355679 733606093 3281909 357610922

Cache misses 0 - - -

Fast 18635288 2937914844 17612968 2891691687

Auton/SSE 0 0 0 0

Protocol Other

Switching path Pkts In Chars In Pkts Out Chars Out

Process 10 200 104951 1676776

Cache misses 0 - - -

Fast 207435 3318960 1 16

Auton/SSE 0 0 0 0

NOTE: all counts are cumulative and reset only after a reload.

--------------------------------------------------------------------------

i am able to see netflow traffic for the serial interface

now how to confirm what type of switching this router runs

whether process switching or netflow or it is running both based on inetrface basis

fyi: command to diasable netflow no ip route-cache command not given in my router

pls clarify

rgds

shiva

Can you do "sh ip cef". If the output shows "%cef not running" then enable it.

If its enabled in the switch then output indicates prefix, next-hop etc. Then cef is the switching method used irrespective of what you have configured.

hope that clarifies.

pls rate all helpful posts.

hi narayanan,

cef is enabled on that router

my confusion is ,When this router is doing cef

how does the router gets cache information

without using fast switching method,which i am able to see in netflow collector

Shiva,

I found a link with good explanation, may be of some help to you.

Refer this:

http://searchnetworkingchannel.techtarget.com/generic/0,295582,sid100_gci1261924,00.html

In this link, Check the use of "sh ip cache" with & without cef.

hope that clarifies.

pls rate all helpful pots.

thanks once again for this valuable reply

narayanan & richard

i am very clear on this now

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card