The short version
- An IPFIX Template ID is an ordered field contract that means something only inside its Transport Session and Observation Domain. The Observation Domain ID is local to an Exporting Process — not a device, a tenant, a site or a customer.
- A valid decode tells you which contract a collector applied. It does not tell you that every packet was observed, every Flow became a record, every record arrived, every counter was accurate, or what selection, aggregation and mediation quietly did to the population first.
The cache that crossed a line
Two TCP connections, back to back, same exporter. In the first, Template ID 256 describes an ordered set of addresses, ports and counters. The connection ends. In the second, the exporter — entirely within its rights — assigns 256 to a different definition. A collector that carries the old definition across the boundary will staple old names and old units onto new bytes.
The case is synthetic; no named product is on trial here. And not every stale template produces obvious garbage. The dangerous version produces something that looks right. Values clear every range check, walk into a traffic report, an abuse case or an invoice, and nobody asks which session supplied the schema until the number is already carrying weight.
RFC 7011 closes the door on that shortcut. An Exporting Process maintains Template IDs per Transport Session and per Observation Domain. A Collecting Process must not use a Template from one session to decode Data Sets in a later one — however familiar the exporter and the number happen to look.
A number needs its provenance tuple
IPFIX splits the measurement chain into roles. Packets are visible at Observation Points. A Metering Process classifies, samples, timestamps and maintains Flow Records. An Exporting Process ships IPFIX Messages. A Collecting Process receives them and may store or transform the results.
An Observation Domain is the largest set of Observation Points across which a single Metering Process can aggregate Flow information. Its 32-bit ID is locally unique to the Exporting Process. Uniqueness per IPFIX Device is recommended, not guaranteed. Domain 17 can exist on a hundred exporters at once without ever describing one shared place, network or customer.
So the minimum decoding key is not the Template ID. It is the tuple: authenticated or otherwise identified exporter, Exporting Process, Transport Session, Observation Domain ID and Template ID. On SCTP, the stream matters too, for sequence state. Storage layers that flatten that tuple turn scoped control information into accidental global identity — and then defend it with a straight face.
The template supplies order, not truth
A Template is an ordered sequence of Information Element and length specifications. In a Data Set, the Set ID is the Template ID. The collector needs the matching Template to slice bytes into fields and hang the right data types, semantics and units on them.
Information Element identity is scoped more carefully than a bare number suggests. IANA keeps the standard registry; enterprise-specific fields carry an enterprise number as part of their identity. Treating an element ID without its enterprise context as universal produces the same class of semantic collision as dropping the exporter from the key.
RFC 5610 lets type information travel in-band; RFC 7013 sets expectations for clear Information Element definitions and review. Neither lets a source turn a syntactically valid value into an independently verified fact. The Template can declare that eight bytes are an octet count. It cannot prove the Metering Process watched the right interface, used the intended Flow Keys, or counted honestly.
Withdrawal and reuse are events
On connection-oriented transport, an exporter can withdraw a Template and later reuse its ID. The collector must stop applying the withdrawn definition to subsequent Data Sets. Withdrawals and replacements take effect in message order, and the exporter should let earlier records drain before pulling the schema out from under them.
UDP runs a different lifecycle. There is no teardown to clear state, and Template messages can be lost or reordered. Refresh, replacement and expiry policies therefore carry the weight. A Data Set that arrives before its Template is not permission to borrow one from another session or domain. The collector must record whether it buffered, discarded or later decoded the data — and which Template instance justified the call.
Structured Data Information Elements can hold lists and nested records. They buy a richer grammar, not a stronger source. A well-formed nested list can still be sampled, aggregated, stale or simply wrong.
The sequence number counts records, not reality
The IPFIX Sequence Number advances by the number of Data Records sent in the current stream from the current Observation Domain, modulo 2^32. Template and Options Template Records do not move it. A collector can read discontinuities as missing, reordered or duplicate Data Records within that scope.
That is useful evidence with a very narrow denominator. It is not a packet counter. It cannot see packets that never reached the Observation Point, packets a sampling stage threw away, or Flows that failed to become records. Nor can it, by itself, reveal every record dropped before the exporter ever assigned sequence state.
Even reliable TCP delivery is not an end-to-end completeness proof. If congestion or a slow collector fills the export buffer, an Exporting Process may drop Data Records rather than block — and RFC 7011 requires those drops to be accounted for. UDP adds transport loss and reordering on top. The honest sentence is “no sequence discontinuity was seen for this scoped stream,” not “no traffic evidence was lost.”
Export Time is the other tempting shortcut. It records when an IPFIX Message left the Exporting Process. It is not the start or end of every Flow inside it. Observation timestamps, export delay, aggregation windows and clock quality stay separate facts.
Selection changes the population before the dashboard
IPFIX can report traffic that has already been through packet selection, Flow selection, or both. RFC 7014 describes deterministic filtering, hash selection and systematic or random Flow sampling. The configuration, the selection counters and the denominator decide what population the exported records actually represent.
“Complete” is the easiest word in the room to overread. A selected Flow may contain every packet that reached a selection stage while earlier packet sampling already removed others. Completeness is relative to the stage boundary — not necessarily to the physical link.
Aggregation moves the evidence again. RFC 7015 describes how Flow records may be combined under an aggregation function. A Mediator can collect, transform, select, aggregate and re-export under a new exporting context. Downstream provenance must name which original exporters and domains contributed, what changed, and what was thrown away. A mediator’s valid Template does not make the derived record identical to any original observation.
Authenticated transport authenticates a source
IPFIX carries mechanisms for confidentiality, integrity and peer authentication through TLS or DTLS, where they are deployed correctly. They matter: a forged Template can corrupt every record that follows, and flow data leaks sensitive communication patterns all by itself.
Transport authentication still stops at the Exporting Process. It does not attest to sensor placement, configuration review, counter correctness or honest mediation. An authenticated exporter can faithfully transmit a measurement built on the wrong interface map or an undisclosed sample. Cryptographic origin and measurement truth are two different receipts.
Make the scope fail visibly
Reconnect an exporter and reuse one Template ID with a different ordered schema; the collector must wait for the new Template. Send the same ID from two Observation Domains and two exporters; storage must not merge them. Withdraw and reuse a Template around delayed Data Sets. Lose the first UDP Template and record the explicit missing-definition disposition.
Then inject Data Record loss and tell a sequence gap apart from packet loss. Fill an export buffer and check the exporter’s drop statistics. Switch on packet sampling, Flow selection, aggregation and mediation one at a time, and demand that each configuration and provenance transition stay visible. Finally, authenticate a transport while deliberately exporting wrong counters from the metering stage. The system should say “authenticated source, inconsistent measurement” — not quietly upgrade one proof into the other.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






