4.2 Configure and verify Flexible NetFlow

ENCOR 350-401 v1.2 · 4.0 Network Assurance

SNMP tells you an interface is busy; NetFlow tells you who is using it. A router or switch summarises traffic into flows (same source, destination, ports, protocol, ToS, input interface) and exports them to a collector. Flexible NetFlow lets you choose the fields. ENCOR expects you to configure and verify it.

What you must know

Records, exporters and monitors

flow record APP-RECORD
 match ipv4 source address
 match ipv4 destination address
 match transport source-port
 match transport destination-port
 match ipv4 protocol
 collect counter bytes
 collect counter packets
 collect timestamp absolute first
!
flow exporter TO-COLLECTOR
 destination 10.0.50.40
 source Loopback0
 transport udp 2055
 export-protocol netflow-v9
!
flow monitor APP-MONITOR
 record APP-RECORD
 exporter TO-COLLECTOR
 cache timeout active 60
!
interface GigabitEthernet0/1
 ip flow monitor APP-MONITOR input

match fields are key fields: a new combination starts a new flow. collect fields are non-key: counted or stored per flow. The active timeout exports long flows every 60 seconds; inactive flows are exported after 15 seconds by default.

Traffic is counted as it enters (1); summaries go to the collector (2), which shows top talkers, applications and trends.

Commands

show flow monitor APP-MONITOR cacheCurrent flows in the cache with their counters.
show flow exporter statisticsRecords and packets sent to the collector.
show flow interfaceMonitors applied to each interface.

Exam traps

Check yourself

What makes two packets part of the same flow?
Identical key fields (for example source and destination address, ports, protocol, ToS, input interface).
What is the difference between match and collect in a flow record?
match fields define the flow; collect fields are values gathered for it.
Which export formats use templates?
NetFlow v9 and IPFIX.

Labs

Try it live: See the traffic: Flexible NetFlow, SPAN and RSPAN

More topics in 4.0 Network Assurance