<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY RFC2119 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC4364 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4364.xml">
<!ENTITY RFC6514 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6514.xml">
<!ENTITY RFC7432 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7432.xml">
<!ENTITY RFC7761 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7761.xml">
<!ENTITY RFC5015 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5015.xml">
<!ENTITY RFC8174 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml">
<!ENTITY RFC8365 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8365.xml">
<!ENTITY RFC9251 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.9251.xml">
]>
<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="3"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc strict="no"?>
<?rfc rfcedstyle="yes"?>
<?rfc comments="yes"?>
<?rfc inline="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<rfc category="std" docName="draft-ietf-bess-extended-evpn-optimized-ir-06" ipr="trust200902">
  <front>
    <title abbrev="extended-evpn-optimized-ir">Extended Procedures for EVPN Optimized Ingress Replication</title>

    <author fullname="Wen Lin" initials="W." role="editor" surname="Lin">
      <organization>Juniper Networks, Inc.</organization>
      <address>
        <email>wlin@juniper.net</email>
      </address>
    </author>

    <author fullname="Selvakumar Sivaraj" initials="S." surname="Sivaraj">
      <organization>Juniper Networks, Inc.</organization>
      <address>
        <email>ssivaraj@juniper.net</email>
      </address>
    </author>

    <author fullname="Vishal Garg" initials="V." surname="Garg">
      <organization>Juniper Networks, Inc.</organization>
      <address>
        <email>vishalg@juniper.net</email>
      </address>
    </author>

    <author fullname="Jorge Rabadan" initials="J." surname="Rabadan">
      <organization>Nokia</organization>
      <address>
        <email>jorge.rabadan@nokia.com</email>
      </address>
    </author>



    <date year="2023"/>
    <workgroup>BESS</workgroup>


 <abstract>
      <t>
         In the Virtualization Overlay (NVO) network with Ethernet VPN (EVPN), optimized ingress replication uses 
         Assisted-Replication (AR) to achieve more efficient delivery of Broadcast and Multicast (BM) traffic. 
         An AR-LEAF, which is a Network Virtualization Edge (NVE) device, forwards received BM traffic from its 
         tenant system to an AR-REPLICATOR. The AR-REPLICATOR then replicates it to the remaining AR-LEAFs in the network.  
         However, when replicating the packet on behalf of its multihomed AR-LEAF, an AR-REPLICATOR may face 
         challenges in retaining the source IP address or including the 
         expected Ethernet Segment Identifier (ESI) label that is required for EVPN split-horizon filtering. 
         This document extends the optimized ingress replication 
         procedures to address such limitations. The extended procedures specified in this 
         document allow the support of EVPN multihoming on the AR-LEAFs as well as optimized ingress replication 
         for the rest of the EVPN NVO network.
      </t>

 </abstract>

    <note title="Requirements Language">
      <t>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.
      </t>
    </note>
  </front>

  <middle>
     <section title="Terminology">
     <t> 
        A-D: Auto-Discovery
     </t>
     <t>
        AR-IP Tunnel: An overlay tunnel with a destination IP address of AR-IP that an AR-REPLICATOR 
        advertises in its REPLICATE-AR route. 
     </t>
     <t>
        BD: Broadcast Domain, as defined in [RFC7432]
     </t>
   
     <t> 
        EVI: EVPN Instance
     </t> 
     <t>
        RNVE: Regular Network Virtualized Edge router that performs the procedure specified in [RFC8365]
     </t>
    
     

     <t>
         This document makes use of the terminology specified in <xref target="EVPN-AR"/>. It also uses 
         the terminology specified in [RFC7432] and [RFC8365].
     </t>
     </section>

     <section title="Introduction">
     <section title="Background">
     <section title="EVPN Multihoming and split-horizon Filtering Rule">
     <t>
        This section gives a brief overview of the existing split-horizon filtering rules used 
        for EVPN multihoming.
     </t>

     <t>
        [RFC7432] defines the split-horizon filtering rule based on ESI label for EVPN multihoming with MPLS 
        encapsulation, and this filtering rule also applies for EVPN with IP-based encapsulation
        for MPLS, such as MPLS over GRE or MPLS over UDP.  [RFC8365] defines 
        the split-horizon filtering rule based on "Local-Bias" for EVPN multihoming 
        with VXLAN encapsulation.
    </t>

     <t>
        When EVPN is used in an NVO network, a Tenant System (TS) may connect to a set of 
        Network Virtualization Edge (NVE) devices through a multihomed Ethernet segment (ES). 
        The split-horizon filtering rule for EVPN all-active multihoming ensures that a 
        Broadcast, Unknown unicast or Multicast (BUM) packet received from an ES that is  
        part of a multihomed ES is not looped back to the multihomed TS through an egress NVE 
        connected to the same multihomed ES. When using EVPN with VXLAN encapsulation, the 
        split-horizon filtering rule is applied by the egress NVE based on the source IP
        address of the BUM packet received from an overlay tunnel. The egress PE identifies the ingress 
        NVE through the source IP address. The egress NVE does not forward the BUM packet 
        received from an overlay tunnel to the multihomed Ethernet segment that it has in 
        common with the ingress NVE.
     </t>

     <t>
        For EVPN with MPLS over IP tunnel, the split-horizon filtering rule is based on the 
        ESI label. For ingress replication, an ESI label is downstream assigned per multihomed ES.
        The ingress NVE MUST include the ESI label, assigned by the egress PE, when it forwards 
        a BUM packet to the egress NVE if the BUM traffic is from the AC that is part of the 
        multihomed ES associated with that ESI label.  The egress NVE does not forward the BUM 
        packet it received from an overlay tunnel to the multihomed ES if the ESI label is 
        allocated by the egress NVE for that multihomed ES.
     </t>

     </section>
     </section>

     <section title="Optimized-IR and the Need to Maintain the Original Source IP address or Include the ESI Label">
     <t>
       <xref target="EVPN-AR"/> specifies an optimized ingress replication solution for the delivery of 
       BM traffic within a bridge domain.  It defines the control plane and 
       forwarding plane procedures for AR-REPLICATOR, AR-LEAF and RNVE. To support EVPN AR-LEAF multihoming,
       <xref target="EVPN-AR"/> recommends the implementation of split-horizon filtering based on the 
       "Local-Bias" procedures for EVPN NVO network using either 24-bit VNI or MPLS label.
     </t>

     <t>   
       To support EVPN all-active multihoming based on "Local-Bias" procedures, when an AR-REPLICATOR 
       performs assisted replication on behalf of a multihomed AR-LEAF,  the 
       AR-REPLICATOR MUST use the source IP address of the ingress AR-LEAF for packet received 
       on the AR-IP tunnel.  This ensures that other remote NVEs, when receiving a packet from 
       its AR-REPLICATOR, can perform the regular split-horizon filtering based on the source 
       IP address.   
     </t>

     <t>
        To support EVPN all-active multihoming with MPLSoGRE or MPLSoUDP, sometimes it is desirable 
        to continue using the existing split-horizon filtering rule based on [RFC7432] procedures. In this case,   
        when performing assisted replication on behalf of a multihomed AR-LEAF, an AR-REPLICATOR MUST
        include the ESI label advertised by a remote NVE for that multihomed ES. 
     </t>

     <t>
        However, due to either implementation complexity or hardware limitations, an AR-REPLICATOR 
        may be unable to retain the source IP address or include the ESI label when replicating 
        the packet to the remote NVEs on behalf of a multihomed AR-LEAF. In such circumstances, a 
        remote NVE, upon receiving the packet, is unable to utilize the existing split-horizon 
        filtering rules to prevent the looping of BM traffic required for all-active multihoming.
     </t>

 <figure anchor="fig-1" align="left" suppress-title="false" pn="figure-1">
        <name slugifiedName="name-AR-MH">
             AR-Replicator and the VXLAN Source IP Address
        </name>
        <artwork name="" type="" align="left" alt="">

              +----------------+  
              | AR-REPLICATOR  |    &lt;--- set the source IP to its own
              +-------+--------+         IP address when replicating the 
                      |                  traffic to AR-LEAF2
                      |
    +-----------------+----------------------------------+
    |                                                    |
    |        NVO for EVPN with VXLAN encapsulation        |
    |                                                    |
    +------+---------------------+-----------------------+
           |  ^                  |
           |  |                  |
    +------+------+       +------+------+
    |   AR-LEAF1  |       |   AR-LEAF2  |  &lt;--- unable to detect that
    +------+------+       +------+------+       the original sender was 
           |  ^                  | (DF)         AR-LEAF1
           |  | (S,G)            |
           +-------- TS1 --------+

</artwork>
      </figure>

<t>
       For instance, let's consider a scenario with VXLAN encapsulation, as illustrated in Figure 1, where TS1 is multihomed 
       to both AR-LEAF1 and AR-LEAF2 through a multihomed ES. When AR-LEAF1 receives an IP multicast 
      packet from TS1, it forwards the packet to its AR-REPLICATOR, setting the source IP address 
      to AR-LEAF1's IR-IP and the destination IP address to the AR-IP of the AR-REPLICATOR.
     </t>

     <t>
       As the AR-REPLICATOR is unable to retain the source IP address from the packet it received 
       over the AR-IP tunnel, it replaces it with one of its own IP addresses when replicating the 
       packet to other NVEs. Upon receiving the packet from AR-REPLICATOR, AR-LEAF2 checks the
       source IP address, but it cannot identify AR-LEAF1 as the original
     sender.
     </t>

     <t>
        In cases where AR-LEAF2 functions as the Designated Forwarder (DF) for the multihomed ES 
        linked to TS1, it proceeds to forward the packet to TS1. This results in the same IP multicast 
        packet being looped back to TS1.
     </t>

     <t>
        The issue can also occur in EVPN with MPLS over an IP network when an AR-REPLICATOR is unable 
        to include the ESI label to the remote NVE for the multihomed ES
        when the split-horizon filtering rule based on [RFC7432] is used.
     </t>
     </section>
     </section>


     <section title="Solution">
     <t>
       This document extends the procedures defined in [EVPN-AR] to support
       EVPN multihoming on AR-LEAFs. It addresses the limitations or challenges 
       where an NVE serves as an AR-REPLICATOR but cannot retain the source IP
       address or include an ESI label for its AR-LEAF due to hardware
       constraints or implementation complexity.
     </t>

     <t>
        This document presents a solution for EVPN over IP-based networks,
        which uses an NVO tunnel with either a 24-bit VNI or an MPLS label.
        In order to prevent BM traffic looping while achieving optimized
        ingress replication, this solution relies on the use of either
        [RFC7432] or "Local-Bias" split-horizon filtering rules. 
        We refer to the procedures specified in this document as the extended Optimized-IR
        procedures. These extended Optimized-IR procedures are also compatible with RNVE.
     </t>

     <section title="AR-REPLICATOR Announcing Multihoming Assistant Capability for Optimized-IR">
     <t>
        An AR-REPLICATOR announces its AR-REPLICATOR role through the control plane. A 
        REPLICATOR-AR route, as it is specified in the <xref target="EVPN-AR"/>, is an Inclusive Multicast 
        Ethernet Tag (IMET) route that an AR-REPLICATOR originates for its AR-IP and corresponding 
        AR-replication tunnel.
     </t>


     <t>
         If an AR-REPLICATOR cannot or chose not to retain the source IP address or
         include the expected ESI label for its multihomed AR-LEAFs, it MUST inform other 
         NVEs in the control plane through the use of EVPN Multicast Flags Extended Community as follow:
         a) the AR-REPLICATOR MUST set the "Extended-MH-AR" flag, as it is 
         specified in Section 6,  in the multicast flags extended community, and b) it MUST 
         attach this community to the REPLICATOR-AR route it originates.   We call such an 
         AR-REPLICATOR an Extended-MH AR-REPLICATOR.  
     </t>

     <t>
         An Extended-MH AR-REPLICATOR supports extended 
         Optimized-IR procedures defined in this document for its multihomed AR-LEAFs.
         An Extended-MH AR-REPLICATOR keeps track of its AR-LEAF's multihomed peer.
         An Extended-MH AR-REPLICATOR can perform assisted replication for an AF-LEAF 
         to other NVEs that are not attached to the same multihomed ES as the AR-LEAF. 
         An Extended-MH AR-REPLICATOR does not
         perform assisted replication for its AR-LEAF to other NVEs that have a multihomed ES
         in common with the AR-LEAF. 
         The changes in the control plane and forwarding plan procedures for an 
         Extended-MH AR-REPLICATOR are further explained in detail in Section 5.2.
     </t>

     <t>
         If an AR-REPLICATOR originates a REPLICATOR-AR route without a
         multicast flags extended community or with the Extended-MH-AR flag
         unset, it is considered to be multihoming assistant capable.
         An MH-capable-assistant AR-REPLICATOR can perform
         assisted replication for its single-homed AR-LEAF as well as multihomed AR-LEAF.
     </t>
     </section>

     <section title="Multihomed AR-LEAF and Extended-MH AR-REPLICATOR">
     <t>
        An AR-LEAF follows the control plane and forwarding plane procedures specified in 
        <xref target="EVPN-AR"/>. In addition, if a multihomed AR-LEAF detects that one of its AR-REPLICATORs is 
        an Extended-MH AR-REPLICATOR based on the processing of its REPLICATOR-AR route, the multihomed
        AR-LEAF follows the extended Optimized-IR procedures specified in this document. 
        
        With the extended Optimized-IR procedures, 
        within the same BD, the multihomed AR-LEAF will use the regular ingress replication 
        procedure to deliver a copy of a BM packet received from its local AC to each of the remote NVEs that 
        has a multihomed ES in common with it.  In this way, the egress NVE can use the regular 
        split-horizon filtering rule defined in [RFC7432] or [RFC8365] to prevent the BM traffic 
        to be looped through the egress NVE to the source of origin.  The extended procedures 
        required for an AR-LEAF is further specified in detail in section 5.
     </t>

     <t>
        Please note that for an AR-LEAF, the additional forwarding
        procedures specified above apply to BM packets that originate from
        any of its ACs within the same BD. These ACs can either be a
        single-homed ES or be part of a multihomed ES.

        It may also apply to Unknown unicast traffic. This is to ease  
        the burden of an Extended-MH AR-REPLICATOR as it may be unable to detect 
        whether a packet received on its AR-IP tunnel was originally received from a 
        single-homed or multihomed ES.
     </t>

 <figure anchor="fig-2" align="left" suppress-title="false" pn="figure-2">
        <name slugifiedName="name-extended-AR-MH">
           Extended Optimized-IR Model
        </name>
        <artwork name="" type="" align="left" alt="">



              +----------------+         +----------------+
              |   Extended-MH  |         |   Extended-MH  |
              | AR-REPLICATOR1 |         | AR-REPLICATOR2 |
              +-------+--------+         +-------+--------+
                      |                          |
                      |                          |
    +-----------------+--------------------------+-----------------+
    |                                                              |
    |                         NVO Network                          |
    |                                                              |
    +--+-------+---------+--------+--------+--------------------+--+
       |       |         |        |        |        |           |
       |       |         |        |        |        |           |
    +--+--+  +--+--+  +--+--+  +--+--+  +--+--+  +--+--+     +--+--+
    |AR-L1|  |AR-L2|  |AR-L3|  |AR-L4|  |AR-L5|  |AR-L6| ... |AR-Lm|
    +--+--+  +--+--+  +--+--+  +--+--+  +--+--+  +--+--+     +--+--+
      | |       |        |        |        |        |           |
      | +-------|------+ |        +---+ +--+       TS4   ...   TSm
      +---+ +---+      | |            TS3
     ESI-1| |     ESI-2| |     ^                                   ^
          + +          + +     |&lt;-- An Extended-MH AR-REPLICATOR   |
          TS1          TS2     |    ingress replicates the BM to   |
           ^                   |    this set of AR-LEAFs        --&gt;| 
          BM 

</artwork>
</figure>


     <t>
       Consider an EVPN NVO network in Figure 2, the tenant domain consists of
       a set of m AR-LEAFs in BD X.
       For brevity, we use "AR-L" to represent "AR-LEAF" in Figure 2. TS1 is 
       multihomed to AR-LEAF1 and AR-LEAF2 in BD X via a multihomed ES, ES1. Similarly, TS2 is
       multihomed to AR-LEAF1 and AR-LEAF3 in BD X through another multihomed ES, ES2. 
       Additionally, there are two Extended-MH AR-REPLICATORs in the same tenant domain:
       AR-REPLICATOR1 and AR-REPLICATOR2.
    </t>

    <t>       
       AR-LEAF1 will detect that its AR-REPLICATORs are Extended-MH AR-REPLICATORs through
       the Extended-MH-AR flag within the EVPN multicast flags extended community. This extended
       community is signaled by the AR-REPLICATORs through their REPLICATOR-AR routes.
       Following the normal EVPN procedure, AR-LEAF1 will also detect that both AR-LEAF2 and AR-LEAF3 have
       a multihomed ES in common with it.  
       AR-LEAF1 will use regular ingress replication to send the 
        BM traffic it receives from its access to both AR-LEAF2 and AR-LEAF3.  
        AR-LEAF1 will rely on one of its AR-REPLICATORs to send the BM traffic to AR-LEAF4, 
        AR-LEAF5, AR-LEAF6, ..., and AR-LEAFm.
     </t>
     </section>

     <section title="The Benefit of the Extended Optimized-IR Procedure">
     <t>
        The extended Optimized-IR solution specified in this document greatly reduces the 
        implementation complexity of an AR-REPLICATOR or helps to overcome the limitation of 
        an AR-REPLICATOR.  
             It allows EVPN multihoming on AR-LEAFs while adhering to existing multihoming
     procedures and split-horizon filtering rules. Consequently, it frees
     AR-REPLICATORs from the requirements of multihoming assisted replication.
        For EVPN with MPLS over IP-based encapsulation, an NVE can continue to use
        the split-horizon filtering rule based on the ESI label. Furthermore, it still allows the 
        support of efficient Optimized-IR for the rest of an EVPN NVO network.  
     </t>

     <t> 
        For example, in a typical NVO network, a TS is most likely multihomed to two or a 
        small set of NVEs for redundancy.  In an NVO network comprises many NVEs,  the 
        AR-REPLICATOR is still responsible for replicating the BM packet to the most of NVEs 
        functioning as AR-LEAFs. Therefore, it gets the advantage of optimized ingress replication for 
        the majority of its NVO network.
     </t>
     </section>

     <section title="Support for Mixed AR-REPLICATORs">
     <t>
        When there are mixed MH-capable-assistant AR-REPLICATORs and Extended-MH AR-REPLICATORs 
        in the same tenant domain, all AR capable NVEs MUST follow the extended Optimized-IR 
        procedures as long as one of the AR-REPLICATORs is an Extended-MH AR-REPLICATOR.
     </t>

     <t>
        In situations where there are different types of AR-REPLICATORS, 
        all MH-capable-assistant AR-REPLICATORS SHALL be
        provisioned administratively to behave as Extended-MH
        AR-REPLICATORS. In such cases, each AR-REPLICATOR originates its
        REPLICATOR-AR route with the Extended-MH-AR flag set in the
     </t>

     <t>
        The procedure for using mixed AR-REPLICATORs is beyond the scope of this document.
     </t>
     </section>
     </section>


     <section title="Extended Optimized-IR Procedure for Supporting Extended-MH AR-REPLICATOR">
     <section title="AR-LEAF Procedure">
     <t>
        This section covers the extended Optimized-IR procedures required for an AR-LEAF 
        when at least one of the AR-REPLICATORs is an Extended-MH AR-REPLICATOR.

        It is assumed that an AR-LEAF follows the procedures defined in <xref target="EVPN-AR"/> unless 
        otherwise specified.   
     </t>

     <section title="Control Plane Procedure for AR-LEAF">
     <t>
        An AR-LEAF detects whether an AR-REPLICATOR is capable of performing multihoming assisted replication
        through the Extended-MH-AR flag in the multicast flags extended community carried 
        in the REPLICATOR-AR route.  An AR-REPLICATOR originating a REPLICATOR-AR route without a multicast flags extended 
        community or with the Extended-MH-AR flag unset is considered to be multihoming assistant capable.
     </t>

     <t>
        If an AR-LEAF does not have a locally attached segment that is part
        of a multihomed ES, it does not need to follow any additional
        extended Optimized-IR procedure, and we can proceed directly to
        Section 4.2.
     </t>

     <t>
        If selective assistant-replication is used for the EVI, selective AR-LEAFs that share 
        the same multihomed ES MUST select the same primary AR-REPLICATOR and 
        the same backup AR-REPLICATOR, if there is one. This can be achieved through either
        manual configuration on each multihomed selective AR-LEAF or by other methods that 
        are beyond the scope of this document. Each selective AR-LEAF follows the 
        procedures defined in the <xref target="EVPN-AR"/> to send its corresponding leaf-AD routes to its 
        AR-REPLICATOR.
     </t>

     <t>
        An AR-LEAF follows the normal procedures defined in [RFC7432] when it originates 
        a type-4 ES route and type-1 Ethernet A-D routes for its locally attached segment that 
        is a part of a multihomed ES.
     </t>

     <t>
        In addition, an AR-LEAF builds a peer-multihomed-flood-list for each BD it attaches to.  
        As per the standard EVPN procedures defined in [RFC7432], 
        an AR-LEAF discovers the ESI of each multihomed ES that every 
        remote NVE connects to. For a given BD, an AR-LEAF constructs a peer-multihomed-flood-list that 
        consists of its peer multihomed NVEs in that BD that have at least one multihomed ES 
        in common with it.


        An AR-LEAF may consider a common multihomed ES that it shares with a remote NVE in a BD specific 
       scope or an EVI scope. Please refer to Section 5 for details.
     </t>
     
     </section>

     <section title="Forwarding Procedure for AR-LEAF">
     <t>
        Suppose a multihomed AR-LEAF detects through a control plane
        procedure that one or more of its AR-REPLICATORS are Extended-MH
        AR-REPLICATORS. In that case, in addition to following the
        forwarding procedures defined in [EVPN-AR], it will use regular
        ingress replication to send the BM packet received from one of its
        ACs to each NVE in that BD's peer-multihomed-flood-list.
     </t>

     <t>
        If there are no more AR-REPLICATORs within the tenant domain, the AR-LEAF 
        will revert back to its regular IR behavior,  as defined in [RFC7432].
        An AR-LEAF will follow the regular EVPN procedures when it receives a packet from an 
        overlay tunnel.
     </t>
     </section>
     </section>

     <section title="AR-REPLICATOR Procedure">
     <t>
        This section describes the additional procedures for an AR-REPLICATOR when there is 
        at least one AR-REPLICATOR in the same tenant domain that is an Extended-MH AR-REPLICATOR.
     </t>
    
     <t>
        It is also assumed that an AR-REPLICATOR follows the procedures defined in <xref target="EVPN-AR"/> 
        unless specified otherwise.
     </t>

     <section title="Control Plane Procedure for AR-REPLICATOR">
     <t>
        An NVE that performs an AR-REPLICATOR role follows the control plane procedures for 
        AR-REPLICATOR defined in <xref target="EVPN-AR"/>.
     </t>

     <t>
        In addition, if an AR-REPLICATOR is an Extended-MH AR-REPLICATOR or if it is administratively 
        provisioned to behave as an Extended-MH AR-REPLICATOR, it SHALL attach a 
        multicast flags extended community to its REPLICATOR-AR route with the 
        Extended-MH-AR flag set. 
     </t>

     <t>
        An AR-REPLICATOR also discovers whether another AR-REPLICATOR is an 
        Extended-MH AR-REPLICATOR based on the multicast flags extended community.  
        If at least one AR-REPLICATOR is an
        Extended-MH AR replicator, then the rest of AR-REPLICATORs SHALL fall back 
        to support the extended procedures specified in this document.
     </t>

     <t>
        When there are mixed AR-REPLICATORs, this document recommends that all 
        MH-capable-assistant AR-REPLICATORs SHOULD fall back to behave as Extended-MH
        AR-REPLICATOTRs through administrative provisioning.
     </t>

     <t>
        An Extended-MH AR-REPLICATOR builds a multihomed list for each BD that its 
        AR-LEAF attaches to.  We refer to such a multihomed list as an 
        AR-LEAF's multihomed-list.  Per normal 
        EVPN procedures defined in [RFC7432], an AR-REPLICATOR imports the Ethernet A-D per EVI 
        route, the alias route, originated by each remote NVE in the same tenant 
        domain.  For a given BD that an AR-LEAF belongs to, an AR-LEAF's multihomed-list consists of all the 
        NVEs in that BD that have at least one multihomed ES in common with the said AR-LEAF.

        Please also refer to Section 5 for the common multihomed ES an AR-LEAF shares with its
        remote NVE.
     </t>

     <t>
        Consider the EVPN NVO network described in Figure 2.  Both AR-LEAF1 and AR-LEAF2 
        originate their Ethernet A-D per EVI routes for ES1.  Both AR-LEAF1 and AR-LEAF3 
        originate their Ethernet A-D per EVI routes for ES2.  As per normal EVPN procedures,
        each AR-REPLICATOR imports and processes Ethernet A-D per EVI routes. Each AR-REPLICATOR 
        builds an AR-LEAF1's multihomed-list for BD X that consists of AR-LEAF2 and AR-LEAF3. 
        Each AR-REPLICATOR also builds AR-LEAF's multihomed-lists for other AR-LEAFs.
     </t>
     </section>

     <section title="Forwarding Procedure for AR-REPLICATOR">
     <t>
        When an AR-REPLICTOR determines that it is an Extended-MH AR-REPLICATOR or 
        determines that it SHALL fall back to become an Extended-MH AR_REPLICATOR, 
        it MUST follow the forwarding procedures described in this section.
     </t>

     <t>
        When an AR-REPLICATOR replicates a packet from an AR-IP tunnel to
        other overlay tunnels on behalf of an ingress AR-LEAF, it MUST skip
        any NVE that is in the multihomed-list of that ingress AR-LEAF
        built for the corresponding BD.
     </t>

     <t>
        When replicating the traffic to other AR-REPLICATORs or other AR-LEAFs over an overlay 
        tunnel, an AR-REPLICATOR does not set the source IP address to its ingress AR-LEAF's IR-IP. It is assumed
        under the scope of this document that no AR-LEAF shares any common multihoming
        ES with any AR-REPLICATOR.
     </t>

     <t>
        When replicating the traffic to other RNVEs, an AR-REPLICATOR MUST set the source IP 
        address to its own IR-IP.  This is because an RNVE does not recognize the AR-IP.
     </t>
     </section>
     </section>

     <section title="RNVE Procedure">
     <t>
        There is no change to the RNVE control and forwarding procedures. RNVE follows the 
        regular ingress replication procedure defined in [RFC7432].
     </t>   
     </section>
     </section>


     <section title="AR-LEAF's Peer multihomed NVE in the Extended Optimized-IR Procedure">
     <t>
        For the extended Optimized-IR procedures specified in this document, 
        a multihomed AR-LEAF MAY keep track of the common multihomed ES it shares with other remote NVEs
        on a per BD specific scope or on a per EVI scope.  Correspondingly, an Extended-MH
        AR-REPLICATOR MUST also use the same scheme to keep track of the common multihomed ES that its AR-LEAF shares 
        with other remote NVEs.   All multihomed AR-LEAFs and all AR-REPLICATORs within
        the same EVI MUST use the same scheme to keep track of the common multihomed ES that an AR-LEAF shares
        with other remote NVEs. This consistency can be enforced through a manual configuration.
     </t>

     <t>
        A multihomed AR-LEAF maintains a peer-multihomed-flood-list for each BD it attaches to. 
        If the common multihomed ES is tracked on a per EVI scope, 
        the peer-multihomed-flood-list of an AR-LEAF for a particular BD X
        will include all the NVEs in BD X that have at least one common
        multihomed ES with it. This is regardless of whether each common
        multihomed ES has BD X or not.
       
        If the common multihomed ES is tracked on a per BD specific scope,
        for a given BD X, each common multihomed ES MUST contain BD X. 
     </t>
     
     <t>
        RFC 7432 allows the Ethernet A-D route to be advertised at different granularities.
        If the Ethernet A-D per EVI route is advertised at the granularity of per ES per EVI, 
        the common multihomed ES shared among NVEs SHALL be tracked on a per EVI scope.
     </t>
     </section>

     <section title="Multicast Flags Extended Community">
     <t>
        The EVPN multicast flags extended community is defined in [RFC9251].   
        This transitive extended community has a bit vector for its Flags field. 
        An AR Replicator utilizes one bit for the Extended-MH-AR flag, which
	is designated E in the Flags bit vector below.


     </t>
     <figure>

     	 <artwork name="" type="" align="center" alt="" >
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type=0x06     |Sub-Type=0x09  |     Flags (2 Octets)    |E|M|I|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           Reserved=0                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     </artwork>
     </figure>


     <t>
        The Extended-MH-AR flag is used by the AR-REPLICATOR.  By setting this flag,
        the AR-REPLICATOR signals to other NVEs that it is an Extended-MH AR Replicator
	and supports the extended Optimized-IR procedures specified in this document.
     </t>
     </section>

     <section title="IANA Considerations">
     <t>
        IANA has opened the Flags registry for EVPN multicast Extended Community.
	IANA has allocated bit 13 in the Flags registry field for the Extended-MH-AR flag specified
	in this document.
      </t>

     <figure>
     	 <artwork name="" type="" align="center" alt="">

Bit Value           Name                Reference
13                  Extended-MH-AR      This document

         </artwork>
     </figure>



     </section>

     <section title="Security Considerations">
     <t>
        The security consideration in [RFC7432], [RFC8365] and <xref target="EVPN-AR"/> apply
        to this document.
     </t>
     </section>

     <section title="Acknowledgements">
     <t>
     The authors would like to thank Eric Rosen and Jeffrey Zhang for their valuable 
     comments and feedbacks. The authors would also like to thank Aldrin Isaac for his
     useful discussion, insight on this subject. Special thanks to Nicolai Leymann 
     and Thomas Fossati for their thorough reviews and valuable inputs that greatly enhanced the document.
     </t>
     </section>

  </middle>

  <back>
    <references title="Normative References">
          &RFC2119;
          &RFC8174;
	  &RFC7432;
          &RFC8365;
	  &RFC9251;

<reference anchor="EVPN-AR">
        <front>
          <title>Optimized Ingress Replication solution for Ethernet VPN (EVPN)</title>
          <author initials="J" surname="Rabadan" role="editor">
            <organization/>
          </author>
          <date month="July" year="2022"/>
        </front>
	<seriesInfo name='internet-draft'
                    value='ietf-bess-evpn-optimized-ir-12.txt'/>
	<format type='TXT'
                target='https://www.ietf.org/archive/id/draft-ietf-bess-evpn-optimized-ir-12.txt'
                />
      </reference>

     
   </references>


 </back>
</rfc>

