<?xml version="1.0" encoding="US-ASCII"?>
<!-- edited with XMLSPY v5 rel. 3 U (http://www.xmlspy.com)
     by Daniel M Kohn (private) -->
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY rfc2119 PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml">
]>
<?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 category="std" docName="draft-wang-bess-l3-accessible-evpn-02"
     ipr="trust200902">
  <front>
    <title abbrev="L3 Accessible EVPN">Layer-3 Accessible EVPN
    Services</title>

    <author fullname="Wei Wang" initials="W" surname="Wang">
      <organization>China Telecom</organization>

      <address>
        <postal>
          <street>Beiqijia Town, Changping District</street>

          <city>Beijing</city>

          <region>Beijing</region>

          <code>102209</code>

          <country>China</country>
        </postal>

        <email>weiwang94@foxmail.com</email>
      </address>
    </author>

    <author fullname="Aijun Wang" initials="A" surname="Wang">
      <organization>China Telecom</organization>

      <address>
        <postal>
          <street>Beiqijia Town, Changping District</street>

          <city>Beijing</city>

          <region>Beijing</region>

          <code>102209</code>

          <country>China</country>
        </postal>

        <email>wangaj3@chinatelecom.cn</email>
      </address>
    </author>

    <author fullname="Haibo Wang" initials="H" surname="Wang">
      <organization>Huawei Technologies</organization>

      <address>
        <postal>
          <street>Huawei Building, No.156 Beiqing Rd.</street>

          <city>Beijing</city>

          <region>Beijing</region>

          <code>100095</code>

          <country>China</country>
        </postal>

        <phone/>

        <facsimile/>

        <email>rainsword.wang@huawei.com</email>

        <uri/>
      </address>
    </author>

    <date day="9" month="March" year="2021"/>

    <area>RTG Area</area>

    <workgroup>BESS Working Group</workgroup>

    <keyword>RFC</keyword>

    <abstract>
      <t>This draft describes layer-3 accessible EVPN service interfaces
      according to <xref target="RFC7432"/>, and proposes a new solution which
      can simplify the deployment of layer-3 accessible EVPN service. This
      solution allows each PE in EVPN network to maintain only one IP-VRF.</t>
    </abstract>
  </front>

  <middle>
    <section anchor="intro" title="Introduction">
      <t><xref target="RFC7432"/>defines three service interfaces for layer-2
      accessible EVPN: VLAN-Based Service Interface, VLAN-Bundle Service
      Interface and VLAN-Aware Bundle Service Interface. These three types of
      service interfaces can realize the isolation of layer-2 traffic of
      customers in different ways, as shown in Figure 1.</t>

      <figure>
        <artwork><![CDATA[             1:1           1:1
     +------+   +---------+   +------+
     |VID 11+---+  EVI 1  +---+VID 12|
     +------+   +---------+   +------+
     |VID 21+---+  EVI 2  +---+VID 22|
     +------+   +---------+   +------+
     |VID 31+---+  EVI 3  +---+VID 32|
     +------+   +---------+   +------+
     |VID 41+---+  EVI 4  +---+VID 42|
     +------+   +---------+   +------+

        VLAN-based Service Interface



            N:1                1:N
  +------+        +---------+        +------+
  |VID 11---------+         +--------+VID 12|
  +------+        +         +        +------+
  |VID 21+--------+         +--------+VID 22|
  +------+        +  EVI 1  +        +------+
  |VID 31+--------+         +--------+VID 32|
  +------+        +         +        +------+
  |VID 41+--------+         +--------+VID 42|
  +------+        +---------+        +------+

       VLAN-bundle Service Interface


         N:1                        1:N
            +----------------------+
  +------+  |+--------------------+|  +------+
  |VID 11+--++ Broadcast Domain 1 ++--+VID 12|
  +------+  |+--------------------+|  +------+
  |VID 21+--++ Broadcast Domain 2 ++--+VID 22|
  +------+  |+--------------------+|  +------+
  |VID 31+--++ Broadcast Domain 3 ++--+VID 32|
  +------+  |+--------------------+|  +------+
  |VID 41+--++ Broadcast Domain 4 ++--+VID 42|
  +------+  |+--------------------+|  +------+
            |                      |
            |        EVI 1         |
            +----------------------+

      VLAN-Aware Bundle Service Interface


           Figure 1: EVPN Service Interfaces Overview
]]></artwork>
      </figure>

      <t>For VLAN-based service interface, there is a one to one mapping
      between VID and EVI. Each EVI has a single broadcast domain so that
      traffic from different customers can be isolated.</t>

      <t>For VLAN-bundle service interface, there is a N to one mapping
      between VID and EVI. Each EVI has a single broadcast domain, but the MAC
      address MUST be unique that can be used for customer traffic
      isolation.</t>

      <t>For VLAN-aware bundle service interface, there is a N to one mapping
      between VID and EVI. Each EVI has multiple broadcast domains while the
      MAC address can overlap. One broadcast domain corresponds to one VID,
      which can be used to customer traffic isolation.</t>

      <t>In the scenarios corresponding to these service interfaces, CE-PE
      should be placed in the same Layer-2 network. In most of provider
      network, CE-PE need to cross a Layer-3 network, then the above service
      interfaces should be extended to adapt to the layer-3 network.</t>

      <t>In this draft, we describe three layer-3 accessible interfaces for
      EVPN, summarize the existing layer-3 accessible EVPN solutions, and
      propose a new solution which can simplify the depolyment of layer-3
      accessible EVPN service.</t>

      <t/>
    </section>

    <section title="Conventions used in this document">
      <t>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 <xref target="RFC2119"/>
      .</t>
    </section>

    <section title="Terminology">
      <t>The following terms are defined in this draft:<list style="symbols">
          <t>CE: Client Edge</t>

          <t>PE: Provider Edge</t>

          <t>EVPN: BGP/MPLS Ethernet VPN, defined in <xref
          target="RFC7432"/></t>

          <t>VxLAN: Virtual eXtensible Local Area Network, defined in <xref
          target="RFC7348"/></t>

          <t>IPSec: Internet Protocol Security, defined in <xref
          target="RFC4301"/></t>
        </list></t>

      <t/>
    </section>

    <section anchor="section-4"
             title="Service Interfaces in layer-3 accessible EVPN">
      <t>In most of provider network, CE-PE need to cross a Layer-3 network.
      With this scenario, service interfaces defined in <xref
      target="RFC7432"/> should be extended to adapt to the layer-3 network.
      To achieve the traffic isolation, tunnel encapsulation technologies can
      be used.</t>

      <t>We define Logical Session Identifier(LSI) to distinguish the packets
      from different tunnels, which is related to VNI/SPI. The length of LSI
      is 16 bits.</t>

      <t>The layer-3 accessible interfaces for EVPN are shown in Figure 2,
      refer to <xref target="RFC7432"/></t>

      <t><figure>
          <artwork><![CDATA[                 1:1           1:1
         +------+   +---------+   +------+
         |LSI 11+---+ IP-VRF1 +---+LSI 12|
         +------+   +---------+   +------+
         |LSI 21+---+ IP-VRF2 +---+LSI 22|
         +------+   +---------+   +------+
         |LSI 31+---+ IP-VRF3 +---+LSI 32|
         +------+   +---------+   +------+
         |LSI 41+---+ IP-VRF4 +---+LSI 42|
         +------+   +---------+   +------+

             LSI-based Service Interface



                N:1                1:N
      +------+        +---------+        +------+
      |LSI 11---------+         +--------+LSI 12|
      +------+        +         +        +------+
      |LSI 21+--------+         +--------+LSI 22|
      +------+        + IP-VRF1 +        +------+
      |LSI 31+--------+         +--------+LSI 32|
      +------+        +         +        +------+
      |LSI 41+--------+         +--------+LSI 42|
      +------+        +---------+        +------+

            LSI-bundle Service Interface


             N:1                        1:N
                +----------------------+
      +------+  |+--------------------+|  +------+
      |LSI 11+--++   Logical Tunnel 1 ++--+LSI 12|
      +------+  |+--------------------+|  +------+
      |LSI 21+--++   Logical Tunnel 2 ++--+LSI 22|
      +------+  |+--------------------+|  +------+
      |LSI 31+--++   Logical Tunnel 3 ++--+LSI 32|
      +------+  |+--------------------+|  +------+
      |LSI 41+--++   Logical Tunnel 4 ++--+LSI 42|
      +------+  |+--------------------+|  +------+
                |                      |
                |       IP-VRF 1       |
                +----------------------+

           LSI-Aware Bundle Service Interface



           Figure 2: Layer-3 accessible EVPN Service Interfaces Overview
]]></artwork>
        </figure>For LSI-based service interface, there is a one to one
      mapping between LSI and IP-VRF. Each EVI has a single logical plane so
      that traffic from different customers can be isolated.</t>

      <t>For LSI-bundle service interface, there is a N to one mapping between
      LSI and IP-VRF. Each IP-VRF has a single logical plane, but the IP
      address MUST be unique that can be used for customer traffic
      isolation.</t>

      <t>For LSI-aware bundle service interface, there is a N to one mapping
      between LSI and IP-VRF. Each IP-VRF has multiple logical planes while
      the IP address can overlap. One logical plane corresponds to one LSI,
      which can be used to customer traffic isolation.</t>
    </section>

    <section anchor="section-5"
             title="Solutions of LSI-aware bundle service interface">
      <t>Let's assume a scenario as shown in Figure 3. PE1, PE2 and PE3 are
      EVPN peers, the customer data transmission between PEs relies on VxLAN.
      CE1, CE2 and CE3 are connected to the sites of customer for its
      department A and B.</t>

      <t><figure>
          <artwork align="center"><![CDATA[                                Department A

                               Department B
                                  +---+
                                  |CE1|
                                  +-+-+
                +-------------------+------------------+
                |                 +-+-+                |
                |     +-----------+PE1+----------+     |
                |     |           +---+          |     |
                |     |                          |     |
                |     |                          |     |
                |     |                          |     |
 Department A   |     |                          |     |  Department A
                |     |                          |     |
 Department B   |     |                          |     |  Department B
         +---+  |   +++-+                      +-+++   |  +---+
         |CE2+--+---+PE2+----------------------+PE3+---+--+CE3|
         +---+  |   +---+                      +---+   |  +---+
                |                                      |
                |                                      |
                |                  EVPN                |
                +--------------------------------------+



        Figure 3: LSI-aware bundle service interface scenario
]]></artwork>
        </figure>If each VNI has its own IP-VRF, each PE and CE maintain an
      IP-VRF for each deployment. In this situation, customer traffic can be
      isolated by different VNIs, and there is no need for extending control
      plane/forwarding plane protocols.</t>

      <t>If VNIs share one IP-VRF, each CE still maintain an IP-VRF for each
      deployment, but each PE maintains only one VRF for all deployments. In
      this situation, customer traffic cannot be isolated by VNIs. We propose
      a solution for this scenario:<list style="symbols">
          <t>Using LSI information to identify different customer
          routes/traffic. As described above, LSI can be generated by VNI/SPI,
          and there is a one to one mapping between LSI and VNI/SPI. PEs
          should maintain the mapping table of LSI and VNI/SPI, so that they
          can distinguish different customer routes/traffic. LSI information
          can be transmitted by reusing Ethernet Tag ID/ESI. The existing EVPN
          Route Type can carry Ethernet Tag ID/ESI, so there is no need for
          extending control plane protocols, while the forwarding plane
          protocol need to be extended to transmit the LSI information
          (Ethernet Tag ID/ESI).</t>

          <t>TBD (more solutions are welcome).</t>
        </list></t>

      <t/>
    </section>

    <section anchor="section-6" title="The extensions to  of LSI">
      <section title="Forwarding Plane">
        <section title="Extensions to VxLAN">
          <t>This solution only consider EVPN with VxLAN encapsulation. We
          extend the VxLAN GPE header to carry the LSI information, the
          extentions to the VxLAN GPE header is shown in Figure 4:<figure>
              <artwork align="center"><![CDATA[  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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |R|S|Ver|I|P|B|O|               LSI             |Next Protocol  |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                VXLAN Network Identifier (VNI) |   Reserved    |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

        Figure 4: The extentions to VxLAN GPE header
]]></artwork>
            </figure></t>

          <t>With VxLAN, we define a reserved bit as S bit. If S is set to 1,
          it means the field after O bit contains LSI information.</t>

          <t/>
        </section>
      </section>

      <section title="Control Plane">
        <t>As described in Section 5, we reuse Ethernet Tag ID/ESI to transmit
        LSI information. Ethernet Tag ID/ESI can be carried by EVPN Route Type
        2 (<xref target="RFC7432"/>) and 5 (<xref
        target="I-D.ietf-bess-mvpn-evpn-aggregation-label"/>). Since the
        length of LSI is 16 bits, while the length of Ethernet Tag ID and ESI
        are 80 bits and 32 bits, respectively. We can only use the lower 16
        bits of Ethernet Tag ID / ESI field to carry LSI information, the
        other locations MUST set to 0.</t>

        <t/>
      </section>
    </section>

    <section title="Security Considerations">
      <t>TBD</t>
    </section>

    <section anchor="section-8" title="IANA Considerations">
      <t>This draft extends the VxLAN GPE header, S bit of Flag and LSI field
      are added:</t>

      <t><figure>
          <artwork align="center"><![CDATA[  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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |R|S|Ver|I|P|B|O|               LSI             |Next Protocol  |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                VXLAN Network Identifier (VNI) |   Reserved    |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>
        </figure></t>

      <t/>
    </section>
  </middle>

  <back>
    <references title="Normative References">
      <?rfc include="reference.RFC.7432"?>

      <?rfc include="reference.RFC.2119"?>

      <?rfc include="reference.RFC.7348"?>

      <?rfc include="reference.RFC.4301"?>

      <?rfc include="reference.RFC.2890"?>

      <?rfc include='reference.I-D.ietf-bess-mvpn-evpn-aggregation-label'?>
    </references>
  </back>
</rfc>
