IPFIX

Also known as: IP Flow Information Export

On this page 7

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.

ComponentLocationRole
Observation pointInterface or linkWhere packets are observed
Metering processExporterClassifies packets into flows and updates counters
Exporting processExporterEncodes records and sends IPFIX messages
Collecting processCollectorReceives, decodes and stores records
Analysis applicationCollector or separate systemReports, alerts and visualizes traffic
Components of the IPFIX architecture

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 IDNameContent
8sourceIPv4AddressSource IPv4 address
12destinationIPv4AddressDestination IPv4 address
4protocolIdentifierIP protocol number
1octetDeltaCountBytes since the last report
2packetDeltaCountPackets since the last report
152flowStartMillisecondsFlow start time
Frequently exported information elements

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.

PropertyNetFlow v5NetFlow v9IPFIXsFlow
Standard bodyCiscoCisco, RFC 3954IETF, RFC 7011sFlow.org, RFC 3176
Record formatFixedTemplate-basedTemplate-basedSampled headers and counters
IPv6 supportNoYesYesYes
Vendor-specific fieldsNoLimitedEnterprise elementsExtensible structures
TransportUDPUDPUDP, TCP or SCTPUDP
Flow state on deviceYesYesYesNo
Flow export technologies compared

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.

SituationRecommended choiceReason
Security forensics on a campus edgeUnsampled exportEvery connection must be visible
Multi-hundred-gigabit backbonePacket sampling of 1 in 1,000 or moreProtects router CPU and collector capacity
Application visibilityExport with application elementsFive-tuple alone hides the application
Distant collector over lossy WANTCP or SCTP transportPrevents silent record loss
Deployment decisions for IPFIX
  • 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.