NetFlow and Flexible NetFlow: seeing who is using the bandwidth
In short: SNMP tells you a link is busy; NetFlow tells you who and what is using it. A router groups packets into flows by source, destination, ports and protocol, counts them, and exports the records to a collector. Flexible NetFlow on IOS XE lets you choose exactly which fields to record, and IPFIX is the open standard version.
What a flow is
A flow is a group of packets that share the same key fields, traditionally the "five-tuple": source and destination IP address, source and destination port, and protocol, plus the input interface and type of service. For each flow the router keeps counters (bytes, packets, start and end time) in a flow cache. When a flow ends or times out, the record is exported to a collector over UDP.
With flows, you can answer questions that interface graphs cannot: which user is downloading, which application is filling the WAN, whether a server is suddenly talking to an unusual country, or what happened during a security incident.
Versions
- NetFlow v5: fixed format, IPv4 only. Old but still accepted by many tools.
- NetFlow v9: template-based, so the router tells the collector which fields it sends. Supports IPv6, MPLS and more.
- IPFIX: the IETF standard based on v9, sometimes called NetFlow v10. Supported by most vendors.
- sFlow is a different, sampling-based approach used by many switch vendors.
Flexible NetFlow configuration
flow record FR-IPV4
match ipv4 source address
match ipv4 destination address
match transport source-port
match transport destination-port
match ipv4 protocol
match interface input
collect counter bytes long
collect counter packets long
collect timestamp absolute first
collect timestamp absolute last
!
flow exporter FE-COLLECTOR
destination 10.10.5.30
source Loopback0
transport udp 2055
export-protocol ipfix
!
flow monitor FM-WAN
record FR-IPV4
exporter FE-COLLECTOR
cache timeout active 60
cache timeout inactive 15
!
interface GigabitEthernet0/0/0
ip flow monitor FM-WAN input
ip flow monitor FM-WAN output
match fields define what makes a flow unique; collect fields are extra information gathered for each one. The active timeout of 60 seconds means long downloads are reported every minute instead of only when they finish. Many platforms also offer ready-made records such as record netflow ipv4 original-input.
Checking it on the device
show flow monitor FM-WAN cache sort counter bytes top 10: the top talkers right now, without any collector.show flow exporter FE-COLLECTOR statistics: confirms records are being sent.show flow interface: which monitors are applied where.
Collectors and sampling
A collector stores and reports on flows. Options range from free tools such as ntopng, Elastiflow and nfdump to commercial ones such as SolarWinds NTA, PRTG and Kentik, and many SIEMs accept flows for security analysis. On very busy links, use sampled NetFlow (for example 1 in 100 packets) to reduce CPU and export volume, accepting less precise numbers.
Real-world example: the slow lunchtime
A company's WAN was saturated every day around lunchtime. Interface graphs only showed "100 percent". Enabling Flexible NetFlow on the branch routers showed that a cloud backup service on several laptops started its daily upload at noon. Changing the backup schedule and adding a QoS policy for that application brought lunchtime back to normal, without buying more bandwidth.
Practice
What are the usual key fields that define a NetFlow flow?
In Flexible NetFlow, what is the difference between match and collect fields?
Which command shows the top talkers on the router itself?
show flow monitor <name> cache sort counter bytes top 10.Key takeaways
- NetFlow records who talks to whom, on which ports, and how much.
- v9 and IPFIX are template-based and support IPv6; v5 is legacy.
- Flexible NetFlow uses records, exporters and monitors applied to interfaces.
- Collectors turn flows into reports; sampling reduces load on busy links.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.