Internet-Draft | EVPN MH for L2-GW Protocols | July 2023 |
Brissette, et al. | Expires 11 January 2024 | [Page] |
The existing EVPN multi-homing load-balancing modes do not adequately represent ethernet-segments facing access networks with Layer-2 Gateway protocols such as G.8032, (M)STP, etc. This document defines a new multi-homing mechanism to support these loop-preventing Layer-2 protocols.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 11 January 2024.¶
Copyright (c) 2023 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://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
Existing EVPN Single-Active and All-Active redundancy modes defined in [I-D.ietf-bess-rfc7432bis] do not adequately address additional requirements of loop-preventing Layer-2 gateway protocols such as G.8032, (M)STP, etc.¶
These Layer-2 Gateway protocols require that a given L2 flow of a VLAN be only active on one of the PEs in the multi-homing group, while another L2 flow of the same VLAN may be active on the other PE. This is in contrast with Single-Active redundancy mode where all flows of a VLAN are active on a single multi-homing PEs and it is also in contrast with All-Active redundancy mode where all flows of a VLAN are active on all PEs in the redundancy group.¶
This document defines a new Single-Flow-Active redundancy mode specifying that a VLAN can be active on all PEs in the redundancy group but each unique L2 flow of that VLAN can be active on only one of the PEs in the redundancy group at a time. In fact, the Designated Forwarder election algorithm for these L2 Gateway protocols, is not per VLAN but rather for a given L2 flow. A selected PE in the redundancy group must be the only Designated Forwarder for a specific L2 flow, but the decision is not taken by the PE. The loop-prevention blocking scheme occurs in the access network, by the Layer-2 protocol.¶
EVPN multi-homing procedures need to be enhanced to support Designated Forwarder election for all traffic (both known unicast and BUM) on a per L2 flow basis. The Single-Flow-Active multi-homing mechanism also requires new EVPN considerations for aliasing, mass-withdraw, fast-switchover and [RFC9135] as described in the solution section.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].¶
This document proposes an EVPN framework for L2GW protocols in Access-Gateway mode consiting of the following:¶
Upon receiving ESI label BGP Extended Community with the single-flow-active load-balancing mode, remote PE MUST:¶
For fast-convergence, remote PE3 SHOULD set up two distinct backup paths on a per-flow basis:¶
The backup paths so created, operate as in Section 8.4 of [RFC7432] where the backup PE of the redundancy group MAY immediately be selected for forwarding upon detection of a specific subset of failures: Ethernet A-D per ES route withdraw, Active PE loss of reachability (via IGP detection). An Ethernet A-D per EVI withdraw MUST NOT result in automatic switching to the backup PE as only a subset of the hosts may be changing reachability to the Backup PE, and the remote cannot determine which.¶
Figure 1 shows a typical EVPN network with an access network running a L2GW protocol, typically one of the following: G.8032, (M)STP, etc. The L2GW protocol usually starts from AC1 (on PE1) up to AC2 (on PE2) in an open "ring" manner. AC1 and AC2 interfaces of PE1 and PE2 are participants in the access protocol.¶
The L2GW protocol is used for loop avoidance. In above example, the loop is broken on the right side of CE4.¶
In another instantiation, the L2GW protocol used for loop avoidance and splitting per-VLAN L2 flows across peering PEs could be a set of active/backup pseudowires rooted at CE4. In such a use-case, CE4 decides which pseudowire CE4-PE1 or CE4-PE2 is active or backup, and PE1 and PE2 operate in single-flow-active mode.¶
The following sections introduce the Single-Flow-Active load-balancing mode, describe its compatibility with loop-preventing protocols, as well as fast-convergence and MAC-mobility applicability.¶
PE1 and PE2 are peering PEs in a redundancy group, and sharing a same ESI. In the proposed Single-Flow-Active mode, load-balancing at PE1 and PE2 shares similarities with singular aspects of both Single-Active and All-Active. DF-Election must not compete with the L2GW protocol and must not result in blocked ports or portions of the access may become isolated. Additionally, the reachability between CE1/CE4 and CE2 is achieved with the forwarding path through the EVPN MPLS/IP core connecting PE1 and PE2. Thus, the ESI-Label filtering of [RFC7432] is disabled for Single-Flow-Active Ethernet segments.¶
Finally, PE3 behaves according to EVPN [RFC7432] rules for traffic to/from PE1/PE2. Peering PE, selected per L2 flow, is chosen by the L2GW protocol in the access, and is out of EVPN control.¶
From PE3 point of view, the L2 flows from PE3 destined to CE1/CE4 transit via edge node PE1 and the L2 flows destined to CE2 transit via edge node PE2. A specific unicast L2 flow never goes to both peering PEs. Therefore the Aliasing procedure described in Section 8.4 of [RFC7432] cannot be performed by PE3. That node operates in a single-active fashion for each of the unicast L2 flows.¶
The backup path of [RFC7432] Section 8.4 which is also setup for single-active rapid convergence on a per-VLAN basis, is not applicable here. For example, in Figure 1, if a failure happens between CE1 and CE4 the loop-prevention at the right of CE4 is released and:¶
On PE3, there is no way to know which L2 flow specifically is affected. During the transition time, PE3 may flood until unicast traffic recovers properly.¶
In order to address rapid Layer-2 convergence requirement, topology change notification received from the L2GW protocols must be sent across the EVPN network to perform the equivalent of legacy L2VPN remote MAC flush.¶
The generation of TCN is done differently based on the access protocol. In the case of G.8032, TCN gets generated in both directions and thus both of the dual-homing PEs receive it. However, with (M)STP, TCN gets generated only in one direction and thus only a single PE can receive it. That TCN is propagated to the other peering PE for local MAC flushing, and relaying back into the access.¶
In fact, PEs have no direct visibility on failures happening in the access network nor on the impact of those failures over the connectivity between CE devices. Hence, both peering PEs require to perform a local MAC flush on corresponding interfaces.¶
There are two options to relay the access protocol's TCN to the peering PE: in-band or out-of-band messaging. The first method is better for rapid convergence, and requires a dedicated channel between peering PEs. An EVPN-VPWS connection MAY be dedicated for that purpose, connecting the Untagged ACs of both PEs. The latter choice relies on the MAC Mobility BGP Extended Community applied to the Ethernet A-D per EVI route, detailed below. It is a slower method but has the advantage of avoiding a dedicated channel between peering PEs.¶
Peering PE in Single Flow Active mode, upon receiving notification of a protocol convergence-event from access (such as TCN), MUST:¶
The MAC-Flush procedure described in [RFC7623] is borrowed, and the MAC mobility BGP Extended community is signaled along with the Ethernet A-D per EVI route from a PE in Single-Flow-Active mode.¶
When MAC Mobility BGP Extended Community is received on the Ethernet A-D per EVI route, it indicates to all remote PEs that all MAC addresses associated with that EVI/ESI are "flushed" i.e. must be unresolved.¶
Remote PEs, having previously received Ethernet A-D per ES with Single Flow Active indication from an originating PE, treat the MAC Mobility indication to simply invalidate the MAC entries for that originating PE on an EVI/ESI basis, similar to [RFC7432]'s mass-withdraw mechanism.¶
They remain unresolved until the remote PE receives a route update (or withdraw) for those MAC addresses. Note: the MAC may be re-advertised by the same PE, but also some are expected to have moved to a multi-homing peer, within the same ESI, due to the L2 protocol's action.¶
The sequence number of the MAC Mobility extended community is of local significance from the originating PE, and is not used for comparison between peering PEs. Rather, it is used to signal via BGP successive MAC Flush requests from a given PE per EVI/ESI.¶
When an L2 flow moves to PE2 from the PE1 L2GW peer, the MAC mobility sequence number is incremented to signal to remote peers that a 'move' has occurred and the routing tables must be updated to PE2. This is required when an Access Protocol is running where the loop is broken between two CEs in the access and the L2GWs, and the host is no longer reachable from the PE1-side but now from the PE2-side of the access network.¶
Frequent topology changes in the Layer 2 customer site attached to the EVPN domain via an Ethernet-Segment in Single-Flow-Active redundancy mode could result in false detection of a duplicate-MAC situation described in Section 15.1 of [I-D.ietf-bess-rfc7432bis]. It is RECOMMENDED to tune the configurable M and N parameters of the EVPN MAC Duplication detection in accordance with hold timers of the Layer 2 Control Protocol to prevent false alarms.¶
An alternative solution which achieves some, but not all, of the requirements is described here.¶
On the PE1 and PE2,¶
While this solution is feasible, it is considered to fall short of the requirements listed in Section 2, namely for all aspects meant to achieve fast-convergence.¶
An [RFC7432]-compliant PE which receives an Ethernet A-D per ES route with the Single-Flow-Active mode set in the ESI-flags, and which does not support or understand this mode, SHALL discard the unknown bit and continue operation using the Aliasing and Backup procedures for remote All-Active mode from Section 8.4 of [RFC7432]. The operator should understand the usage of single-flow-active load-balancing mode else it is highly recommended to use the two-ESI approach as described in Section 3.3¶
The remote PE3 which does not support Single-Flow-Active redundancy mode as described, will ECMP traffic to peering PE1 and PE2 in the example topology above (Figure 1), per [RFC7432], Section 8.4 aliasing and load-balancing rules. PE1 and PE2, which support the Single-Flow-Active redundancy mode MUST setup redirections towards the PE at which the flow is currently active (sub-optimal Layer-2 forwarding and sub-optimal Layer-3 routing).¶
Thus, while PE3 will ECMP (on average) 50% of the traffic to the incorrect PE using [RFC7432] operation, PE1 and PE2 will handle this gracefully in Single-Flow-Active mode and redirect across peering pair of PEs appropriately.¶
No extra route or information is required for this. The [RFC7432] and [RFC9135] route advertisements are sufficient.¶
EVPN Inter-subnet forwarding procedures in [RFC9135] works with the current proposal and does not require any extension. Host routes continue to be installed at PE3 with a single remote nexthop, no aliasing.¶
However, the use of a same ESI on both Single-Flow-Active L2GW PEs enables:¶
These enhancements enable fast-convergence.¶
Host moves between PE1 and PE2 Single-Flow-Active L2GW peers are handled using the MAC mobility procedures in Section 3.2.4.¶
EVPN Multi-Homing Mechanism for Layer-2 Gateway Protocols solves a true problem due to the wide legacy deployment of these access L2GW protocols in Service Provider networks. The current document has the main advantage to be fully compliant with [RFC7432] and [RFC9135].¶
The same Security Considerations described in [RFC7432] and [RFC9135] remain valid for this document.¶
Authors would like to thank Sasha Vainshtein for his valuable review and Thierry Couture for reviewing and providing inputs with respect to access protocol deployments related to procedures proposed in this document.¶
This document solicits the allocation of the following value from the "EVPN ESI Multihoming Attributes" registry's "Multihomed site redundancy mode (RED)" field setup by Section 7.5 of [I-D.ietf-bess-rfc7432bis].¶
RED Multihomed site redundancy mode 10 = Single-Flow-Active¶
Multihomed site redundancy mode:¶