A NetFlow analyzer is a network monitoring tool that collects, processes, and examines NetFlow records exported by network devices to provide visibility into network communications and traffic behavior.
It analyzes attributes such as source and destination IP addresses, ports, protocols, packet counts, and data volumes to identify communication patterns, monitor network activity, and investigate unusual traffic that may indicate cyber threats.
Table of Contents
- Understanding NetFlow Analysis
- How Does a NetFlow Analyzer Work?
- What Information Can Be Derived from NetFlow Records?
- What Are the Uses of a NetFlow Analyzer in Cyber Defense?
- What Is the Difference Between NetFlow, IPFIX, JFlow, and sFlow?
- What Is the Difference Between a NetFlow Analyzer and a Packet Analyzer?
- How Does NetFlow Analysis Support Network Detection and Response (NDR)?
- How Does NetFlow Analysis Contribute to Network Visibility?
- How Is NetFlow Used for Network Performance Monitoring?
- Conclusion
- Related Key Terms
- Additional Key Terms
Understanding NetFlow Analysis
Network devices continuously process packets exchanged between systems, applications, and external destinations. Examining every packet individually provides detailed information about these communications, but network administrators and security analysts also need a structured view of traffic activity across the infrastructure.
NetFlow addresses this requirement by generating records that summarize observed network communications. These records contain information about the endpoints involved, the protocols used, the volume of data exchanged, and the duration of observed activity. A NetFlow analyzer processes these records to establish communication relationships and identify patterns across the network.
A network flow is generally identified using a combination of attributes known as the five-tuple:
- Source IP Address: Identifies the originating network endpoint.
- Destination IP Address: Identifies the receiving network endpoint.
- Source Port: Identifies the source transport-layer port.
- Destination Port: Identifies the destination transport-layer port.
- Protocol: Identifies the transport protocol associated with the communication.
The exact flow-identification fields depend on the exporter configuration and flow implementation.
The analyzer uses the exported information to examine traffic distribution, communication frequency, protocol usage, and data transfer volumes. By aggregating records across network observation points and time periods, it helps establish how systems interact across an infrastructure.
In cybersecurity, this information is particularly useful for understanding communication behavior, identifying unexpected connections, and establishing context around suspicious network activity.
How Does a NetFlow Analyzer Work?
A NetFlow analyzer processes information generated by network devices that observe traffic and export flow records. The process involves identifying flows, generating records, transmitting the information to a collector, and analyzing the resulting data.
Network Traffic Observation
The process begins when a network device observes packets passing through a configured interface or observation point. The device examines selected packet attributes to identify flows. Packets matching the configured flow-identification criteria are associated with the corresponding flow entry.
For example, when an internal server communicates with an external application server, the observing device can identify the source and destination addresses, transport ports, and protocol associated with the communication.
This establishes the basic information required to describe the observed traffic.
Flow Record Generation
As packets belonging to a flow are observed, the network device maintains information about the communication. A flow record contains identifying attributes and associated traffic statistics.
Common fields include:
- Source and Destination IP Addresses: Identify the endpoints participating in the communication.
- Source and Destination Ports: Indicate the transport-layer ports associated with the traffic.
- Protocol Identifier: Specifies the protocol, such as TCP or UDP.
- Packet Count: Records the number of packets associated with the observed flow.
- Byte Count: Indicates the volume of data recorded for the flow.
- Flow Timestamps: Identify when the flow was first and last observed.
- Interface Information: Identifies relevant ingress and egress interfaces where supported.
- TCP Flags: Provide information about observed TCP flag activity where included in the exported record.
The fields available depend on the export format, device configuration, and supported flow information elements.
Flow Record Export
After generating flow records, the network device exports them to a designated NetFlow collector. Export can occur when a flow becomes inactive, reaches a configured active-flow timeout, or meets another export condition.
For example, a long-running communication may generate multiple records as the active-flow export interval is reached. Template-based export formats provide information about the structure of the records, allowing the receiving collector to interpret their fields correctly.
Flow Collection and Processing
The NetFlow collector receives records from network devices and processes the exported information. It interprets the record fields, associates the data with the relevant observation sources, and organizes the information for storage and analysis.
When records arrive from multiple network devices, the collection system can consolidate flow information to provide a broader view of communications across network segments. This is important in distributed environments where individual devices provide visibility into different parts of the infrastructure.
Traffic Analysis and Correlation
The analyzer organizes collected records by relevant attributes, including source, destination, protocol, port, interface, and time period. It can also correlate records from multiple observation points to provide a consolidated view of network communications.
This allows analysts to examine traffic across network segments and identify relationships between different flow records.
What Information Can Be Derived from NetFlow Records?
NetFlow records contain attributes that describe different characteristics of observed network communications. Examining these attributes provides information about how traffic is distributed, which systems communicate, and how network activity changes over time.
- Communication Relationships: Source and destination addresses identify the endpoints involved in observed communications. Examining these records across multiple hosts and network segments reveals communication relationships and frequently accessed destinations.
- Traffic Volume and Distribution: Packet and byte counts indicate the volume of traffic associated with individual flows. Aggregated records provide information about traffic distribution across hosts, destinations, interfaces, and network segments.
- Protocol and Port Distribution: Protocol identifiers and port numbers describe the transport protocols and services associated with network communications. These attributes provide insight into protocol usage and the distribution of traffic across different services.
- Communication Frequency and Timing: Flow timestamps indicate when communications were observed. Examining multiple records reveals connection frequency, recurring communication intervals, and changes in traffic activity over time.
- Network Endpoint Activity: Flow records provide information about the communication activity associated with individual endpoints, including their destinations, protocols, connection frequency, and traffic volumes.
- Traffic Direction and Network Segments: Interface information, combined with network topology data, helps establish where traffic enters, leaves, or moves within an infrastructure. This provides a view of north-south and east-west communications.
What Are the Uses of a NetFlow Analyzer in Cyber Defense?
NetFlow analysis has several applications in cybersecurity and investigations, particularly when examining communication patterns associated with suspicious network activity.
- Identifying Suspicious Outbound Communications: Analysts can examine connections to unfamiliar external destinations, unexpected connection frequency, and changes in outbound traffic behaviour to identify communications requiring investigation.
- Investigating Command-and-Control Activity: Recurring connections, unusual destinations, and consistent communication intervals can provide indicators of possible command-and-control activity. Correlation with threat intelligence and other security telemetry adds investigative context.
- Identifying Lateral Movement: Unexpected connections between internal systems, unusual service access, and changes in east-west traffic patterns can indicate possible movement between compromised network endpoints.
- Investigating Potential Data Exfiltration: Unusual outbound transfer volumes, unexpected external destinations, and changes in established traffic patterns can indicate possible unauthorized data transfers.
- Detecting Network Scanning and Reconnaissance: Repeated connection attempts, unusual port activity, and communication from one source to numerous destinations can reveal patterns associated with network probing and reconnaissance.
- Establishing Communication Timelines: Historical flow records and timestamps allow analysts to examine when suspicious communications occurred, how activity changed over time, and which systems were involved.
What Is the Difference Between NetFlow, IPFIX, JFlow, and sFlow?
NetFlow, IPFIX, JFlow, and sFlow are approaches to collecting and exporting network traffic information. They differ in how they identify, represent, and transmit traffic data.
| Technology | Description | Data collection approach |
| NetFlow | A flow export technology used to describe observed IP traffic. | Generates and exports flow records containing communication attributes and traffic statistics. |
| IPFIX | An IETF-standardized protocol for exporting flow information. | Exports structured flow records using information elements and templates. |
| JFlow | A proprietary flow-monitoring implementation developed for Juniper Networks devices. | Generates flow records and supports export in NetFlow-compatible formats, including versions 5, 8, and 9, depending on device and configuration. |
| sFlow | A network monitoring technology based on statistical sampling. | Uses packet sampling and interface counter sampling to provide traffic information. |
NetFlow v9 uses templates to specify the structure of exported flow records, while IPFIX provides an IETF-standardized protocol for exchanging flow information between exporters and collectors. JFlow is Juniper’s flow-monitoring implementation for supported devices, which exports flow records in compatible formats. In contrast, sFlow uses statistical sampling to collect packet information and periodically gathers interface counters to monitor traffic activity and network utilization.
These approaches provide different forms of network telemetry. Their suitability depends on the network infrastructure, supported export formats, and the level of traffic visibility required.
What Is the Difference Between a NetFlow Analyzer and a Packet Analyzer?
A NetFlow analyzer examines summarized records of network communications, whereas a packet analyzer examines the individual packets exchanged during those communications.
The difference determines the level of detail available for network monitoring and investigation.
| Aspect | NetFlow Analyzer | Packet Analyzer |
| Data source | Exported flow records | Captured network packets |
| Visibility | Communication patterns and traffic statistics | Packet headers, protocol exchanges, and available payloads |
| Primary use | Traffic monitoring and identification of unusual communications | Detailed protocol inspection and investigation |
| Investigation value | Establishes which systems communicated and how much data was exchanged | Examines how the captured communication took place and what information is available within it |
A NetFlow analyzer examines flow records containing source and destination IP addresses, ports, protocols, packet counts, byte counts, and timestamps. It helps identify communicating systems, measure traffic volumes, and detect unusual communication patterns.
A packet analyzer inspects captured packets, including headers, protocol fields, and available payloads. It provides details about individual network exchanges, subject to capture completeness and encryption.
For example, NetFlow can identify the source, destination, timing, and volume of an unusual data transfer. Packet analysis can examine the captured packets to reveal further details about the communication.
How Does NetFlow Analysis Support Network Detection and Response (NDR)?
Network Detection and Response (NDR) uses network telemetry and behavioural analysis to identify suspicious activity and investigate potential threats across an organization’s infrastructure.
NetFlow provides an additional source of communication-level information within this process. NDR platforms can correlate NetFlow records with packet data, protocol metadata, and other network observations to examine suspicious communications in greater detail.
For example, an unusual connection identified through NetFlow records can be examined alongside packet data to understand the associated protocol exchanges and available communication details. This correlation provides investigators with additional context for assessing the activity and determining whether further investigation is necessary.
When a suspicious communication requires deeper investigation, retained packet captures can provide access to the original packets, including their headers and available payload data. Examining this information alongside NetFlow records gives investigators greater insight into the communication and its associated activity.
NetFlow therefore contributes communication patterns and traffic statistics to NDR investigations, while packet inspection provides deeper evidence about the observed exchanges.
How Does NetFlow Analysis Contribute to Network Visibility?
NetFlow provides a structured view of network communications across different segments and observation points. Examining flow records over time helps establish how systems interact, how traffic moves through the infrastructure, and how communication patterns evolve.
- Understanding East-West and North-South Communications: Flow records from different network observation points provide information about communications between internal systems and connections involving external destinations. This helps establish how traffic moves across network segments.
- Establishing Normal Communication Behaviour: Historical flow records reveal recurring destinations, commonly used protocols, connection frequency, and typical traffic volumes. These patterns provide a baseline for understanding normal network activity and identifying deviations.
- Mapping Communication Relationships: Examining records across multiple endpoints and network segments helps establish which systems communicate, how frequently they interact, and which destinations they access. This provides a broader view of communication dependencies across the infrastructure.
- Supporting Retrospective Investigation: Retained flow records allow analysts to revisit historical communications, trace connections involving specific endpoints, and establish when particular communication patterns first appeared. When examined alongside retained packet captures, these records provide a broader timeline and additional evidence for network investigations.
How Is NetFlow Used for Network Performance Monitoring?
NetFlow analysis provides traffic statistics that network administrators can use to examine bandwidth utilization, traffic distribution, and resource consumption across network segments.
By examining packet counts, byte volumes, communication frequency, and interface information, administrators can identify high-volume traffic sources, frequently accessed destinations, and changes in network usage.
Common applications include:
- Bandwidth Utilization: Examining traffic volumes across interfaces to understand how available network capacity is being used.
- Top Talker Analysis: Identifying endpoints that generate or receive the highest volumes of traffic during a specified period.
- Capacity Planning: Reviewing historical traffic patterns to understand usage trends and plan future network capacity.
When correlated with interface statistics and other performance metrics, NetFlow data provides additional context for investigating congestion and unusual changes in network utilization.
Conclusion
NetFlow analysis provides an important view of communication patterns across an organization’s infrastructure. When correlated with packet information and other network telemetry, it gives investigators a broader understanding of network activity, suspicious communications, and the sequence of events surrounding a potential threat.
This combination of flow-level and packet visibility strengthens the foundation for detailed network investigations.
Related Key Terms
- Network Traffic Analysis (NTA): The examination of network communications and traffic characteristics to understand communication patterns and identify suspicious activity.
- Network Detection and Response (NDR): A cybersecurity approach that analyzes network telemetry and behavior to identify threats, investigate suspicious activity, and support response workflows.
- Full Packet Capture (PCAP): The collection and retention of network packets, including captured headers and available payload data, for detailed inspection and investigation.
- Network Flow Analysis: The examination of flow records to understand communication relationships, traffic volumes, and network behavior.
- Deep Packet Inspection (DPI): A technique that examines packet structures and contents beyond basic header information to identify protocols and communication characteristics.
- Encrypted Traffic Analysis (ETA): The examination of observable characteristics of encrypted communications to identify suspicious behavior without necessarily decrypting their contents.
- Network Behavioral Analysis (NBA): An analytical approach that examines network activity over time to identify deviations from established communication patterns.
- Network Telemetry: Information collected from network devices and monitoring systems to describe traffic activity, communication behavior, and network operations.
Additional Key Terms
- Flow Record: A structured record containing identifying attributes and measured statistics about a network flow observed at a particular point.
- Flow Exporter: A network device or process that generates and transmits flow records to a designated collector.
- Flow Collector: A system that receives, interprets, and processes flow information exported by network devices.
- Flow Key: An attribute or combination of attributes used to identify and distinguish network flows.
- Five-Tuple: A combination of source IP address, destination IP address, source port, destination port, and transport protocol commonly used to identify a network flow.
- NetFlow v5: A flow export version that uses a fixed record format primarily for reporting IPv4 traffic flow information.
- NetFlow v9: A template-based flow export version that supports flexible definitions of flow record fields.
- IP Flow Information Export (IPFIX): A standardized protocol for exporting structured network flow information between exporters and collectors.
- sFlow: A network monitoring technology that uses statistical packet sampling and interface counter sampling to provide traffic visibility.
- Flow Template: A definition specifying the fields and structure of exported records in template-based flow export protocols.
- Flow Timeout: A configured condition that determines when an active or inactive flow record expires and becomes eligible for export.
- Traffic Baseline: A reference representation of expected network activity used to identify deviations in communication behavior.
- Traffic Anomaly: An observed deviation from expected network traffic characteristics or communication patterns.
- Bandwidth Utilization: The proportion of available network capacity consumed by data traffic over a specified period.
- Network Conversation: A representation of communication between network endpoints, typically described through addresses, ports, protocols, and associated traffic statistics.
- East-West Traffic: Network communications exchanged between systems within an internal network or data center environment.
- North-South Traffic: Network communications entering or leaving an organization’s internal network, typically involving external destinations.
- Command-and-Control (C2): Communication between compromised systems and attacker-controlled infrastructure used to exchange instructions or information.
- Lateral Movement: Techniques attackers use to access additional systems after gaining an initial foothold within an environment.
- Data Exfiltration: The unauthorized transfer of information from an organization’s systems or network to an external destination.
- Network Scanning: The process of probing network hosts, ports, or services to identify accessible systems and potential entry points.
- Session Reconstruction: The process of reassembling captured packets into their corresponding communication sessions for detailed examination.
- Autonomous System (AS): A collection of IP networks and routers managed under a common routing policy and identified by an autonomous system number.
- Security Information and Event Management (SIEM): A technology that aggregates and correlates security logs and events from multiple sources to support security monitoring and investigation.