IPFIX

acronym

networkingISP & telecom

Kept in this browser · My desk

Stands for: IP Flow Information Export

The IETF's standard protocol for exporting flow records and other traffic information from routers, switches and probes to collectors, using templates of numbered information elements registered with IANA.

IPFIX (RFC 7011, Internet Standard 77, September 2013) grew out of Cisco's NetFlow version 9 and carries version number 10. A message has a 16-byte header, then Template Sets (ID 2), Options Template Sets (ID 3) and Data Sets (256 and above); each template lists information elements such as sourceIPv4Address (8) or octetDeltaCount (1), with an Enterprise bit for vendor elements. SCTP is mandatory to implement, UDP and TCP optional, on port 4739 (4740 secured). It also carries NAT logs, sampling metadata and application identifiers.

What it is. IPFIX defines how an Exporting Process sends information about traffic observed at an Observation Point to a Collecting Process. Its central notion is the Flow: "a set of packets or frames passing an Observation Point in the network during a certain time interval" that share properties derived from header fields, packet characteristics or treatment, the defining fields being Flow Keys, of which "the traditional '5-tuple'" is the common choice (RFC 7011, section 2).

History. The IETF chartered an IP Flow Information Export working group, which set requirements in RFC 3917 (October 2004) and evaluated five candidate protocols in RFC 3955, by Simon Leinen of SWITCH: CRANE, Diameter, LFAP, NetFlow v9 and Streaming IPDR. It recommended "starting with NetFlow v9, working on lacking mechanisms in the areas of transport, security, reliability, and redundant configurations". RFC 5101 (January 2008) was the first specification; RFC 7011 (September 2013), edited by Benoit Claise, Brian Trammell and Paul Aitken, replaced it as STD 77, with the information model in RFC 7012.

The message. A 16-byte header: Version 0x000a, "incrementing by one the version used in the NetFlow services export version 9"; Length of the whole message; Export Time in seconds since 1970 UTC; a Sequence Number counting Data Records modulo 2^32 (templates excluded), so a gap tells the collector how many records were lost; and a 32-bit Observation Domain ID. Sets follow, each with a Set ID and a length: 2 for Template Sets, 3 for Options Template Sets, 256 and above for Data Sets; 0 and 1 are not used "for historical reasons". A template record has a Template ID above 255, a field count, and field specifiers of information element identifier and length; if the top bit of the identifier (the Enterprise bit) is set, a 4-byte private enterprise number follows. Length 65535 marks a variable-length element. Reduced-size encoding lets an exporter send an unsigned64 counter in fewer octets. Padding at the end of a set must be zeros and shorter than any record.

The vocabulary. Elements are registered with IANA; as read on 23 November 2026 the registry had 506 numbered entries up to 533, with 65 to 69 and 105 to 127 reserved for NetFlow v9 compatibility (RFC 7012: identifiers 1 to 127 "are compatible with field types used by NetFlow version 9"). Familiar ones: octetDeltaCount 1, packetDeltaCount 2, protocolIdentifier 4, tcpControlBits 6, sourceTransportPort 7, sourceIPv4Address 8, destinationTransportPort 11, destinationIPv4Address 12, flowStartSeconds 150, flowEndSeconds 151. Extensions cover bidirectional flows (RFC 5103, with reverse elements under PEN 29305), packet sampling (PSAMP, RFC 5475) and NAT event logging (RFC 8158, whose natEvent values include NAT44 session create 4, ports exhausted 12, port block allocation 16 and de-allocation 17).

Transport. SCTP with partial reliability "MUST be implemented"; UDP and TCP "MAY". Default port 4739, 4740 for TLS or DTLS. Over UDP, templates must be retransmitted periodically, collectors may expire templates not refreshed within three times the observed interval, template withdrawals are not used, and if the path MTU is unknown messages should not exceed 512 octets. UDP "MUST NOT be used unless the application can tolerate some loss".

In practice. Most exporters send IPFIX over UDP, so template loss and silent record loss remain the common faults; sequence numbers are the tool to detect them. Beyond traffic flows, IPFIX carries carrier-grade NAT event logs (RFC 8158) and, through enterprise-specific elements, whatever a vendor chooses to export.

Security and privacy. RFC 7011 specifies TLS and DTLS with mutual authentication; without them, UDP export "SHOULD be protected via segregation to a dedicated network", and open collectors that accept any exporter are "discouraged". It also states that flow data "may be personally identifiable and privacy-sensitive". RFC 6235 (Experimental, May 2011) describes anonymization techniques such as address truncation and prefix-preserving pseudonymization.

Neighbours. NetFlow v9 is the parent; sFlow is the sampling-based alternative; the five-tuple is the usual key.

Also known as: ip flow information export, netflow v10, information element

← Back to I Back to the glossary