RFC 9785: Preference-Based EVPN Designated Forwarder (DF) Election
- J. Rabadan, Ed.,
- S. Sathappan,
- W. Lin,
- J. Drake,
- A. Sajassi
Abstract
The Designated Forwarder (DF) in Ethernet Virtual Private Networks (EVPNs) is defined as the Provider Edge (PE) router responsible for sending Broadcast, Unknown Unicast, and Multicast (BUM) traffic to a multihomed device/network in the case of an All-Active multihoming Ethernet Segment (ES) or BUM and unicast in the case of Single-Active multihoming. The Designated Forwarder is selected out of a candidate list of PEs that advertise the same Ethernet Segment Identifier (ESI) to the EVPN network, according to the default DF election algorithm. While the default algorithm provides an efficient and automated way of selecting the Designated Forwarder across different Ethernet Tags in the Ethernet Segment, there are some use cases where a more "deterministic" and user-controlled method is required. At the same time, Network Operators require an easy way to force an on-demand Designated Forwarder switchover in order to carry out some maintenance tasks on the existing Designated Forwarder or control whether a new active PE can preempt the existing Designated Forwarder PE.¶
This document proposes use of a DF election algorithm that meets the requirements of determinism and operation control. This document updates RFC 8584 by modifying the definition of the DF Election Extended Community.¶
Status of This Memo
This is an Internet Standards Track document.¶
This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.¶
Information about the current status of this document, any
errata, and how to provide feedback on it may be obtained at
https://
Copyright Notice
Copyright (c) 2025 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(https://
1. Introduction
1.1. Problem Statement
[RFC7432] defines the Designated Forwarder (DF) in EVPN networks as the PE responsible for sending Broadcast, Unknown Unicast, and Multicast (BUM) traffic to a multihomed device/network in the case of an All-Active multihoming Ethernet Segment or BUM and unicast traffic to a multihomed device or network in the case of Single-Active multihoming. The Designated Forwarder is selected out of a candidate list of PEs that advertise the Ethernet Segment Identifier (ESI) to the EVPN network and according to the DF election algorithm or to DF Alg as per [RFC8584].¶
While the default DF algorithm or the Highest Random Weight (HRW) algorithm [RFC8584] provide an efficient and automated way of selecting the Designated Forwarder across different Ethernet Tags in the Ethernet Segment, there are some use cases where a more user-controlled method is required. At the same time, Network Operators require an easy way to force an on-demand Designated Forwarder switchover in order to carry out some maintenance tasks on the existing Designated Forwarder or control whether a new active PE can preempt the existing Designated Forwarder PE.¶
1.2. Solution Requirements
The procedures described in this document meet the following requirements:¶
1.3. Solution Overview
To provide a solution that satisfies the above requirements, we
introduce two new DF algorithms that can be advertised in the DF
Election Extended Community (Section 3). Carried with the
new DF Election Extended Community variants is a DF election
preference advertised for each PE that influences which PE will
become the DF (Section 4.1). The advertised DF election
preference can dynamically vary from the administrativel
2. Requirements Language and Terminology
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
- AC:
- Attachment Circuit. An AC has an Ethernet Tag associated to it.¶
- CE:
- Customer Equipment router¶
- DF:
- Designated Forwarder¶
- DF Alg:
- Refers to the DF election algorithm, which is sometimes shortened to "Alg" in this document.¶
- DP:
- Refers to the "Don't Preempt" Capability in the DF Election Extended Community.¶
- ENNI:
- External Network-Network Interface¶
- ES and vES:
- Ethernet Segment and virtual Ethernet Segment.¶
- Ethernet A-D per EVI route:
- Refers to Route Type 1 or Auto-Discovery per EVPN Instance route [RFC7432].¶
- EVC:
- Ethernet Virtual Circuit¶
- EVI:
- EVPN Instance¶
- Ethernet Tag:
- Used to represent a broadcast domain that is configured on a given Ethernet Segment for the purpose of DF election. Note that any of the following may be used to represent a broadcast domain: VLAN IDs (VIDs) (including Q-in-Q tags), configured IDs, VXLAN Network Identifiers (VNIs), normalized VIDs, Service Instance Identifiers (I-SIDs), etc., as long as the representation of the broadcast domains is configured consistently across the multihomed PEs attached to that Ethernet Segment. The Ethernet Tag value MUST NOT be zero.¶
- HRW:
- Highest Random Weight, as per [RFC8584].¶
- OAM:
- Operations, Administration, and Maintenance.¶
3. EVPN BGP Attribute Extensions
This solution reuses and extends the DF Election
Extended Community defined in [RFC8584] that is
advertised along with the Ethernet Segment route. It does so by
replacing the last two reserved octets of the DF Election Extended
Community when the DF algorithm is set to Highest
Where the above fields are defined as follows:¶
4. Solution Description
Figure 3 illustrates an example that will be used in the description of the solution.¶
Figure 3 shows three PEs that are connecting EVCs coming from the Aggregation Network to their EVIs in the EVPN network. CE1 is connected to vES1, which spans PE1 and PE2, and CE2 is connected to vES2, which is attached to PE1, PE2, and PE3.¶
If the algorithm chosen for vES1 and vES2 is the
Highest
4.1. Use of the Highest-Preference and Lowest-Preference Algorithm
Assuming the operator wants to control -- in a flexible way -- what
PE becomes the Designated Forwarder for a given virtual Ethernet
Segment and the order in which the PEs become a Designated Forwarder in
case of multiple failures, the Highest
Highest
Highest
The procedures in this document can be used in an Ethernet Segment as defined in [RFC7432] or a virtual Ethernet Segment per [RFC9784] and also in EVPN networks as described in [RFC8214], [RFC7623], or [RFC8365].¶
4.2. Use of the Highest-Preference or Lowest-Preference Algorithm in Ethernet Segments
While the Highest
The Ethernet Segment is configured with an administrative
preference value and an administrative DF algorithm, i.e.,
Highest
For instance:¶
While the above logic provides a perfect load-balancing
distribution of Ethernet Tags per Designated Forwarder when there are
only two PEs, for Ethernet Segments attached to three or more PEs,
there would be only two Designated Forwarder PEs for all the Ethernet
Tags. Any other logic that provides a fair distribution of the
Designated Forwarder function among the three or more PEs is valid, as
long as that logic is consistent in all the PEs in the Ethernet
Segment. It is important to note that, when a local policy overrides
the Highest
4.3. The Non-Revertive Capability
As discussed in item d of Section 1.2, a capability to NOT preempt the existing Designated Forwarder (for all the Ethernet Tags in the Ethernet Segment) is required and therefore added to the DF Election Extended Community. This option allows a non-revertive behavior in the DF election.¶
Note that when a given PE in an Ethernet Segment is taken down for maintenance operations, before bringing it back, the Preference may be changed in order to provide a non-revertive behavior. The "Don't Preempt" Capability and the mechanism explained in this section will be used for those cases when a former Designated Forwarder comes back up without any controlled maintenance operation, and the non-revertive option is desired in order to avoid service impact.¶
In Figure 3, we assume
that based on the Highest
If PE3 has a link, EVC, or node failure, PE2 would take over as the Designated Forwarder. If/when PE3 comes back up again, PE3 will take over, causing some unnecessary packet loss in the Ethernet Segment.¶
The following procedure avoids preemption upon failure recovery (see Figure 3). The procedure supports a non-revertive mode that can be used along with:¶
The procedure is described, assuming the Highest
Note that, irrespective of the "Don't Preempt" Capability, when a PE or Ethernet Segment comes back and the PE advertises a DF election algorithm different from the one configured in the rest of the PEs in the Ethernet Segment, all the PEs in the Ethernet Segment MUST fall back to the default DF algorithm [RFC7432].¶
This document does not modify the use of the P and B bits in the Ethernet A-D per EVI routes [RFC8214] advertised by the PEs in the Ethernet Segment after running the DF election, irrespective of the revertive or non-revertive behavior in the PE.¶
5. Security Considerations
This document describes a DF election algorithm
that provides absolute control (by configuration) over what PE is the
Designated Forwarder for a given Ethernet Tag. While this control is
desired in many situations, a malicious user that gets access to the
configuration of a PE in the Ethernet Segment may change the behavior of
the network. In other DF algorithms such as HRW, the DF election is more automated and cannot be determined by
configuration.
If the DF algorithm is Highest
The non-revertive capability described in this document may be seen as a security improvement over the regular EVPN revertive DF election: an intentional link (or node) "flapping" on a PE will only cause service disruption once, when the PE goes to Non-Designated Forwarder state. However, an attacker who gets access to the configuration of a PE in the Ethernet Segment will be able to disable the non-revertive behavior, by advertising a conflicting DF election algorithm and thereby forcing fallback to the default DF algorithm.¶
The document also describes how a local policy can override the
Highest
Finally, the two DF election algorithms specified
in this document
6. IANA Considerations
Per this document, IANA has:¶
7. References
7.1. Normative References
- [RFC2119]
-
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10
.17487 , , <https:///RFC2119 www >..rfc -editor .org /info /rfc2119 - [RFC7432]
-
Sajassi, A., Ed., Aggarwal, R., Bitar, N., Isaac, A., Uttaro, J., Drake, J., and W. Henderickx, "BGP MPLS-Based Ethernet VPN", RFC 7432, DOI 10
.17487 , , <https:///RFC7432 www >..rfc -editor .org /info /rfc7432 - [RFC8174]
-
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10
.17487 , , <https:///RFC8174 www >..rfc -editor .org /info /rfc8174 - [RFC8584]
-
Rabadan, J., Ed., Mohanty, S., Ed., Sajassi, A., Drake, J., Nagaraj, K., and S. Sathappan, "Framework for Ethernet VPN Designated Forwarder Election Extensibility", RFC 8584, DOI 10
.17487 , , <https:///RFC8584 www >..rfc -editor .org /info /rfc8584 - [RFC9784]
-
Sajassi, A., Brissette, P., Schell, R., Drake, J., and J. Rabadan, "Virtual Ethernet Segments for EVPN and Provider Backbone Bridge EVPN", RFC 9784, DOI 10.17487/9784, , <https://
www >..rfc -editor .org /info /rfc9784
7.2. Informative References
- [RFC7623]
-
Sajassi, A., Ed., Salam, S., Bitar, N., Isaac, A., and W. Henderickx, "Provider Backbone Bridging Combined with Ethernet VPN (PBB-EVPN)", RFC 7623, DOI 10
.17487 , , <https:///RFC7623 www >..rfc -editor .org /info /rfc7623 - [RFC8214]
-
Boutros, S., Sajassi, A., Salam, S., Drake, J., and J. Rabadan, "Virtual Private Wire Service Support in Ethernet VPN", RFC 8214, DOI 10
.17487 , , <https:///RFC8214 www >..rfc -editor .org /info /rfc8214 - [RFC8365]
-
Sajassi, A., Ed., Drake, J., Ed., Bitar, N., Shekhar, R., Uttaro, J., and W. Henderickx, "A Network Virtualization Overlay Solution Using Ethernet VPN (EVPN)", RFC 8365, DOI 10
.17487 , , <https:///RFC8365 www >..rfc -editor .org /info /rfc8365
Acknowledgements
The authors would like to thank Kishore Tiruveedhula and Sasha Vainshtein for their
reviews and comments. Also, thank you to Luc André Burdet and Stephane Litkowski for their
thorough reviews and suggestions for a new
Lowest
Contributors
In addition to the authors listed, the following individuals also contributed to this document:¶