Three bits light up in a single IPFIX record: SYN, ACK, FIN. A tired analyst reads the familiar arc — handshake, conversation, polite goodbye. The record never said any of that. RFC 9565, the 2024 revision of IPFIX Information Element 6, made the tcpControlBits bitmap more interoperable and future-proof. It did not turn the bitmap into a transcript of the connection that produced it.

Here is the whole trick, and it is a good one. ACK may have ridden on thousands of packets, FIN on exactly one, and SYN on a retransmission after a lost first attempt. Every packet may have travelled one way. The exporter may have started watching after the handshake and stopped before the reset. The bitmap establishes one thing only: those bits appeared somewhere inside the packets grouped into that Flow.

The short version

  • RFC 9565 points IPFIX tcpControlBits at the live IANA TCP Header Flags registry and requires assigned and unassigned control bits to be exported as observed.
  • Each set bit means at least one packet in the Flow carried it. The bitmap keeps no order, direction, count, co-occurrence or TCP state.
  • Reading it honestly needs field width, Template and observation epoch, exporter behavior, directional flow identity, and packet- or endpoint-level corroboration.

What RFC 9565 actually fixed

RFC 9565 repairs a real standards rot. IPFIX Information Element 6 had frozen a static description of TCP flags while the authoritative allocation kept evolving elsewhere. The new definition points implementers at the IANA TCP Header Flags registry, keeps tcpControlBits as an unsigned 16-bit flags field, and requires assigned as well as unassigned control bits to be exported as observed. Good protocol hygiene — the measurement vocabulary now follows the packet format instead of a table that quietly goes stale.

But a better vocabulary does not conjure missing evidence.

The operation is an OR gate, not a replay

For every packet in a Flow, a Metering Process can read the TCP header. At export, each control-bit position is set if any observed packet had that bit set, cleared otherwise. The exporter has ORed its observations across the Flow. The operation is lossy by design — a compression, not a recording.

Take 0x92. That value shows CWR, ACK and SYN were seen somewhere. It cannot tell you which came first, whether any single packet carried the combination, how often each appeared, whether the reverse direction was folded in, or whether the connection ever reached ESTABLISHED. Two wildly different packet histories collapse to the same integer.

The gap bites hardest in automation. A rule that reads SYN plus ACK as proof of a completed handshake has quietly promoted a set-membership observation into a chronology claim. A rule that reads RST as the end of a session has ignored the exporter's active timeout, observation point and direction. A rule that reads zero as "no flags" may be staring at an older or limited implementation that could not export every position at all.

Width is part of the evidence

IPFIX Templates tell the collector which Information Elements appear and how long they are. RFC 9565 keeps reduced-size encoding for this field, but a one-octet instance covers only bit positions 8 through 15 — it says nothing about positions 4 through 7. A Metering Process that cannot see the wider field should use the narrow size rather than pretend.

That creates an evidence boundary a normalized database erases without a trace. Expand an eight-bit value into a sixteen-bit integer and drop the original field length and Template epoch, and the zeros in the upper half become indistinguishable from observed-clear bits. The number looks complete; its provenance is gone.

The lower four positions need the same care. They belong to the TCP data-offset area, not to control flags, and must be zeroed or ignored in tcpControlBits; header length lives in tcpHeaderLength. A decoder that treats all sixteen positions as one undifferentiated flag field manufactures semantics the registry never granted.

A registry can move while a collector stands still

The revision also exposes a time problem. RFC 9293 records the familiar assigned flags. RFC 8311 changed the status of a position once tied to the experimental NS usage. RFC 9565 deliberately lets the authoritative IANA registry evolve and requires future assigned or still-unassigned control bits to be reported as seen.

That flexibility is only useful if the evidence remembers which exporter code, registry interpretation and Template were in force. A set bit can be faithful packet evidence even when an old collector labels it "reserved". A zero can mean legacy RFC 7125-era behavior that required certain positions cleared, a reduced field width, or a plain observation gap. Meaning lives at the join between packet, exporter, Template, registry and clock — never inside the integer alone.

Lu Heng's reality-layer discipline is practical here. The IANA registry is symbolic authority. RFC 9565 defines interoperable reporting behavior. The exporter's running code performs an observation. The Flow record is a compressed receipt. None of those layers can impersonate the endpoint state machine or the application outcome.