Internet Protocol Flow Information Export (IPFIX) is a standard for sending traffic measurements from an exporter to a collector. A flow record summarizes traffic grouped by criteria at an observation point. Some records describe an address pair and its counters. Others include ports, protocol, timestamps, or direction. The template determines which values the collector can read.
Flow records can help answer how much traffic a link carried or whether an address pair appeared at a specific exporter. Each answer depends on the time window, capture scope, sampling and counter definition. A valid row can still be unfit for a specific question. For example, an address-pair record with no ports cannot distinguish two services that communicate between those same addresses.
Key terms
- Observation point
- A place in the network where packets can be observed. It identifies the traffic position to which a volume or timing finding applies.
- Observation domain
- A collection of observation points from which an exporting process can aggregate flow information. Domain scope helps select the correct template and sequence.
- Template record
- The field layout that defines how a collector reads matching IPFIX Data Records in a specific scope.
- Flow key
- The set of measured properties used to group packets under one flow at the meter. Compare key and meter scope before treating rows as the same flow.
- Collector
- The process that receives and decodes exported flow records. Its logs can explain decoding errors, export gaps and delivery delays.
- Export sequence number
- The message header counter that can indicate missing Data Records after transport scope, order and rollover are checked.
More key terms (3)
- Delta counter
- A count accumulated since the previous report in its defined scope. Combine only disjoint measurements with comparable units.
- Total counter
- A running count within a defined flow scope. Compare successive snapshots only when continuity and reset behavior are understood.
- Options Template
- An IPFIX template for scoped information such as metering configuration or statistics. Its data can explain how a group of flow observations was produced.
Read the Template in Context
An IPFIX message can carry Template Sets, Options Template Sets, and Data Sets. A Data Set refers to a template by ID. The template lists field identifiers and their encoded lengths in order. Those definitions are what make a run of bytes interpretable as an address, a counter, an application label, or another value.
A template ID is scoped to its transport session and observation domain. Two exporters can assign the same ID to different schemas. Check the exporter and session context before using a saved template, and look for a restart or withdrawal that affects which definition was in force. Reading a row under the wrong template can produce values that look plausible. The message format and scope rules are defined in the protocol specification. IETF IPFIX Protocol Specification
Options records can supply operational context such as sampling settings or statistics. Keep this contextual material with the exported data. An extracted table may be easy to query while omitting the information needed to validate how that table was decoded.
Identify What the Meter Counts
The familiar five-tuple includes source address, destination address, source port, destination port, and transport protocol. It is one possible flow key. A meter could also group by interface, network segment, or traffic class. An observation point may cover one direction only. Another meter may track both directions and store their counters under one record.
Read counter names and units before comparing volume. A delta counter describes activity in a reporting interval or since a prior report for the flow. A cumulative counter describes an accumulated total for the counter's defined lifetime. Adding successive cumulative records counts overlapping activity more than once. Layer-specific byte counts can legitimately differ for the same observed exchange.
Meters may sample some packets or flows. Check the documented sampling method and whether the collector has already applied a scaling factor. A scaled count is an estimate based on the selection rule and may be especially uncertain for small flows. Keep the estimate and the recorded count distinguishable.
Separate Observation Time From Export
A record can carry the time of the first and last observed packets, while an IPFIX message header carries export time. The collector may add arrival and ingestion times. A record delivered after an incident can still describe traffic during the incident. Use the time fields that correspond to the question and preserve their original names.
An active timeout can split a long-running exchange into several flow records. An idle timeout can close it after a period without observed traffic. If the same tuple appears in successive rows, inspect timing and meter policy before deciding whether they are fragments of one exchange or separate exchanges that reused the tuple.
Watch for missing data in the export stream. The IPFIX sequence counter counts Data Records within the applicable scope. A gap merits a check for loss, reordering, exporter restart, or collector handling. Sequence information helps assess record delivery and cannot measure how many packets the meter itself missed.
Translate a Flow Finding Into Plain Language
Say which exporter observed which endpoints and for what span. Name the protocol and directional counters only if the schema supplies them. A record of bytes from one side establishes that the meter counted bytes for that flow definition. Application activity, receipt by the far endpoint and any requested action depend on additional evidence.
When comparing meters, check that they record equivalent packet populations. A sensor before a virtual tunnel may group by workload addresses while an outside sensor sees tunnel endpoint addresses. Two meters along one route can count the same bytes. Summing across them without a reason can inflate volume.
Keep main conclusions tied to data that a second examiner can recheck. Preserve the exported representation, schema or templates, exporter mapping, clock notes, and any filters or transforms used to create a working table. Record why apparently similar rows were combined or kept apart.
Check Export Health Before Comparing Totals
Begin by checking whether the collector can account for templates and records throughout the interval. A data record with an unavailable template is evidence of received bytes whose contents remain undecoded. Keep it visible in the analysis, even if your normal query tool excludes rows that it failed to parse.
Check reported loss at each layer. The meter can miss traffic, the export path can lose messages, and the collector can reject or discard records. Each gap affects different conclusions. Separating those failure points allows a report to state what remains measurable without claiming full observation.
Read the Flow End Reason Before Inferring a Disconnect
Check whether the template includes flowEndReason, Information Element 136. Values 1 and 2 represent idle and active timeout respectively. Value 3 means the meter detected a sign that the flow was ending, such as a TCP FIN. Value 4 marks an externally forced end. Value 5 indicates a resource constraint in the metering or exporting process. The field answers why the meter closed its flow record. IANA IPFIX End Reason Registry
For an active timeout, look immediately after the end for another record with the same key and scope. That pair can support continuing activity across two reporting periods. For an end detected from a TCP signal, test the stronger claim of an orderly close against a saved transport trace. The exporter may have observed a FIN from one peer while the rest of the exchange fell outside its view.
Hypothetical practice. An exporter reports 15 flow endings at 11:21 with reason 4 and starts exporting from a new session at 11:22. Before describing 15 disconnections, compare the export timestamps and check for a meter restart in the device record. A matching restart would explain the group of forced endings. Evidence of endpoint interruption would still have to come from the endpoints or a sensor with relevant traffic coverage.
Read Both Directions of a Single Flow Record
A bidirectional flow, or biflow, can represent traffic between two endpoints in one record. Under RFC 5103, normal Information Elements describe the designated forward direction and Reverse Information Elements describe traffic sent by the designated destination. Find the meter's assignment rule or inspect biflowDirection when exported. The forward orientation can be arbitrary or chosen by a measurement rule, which matters when the analysis asks who initiated the exchange. IPFIX Biflow Direction Rules
Hypothetical practice. A row names endpoint A as its Biflow Source and endpoint B as its Biflow Destination. It carries a forward octetDeltaCount of 1,420 and its reverse equivalent of 9,800. For that record the meter assigned 1,420 octets to A toward B and 9,800 octets to B toward A. If the counters cover the same interval and layer, the combined amount is 11,220 octets.
Keep the directional values in a working table even when reporting a total. A collector export that omits the reverse element leaves its value unavailable, while a present counter of zero means the meter reported none under its own coverage and counting rules. A reversed endpoint order in a later row can follow from a new direction assignment. Compare both orientations and reporting intervals before calling it additional traffic.
Verify the Template That Applies to Each Export Session
An IP Flow Information Export (IPFIX) data set carries values arranged according to a template. Template IDs are scoped to the transport session and observation domain. The number alone cannot identify a field layout across exporters or after a new transport session begins.
Preserve the exporter or session evidence, the Observation Domain ID, the Template ID and the template definition where available. Check Information Element identifiers and field lengths, including the Private Enterprise Number for enterprise-specific elements. RFC 7011 on IPFIX Template Management
Hypothetical practice. A saved export from one observation domain stops during maintenance. A later transport session uses the same domain ID and Template ID 302. In the earlier session, the template lists a packet counter. In the later one, the corresponding position holds an octet counter. A collector report that labels that position as packets throughout could present a false increase.
Obtain the later template or treat the affected field as unresolved. The fact that the surrounding endpoint fields still look plausible does not settle the counter definition.
A CSV-only handoff may retain readable column names while dropping the template and session history. Ask which schema and time span the analyst used to produce it. If the original export is unavailable, qualify conclusions that depend on exact units or field identity and record which columns were checked against the collector configuration.
Use Sequence Numbers to Bound Export Gaps
The IPFIX message sequence number counts preceding Data Records in its stream and observation domain, modulo 2 to the power of 32. A message can carry more than one record. Template and Options Template Records do not advance the counter. Read the message header and count the Data Records in the earlier message before deciding what sequence value to expect next. RFC 7011 on the IPFIX Message Header
Hypothetical practice. Message A has sequence 800 and contains 14 Data Records. The next retained message from the same stream and domain starts at 820. The next expected value is 814. With ordering verified and no session change, six Data Records are unaccounted for between these messages.
The counter reveals neither their types nor which monitored communications they describe. A single discarded export message could have held all six, or they could have arrived separately and been excluded from the preservation export.
Before reporting a gap, look for receiver-side reordering, rollover, a change of session and records omitted by the saved query. Locate the nearest timestamps that actually apply to the gap. Export time indicates when the message left the exporter and sets a different bound from the first or last packet time recorded in the affected flows. Even a continuous sequence says little about packets the meter never observed. Capture Loss, Truncation and Visibility
Combine Counters Only When Their Scopes Permit It
In the IANA registry, octetDeltaCount covers the bytes since the previous report, while octetTotalCount counts from the metering process initialization for that observation point. Both standard field definitions include IP headers and IP payload for packets of the flow. Check the registered element and any sampling or scaling documented for the exporter before translating the amount into a statement about traffic volume. A vendor column called bytes can hide several distinct units or counting rules. IANA IPFIX Information Elements Registry
Hypothetical practice. An authorized export retains two cumulative values, 12,000 and 17,000 octets, from one meter for the same continuing flow. If the counter did not reset, the increase is 5,000 octets. Adding the snapshots counts earlier traffic twice. In a different export two successive interval deltas of 1,200 and 2,100 octets can be added if they cover disjoint intervals in the same reporting direction and layer.
Check whether the volume question concerns network traffic at the meter, bytes carried by a transport, or a file written by the application. Headers and repeated transmission can appear in wire measurements. Sampling can change the relationship between the row and the traffic that crossed the interface. Compare transformed counters only with evidence showing compatible collection and counting methods. Packets, Flows and Logs