IPFIX, short for IP Flow Information Export, is the IETF standard protocol for exporting flow records, summaries of packets that share common properties, from network devices to a collector for analysis. Specified mainly in RFC 7011, IPFIX evolved from Cisco NetFlow version 9 and generalizes it into a vendor-neutral, template-based format.
In network monitoring, IPFIX answers the question who talked to whom, how much and when without storing full packet contents. It supports capacity planning, security investigation, billing and troubleshooting at a fraction of the storage cost of packet capture.
How IPFIX builds and exports flow records
IPFIX works by grouping packets into flows on an exporter, typically a router, switch, firewall or dedicated probe, and periodically sending summarized records to a collector. A flow is usually defined by a flow key such as the five-tuple of source address, destination address, source port, destination port and protocol. For each flow, the metering process counts packets and bytes and records timestamps and other attributes.
A flow record is exported when the flow ends or when a timeout expires. The active timeout, commonly 60 seconds to 30 minutes, splits long-lived flows into periodic reports, while the idle timeout, commonly 15 to 60 seconds, closes flows that have gone quiet. Shorter timeouts give fresher data but generate more export traffic.
The table below names the components of the IPFIX architecture and their roles.
| Component | Location | Role |
|---|---|---|
| Observation point | Interface or link | Where packets are observed |
| Metering process | Exporter | Classifies packets into flows and updates counters |
| Exporting process | Exporter | Encodes records and sends IPFIX messages |
| Collecting process | Collector | Receives, decodes and stores records |
| Analysis application | Collector or separate system | Reports, alerts and visualizes traffic |
Templates and information elements
IPFIX is template-based, which means the exporter first describes the structure of its records and then sends data that follows that description. A template record lists a sequence of information elements, each identified by a numeric ID and length. Data records then carry only values, which keeps messages compact and lets every exporter choose which fields to report.
Information elements come from the IANA IPFIX registry, which defines several hundred standard fields. Vendors can add their own using an enterprise number, a capability that NetFlow v9 lacked. IPFIX also supports variable-length fields, useful for exporting strings such as HTTP host names or application names.
| Element ID | Name | Content |
|---|---|---|
| 8 | sourceIPv4Address | Source IPv4 address |
| 12 | destinationIPv4Address | Destination IPv4 address |
| 4 | protocolIdentifier | IP protocol number |
| 1 | octetDeltaCount | Bytes since the last report |
| 2 | packetDeltaCount | Packets since the last report |
| 152 | flowStartMilliseconds | Flow start time |
IPFIX compared with NetFlow and sFlow
IPFIX differs from its neighbors mainly in standardization, extensibility and sampling approach. NetFlow is the Cisco protocol family from which IPFIX descends, while sFlow takes a different path: it exports sampled packet headers and interface counters instead of stateful flow records.
| Property | NetFlow v5 | NetFlow v9 | IPFIX | sFlow |
|---|---|---|---|---|
| Standard body | Cisco | Cisco, RFC 3954 | IETF, RFC 7011 | sFlow.org, RFC 3176 |
| Record format | Fixed | Template-based | Template-based | Sampled headers and counters |
| IPv6 support | No | Yes | Yes | Yes |
| Vendor-specific fields | No | Limited | Enterprise elements | Extensible structures |
| Transport | UDP | UDP | UDP, TCP or SCTP | UDP |
| Flow state on device | Yes | Yes | Yes | No |
The default export port for IPFIX is UDP or TCP 4739. Supporting SCTP and TCP allows reliable delivery, but most deployments still use UDP for simplicity, accepting that lost export packets mean lost records.
Deploying IPFIX in practice
A successful IPFIX deployment depends on where flows are metered, how heavily traffic is sampled and how the collector scales. Metering at the network edge captures traffic entering and leaving the organization, while metering on core links reveals internal east-west traffic.
| Situation | Recommended choice | Reason |
|---|---|---|
| Security forensics on a campus edge | Unsampled export | Every connection must be visible |
| Multi-hundred-gigabit backbone | Packet sampling of 1 in 1,000 or more | Protects router CPU and collector capacity |
| Application visibility | Export with application elements | Five-tuple alone hides the application |
| Distant collector over lossy WAN | TCP or SCTP transport | Prevents silent record loss |
- Synchronize clocks with NTP on all exporters, because flow timestamps drive correlation.
- Resend templates periodically over UDP so that a restarted collector can decode data.
- Size collector storage from flows per second, not from link bandwidth.
Limitations of IPFIX flow data
IPFIX records metadata, not payload, so it shows that a conversation happened but not what was said. Encrypted traffic further limits insight to addresses, ports, volumes and timing. For root-cause analysis of protocol errors, engineers still need packet capture with tools such as Wireshark.
Sampling introduces statistical error: small flows may be missed entirely, and byte counts must be scaled by the sampling rate. Flow tables on exporters are finite, so a flow table overflow during a DDoS attack can drop records exactly when they matter most. Finally, IPFIX describes traffic volumes but does not measure latency or packet loss directly unless vendor-specific elements are added.
Privacy is a further consideration. Flow records reveal communication patterns between identifiable hosts, so many organizations treat IPFIX data as personal data, apply retention limits and restrict access to the collector. Anonymization of addresses before long-term storage is a common compromise between operational insight and data protection obligations.
The simple explanation
IPFIX is a common language that network equipment uses to report traffic summaries. Instead of recording every single message that crosses the network, a router writes down short notes: who sent data, to whom, how much and for how long.
It is similar to a phone bill that lists calls without recording the conversations. Those notes travel to a central system, where people can see which services use the network most and spot unusual activity.
How it is used in practice
A regional university notices that its 10 Gbit/s internet link is saturated every weekday afternoon. The network team enables IPFIX export on the two border routers, with an active timeout of 60 seconds and an idle timeout of 15 seconds, and sends the records to an open-source flow collector.
Within a day, the flow reports show that a single research cluster is transferring several terabytes per day to an external storage service during peak hours. The team works with the researchers to schedule the transfers overnight and applies a quality-of-service policy. Afternoon link utilization drops from about 98 percent to roughly 60 percent, and complaints about slow access stop.