<?xml version="1.0" encoding="utf-8"?>

<?xml-model href="rfc7991bis.rnc"?> 

<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>

<rfc
  xmlns:xi="http://www.w3.org/2001/XInclude"
  category="std"
  docName="draft-dubrovsky-bess-evpn-next-hop-00"
  ipr="trust200902"
  obsoletes=""
  updates="7432"
  submissionType="IETF"
  xml:lang="en"
  version="3">

  <front>
    <title>EVPN Next Hop address encoding</title>

    <seriesInfo name="Internet-Draft" value="draft-dubrovsky-bess-evpn-next-hop-00"/>
   
    <author fullname="Mike Dubrovsky" initials="M" surname="Dubrovsky">
      
      <organization>Cisco</organization>
      <address>
        <email>mdubrovs@cisco.com</email>  
      </address>
    </author>
   
    <date year="2022"/>

    <area>General</area>
    <workgroup>Internet Engineering Task Force</workgroup>
    <keyword>Next Hop encoding</keyword>

    <abstract>
      <t>This document clarifies that the EVPN route Next Hop encoding is unaffected by 
        whether the underlying BGP session is IPv4 or IPv6.</t>
      <t>From that perspective, this document updates the EVPN specification to provide
        more comprehensive documentation of the encoding.</t>
    </abstract>
 
  </front>

  <middle>
    
    <section>
      <name>Introduction</name>
      <t>For operational simplicity, a network administrator can choose to enable multiple AFI/SAFI over a single BGP session.</t>
        
      <t>While <xref target="RFC7432"/> specifies that the Next Hop field of the MP_REACH_NLRI attribute can be
        set to the IPv4 or IPv6 address for EVPN routes, it does not clarify the exact encoding
        when the address family of a BGP session does not match the address family of the EVPN Next Hop address.</t> 
        
      <t>For the sake of interoperability, this document specifies the encoding and
        therefore, updates <xref target="RFC7432"/>. EVPN implementations MUST conform to the prescribed encoding.</t>
      
    </section>
    
    <section>
      <name>Requirements Language</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"/>
        <xref target="RFC8174"/> when, and only when, they appear in
        all capitals, as shown here.</t>
    </section>
    
    <section>
      <name>EVPN MP_REACH_NLRI Next Hop encoding</name>
      <t>EVPN MP_REACH_NLRI can be advertised with either IPv4 or IPv6 next hop.</t>

      <t>EVPN MP_REACH_NLRI IPv4 Next Hop encoding:</t>
      
      <table>
        <name>EVPN MP_REACH_NLRI IPv4 next Hop encoding</name>
        <tbody>
          <tr><td>...</td></tr>
          <tr><td>Length of Next Hop Address = 4</td></tr>
          <tr><td>Network Address of Next Hop = IPv4 address</td></tr>
          <tr><td>...</td></tr>
        </tbody>
      </table>
      
      <t>EVPN MP_REACH_NLRI IPv6 next Hop encoding:</t>

      <table>
        <name>EVPN MP_REACH_NLRI IPv6 next Hop encoding</name>
        <tbody>
          <tr><td>...</td></tr>
          <tr><td>Length of Next Hop Address = 16</td></tr>
          <tr><td>Network Address of Next Hop = IPv6 address</td></tr>
          <tr><td>...</td></tr>
        </tbody>
      </table>
      
        <t>The above encoding is done regardless of whether the BGP session is running over IPv4 or IPv6.</t>
     </section>   
    
    <section anchor="IANA">
      <name>IANA Considerations</name>
      <t>This memo includes no request to IANA.</t>
    </section>
    
    <section anchor="Security">
      <name>Security Considerations</name>
      <t>This document should not affect the security of the Internet.</t>
    </section>
    
  </middle>

  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        
        <xi:include href="https://www.rfc-editor.org/refs/bibxml/reference.RFC.2119.xml"/>
        <xi:include href="https://www.rfc-editor.org/refs/bibxml/reference.RFC.8174.xml"/>
        <xi:include href="https://www.rfc-editor.org/refs/bibxml/reference.RFC.7432.xml"/>
        
      </references>
 
    </references>
  
    <section anchor="Acknowledgements" numbered="false">
      <name>Acknowledgements</name>
      <t>The author would like to thank Aamod Vyavaharkar and Kyuhwan Kim for their helpful feedback.</t>
    </section>
    
 </back>
</rfc>
