Summary

  • RFC 9785 lets operators order EVPN DF candidates with Highest-Preference or Lowest-Preference, but it expressly assumes every candidate is already operationally ready.
  • Candidate eligibility, advertised preference, the elected DF, programmed BUM or Single-Active unicast forwarding, convergence and customer outcome are six different facts hiding behind one label.
  • Don't Preempt can spare you a second disruption when a preferred PE returns — at the price of an incumbent that stays DF long after it stops being the favourite.

A preference field has one narrow job — and proof isn't it

In EVPN, the Designated Forwarder is the Provider Edge router that carries Broadcast, Unknown Unicast and Multicast traffic toward a multihomed device or network in All-Active mode. In Single-Active mode, its brief stretches to unicast as well. RFC 7432 handed it the job; RFC 8584 made the election extensible. RFC 9785 hands the operator a dial.

Algorithm 2 orders candidates by the highest numerical preference; Algorithm 3 by the lowest. The two-octet value runs from 0 to 65535 and defaults to 32767. IANA's registry records both algorithms and the D, or Don't Preempt, capability.

That is real control. An operator can demote the current DF before maintenance, or swing a preference dynamically through local policy. A PE can be chosen independently of the IP-address ordering older procedures relied on. But the standard's first requirement carries its own leash: preference controls the order in which candidate PEs may become DF, assuming they are all operationally ready.

That assumption is not an output. A preference of 500 does not prove an attachment circuit is usable, that a forwarding table is installed, or that a customer path is accepting frames. It only says how to rank a PE once it has earned a place in the candidate set.

Eligibility comes before rank

RFC 8584 defines election as more than a comparison. PEs are discovered, a candidate list is maintained, and a winner is chosen after DF_WAIT. With AC-DF enabled, RFC 9785 says a PE is not a candidate until the corresponding Ethernet A-D per ES and per EVI routes have been received. That gives you a bounded eligibility test.

Even that test is control-plane evidence. It cannot see whether data-plane programming finished, whether BUM replication points at the expected attachment, or whether Single-Active unicast arrived without loss. RFC 7432 warns about transient windows in which two PEs both believe they are DF before an election settles. Its split-horizon machinery limits one failure mode; it does not turn a winner record into an end-to-end receipt.

Algorithm consistency is another prerequisite. If one PE advertises Highest-Preference and another Lowest-Preference, every participant falls back to the default RFC 7432 algorithm. The observed winner therefore needs the algorithm set that produced it. A dashboard that shows only "DF: PE3" throws away the reason, the candidate membership and whether a fallback happened.

Administration and operation can diverge on purpose

Don't Preempt makes the evidence problem more interesting. Suppose a highly preferred PE fails. The next candidate takes over. When the former DF returns, immediate reversion would trigger another forwarding transition and may cost you unnecessary loss. RFC 9785 therefore permits non-revertive behaviour.

After a boot or hold timer, the returning PE learns the current Ethernet Segment routes and picks a reference PE. If its configured preference would displace the incumbent, it can advertise an operational "in-use" preference inherited from that reference and set DP to zero. The incumbent still advertises DP=1 and wins the equal-preference tiebreak. The returning PE is present but does not retake the role.

The distinction is exact: administrative preference describes the desired order; advertised in-use preference may describe the temporary order needed to keep the incumbent. A sound record keeps both. Otherwise an audit reports that configuration and BGP disagree when the difference is the protocol's intended state.

Non-revertive is not a universal safety mode. It dodges the risk of one restoration-time move, yet can retain a PE that is no longer the operator's preferred choice. A later route withdrawal, failure of the reference PE, explicit preference change or algorithm conflict reshuffles the calculation again. If a returning PE advertises a different algorithm, Don't Preempt cannot save the non-revertive state: the segment falls back to the default election.

Configuration is also an attack surface

RFC 9785's security section is unusually direct. Configuration supplies "absolute control" over which PE wins for a tag. An attacker who reaches that configuration can change preference and redirect the traffic responsibility. Conflicting algorithm advertisement can disable the non-revertive behaviour through fallback.

Local per-tag overrides create a second consistency obligation. They can distribute tags between two PEs, but every PE must apply the same override. Inconsistent views can cause drops or duplicates. The shared preference is therefore only one coordinate in a larger change: configuration authority, candidate membership, algorithm consistency and forwarding observation all matter.

RFC 9784 confirms that the preference algorithms also apply to virtual Ethernet Segments. Its EVC-versus-ENNI failure scope, vES identity and grouping withdrawals belong to a different problem. Likewise, multicast-source redundancy belongs elsewhere. This analysis stays with the authority and evidence of preference-based DF choice.

The RFC Editor record, IETF Datatracker and errata search establish the document record; no matching errata were listed when checked. They do not establish adoption or performance.