Cisco ASR 9000 sFlow configuration for FastNetMon Advanced

Home FastNetMon Advanced Technical Documentation Cisco ASR 9000 sFlow configuration for FastNetMon Advanced
Contents

To configure sFlow v5 on Cisco ASR 9000 platform please apply following configuration:

flow exporter-map SFLOW-EXP-MAP
version sflow v5
!
transport udp 6343
source Loopback0
destination [FastNetMon IP]

!
flow monitor-map SFLOW-MON-MAP
record sflow
exporter SFLOW-EXP-MAP

!
sampler-map SFLOW-SAMP-MAP
random 1 out-of 1000

Then enable it for all upstream facing interfaces:

interface TenGigE0/X/X/X
flow datalinkframesection monitor SFLOW-MON-MAP sampler SFLOW-SAMP-MAP ingress

Then check that configuration was applied correctly:

#sh flow monitor-map SFLOW-MON-MAP 

Flow Monitor Map : SFLOW-MON-MAP
-------------------------------------------------
Id:                4
RecordMapName:     sflow (1 labels)
ExportMapName:     SFLOW-EXP-MAP
CacheAgingMode:    Normal
CacheMaxEntries:   65535
CacheActiveTout:   1800 seconds
CacheInactiveTout: 15 seconds
CacheUpdateTout:   N/A
CacheRateLimit:    2000
HwCacheExists:     False
HwCacheInactTout:  50

sFlow options:
  Option: Max sample header

Then check that sFlow 5 frames are being exported correctly:

show flow exporter SFLOW-EXP-MAP location 0/0/CPU0 

Flow Exporter: SFLOW-EXP-MAP 
Export Protocol: sFlow v5 
Flow Exporter memory usage: 5265224
Used by flow monitors: SFLOW-MON-MAP

Status: Normal
Transport:   UDP
Destination: [FastNetMon IP]   (6343) VRF default
Source:      [Agent IP]     (64232)
Flows exported:                           158663104 (19446652344 bytes)
Flows dropped:                                    0 (0 bytes)

Packets exported:                          14500603 (19446652344 bytes)
Packets dropped:                                  0 (0 bytes)

Total export over last interval of:
  1 hour:                                    135190 pkts
                                          181446820 bytes
                                            1492583 flows
  1 minute:                                    2019 pkts
                                            2708076 bytes
                                              22345 flows
  1 second:                                       0 pkts
                                                  0 bytes
                                                  0 flows