BradReese.Com Instant Quotes

Home About Repair Power Supplies Refurbished Blog Quick Links Site Map Contact Us

 
Brad Reese how to
Archive
  Help

Aironet

Power Supplies

VoIP Gateways

Cisco Repair

Refurbished Cisco

Cisco CPQRGs

New Cisco

New HP ProCurve

Cisco Tools

Competitive Lab Tests

Tech Forums

How-to Tutorials

CCIE Gossip

Blogroll

 
Archive of Brad's how to

Subscribe to Brad's how to

How-to setup sampled Cisco NetFlow
Mon, 05/03/10 - 12:17pm    View how to tips and comments

In performance measurement vendor Plixer International's previous blog titled - How to configure a Cisco Nexus 7000 to export NetFlow v9, Plixer outlined how to enable Flexible NetFlow using 5 easy steps.

Plixer also believes that unlike the Cisco Catalyst 6500 which drops NetFlow when its busy, the Cisco Nexus 7000 can send exponentially more flows (i.e. tens of thousands per second) without dropping anything. Although this may sound impressive, no single NetFlow collector solution can handle over 50,000 flows per second. Imagine a switch (the Cisco Nexus 7000) that is capable of sending even more than this.

NetFlow Sampling on the Nexus 7000

On high bandwidth interfaces, applying NetFlow processing to every single packet can result in high CPU utilization. Cisco NetFlow sampling on the Nexus 7000 (see configuring NetFlow) is for high-speed interfaces. You can configure samples for M out of N, for example, 1 out of every 100 packets are sampled. Below you can define the number of samples to take per the number of packets received. The sample range is from 1 to 64. The packet range is from 1 to 8192 packets. Is this starting to sound like sFlow?

NetFlow vs. sFlow

Some think that NetFlow sampling is beginning to look and smell like sFlow, but it isn't the same thing. The sFlow technology samples packets of any protocol (IPX, Spanning Tree, etc.) and NetFlow is limited to IP. However, sFlow cannot be used as reliably for IP accounting. Neither are standards, but NetFlow like sFlow can be implemented in hardware or software and like sFlow, NetFlow can sample packets. More on this in another blog. You can find more information on sFlow vs. NetFlow within Network World's (Closer look: sFlow better than NetFlow?).

Even if the collector could handle the volume, the necessary SQL queries on such a massive amount of data could cause coffee breaks. This is when NetFlow sampling must come into play. Plixer's aware that it's a dirty phrase most enterprises don't want to consider, however, there are times when it's simply the only option. Enterasys also came to terms with this in their X Series switch, which only sends sampled NetFlow.

Review of the NetFlow Commands

To review, here are the steps to set up the Cisco Nexus 7000 to export NetFlow v9:

  1. Enable the NetFlow feature.
  2. Create a Flow Record (e.g. netflow-original) and specify the fields that you want exported (we'll use the default).
  3. Create a Flow Exporter (e.g. scrutinizer) that specifies where and how the NetFlow is to be sent.
  4. Create a Flow Monitor (e.g. tie the Flow Record to the Flow Exporter).
  5. Map the Flow Monitor to selected interfaces.
Setting up sampled NetFlow fits in between steps 4 and 5. Here's how to do it. Plixer will skip steps 1 - 4, since you can read about this in Plixer's previous blog.

Fourth -We need to bind the record to the exporter using a flow monitor. We'll call it 'Monitortac7000.'

tac7000(config)# flow monitor Monitortac7000
tac7000(config-flow-monitor)# exporter scrutinizer
tac7000(config-flow-monitor)# record netflow-original
tac7000(config-flow-monitor)#exit
tac7000(config)#

Please pay close attention to what happened above. We bound the record 'netflow-original' to the exporter 'scrutinizer' and the name of this flow monitor is called 'Monitortac7000.'

Step 4.5 - We need to bind the record to the exporter using a flow monitor. We'll call it 'Monitortac7000.'

tac7000(config)# sampler Samplertac7000
tac7000(config-flow-sampler)# mode 1 out-of 100
tac7000(config-flow-sampler)# exit
tac7000(config)#

Above, we're sampling 1 out of every 100 packets.

Fifth - Now it's time to apply the flow monitor 'Monitortac7000' to each interface.

tac7000(config)# interface Vlan612
tac7000(config-if)# ip flow monitor Monitortac7000 input Samplertac7000
tac7000(config-if)# exit

The next line is for egress, but in most cases you don't need it.

tac7000(config)# interface Vlan612
tac7000(config-if)# ip flow monitor Monitortac7000 output Samplertac7000

Continue on applying the flow monitor to each interface.

tac7000# interface Vlan613
tac7000(config-if)# ip flow monitor Monitortac7000 input Samplertac7000
tac7000(config-if)# exit
tac7000(config)# interface Vlan614
tac7000(config-if)# ip flow monitor Monitortac7000 input Samplertac7000
tac7000(config-if)# exit
tac7000(config)# interface Vlan615
tac7000(config-if)# ip flow monitor Monitortac7000 input Samplertac7000
tac7000(config-if)# exit
tac7000(config)# interface Vlan616
tac7000(config-if)# ip flow monitor Monitortac7000 input Samplertac7000

Sixth - Plixer knows it was supposed to be 5 steps, but Plixer forgot this one.

tac7000(config)# copy running-config startup-config
tac7000(config)# exit

Visit Brad's how to archive.


Don't be shy, what tips can you provide on sampling Cisco NetFlow?

Contact Brad Reese

Subscribe to Brad's how to

Brad's how to picks

  1. Archive of Brad's how to
  2. How to configure a Cisco Nexus 7000 to export NetFlow v9
  3. How to setup Cisco's Flexible NetFlow (FNF) with LEGO Blocks
  4. How to absolutely guarantee QoS with network traffic
  5. How-to configure Cisco Flexible NetFlow for NBAR exports
  6. How to reduce the high cost of T1 service
  7. How to setup Cisco IP SLA jitter monitors
  8. How to use NAT in overlapping networks
  9. How to redistribute routing protocols
  10. How to ensure that the optimal path is taken in a redundant network setup
  11. How to configure MPLS VPN over ATM using cell mode MPLS with BGP or RIPv2 on the customer site
  12. How to configure NAT
  13. How to configure HSRP on a Cisco router
  14. How to avoid fragmentation of MPLS packets over Fast Ethernet interfaces
  15. How to configure EIGRP variance to load balance traffic across unequal cost links
  16. How to configure MD5 authentication for BGP
  17. How to configure floating static routes for redundancy
  18. How to configure a GRE tunnel
  19. How to configure OSPF over a point-to-point link
  20. How to configure OSPF
 
blog comments powered by Disqus

Brad Reese music work ambience

Supplement Cisco SMARTnet Contracts

 

©2011 BradReese.Com - Home - About - Repair - Power Supplies - Refurbished - Blog - Quick Links - Site Map - Contact Us