• Company
    • About Us
    • Case Studies
    • Press Center
    • Events
    • Careers
    • Blog
    • Contact us
  • Contact us
  • Login
 
  • English
    • Deutsch
    • Español
    • Français
    • Italiano
    • Português
Paessler
                    - The Monitoring Experts
  • Products
    • Paessler PRTG
      Paessler PRTGMonitor your whole IT infrastructure
      • PRTG Network Monitor
      • PRTG Enterprise Monitor
      • PRTG Hosted Monitor
      • PRTG extensionsExtensions for Paessler PRTGExtend your monitoring to a new level
    • Icon Features
      FeaturesExplore all monitoring features
      • Maps & dashboards
      • Alerts & notifications
      • Multiple user interfaces
      • Distributed monitoring
      • Customizable reporting
  • Solutions
    • Industries
      IndustriesMonitor various industry sectors
      • Industrial
      • Healthcare
      • Data Center
      • Education
      • Finance
      • Government
    • IT Topics
      IT TopicsMonitor all areas of IT
      • Network Monitoring
      • Bandwidth Monitoring
      • SNMP Monitor
      • Network Mapping
      • WiFi Monitoring
      • Server Monitoring
  • Pricing
  • Resources
    • Getting Started
      Getting StartedModules for self-paced learning
    • How-to Guides
      How-to GuidesGet the most out of PRTG
    • Videos & Webinars
      Videos & WebinarsLearn from Paessler experts
    • IT  Knowledge
      IT KnowledgeExpand your IT knowledge
    • PRTG Manual
      PRTG ManualFull documentation
    • Knowledge Base
      Knowledge BaseShare community knowledge
    • PRTG Sensor Hub
      PRTG Sensor HubGet sensors, scripts & templates
    • Trainings
      PRTG TrainingLearn how to work with PRTG
  • Partners
    • icon star
      New Partners and MSPBecome a new partner or MSP
    • icon partner
      Partner PortalLog in to your partner account
    • Deal Registration
      Deal RegistrationRegister your sales opportunities
    • icon search
      Find a PartnerFind partners selling Paessler products
    • icon technology
      Technology AlliancesSee Paessler technology partnerships
  • Company
    • About Us
    • Case Studies
    • Press Center
    • Events
    • Careers
    • Blog
    • Contact us
  • Contact us
  • Login
  • English
    • Deutsch
    • Español
    • Français
    • Italiano
    • Português
  • Get a quote
  • Free trial
  1. Home>
  2. IT Explained>
  3. NetFlow
PRTG Logo

 

NetFlow

  • A protocol for analyzing traffic patterns in your network
  • Helps identify bandwidth usage, bottlenecks, and anomalies
  • See how NetFlow gives deeper insights than basic monitoring

What you will find on this page

Table of content
  • What is NetFlow?
  • How NetFlow works
  • Example of a NetFlow command
  • Flow and Packet Sniffing with PRTG
  • NetFlow uses
  • NetFlow infrastructure
  • Sources

PRTG is compatible with all major vendors, products, and systems

compatible with all major vendors, products, and systems

What is NetFlow?

NetFlow is a protocol for collecting, aggregating and recording traffic flow data in a network. NetFlow data provide a more granular view of how bandwidth and network traffic are being used than other monitoring solutions, such as SNMP.

NetFlow was developed by Cisco and is embedded in Cisco’s IOS software on the company’s routers and switches and has been supported on almost all Cisco devices since the 11.1 train of Cisco IOS Software. Many other hardware manufacturers either support NetFlow or use alternative flow technologies, such as jFlow or sFlow.

 

NetFlow versions

There are technically ten different versions of NetFlow. However, several versions were released only internally or were never widely implemented beyond specific hardware.

The original NetFlow version 1 is considered obsolete, and seldom used today. Versions 2 through 4 were internal versions, no public implementation was ever released.

Version 5 is still commonly used today, because of a large existing install base of Cisco routers and switches released while it was the standard version. It added Border Gateway Protocol information and flow sequence numbers to NetFlow Exports. It only works with IPv4 flows.

Version 6 is no longer supported and was not released widely. Version 7 added support for Cisco Catalyst switches using hybrid or native mode. Version 8 has support for when router-based NetFlow aggregation is used.

Version 9 is the current version and is template-based. As such, it allows for expanded support without necessitating a change to the flow-record format. This version is preferred for IETF IP Information Export (IPFIX) WG and IETF Pack Sampling WG (PSAMP) and works with both IPv4 and IPv6.

IPFIX is often referred to as NetFlow v10 because it is based on NetFlow v9, but actually it is not NetFlow.

 

v1First implementation, now obsolete
v2Internal version, no public release
v3Internal version, no public release
v4Internal version, no public release
v5Still commonly used today, only works with Ipv4 flows
v6No longer supported
v7Added support for Cisco Catalyst switches
v8Supports router-based NetFlow aggregation
v9Current version, template-based, works with IPv6
v10Used for identifying IPFIX

Supported devices

Almost all Cisco devices support NetFlow. The only exception are Cisco 2900, 3500, 3660, 3750. Moreover, NetFlow is available for many routers and switches of other vendors.

 

Vendor + TypeModelsSupported NetFlow Versions
Alcatel-Lucent router7750SRv5, IPFIX
Juniper legacy routerM-series, T-series, MX-series with DPCv5, v8, v9
Juniper routerMX-series, FPC5 for T4000v5, IPFIX
Enterasys SwitchS-Serie, N-Seriev5, v9
Flowmon Probe1000, 2000, 4000, 6000, 10000, 20000, 40000, 80000, 100000v5, v9, IPFIX
Nortel SwitchERS5510, ERS5520, ERS5530, 8600v5, v9, IPFIX
Huawei routerNE5000E, NE40E/X NE80Ev5, v9
data acquisition using xflow

PRTG makes NetFlow monitoring as easy as it gets

Custom alerts and data visualization let you quickly identify and prevent network health and performance issues.

free downLoad

How NetFlow works

Creating a flow

A flow is a way of grouping a unidirectional stream of packets into a specific set. These sets can be configured based on matching attributes in each packet including:

  • IP Source
  • IP Destination
  • Source Port
  • Destination Port
  • Class of Service
  • Layer 3 Protocol Type
  • Interface

As each packet is forwarded, the above attributes are examined. A flow is generated by the first packet passing through the standard switching path. Each additional packet with the same parameters (source and destination IP, address, source and destination port, class of service) is grouped into a single flow. Any variation in the value of any one of the parameters creates a new flow.

High-end Cisco routers support sampled NetFlow where only one out of a certain number of packets is examined. This is for use on routers where examining every packet is impractical due to volume of traffic. Sampled flows significantly reduce the performance impact when sending flow information.

NetFlow cache

Monitoring and grouping every packet forwarded by a router or switch generates a lot of data. This data is condensed into a database within the network device called the NetFlow cache. A flow record is kept for each active flow. Data is expired and then exported from the cache to a NetFlow collector server at regular intervals based on flow timers. The NetFlow cache is checked every second by default.

NetFlow export

Flows are grouped for export into a NetFlow Export datagram. Each datagram consists of up to 30 flows. According to Cisco, standard NetFlow exports use about 1.5 percent of the total analyzed switched traffic.

NetFlow record

The Version 9 flow record is template based. That means that future enhancements can be accommodated without having to change the basic flow record. The record format is defined by a packet header, followed by at least one template FlowSet and data FlowSet. The template FlowSet provides a description of what is coming in the data FlowSets. This is what allows for the extensibility of the record. Rather than pre-defining in a specification what data is coming and where, that definition is done within the packet itself.

The packet header is basically the same as in Version 5. It contains, among others, the version number for the packet, the system uptime (in milliseconds), a sequence number and the Source ID.

NetFlow collector

NetFlow data is periodically reported to a NetFlow collector. The collector is a different server or computer running a NetFlow receiver software designed to gather, record, filter, and analyze the resulting flows, such as Paessler’s PRTG NetFlow Analyzer. The collector software must support the same NetFlow version as the exporting server. For example, to monitor a Cisco router using NetFlow 5, one would need to use the NetFlow V5 Sensor in PRTG Network Monitor. For a router using NetFlow 9, one would need the NetFlow V9 Sensor. Both sensors can be enabled on the same machine at the same time, so that a single collector can receive and report on data from both NetFlow versions.

NetFlow datagrams are exported using User Datagram Protocol (UDP). The IP address of the collector and the destination port must be configured on the router or switch itself. In some cases, SNMP can be used to turn on NetFlow and configure the collector’s IP address to send the data to.

Within Cisco IOS, the ip flow-export command may be used to configure the destination IP from the command line.

One of the most popular ports used for NetFlow exports is 2055, but basically you can use any port as long as you specify it correctly in the NetFlow receiver. As NetFlow exports are pushed to the collector, there is no need for polling, but there is no auto-discovery process for NetFlow available like with SNMP because of this.

NetFlow MIB

It is possible to access some NetFlow data via SNMP using the NetFlow MIB. While not designed to be a replacement for NetFlow export, it does offer a way to gain access to NetFlow data via another mechanism. Data available includes number of flows, flows per second and packets or bytes per flow. The ability to access a list of “top talkers” might also be useful in certain cases, but you get this data anyway when receiving and monitoring flows.

NetFlow data

There are many traffic categories that can be monitored with NetFlow. The NetFlow V9 Sensor for PRTG, for example, allows monitoring and categorizing of numerous traffic types by default, 

  • Chat
  • Citrix
  • FTP/P2P
  • Infrastructure (DHCP, DNS, ICMP, SNMP)
  • Mail
  • NetBIOS
  • Remote Control Protocols
  • WWW
  • Total Traffic

Find the root cause of the problem with our PRTG NetFlow monitoring tool

Real-time notifications mean faster troubleshooting so that you can act before more serious issues occur.

free downLoad

Example of a NetFlow command

The following shows the NetFlow Top Talkers command, which lists the largest packet and byte consumers of the network. Before using the Top Talkers command, it has to be configurated:

Router(config)#ip flow-top-talkers
Router(config-flow-top-talkers)#top 10#

 

The top 10 talkers in network sorted by packets:

R3#show ip flow top-talkers
SrcIf SrcIPaddress DstIf DstIPaddress Pr SrcP DstP Pkts
Et1/0 172.16.10.2 Et0/0 172.16.1.84 06 0087 0087 2100
Et1/0 172.16.10.2 Et0/0 172.16.1.85 06 0089 0089 1892
Et1/0 172.16.10.2 Et0/0 172.16.1.86 06 0185 0185 1762
Et1/0 172.16.10.2 Et0/0 172.16.1.86 06 00B3 00B3 2
Et1/0 172.16.10.2 Et0/0 172.16.1.84 06 0050 0050 1
Et1/0 172.16.10.2 Et0/0 172.16.1.85 06 0050 0050 1
7 of 10 top talkers shown. 7 flows processed.

Flow and Packet Sniffing with PRTG

Free download
PRODUCT OVERVIEW

Our users give top ratings for monitoring with Paessler PRTG

Gartner peer insights
spiceworks
G2
Capterra

NetFlow uses

Network, user and application monitoring

The most obvious use for NetFlow is network monitoring. NetFlow data provides detailed bandwidth usage information that can be segmented in numerous ways, including by user, client system, time and application. The data arriving at the NetFlow collector is near-real time, allowing for specific granular monitoring and for aggregating data to look at the big picture as it is happening.

Monitoring traffic patterns, user patterns and application patterns can alert an administrator to potential problems before they happen and provide a valuable troubleshooting resource. A single computer or service using a sufficiently large amount of bandwidth can affect network performance for other users. An administrator watching a comprehensive user interface or dashboard may be able to detect this outcome before it happens, or an alert could be generated to let the network administrator know about unusual patterns.

The PRTG NetFlow V9 Sensor overview, for example, indicates Top Talkers, Top Connections, Top Protocols as wells as a breakdown by protocol, showing at a glance if some server or application is using too much (or too little) bandwidth.

Network planning

The ability to detect and react to changing network conditions is a valuable ability. Even better is the capacity to see what is coming and proactively address any issues.

Capturing NetFlow data over longer periods of time and analyzing trends found within the data provides an opportunity to know in advance what the network requires. Perhaps various applications running at the end of the month generate additional traffic that affects network performance. In that case, other high-bandwidth activities could be scheduled for different times of the month to prevent bottlenecks.

Furthermore, NetFlow data can help determine when traffic growth is actually becoming too high for the current hardware to handle, offering plenty of lead-time to purchase, install and configure additional or faster routers and switches.

Usage-based billing and reporting

With its ability to identify specific traffic streams (including where they originated and which applications triggered them), NetFlow data can be analyzed to enable billing to clients, internal cost charge backs or show how much of the network is being used by specific users, groups or applications. With such detailed data collection, it is easy to adjust billing rates based on time of day or application usage or total bandwidth.

Application reporting and profiling

NetFlow data can show not only how much traffic an application generates, but when and for whom. NetFlow can tell if the application is optimized for the accounting group, but generates lots of traffic for a different department.

Security analysis

NetFlow can help with network security as well. Is a user suddenly generating large amounts of traffic not usually required for their job? Perhaps the account has been compromised? NetFlow data quickly reveals anomalies in network traffic, whether it’s a worm trying to spread, malware trying to contact a control server or a disgruntled employee copying sensitive company data.

 Do you need a professional NetFlow monitoring solution?

PRTG is a comprehensive network monitoring software and keeps track of your entire IT infrastructure.

free downLoad

Hundreds of thousands of customers worldwide love Paessler PRTG

customer success stories


What customers say about us

NetFlow infrastructure

While the overall traffic generated by NetFlow is relatively low, it is important to locate the NetFlow collectors strategically to avoid sending data over expensive connections or via those without the ability to handle additional traffic. Local collection works best for most environments.

Sources

Discover more
  • NetFlow Monitoring with PRTG
  • NetFlow Collector
  • NetFlow Analyzer
  • NetFlow Generator
View article sources
  • https://www.cisco.com/site/us/en/products/networking/software/ios-nx-os/index.html
  • https://www.cisco.com/site/us/en/products/index.html
  • https://www.cisco.com/en/US/technologies/tk648/tk362/technologies_white_paper09186a00800a3db9.html
PRTG Logo

Start monitoring with PRTG and see how it can make your network more reliable and your job easier.

Free download
PRODUCT OVERVIEW

Products

  • Paessler PRTG
    Paessler PRTGMonitor your whole IT infrastructure
    • PRTG Network Monitor
    • PRTG Enterprise Monitor
    • PRTG Hosted Monitor
    • PRTG extensions
      Extensions for Paessler PRTGExtend your monitoring to a new level
  • Icon Features
    FeaturesExplore all monitoring features

Monitoring with PRTG

  • Network monitoring
  • Bandwidth monitoring
  • SNMP monitoring
  • Network mapping
  • Wi-Fi monitoring
  • Server monitoring
  • Network traffic analyzer
  • NetFlow monitoring
  • Syslog server

Useful Links

  • PRTG Manual
  • Knowledge Base
  • Customer Success Stories
  • About Paessler
  • Subscribe to newsletter
  • PRTG Support
  • PRTG Consulting
  • PRTG Feedback & Roadmap

Contact

Paessler GmbH
Thurn-und-Taxis-Str. 14, 
90411 Nuremberg 
Germany

info@paessler.com

+49 911 93775-0

  • Contact us
©2025 Paessler GmbHTerms & ConditionsPrivacy PolicyImprintReport VulnerabilityDownload & InstallSitemap
404 - Page not found 404 - Page not found 404 - Page not found