<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc SYSTEM "rfc2629-xhtml.ent">
<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="3"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc comments="yes"?>
<?rfc inline="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="std" docName="draft-ietf-bess-evpn-na-flags-09" ipr="trust200902" submissionType="IETF" obsoletes="" updates="" xml:lang="en" tocInclude="true" tocDepth="3" symRefs="true" sortRefs="false" version="3">
  <!-- xml2rfc v2v3 conversion 3.7.0 -->
  <!--Generated by id2xml 1.5.0 on 2020-07-14T16:15:56Z -->

  <front>
    <title abbrev="EVPN Neighbor Advertisement Flags">Propagation of ARP/ND
    Flags in EVPN</title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-bess-evpn-na-flags-09"/>
    <author fullname="Jorge Rabadan" initials="J." role="editor" surname="Rabadan">
      <organization>Nokia</organization>
      <address>
        <postal>
          <street>777 Middlefield Road</street>
          <city>Mountain View</city>
          <region>CA</region>
          <code>94043</code>
          <country>USA</country>
        </postal>
        <email>jorge.rabadan@nokia.com</email>
      </address>
    </author>
    <author fullname="Senthil Sathappan" initials="S." surname="Sathappan">
      <organization>Nokia</organization>
      <address>
        <postal>
          <street>701 E. Middlefield Road</street>
          <street>Mountain View, CA 94043 USA</street>
        </postal>
        <email>senthil.sathappan@nokia.com</email>
      </address>
    </author>
    <author fullname="Kiran Nagaraj" initials="K." surname="Nagaraj">
      <organization>Nokia</organization>
      <address>
        <postal>
          <street>701 E. Middlefield Road</street>
          <street>Mountain View, CA 94043 USA</street>
        </postal>
        <email>kiran.nagaraj@nokia.com</email>
      </address>
    </author>
    <author fullname="Wen Lin" initials="W." surname="Lin">
      <organization abbrev="Juniper">Juniper Networks</organization>
      <address>
        <email>wlin@juniper.net</email>
      </address>
    </author>
    <date day="1" month="December" year="2020"/>
    <workgroup>BESS Workgroup</workgroup>
    <abstract>
      <t>This document defines an Extended Community that is advertised along
      with an EVPN MAC/IP Advertisement route and carries information relevant
      to the ARP/ND resolution, so that an EVPN PE implementing a proxy-ARP/ND
      or ARP/ND (on IRB interfaces) function can reply to ARP Requests or
      Neighbor Solicitations with the correct information.</t>
    </abstract>
  </front>
  <middle>
    <section anchor="sect-1" numbered="true" toc="default">
      <name>Introduction</name>
      <t>An Ethernet Virtual Private Network (EVPN) MAC/IP Advertisement route
      can optionally carry IPv4 or IPv6 addresses associated with a MAC
      address. Remote Provider Edge (PE) routers can use this information to
      populate their Address Resolution Protocol (ARP) or Neighbor Discovery
      (ND) tables on Integrated Routing and Bridging (IRB) interfaces or their
      proxy-ARP/ND tables in Broadcast Domains (BD). PEs can then reply
      locally (act as an ARP/ND proxy, as per <xref target="RFC7432" format="default"/>) to
      IPv4 ARP requests and IPv6 Neighbor Solicitation messages and
      reduce/suppress the flooding produced by the Address Resolution
      procedure. However, the information conveyed in the EVPN MAC/IP
      Advertisement route may not be enough for the remote PE to reply to
      local ARP or ND requests. For example, if a PE learns an IPv6-&gt;MAC ND
      entry via EVPN, the PE would not know if that particular IPv6-&gt;MAC
      pair belongs to a router or a host, and if that address is an anycast
      address, as this information is not carried in the EVPN MAC/IP
      Advertisement routes.</t>
      <t>This document defines an Extended Community that is advertised along
      with an EVPN MAC/IP Advertisement route and carries information relevant
      to the ARP/ND resolution, so that an EVPN PE implementing a proxy-ARP/ND
      function can reply to ARP Requests or Neighbor Solicitations with the
      correct information. In particular, the Flags defined in <xref target="RFC4861" format="default"/> can now be conveyed along with a MAC/IP Advertisement
      route, so that an egress EVPN PE can issue Neighbor Advertisement
      messages with the correct Flag information.</t>
      <t>The Flags are carried in the EVPN Address Resolution Protocol (ARP)
      and Neighbor Discovery (ND) Extended Community, as described in the
      following sections.</t>
      <section anchor="sect-1.1" numbered="true" toc="default">
        <name>Terminology and Conventions</name>
        <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 <xref target="RFC2119" format="default"/> <xref target="RFC8174" format="default"/> when, and only
        when, they appear in all capitals, as shown here.</t>
        <t>EVPN: Ethernet Virtual Private Networks, as in <xref target="RFC7432" format="default"/>.</t>
        <t>BD: Broadcast Domain, also described in <xref target="RFC7432" format="default"/>.</t>
        <t>ARP: Address Resolution Protocol.</t>
        <t>ND: Neighbor Discovery protocol, specified in <xref target="RFC4861" format="default"/>.</t>
        <t>PE: Provider Edge router.</t>
        <t>CE: Customer Edge router.</t>
        <t>IRB: Integrated Routing and Bridging interface.</t>
        <t>Proxy-ARP/ND: function on the EVPN PEs by which received Address
        Resolution Protocol (ARP) Requests or Neighbor Solicitation (NS)
        messages are replied to locally by the PE, without the need to flood
        the requests to remote PEs in the BD. In order to reply to ARP
        Requests or NS messages, the PE does a lookup on an ARP/ND table, that
        is a collection of IP-&gt;MAC entries learned by the PE.</t>
        <t>IP-&gt;MAC: an IP address and MAC address combination that
        represents a given host and is added to an Address Resolution Protocol
        table or Neighbor Discovery table. This document uses IP-&gt;MAC
        generically for IPv4 and IPv6 addresses. When something is specific to
        IPv4, the document will use IPv4-&gt;MAC and likewise, IPv6-&gt;MAC
        will be used when something is specific to IPv6 entries only.</t>
        <t>Familiarity with the terminology in <xref target="RFC7432" format="default"/> and
        <xref target="RFC4861" format="default"/> is expected.</t>
      </section>
    </section>
    <section anchor="sect-2" numbered="true" toc="default">
      <name>The EVPN ARP/ND Extended Community</name>
      <t>This document defines a transitive EVPN Extended Community (Type
      field value of 0x06) with a Sub-Type of 0x08, as allocated by IANA. It
      is advertised along with EVPN MAC/IP Advertisement routes that carry an
      IPv4 or IPv6 address.</t>
      <artwork name="" type="" align="left" alt=""><![CDATA[
  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=0x08 |Flags (1 octet)| Reserved=0    |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                       Reserved=0                              |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

 Flags field:

  0 1 2 3 4 5 6 7
 +-+-+-+-+-+-+-+-+
 |       |I| |O|R|
 +-+-+-+-+-+-+-+-+
]]></artwork>
      <t>The following Flags are defined in the Flags field, third octet of
      the Extended Community:</t>
      <t>R - Router Flag (corresponds to Bit 23 of the Extended Community)</t>
      <t>Bit 7 of the Flags field is defined as the "Router Flag". When set,
      the R Flag indicates that the IPv6-&gt;MAC pair advertised in the MAC/IP
      Advertisement route along with the Extended Community belongs to an IPv6
      router. If the R Flag is zero, the IPv6-&gt;MAC pair belongs to a host.
      The receiving PE implementing the ND function will use this information
      in Neighbor Advertisement messages for the associated IPv6 address. This
      Flag has no meaning for ARP IPv4-&gt;MAC entries and MUST be ignored
      when the Extended Community is received with an EVPN MAC/IP
      Advertisement route for an IPv4-&gt;MAC pair.</t>
      <t>O - Override Flag (corresponds to Bit 22 of the Extended
      Community)</t>
      <t>Bit 6 of the Flags field is defined as the "Override Flag". An egress
      PE will normally advertise IPv6-&gt;MAC pairs with the O Flag set, and
      only when IPv6 "anycast" is enabled in the BD or interface, the PE will
      send an IPv6-&gt;MAC pair with the O Flag = 0. The ingress PE will
      install the ND entry with the received O Flag and will always use this O
      Flag value when replying to a Neighbor Solicitation for the IPv6
      address. Similarly to the Router Flag, the Override Flag has no meaning
      for ARP IPv4-&gt;MAC entries and MUST be ignored when the Extended
      Community is received with an EVPN MAC/IP Advertisement route for an
      IPv4-&gt;MAC pair.</t>
      <t>I - Immutable ARP/ND Binding Flag (corresponds to Bit 20 of the
      Extended Community)</t>
      <t>Bit 4 of the Flags field is defined as the "Immutable ARP/ND Binding
      Flag". When set, the egress PE indicates that the IP-&gt;MAC pair sent
      in an EVPN MAC/IP Advertisement route (along with the Extended
      Community) is a configured ARP/ND entry. In this case, the IP address in
      the EVPN MAC/IP Advertisement route can only be bound together with the
      MAC address specified in the same route, and not with any other MAC
      addresses received in a different route without the I Flag set.</t>
      <t>Bits 0-3 and 5 are not assigned by this document. They MUST be set to
      zero, and ignored on receipt.</t>
      <t>The reserved fields are set to 0 and ignored by the receiver.</t>
    </section>
    <section anchor="sect-3" numbered="true" toc="default">
      <name>Use of the EVPN ARP/ND Extended Community</name>
      <t>This section describes the relevant procedures when advertising and
      processing the EVPN ARP/ND Extended Community. In all the procedures
      below a "PE" must be interpreted as a "PE which supports the ND/ARP
      proxy function (introduced by <xref target="RFC7432" format="default"/>) and implements
      the propagation of the ARP/ND Flags that this document specifies".</t>
      <section anchor="sect-3.1" numbered="true" toc="default">
        <name>Transmission of the EVPN ARP/ND Extended Community</name>
        <t>When an IP-&gt;MAC entry is not learned via EVPN, a PE may learn
        IP-&gt;MAC pairs in the management plane (this will create static
        entries in the ARP/ND or proxy-ARP/ND table) or by snooping ARP or
        Neighbor Advertisement (NA) messages coming from the CE (this will
        create dynamic entries). Those static and dynamic IP-&gt;MAC entries
        will be advertised in EVPN MAC/IP Advertisement routes that use the
        EVPN ARP/ND Extended Community as follows:</t>
        <ul spacing="normal">
          <li>Advertised MAC/IP Advertisement routes for IPv6-&gt;MAC entries
            MUST include one (and only one) ARP/ND Extended Community with the
            R and O Flag values associated with the entry. Those Flag values
            are either dynamically learned (from NA messages) or configured in
            case of static entries.</li>
          <li>MAC/IP Advertisement routes for IPv4-&gt;MAC entries MAY
            include one ARP/ND Extended Community. If the EVPN ARP/ND Extended
            Community is advertised along with an EVPN IPv4/MAC Advertisement
            route, the R and O Flags SHOULD be set to zero.</li>
          <li>If an IP-&gt;MAC pair is static (it has been configured) the
            corresponding MAC/IP Advertisement route MUST be sent along with
            an ARP/ND Extended Community with the I Flag set.</li>
          <li>This Extended Community does not change the procedures
            described in <xref target="RFC7432" format="default"/>. Specifically the procedures
            for advertising the MAC Mobility Extended Community along with the
            MAC/IP Advertisement route are not changed.</li>
        </ul>
      </section>
      <section anchor="sect-3.2" numbered="true" toc="default">
        <name>Reception of the EVPN ARP/ND Extended Community</name>
        <t>In addition to the procedures specified in <xref target="RFC7432" format="default"/>
        a PE receiving a MAC/IP Advertisement route will process the EVPN
        ARP/ND Extended Community as follows:</t>
        <ul spacing="normal">
          <li>Only one EVPN ARP/ND Extended Community is expected to be
            received along with an EVPN MAC/IP Advertisement route. If more
            than one ARP/ND Extended Community is received, the PE MUST
            consider only the first one on the list for processing purposes
            and MUST NOT propagate the rest of the ARP/ND Extended
            Communities.</li>
          <li>The R, O and I Flags MUST be ignored if they are advertised
            along with an EVPN MAC/IP Advertisement route that does not
            contain an IP (IPv4 or IPv6) address. Otherwise they are processed
            as follows.</li>
          <li>
            <t>R and O Flags processing:</t>
            <ul spacing="normal">
              <li>If the EVPN MAC/IP Advertisement route contains an IPv6
                address and the EVPN ARP/ND Extended Community, the PE MUST
                add the R and O Flag values to the ND entry in the ND or
                proxy-ND table, and propagate the value of the R and O flags
                from the ARP/ND Extended Community to the Neighbor
                Advertisements when replying to a Solicitation for the IPv6
                address.</li>
              <li>If no EVPN ARP/ND Extended Community is received along with
                the route, the PE will add the default R and O Flags to the
                entry. The default R Flag SHOULD be an administrative choice.
                The default O Flag SHOULD be 1.</li>
              <li>A PE MUST ignore the received R and O Flags for an EVPN
                MAC/IP Advertisement route that contains an IPv4-&gt;MAC
                pair.</li>
            </ul>
          </li>
          <li>
            <t>I Flag processing:</t>
            <ul spacing="normal">
              <li>A PE receiving an EVPN MAC/IP Advertisement route
                containing an IP-&gt;MAC and the I Flag set SHOULD install the
                IP-&gt;MAC entry in the ARP/ND or proxy-ARP/ND table as an
                "Immutable binding". This Immutable binding entry will
                override an existing non-immutable binding for the same
                IP-&gt;MAC. The absence of the EVPN ARP/ND Extended Community
                in a MAC/IP Advertisement route indicates that the IP-&gt;MAC
                entry is not an "Immutable binding".</li>
              <li>Receiving multiple EVPN MAC/IP Advertisement routes with
                I=1 for the same IP but different MAC is considered a
                misconfiguration or a transient error condition. If this
                happens in the network, a PE receiving multiple routes (with
                I=1 for the same IP and a different MAC address) SHOULD update
                the IP-&gt;MAC entry with the latest received information.
                Note that if a configured IP1-&gt;MAC1 changes to point to a
                new MAC address, i.e., IP1-&gt;MAC2, the EVPN MAC/IP
                Advertisement route for IP1-&gt;MAC1 will be withdrawn before
                the EVPN MAC/IP Advertisement route for IP1-&gt;MAC2 is
                advertised.</li>
              <li>A PE originating an EVPN MAC/IP Advertisement route for
                IP1-&gt;MAC1 with I=1 MAY also originate the route with the
                Static bit set (in the MAC Mobility Extended Community). In
                such a case, the IP1-&gt;MAC1 binding is not only immutable
                but it cannot move as well. Even so, if an update for the same
                IP1-&gt;MAC1 immutable and static, is received from a
                different PE, one of the two routes will be selected. This
                case is analogous to the <xref target="RFC7432" format="default"/> case when
                two MAC/IP routes with the Static bit set are received, and
                the PE likewise MUST alert the operator of such a
                situation.</li>
            </ul>
          </li>
        </ul>
        <t>In a situation where a host (with an IP-&gt;MAC that is
        configured as Immutable binding in the attached PE) is allowed to move
        between PEs (that is, the associated MAC is non-static), PEs can
        receive multiple MAC/IP advertisement routes for the same IP-&gt;MAC.
        In such situations, MAC mobility procedures as in <xref target="RFC7432" format="default"/> dictate the reachability of the MAC.</t>
        <t>As an example of the use of the I Flag, consider PE1, PE2 and PE3
        are attached to the same BD. PE1 originates an EVPN MAC/IP
        Advertisement route for IP1-&gt;MAC1 with I=1; later on, PE2 also
        originates an EVPN MAC/IP Advertisement route IP1-&gt;MAC1 with a
        higher sequence number and I=1. Then all the EVPN PEs attached to the
        same BD SHOULD retain their IP1-&gt;MAC1 ARP/ND binding but update
        MAC1's forwarding destination to PE2. If for some reason, PE3
        originates an EVPN MAC/IP Advertisement route for IP1-&gt;MAC2 with
        I=0 (even with a higher sequence number), then the EVPN PEs in the BD
        will not update their IP1-&gt;MAC1 ARP/ND bindings, since IP1 is bound
        to MAC1 (MAC2 SHOULD still be programmed in the layer-2 BDs). This is
        considered a misconfiguration in PE3.</t>
        <t>The use of the Flag I=1 assumes that a given IP is always bound to
        the same MAC address, and therefore the mobility procedures described
        in <xref target="I-D.ietf-bess-evpn-irb-extended-mobility" format="default"/> for "Host
        IP move to a new MAC" will not apply.</t>
      </section>
    </section>
    <section anchor="sect-4" numbered="true" toc="default">
      <name>Security Considerations</name>
      <t>The same security considerations described in <xref target="RFC7432" format="default"/> apply to this document. In general, it is worth
      noting that the use of Proxy ARP/ND in EVPN BDs may add some security
      risks. Attackers can make use of ARP/ND messages to create state in all
      the PEs attached to the same BD as the attacker and exhaust resources in
      those PEs. Therefore, additional security mechanisms may be needed. Some
      examples of such additional security mechanisms are e.g., limit the
      number of Proxy ARP/ND entries per-BD/per-port, or monitor closely the
      rate at which hosts create dynamic Proxy-ARP/ND entries.</t>
      <t>In addition, this document adds pieces of information that impact on
      the way ARP/ND entries are installed in ARP/ND and/or proxy-ARP/ND
      tables, and therefore the resolution protocols for IPv4 and IPv6
      addresses. For instance, if a given IPv6-&gt;MAC binding is configured
      with the wrong R or O Flags (intentionally or not) on a given PE, the
      rest of the PEs attached to the same BD will install the wrong
      information for the IPv6-&gt;MAC. This will cause all the PEs in the BD
      to reply to Neighbor Solicitations for the IPv6 with Neighbor
      Advertisement (NA) messages containing the wrong R and O Flags. For
      example, as specified in <xref target="RFC4861" format="default"/>, the receiver of a NA
      message with O not set will not update its existing cache entry for the
      IP-&gt;MAC, hence the communication between the owner of the IP address
      and the receiver of the NA message with the wrong O flag will fail.
      Similarly, the receiver of a NA message with the wrong R flag, may
      update its Default Router List incorrectly adding or removing an entry,
      which could for example lead to sending traffic to a node that is not a
      router, causing the traffic to be dropped .</t>
      <t>The I Flag, or Immutable ARP/ND Binding Flag, introduces a useful
      security tool so that an operator makes sure a given IP address is
      always bound to the same MAC and that information is distributed to all
      the PEs attached to the same BD. ARP/ND spoofing attacks from hosts
      injecting Gratuitous ARPs or unsolicited Neighbor Advertisement messages
      for that IP address with a different MAC address will not succeed to be
      programmed in ARP/ND and proxy-ARP/ND tables and therefore will avoid
      attracting traffic to the spoofer.</t>
    </section>
    <section anchor="sect-5" numbered="true" toc="default">
      <name>IANA Considerations</name>
      <t>This document request that the Name of the currently registered value
      for Sub-Type 0x08 in the EVPN Extended Community Sub-Types registry
      (https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml#evpn)
      be changed to:</t>
      <table align="center">
        <thead>
          <tr>
            <th align="left">Sub-Type</th>
            <th align="left">Name</th>
            <th align="left">Reference</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">0x08</td>
            <td align="left">ARP/ND Extended Community</td>
            <td align="left">[this document]</td>
          </tr>
        </tbody>
      </table>
      <t>This document also requests the creation of a registry called "ARP/ND
      Extended Community Flags" where the following initial allocations are
      made:</t>
      <table align="center">
        <thead>
          <tr>
            <th align="left">Flag position</th>
            <th align="left">Name</th>
            <th align="left">Reference</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">0-3</td>
            <td align="left">Unassigned</td>
            <td align="left">-</td>
          </tr>
          <tr>
            <td align="left">4</td>
            <td align="left">Immutable ARP/ND Binding Flag (I)</td>
            <td align="left">[this document]</td>
          </tr>
          <tr>
            <td align="left">5</td>
            <td align="left">Unassigned</td>
            <td align="left">-</td>
          </tr>
          <tr>
            <td align="left">6</td>
            <td align="left">Override Flag (O)</td>
            <td align="left">[this document]</td>
          </tr>
          <tr>
            <td align="left">7</td>
            <td align="left">Router Flag (R)</td>
            <td align="left">[this document]</td>
          </tr>
        </tbody>
      </table>
      <t>The registration procedure for this registry is Standards Action.
      This registry should be located in the Border Gateway Protocol (BGP)
      Extended Communities general registry
      (https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml).</t>
      <t>Note that the Flag position 5 is left unassigned and not used in this
      specification since it was previously requested by <xref target="I-D.rbickhart-evpn-ip-mac-proxy-adv" format="default"/>.</t>
    </section>
    <section anchor="sect-6" numbered="true" toc="default">
      <name>Acknowledgments</name>
      <t>The authors would like to thank Ali Sajassi for his feedback.</t>
    </section>
  </middle>
  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4861.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7432.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
      </references>
      <references>
        <name>Informative References</name>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/draft-ietf-bess-evpn-irb-extended-mobility.xml"/>
        <reference anchor="I-D.rbickhart-evpn-ip-mac-proxy-adv">
          <front>
            <title>Proxy IP-&gt;MAC Advertisement in EVPNs</title>
            <author fullname="R. Bickhart" initials="R" surname="Bickhart">
              <organization>Twitch</organization>
            </author>
            <date day="23" month="January" year="2020"/>
          </front>
        </reference>
      </references>
    </references>
  </back>
</rfc>
