Summary

  • RFC 9521 gives a Geneve BFD session two identities over its lifetime: during bootstrap the VNI plus inner addresses locate it, and once the peer discriminator exists that discriminator alone demultiplexes it.
  • An Up result is evidence for the scoped control exchange. It says nothing about every tenant flow, every VAP pair, or whether the service actually delivered.

Two network-virtualization edges. Ten virtual access points apiece. One cyan BFD session turns green, a tenant application tile turns green beside it, and in the gap between those two pixels lives most of the operational confusion in modern overlay networking.

The control exchange may have crossed one underlay ECMP member while the tenant's flow hashed onto another. It may have ridden a different queue, security policy or service chain. It may cover one VAP on each edge while the tenant pair that is genuinely broken is represented by a different one. ECMP does not check the dashboard before it picks a link. Nothing in that picture makes the BFD result wrong. It makes the conclusion drawn from it too large.

The session wears two identities

RFC 9521 earns its keep because it specifies admission and demultiplexing instead of leaving “BFD over a tunnel” as a slogan. A session originates and terminates at a Virtual Access Point, or VAP, on a Network Virtualization Edge. The VAP's ordinary payload decides whether the probe carries inner Ethernet/IP/UDP/BFD or inner IP/UDP/BFD. Both endpoints must agree on the VNI and on the payload form.

Before the remote endpoint has supplied a usable discriminator, Your Discriminator is zero. In the Ethernet case the receiver should find the session through the VNI plus the inner source and destination MAC and IP addresses; in the IP case the VNI plus inner source and destination IP addresses do the work, with the inner UDP source port available as an assist. If the receiver cannot identify the session, it must drop the packet and should raise a management exception.

Once Your Discriminator is non-zero, the rule flips: that discriminator alone must demultiplex the session. This is not a parsing footnote. A diagnostic record that keeps only the final discriminator has lost the bootstrap tuple that explained what the discriminator was supposed to represent. A record that keeps only VNI and VAP addresses can miss discriminator reuse after a restart. A defensible history joins both identities through the transition packet and a configuration generation.

A VNI is scope, not authority

The packet carries crisp validation fields too. The Geneve O bit is one, the C bit is zero, and Protocol Type separates Ethernet, IPv4 and IPv6 payloads. The receiver checks the destination VAP mapping, the UDP destination and the TTL or Hop Limit. A packet that fails validation never reaches BFD processing at all.

Those checks protect protocol scope. They do not prove the sender owns a tenant, is entitled to speak for a customer, or may trigger a production change. Geneve itself has no inherent security mechanism; RFC 9521 recommends BFD authentication. Authentication strengthens a packet-origin claim under configured keys. It still hands the BFD process no authority to drain traffic, declare an SLA breach or close an incident. Those are separate decisions with separate principals.

N squared sessions and the loaded word “covered”

The most revealing paragraph in RFC 9521 is not a header diagram. It is the overload warning. Two NVEs with N Ethernet VAPs each could open N squared BFD sessions — the arithmetic of a dinner party where every guest insists on greeting every other guest personally. The RFC recommends capping the maximum and notes that N sessions may be enough when all N VAPs are covered.

Sensible engineering. It also creates a governance question: what did “covered” mean in the mapping that was actually deployed? One probe per VAP can show that every access point participates in some exchange. It cannot quietly become evidence that every possible VAP pair, tenant flow or policy combination was exercised. Compression is a declared sampling policy, and the inventory, the pair-selection rule and the uncovered combinations belong on the same page as the green session count.

Rate is part of the scope

RFC 9521 requires BFD for Geneve to run inside a Traffic-Managed Controlled Environment unless BFD is genuinely congestion controlled. Operators must provision probe rates so the probes do not create the congestion they then report. A Down transition without the rate configuration, queue state and packet-loss context cannot, by itself, name the broken component — it can only name the broken session.

Build the receipt chain before the automation chain

Every claim needs a receipt, and the receipts stack in a fixed order:

  1. A mapping receipt records the two NVEs, VAPs, VNI, payload form and configuration generation.
  2. A bootstrap receipt preserves the zero-discriminator lookup tuple and every validation result.
  3. A transition receipt binds that tuple to the non-zero local and remote discriminators, restart boundaries included.
  4. A probe-treatment receipt records the outer flow, available ECMP or LAG selection evidence, timers, authentication and rate policy.
  5. A coverage receipt lists all VAPs, intended pairings, active sessions, the compression rule and the gaps.
  6. A reaction receipt records who consumed the state change, what action was authorised, and whether the FIB or policy actually moved.
  7. A service receipt observes representative tenant traffic and the application result over a stated window.

RFC 9521 standardises the middle of that chain and politely declines to own either end. That restraint is the design lesson. Running code produces valuable evidence only while the claim stays as narrow as the mechanism that produced it.

Sources