What Is NetFlow and How Does It Compare to Packet Data?
Your network keeps a constant record of who's talking to whom. How much of that record you keep, and in what form, decides what you can do with it later. Some teams rely on NetFlow, a lightweight summary of traffic conversations. Others capture full packet data, every byte that crosses the wire. Most eventually find they need both.
So what is NetFlow? NetFlow is a network protocol, originally developed by Cisco, that groups packets into "flows" and exports a short summary record for each one: addresses, ports, protocol, packet and byte counts, and timing.
Packet data is the traffic itself, headers and payload included. NetFlow tells you that a conversation happened and how big it was. Packet data shows you exactly what was said.
In this guide, we explain how NetFlow works, how its versions differ, and how it compares with packet data on detail, storage, accuracy, and encrypted traffic. We'll also show how network TAPs and network packet brokers give your flow and packet tools a complete copy of your traffic, so neither approach leaves you with blind spots.
What Is NetFlow?
NetFlow is a flow monitoring technology that Cisco introduced in the mid-1990s to collect IP traffic statistics from routers and switches. Instead of storing every packet, a NetFlow-enabled device groups related packets together and keeps a running tally for each group. When a conversation ends, the device sends a compact summary, called a flow record, to a central collector for analysis.
The idea caught on because it quickly answered everyday questions, such as which applications use the most bandwidth and when traffic peaks. Today, people often use "NetFlow" loosely to mean flow data in general, including open standards and similar vendor formats.
What Counts as a Flow
A flow is a one-way stream of packets that share the same key attributes. In traditional NetFlow (version 5), packets belong to the same flow when they match on seven fields:
- Source and destination IP addresses: The two endpoints of the conversation
- Source and destination ports: The services involved, such as port 443 for HTTPS
- Layer 3 protocol: Whether the traffic is TCP, UDP, ICMP, or another protocol
- Type of service (ToS) byte: The priority marking used for quality of service (QoS)
- Input interface: Where the traffic entered the device
Because flows are one-way, a single exchange between a client and a server usually produces two flow records, one for each direction.
What a Flow Record Contains
Each flow record also carries details that describe the conversation as a whole:
- Packet and byte counts: How much traffic the flow carried
- Start and end timestamps: When the flow began and when the device last saw a packet
- TCP flags: A combined record of the flags seen, which helps you spot half-open connections and port scans
- Routing details: Next-hop address, subnet masks, and autonomous system (AS) numbers
What you won't find is payload. A flow record contains no application content, file data, or message text. That design keeps NetFlow lightweight, and it's also its biggest limitation.
How NetFlow Works
NetFlow relies on three parts: an exporter that builds flow records, a collector that receives and stores them, and an analyzer that turns them into reports and alerts. Here's the process from start to finish:
- Traffic enters a NetFlow-enabled device: The router, switch, or firewall reads each packet's header as it forwards it.
- The device checks its flow cache: If the packet matches an existing flow, the device updates that entry's counters. If not, it creates a new entry.
- The flow expires: The device decides a flow is complete based on timers and connection state.
- The exporter sends records to the collector: Expired records travel in export packets, usually over UDP.
- The analyzer processes the data: Software turns raw records into dashboards, top talker reports, and anomaly alerts.
The Flow Exporter
The exporter is usually a router, switch, or firewall that already sits in your traffic path. That's convenient, because you can switch on flow export without adding hardware. It also means flow generation competes with the device's main job of forwarding traffic.
On busy links, many devices sample packets to protect their CPU and memory, examining only one in every 100 or 1,000 packets, for example. Sampling keeps the device healthy, but it reduces accuracy. Dedicated flow probes avoid this by building flow records from every packet in a copy of traffic sent by a TAP or packet broker.
When a Flow Record Gets Exported
A device exports a flow record when one of these conditions is met:
- The connection ends: The device sees a TCP FIN or RST flag that closes the session
- The flow goes quiet: No new packets arrive before the inactive timeout runs out
- The flow runs long: The active timeout splits long-lived flows into several records
- The cache fills up: The device exports older entries to make room
These timers affect how current your data is. With a long active timeout, a large file transfer may not show up in your reports until well after it started.
NetFlow Versions and Related Flow Protocols
NetFlow has changed since its first release, and other flow technologies work in similar ways. Knowing the differences helps you match your devices and collectors.
NetFlow v5 and v9
Version 5 is the format many people still picture when they hear "NetFlow." It uses a fixed record layout and supports IPv4 only, so you can't add new fields or describe newer traffic types.
Version 9 fixed that with templates, which describe the fields included in each record. The format is documented in RFC 3954, published in 2004. Templates let vendors add fields for IPv6, Multiprotocol Label Switching (MPLS), and other data without changing the export format. Cisco's Flexible NetFlow builds on this approach and lets you choose your own fields.
IPFIX
The Internet Engineering Task Force (IETF) used NetFlow v9 as the basis for IP Flow Information Export (IPFIX). The current specification, RFC 7011, became an Internet Standard in 2013. You'll sometimes hear IPFIX called "NetFlow v10," because its message header carries version number 10. It adds variable-length fields, vendor-specific fields, and support for several transport protocols, which makes it the vendor-neutral choice for most new deployments.
sFlow and Vendor-Specific Formats
You're likely to meet a few other flow formats too:
- sFlow: Defined in RFC 3176 in 2001, sFlow samples packets at random and forwards truncated packet headers and interface counters, rather than building a flow cache
- J-Flow: Juniper Networks' flow export technology, which follows the NetFlow model
- NetStream: Huawei's equivalent flow technology
Most modern collectors accept several of these formats, so mixed-vendor networks can still feed a single flow analysis platform.
What Is Packet Data?
Packet data is the network traffic itself: the complete packets that move across your links, from the Ethernet header through to the application payload. Collecting it is called packet capture, and the results are usually stored as packet capture (PCAP) files that analysis tools can open and decode.
Where NetFlow summarizes, packet data preserves. If a flow record is a phone bill listing numbers, call times, and durations, packet data is the recording of the calls.
What Full Packet Capture Records
A full packet capture keeps everything a flow record leaves out:
- Every header field: Layer 2–7 details, including VLAN tags, TCP options, and HTTP headers
- Payload content: The files, queries, and commands exchanged (when traffic isn't encrypted)
- Precise timestamps: Packet-by-packet timing for measuring latency and jitter
- Errors and retransmissions: Malformed packets, TCP retransmissions, and out-of-order delivery
- Session sequence: The order of every exchange, so you can rebuild a whole conversation
How Packet Data Reaches Your Tools
To capture packets, your tools need a copy of the traffic. There are two main ways to get one:
- Switch port analyzer (SPAN) ports: Your switch mirrors traffic to a monitoring port. It's convenient, but switches treat mirroring as a low priority and can drop packets when they're busy.
- Network TAPs: Dedicated hardware copies every packet on a link. Ethernet TAPs cover copper links, while passive fiber TAPs split light on optical links without needing power or adding latency.
The access method matters more for packet tools than flow tools. A single missing packet can break session reconstruction or hide the one exchange you needed to see.
How NetFlow and Packet Data Differ
NetFlow and packet data answer different questions, so it helps to compare them side by side.
|
NetFlow |
Packet data |
|
|---|---|---|
|
What it records |
A metadata summary of each flow |
Complete packets, headers and payload |
|
Storage needs |
Low |
Very high |
|
Completeness |
Often sampled, depends on the exporter |
Complete when sourced from TAPs |
|
Payload visibility |
None |
Full, unless traffic is encrypted |
|
Practical retention |
Months or longer |
Limited by storage, often much shorter |
|
Best for |
Trends, capacity planning, anomaly detection |
Forensics, troubleshooting, deep packet inspection |
Level of Detail
NetFlow tells you who talked to whom, when, and how much data moved. Packet data tells you how and why. If an application slows down, flow data might show heavy traffic to a server, while packet data shows whether the cause was TCP retransmissions, a slow server response, or a bad query.
Storage and Scalability
Storage is where the two differ most. Take a single 10 gigabit per second (Gbps) link running at full capacity. That's 1.25 gigabytes every second, or roughly 4.5 terabytes (TB) per hour and about 108TB per day in one direction. Real links rarely run flat out around the clock, but the math shows why keeping full packets gets expensive fast. Flow records for the same traffic take up a tiny fraction of that space, because each one summarizes an entire conversation, whether it carried ten packets or ten million.
Accuracy and Completeness
Sampled flow data is an estimate. It's accurate enough for spotting large trends, but short-lived flows, such as a port scan or a single-packet probe, can slip between samples. Classic NetFlow export over UDP also has no retransmission, so records lost in transit stay lost. Packet data sourced from a TAP is a complete copy of the link, including errored frames that some switches filter out before mirroring.
Encrypted Traffic
Encryption is now the default, and attackers use it too. Zscaler's ThreatLabz 2024 Encrypted Attacks Report found that 87.2% of the threats it blocked between October 2023 and September 2024 arrived over encrypted channels.
Flow data barely notices encryption. Addresses, ports, byte counts, and timing stay visible, so flow analytics can still flag connections to unfamiliar destinations or unusually large outbound transfers. Packet data loses readable payload but still exposes handshake details and timing patterns. If you decrypt traffic with a dedicated appliance, your packet tools regain the full picture.
When to Use NetFlow and When to Use Packet Data
Your choice depends on the questions you need to answer. Here's where each one fits best.
Use NetFlow for Broad, Long-Term Visibility
Flow data works best when you need a view across many links without the cost of storing every packet:
- Capacity planning: Track bandwidth growth by site, application, or link so you can upgrade before congestion hits
- Network-wide anomaly detection: Spot traffic spikes, scanning, and unusual connections between internal hosts
- Long-term security records: Keep months of history so investigators can look back at activity that started long before an alert
- Accounting and chargebacks: Allocate network costs to departments or customers based on usage
Use Packet Data for Proof and Precision
Some questions can only be answered with the packets themselves:
- Forensic investigations: Prove exactly what data left your network or which commands an attacker ran
- Application troubleshooting: Find the root cause of slow transactions, failed handshakes, and retransmissions
- Intrusion detection: An intrusion detection system (IDS) matches signatures against packet contents, which flow records don't carry
- Compliance and lawful interception: Some regulated industries need a precise record of communications as evidence
How NetFlow and Packet Data Work Together
The strongest monitoring strategies use flow data to find problems and packet data to prove what happened. Flow points you to the right place, so you don't have to search terabytes of packets blind. A typical investigation looks like this:
- Flow analytics flags an anomaly: A host suddenly sends far more data to an external address than usual.
- Flow records narrow the scope: You identify the exact time window, hosts, and ports involved.
- Packet data confirms the details: You pull only the relevant packets to see what was transferred and how.
- Findings sharpen your detection: You add rules or thresholds so your tools catch the pattern sooner next time.
Packet Slicing Offers a Middle Ground
Some packet brokers can slice packets, keeping the headers and dropping most of the payload before forwarding traffic to your tools. You keep packet-level timing and header detail at a fraction of the storage. The SmartNA-XL, for example, includes PacketPro features for packet slicing, header stripping, and payload masking, which hides sensitive data before it reaches your tools.
Common Challenges With Flow and Packet Monitoring
Both approaches have weak spots that are easier to design around before an incident than during one.
Challenges With NetFlow
- Exporter load: Generating flow records uses CPU and memory on devices that also forward production traffic
- Sampling gaps: Sampled data can miss short or low-volume flows, including some early signs of attack
- Duplicate counting: When several devices export the same traffic, collectors can count it more than once
Challenges With Packet Capture
- Storage costs: Full capture at 10Gbps and above fills disks quickly
- Tool overload: High-speed links can send more traffic than a single tool can process
- Duplicate packets: Tapping several points on the same path sends repeated copies to your tools
- Sensitive payloads: Captured traffic may contain personal or financial data that needs protecting
How to Build a Visibility Architecture for Flow and Packet Data
Whichever approach you favor, your results depend on the quality of the traffic feeding your tools. Here's a practical way to build that foundation:
- Map your critical links: Identify internet edges, data center cores, links between sites, and segments that carry sensitive data.
- Install TAPs at key points: Get a complete, independent copy of traffic from each critical link.
- Aggregate through packet brokers: Bring TAP and SPAN feeds into one place you can manage centrally.
- Send each tool what it needs: Give flow probes a full feed, filter traffic for your IDS, and slice packets for long-term capture.
- Review and scale as you grow: Add ports, speeds, and tools as traffic increases, without reworking your network links.
Start With a Reliable Traffic Source
Flow records from routers are only as good as the router's view and its spare capacity. A TAP gives you a full copy of every packet, which you can use to generate unsampled flow records with a dedicated probe and feed packet tools at the same time. If you also run inline security tools, bypass TAPs keep traffic moving if one of those tools fails.
Use Packet Brokers to Serve Flow and Packet Tools
A packet broker sits between your TAPs and your tools and controls which traffic goes where:
- Aggregation: Combine traffic from many links into fewer tool ports
- Filtering: Send each tool only what it needs, by VLAN, IP range, protocol, or port
- Load balancing: Spread high-speed traffic across several tools while keeping sessions together
- Deduplication: Remove repeated packets before they waste tool capacity
With Drag-n-Vu, you map network ports to tool ports through a graphical interface, so adding a new flow probe or capture appliance doesn't mean rewiring.
Frequently Asked Questions
Can NetFlow Detect Security Threats?
Yes. Flow analytics can spot scanning, unusual data transfers, and connections to known malicious addresses. To confirm exactly what happened, you'll usually need packet data from the same time window.
Does NetFlow Work on Encrypted Traffic?
Yes. Flow records only use header information such as addresses, ports, and byte counts, which encryption doesn't hide. That makes flow data useful for spotting suspicious behavior in traffic your other tools can't read.
Do I Need Network TAPs if I Use NetFlow?
You can start with sampled flow data from your routers alone. TAPs become essential when you want unsampled flow records, packet capture for investigations, or a traffic source that doesn't depend on the health and workload of your switches and routers.
How Network Critical Can Help
NetFlow gives you the broad view, and packet data gives you the proof. Both depend on a complete, reliable copy of your traffic. We've designed, built, and supported network visibility hardware since 1997, helping organizations in finance, government, telecoms, and other high-compliance industries see every packet on their networks.
Our hybrid TAP and packet broker solutions combine both functions in compact chassis, so you can feed flow probes, IDS platforms, and capture appliances from one place. For larger, faster networks, the SmartNA-PortPlus scales from 48 to 194 ports of 1–100Gbps visibility, and the SmartNA-PortPlus HyperCore supports speeds up to 400Gbps in a single rack unit, with aggregation, filtering, and load balancing built in.
Whether you're adding packet capture to an existing NetFlow setup or building visibility for a new data center, our team can help you deliver the right traffic to the right tools, at the right time.