NFWare glossary CGNAT & networking

What Is IPFIX (IP Flow Information Export)?

IP Flow Information Export

Published Dec 1, 2026← Browse all terms

IPFIX stands for IP Flow Information Export. It is an IETF standard for sending structured records from an exporting device to a collector. These records commonly describe network flows, but IPFIX can also carry events such as NAT translation creation and deletion. Templates tell the collector which fields each record contains.

What Is IPFIX?

IPFIX separates the device producing observations from the system receiving them for storage and analysis. Routers, probes, firewalls and NAT devices can act as exporters. A collector receives their records; analytics software can then use them for traffic analysis, operational investigations or accounting.

The protocol is specified in RFC 7011, and the information model in RFC 7012. IPFIX evolved from NetFlow v9, but has its own message format and version number, 10. The informal label “NetFlow v10” should not be taken to mean that IPFIX and NetFlow v9 are interchangeable.

Export is initiated by the exporter. Records may be sent when flows expire, at reporting intervals or when particular events occur, depending on the implementation. NAT event export, for example, need not wait for a periodic traffic summary.

What Is a Flow?

A flow groups packets with selected common properties observed during a time interval. A common flow key is the five-tuple:

  • Source IP address
  • Destination IP address
  • Source transport port
  • Destination transport port
  • Transport protocol

That is a common choice rather than a universal definition. Observation point, direction, interfaces and other configured keys can distinguish records. One application connection may also produce several records because of timeouts, observation points or export policy.

A basic flow summary can report packet and byte counts and start and end times. It does not need to retain full packets. However, IPFIX is extensible: the protocol does not guarantee that all exported fields are harmless metadata or that packet-derived content can never be included. Inspect the actual templates and export configuration to understand what leaves the device.

How Does IPFIX Work?

Exporters and collectors

A metering process observes traffic and produces information for an exporting process. The exporting process encodes and sends records to a collecting process. These roles can run on a network device or a dedicated monitoring system.

A collector may receive data from many exporters. It must keep their identities and observation domains separate so that templates and records are decoded in the correct context. Storage, search and reporting are collector or analytics functions, rather than services automatically supplied by IPFIX itself.

Templates and Information Elements

A Template Record describes the fields and their order in associated Data Records. Fields are identified as Information Elements, with types and meanings defined in the information model and the IANA IPFIX registry. Enterprise-specific elements allow additional fields, but a collector needs their definitions to interpret them correctly.

For example, sourceIPv4Address identifies an IPv4 source address, while postNATSourceIPv4Address represents the translated source address. natEvent describes a NAT event, and postNAPTSourceTransportPort carries a translated source port. A template can combine those elements to represent a translation event rather than a bandwidth summary.

Template IDs are not globally unique. A decoder must scope them to the relevant exporter, transport session and observation domain. Losing a template can make later data undecodable until the template is available again. Template refresh and restart handling therefore matter in operation, especially with UDP export.

Transport, ports and reliability

RFC 7011 supports SCTP, TCP and UDP and recommends SCTP. Actual support depends on the exporter and collector. The standard default collector port is 4739; port 4740 is used for secured IPFIX with TLS or DTLS, depending on transport. Selecting port 4740 alone does not enable encryption.

UDP can lose messages without retransmission. Reliable transport improves delivery properties, but exporter queues, restarts or collector overload can still lose records. Monitor sequence information, template reception and processing counters rather than treating an established connection as proof of a complete archive.

Where and How IPFIX Is Used in NAT and CGNAT

NAT changes addressing information, and NAPT also translates ports. With CGNAT, many subscribers can share a public IPv4 address. A traffic record observed only outside the translator may show the public endpoint without revealing the internal mapping behind it.

IPFIX can export translation events directly from the NAT device to a collector. RFC 8158 defines Information Elements and event formats for NAT logging, including mapping changes and resource events. This is a different purpose from measuring bytes per flow: the record describes translation state or an event in its lifecycle.

Matching an external connection to a translation

Consider this illustrative TCP mapping:

Internal endpoint: 10.24.8.15:51514
Public endpoint:   203.0.113.10:40001
Protocol:         TCP
Context:          tenant VRF 7

If an external service reports a connection from 203.0.113.10:40001, an operator can search the NAT records for that protocol, endpoint and event time. The mapping's validity interval determines which internal endpoint was associated with it. An address alone is insufficient when subscribers share it, and a port can be reused at another time.

The operator may then correlate the internal address and routing context with subscriber-assignment or access-session records. A NAT log identifies a mapping; associating it with a subscriber account or person requires additional evidence. Accurate clocks, time-zone interpretation and sufficiently precise timestamps are essential.

Mapping, session and port-block records

Different records answer different questions. A mapping record can associate internal and translated endpoints without listing every remote destination. Session records can add destination information. Port-block records can associate a range of translated ports with an internal endpoint over an allocation period.

For a port-block lookup, an observed external port must fall within the allocated range at the relevant time. Such a record does not reconstruct every connection made from the block. The required detail should determine the export design, collector schema and storage capacity.

Do not assume that sampled traffic telemetry forms a complete NAT event history. Missing allocation, creation or deletion records can make a lookup incomplete or ambiguous. Export loss, clock errors, overlapping address spaces and changes in public-address pools all need to be handled by the investigation workflow.

NAT logging in NFWare vCGNAT

The NFWare NAT logging guide documents IPFIX export and four log choices:

Log typeInformation recorded
address-mapAddress mapping creation/deletion; no ports or destinations
port-mapAddress and port mapping creation/deletion; no destinations
sessionSession start/end with internal, translated and destination endpoints
port-blockPort-block allocation/release for PBA pools; no destinations

A minimal example selecting port-mapping events is:

nat log type port-map enable
nat log server 0 type ipfix ip 192.0.2.50 port 4739
nat log enable
show nat log counters

192.0.2.50 is a documentation address; use a reachable collector and an unused server ID. This is a configuration illustration, not a command sequence executed on a production device.

The guide also provides template-refresh controls and source-address or VRF selection. NFWare uses Observation Domain IDs to distinguish per-core export streams. Preserve that context in the collector. Generated or sent counters alone do not prove successful decoding and storage; verify records at the receiver too.

IPFIX vs NetFlow

The comparison depends on the NetFlow version. NetFlow v5 has a fixed format; NetFlow v9 already uses templates. It is therefore inaccurate to describe every NetFlow format as fixed or to assume that a collector supporting one format supports all the others.

AspectIPFIXNetFlow v9
SpecificationIETF Internet Standard, RFC 7011Cisco-origin format documented in RFC 3954
Message version109
Record structureTemplate-basedTemplate-based
Extension modelStandardized Information Elements and enterprise-specific elementsTemplate fields and implementation-specific extensions
TransportSCTP, TCP or UDP as supportedCommonly UDP
Collector requirementIPFIX decoder and support for exported elementsSeparate v9 decoding and field support

RFC 3954 documents NetFlow v9. Both formats are implemented by multiple vendors. Check protocol version, template fields, observation context and collector support instead of relying on the product label “flow compatible.”

IPFIX Use Cases

  • Traffic analysis and capacity planning: identify major traffic sources and volumes when counters and observation coverage support the analysis.
  • Security investigations: detect patterns such as scans or unusual connection volumes. Flow records alone do not establish the content or intent of a connection.
  • NAT and CGNAT traceability: correlate translated endpoints with mappings or port-block allocations and then with relevant subscriber records.
  • Accounting: support usage calculations when sampling, loss, counters and observation scope are appropriate for the purpose.
  • Troubleshooting: compare observations and investigate traffic changes. Measuring latency or loss requires suitable exported fields or additional telemetry, rather than merely the presence of IPFIX.

For developers building collectors, correct template lifetimes and typed field decoding are fundamental. For operators, coverage and loss monitoring matter as much as export configuration. IPv4 brokers and address holders should distinguish allocation of address space from its use at a particular time: IPFIX records can support operational analysis, but do not establish ownership or transfer rights.

IPFIX at a Glance

AttributeDetail
Full nameIP Flow Information Export
Protocol and modelRFC 7011 and RFC 7012
ArchitectureExporter to collector
Record formatTemplates describe Data Records
Common contentFlow measurements, operational context and NAT events
Default ports4739; 4740 for secured export with the appropriate TLS/DTLS support
Main operational concernPreserve templates and context, detect loss, and verify collector interpretation

Frequently Asked Questions

What does IPFIX stand for?

IPFIX stands for IP Flow Information Export, an IETF standard for exporting structured flow information and related records.

What is the difference between IPFIX and NetFlow?

IPFIX evolved from template-based NetFlow v9 but has its own version, protocol specification and Information Element model. NetFlow v5, NetFlow v9 and IPFIX require different decoding support.

What port does IPFIX use?

The standard default is 4739. Secured export uses 4740 with the appropriate TLS or DTLS transport support. Devices and collectors must be configured compatibly.

What is a flow in IPFIX?

A group of packets sharing selected properties over a time interval at an observation point. The five-tuple is a common flow key, but it is not the only possible one.

How is IPFIX used in NAT?

A NAT device can export mapping, session or port-allocation events. Collectors use the translated address, port, protocol and time context to locate the relevant translation records; subscriber attribution requires correlation with other records.

Does IPFIX export full packet captures?

Typical flow records contain selected fields and counters rather than complete packets. However, IPFIX is extensible, so the actual templates determine what information is exported.

Conclusion

IPFIX provides a standard record-export mechanism for both flow measurements and uses such as NAT event logging. Its usefulness depends on the exported fields, observation context, delivery quality and collector interpretation. In CGNAT deployments, plan the mapping detail and correlation workflow alongside throughput and address-sharing capacity.

Talk to NFWare

Let’s talk about
your network.

Have a question about CGNAT or load balancing? Tell us what you’re working on.

[email protected]
CGNATLoad balancingNetwork virtualization
Contact our team

Read our Privacy Policy to learn how we handle your information.

If the form does not load, open the contact form.