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

<!-- updated by Chris 03/01/21 -->

<!DOCTYPE rfc SYSTEM "rfc2629-xhtml.ent">

<!-- [rfced] sortRefs was set to "no" in the submitted XML file. Please review. -->

<rfc xmlns:xi="http://www.w3.org/2001/XInclude" docName="draft-allan-5g-fmc-encapsulation-08" number="0000" submissionType="IETF" category="info" consensus="true" ipr="trust200902" obsoletes="" updates="" xml:lang="en" symRefs="true" sortRefs="false" tocInclude="true" version="3">


  <!-- xml2rfc v2v3 conversion 3.5.0 -->
  <!-- Generated by id2xml 1.5.0 on 2021-02-26T02:20:32Z -->
<front>

    <title abbrev="5G WWC Encapsulation">5G Wireless Wireline Convergence User Plane Encapsulation (5WE)</title>
    <seriesInfo name="RFC" value="0000"/>
    <author initials="D." surname="Allan" fullname="Dave Allan" role="editor">
      <organization>Ericsson</organization>
      <address>
        <postal>
          <street>2455 Augustine Drive</street>
          <city>San Jose</city>
          <region>CA</region>
          <code>95054</code>
          <country>United States of America</country>
        </postal>
        <email>david.i.allan@ericsson.com</email>
      </address>
    </author>
    <author initials="D." surname="Eastlake 3rd" fullname="Donald E. Eastlake 3rd">
      <organization>Futurewei Technologies</organization>
      <address>
        <postal>
          <street>2386 Panoramic Circle</street>
          <city>Apopka</city>
          <region>FL</region>
          <code>32703</code>
          <country>United States of America</country>
        </postal>
        <phone>+1-508-333-2270</phone>
        <email>d3e3e3@gmail.com</email>
      </address>
    </author>
    <author initials="D." surname="Woolley" fullname="David Woolley">
      <organization>Telstra Corporation</organization>
      <address>
        <postal>
          <street>242 Exhibition St</street>
          <city>Melbourne</city>
          <region/>
          <code>3000</code>
          <country>Australia</country>
        </postal>
        <email>david.woolley@team.telstra.com</email>
      </address>
    </author>
    <date year="2021" month="March"/>

<!-- [rfced] Please insert any keywords (beyond those that appear in
the title) for use on https://www.rfc-editor.org/search. -->

<keyword>example</keyword>

    <abstract>
      <t>
   As part of providing wireline access to the 5G Core (5GC), deployed
   wireline networks carry user data between 5G residential gateways
   and the 5G Access Gateway Function (AGF). The encapsulation method
   specified in this document supports the multiplexing of traffic for
   multiple PDU sessions within a VLAN delineated access circuit,
   permits legacy equipment in the data path to inspect certain packet
   fields, carries 5G QoS information associated with the packet data,
   and provides efficient encoding. It achieves this by specific points
   of similarity with the RFC 2516 PPPoE data packet encapsulation.</t>
    </abstract>
  </front>
  <middle>
    <section anchor="sect-1" numbered="true" toc="default">
      <name>Introduction</name>
      <t>
   Converged 5G ("fifth generation") wireline networks carry user data
   between 5G residential gateways (5G-RG) and the 5G Access Gateway
   Function (identified as a Wireline-AGF (W-AGF) by 3GPP in <xref target="TS23316" format="default"/>)
   across deployed access networks based on Broadband Forum <xref target="TR101" format="default"/> and
   <xref target="TR178" format="default"/>. This form of wireline access is considered to be trusted
   non-3GPP access by the 5G system.</t>
      <t>
   The transport encapsulation used needs to meet a variety of
   requirements including the following:</t>
      <ul spacing="normal">
        <li>The ability to multiplex multiple logical connections (Protocol Data Unit
     (PDU) Sessions as defined by 3GPP) within a VLAN identified point to
     point logical circuit between a 5G-RG and a W-AGF.</li>
        <li>To allow unmodified legacy equipment in the data path to identify the
     encapsulation and inspect specific fields in the payload.  Some access
     nodes in the data path between the 5G-RG and the W-AGF (Such as digital
     subscriber loop access multiplexers (DSLAMs) and optical line
     terminations (OLTs)) currently inspect packets identified by specific
     Ethertypes to identify protocols such as the point to point protocol over
     ethernet (PPPoE), IP, ARP, and IGMP. This may be for the purpose of
     enhanced QoS, policing of identifiers and other applications. Some
     deployments are dependent upon this inspection. Such devices are able to
     do this for PPPoE or IP over ethernet (IPoE) packet encodings but would
     be unable to do so if a completely new encapsulation, or an existing
     encapsulation using a new Ethertype, were used.</li>
        <li>To carry per packet 5G QoS information.</li>
        <li>Fixed access residential gateways are sensitive to the complexity
     of packet processing, therefore an encapsulation that minimizes
     processing is an important consideration.</li>
      </ul>
      <t>
   A data encapsulation that uses a common Ethertype and has certain
   fields appearing at the same offset as the PPPoE <xref target="RFC2516" format="default"/> data
   encapsulation can address these requirements. This data
   encapsulation is referred to as the 5G WWC user plane Encapsulation
   or 5WE. Currently deployed access nodes do not police the VER, TYPE
   and CODE fields of an RFC 2516 header, and only perform limited
   policing of stateful functions with respect to the procedures
   documented in RFC 2516. Therefore, these fields have a different
   definition for 5WE and are used to:</t>
      <ul spacing="normal">
        <li>Identify that the mode of operation for packets encapsulated in
     such a fashion uses non-access stratum (NAS, a logical control
     interface between user equipment (UE) and 5GC as specified by
     3GPP) based 5G WWC session establishment and life cycle
     maintenance procedures as documented in <xref target="TS23502" format="default"/><xref target="TS23316" format="default"/> instead
     of legacy PPP/PPPoE session establishment procedures (i.e. PADI
     discipline, LCP, NCP etc.). In this scenario "discovery" is
     performed by means outside the scope of this document.</li>
        <li>Permit the session ID field to be used to identify the 5G PDU
     session the encapsulated packet is part of.</li>
        <li>Communicate per-packet 5G QoS Flow Identifier (QFI) and
     Reflective QoS Indication (RQI) information from the 5GC to the
     5G-RG.</li>
      </ul>
      <t>
   This 5G specific redesign of fields not inspected by deployed
   equipment results in an encapsulation uniquely applicable to the
   requirements for the communication of PDU session traffic between
   the subscriber premises and the 5G system over wireline networks.
   The 6 byte RFC 2516 data packet header followed by a 2 byte PPP
   protocol ID is also the most frugal of the encapsulations that are
   currently supported by legacy access equipment that could be adapted
   to meet these requirements.</t>
      <t>
   This encapsulation is expected to be used in environments where RFC
   2516 is deployed. Therefore, implementations <bcp14>MUST</bcp14> examine the
   version number:</t>
      <ul spacing="normal">
        <li>if the version number is 1, and PPPoE <xref target="RFC2516" format="default"/> is supported,
     process the frame further, else silently discard it.</li>
        <li>if the version number is 2 and 5WE is supported, process the frame
     further, else silently discard it.</li>
      </ul>
      <t>
   In both cases frames for the supported version number should have
   session IDs corresponding to established sessions for the respective
   protocol models. A 5WE frame with an unrecognized session ID <bcp14>MUST</bcp14> be
   silently discarded.</t>
      <t>
   This encapsulation may have MTU issues when used for Ethernet
   multiplexing in networks where the underlying Ethernet payload is
   limited to 1500 bytes.</t>
      <t>
   This encapsulation is not suitable for other network environments,
   e.g., general use over the public Internet.</t>
      <section anchor="sect-1.1" numbered="true" toc="default">
        <name>Requirements Language</name>


        <t>
    The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL
    NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
    "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as
    described in BCP&nbsp;14 <xref target="RFC2119"/> <xref target="RFC8174"/> 
    when, and only when, they appear in all capitals, as shown here.
        </t>




      </section>
      <section anchor="sect-1.2" numbered="true" toc="default">
        <name>Acronyms</name>
        <t>
   This document uses the following acronyms:</t>
<dl indent="10">
<dt>
3GPP</dt><dd>3rd Generation Partnership Project</dd>
<dt>5WE</dt>  <dd> 5G WWC Encapsulation</dd>
<dt>5GC</dt>  <dd> 5th Generation Core (network)</dd>
<dt>DSLAM</dt> <dd>Digital Subscriber Loop Access Multiplexer</dd>
<dt>W-AGF</dt> <dd>Wireline Access Gateway Function</dd>
<dt>IPoE</dt> <dd>IP over Ethernet</dd>
<dt>NAS</dt>   <dd>Non-Access Stratum</dd>
<dt>OLT</dt>  <dd>Optical Line Termination</dd>
<dt>PDU</dt>   <dd>Protocol Data Unit</dd>
<dt>PPPoE</dt> <dd>PPP over Ethernet</dd>
<dt>QFI</dt>  <dd>QoS Flow Identifier</dd>
<dt>QoS</dt>   <dd>Quality of Service</dd>
<dt>RG</dt>   <dd> Residential Gateway</dd>
<dt>RQI</dt>  <dd> Reflective QoS Indicator</dd>
<dt>WWC</dt>   <dd>Wireless Wireline Convergence</dd>
</dl>
      </section>
    </section>
    <section anchor="sect-2" numbered="true" toc="default">
      <name>Data Encapsulation Format</name>
      <t>
   The Ethernet payload <xref target="IEEE802" format="default"/> for PPPoE <xref target="RFC2516" format="default"/> is indicated by
   an Ethertype of 0x8864. The information following that Ethertype
   uses a value of 2 in the VER field for the repurposing of the PPPoE
   data encapsulation as the 5G WWC user plane encapsulation (5WE). The
   5G WWC User Plane encapsulation is structured as follows:</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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |  VER  |  TYPE |     QFI   |R|0|           SESSION_ID          |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |            LENGTH             |          PROTOCOL ID          |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |                         DATA PAYLOAD         ~
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
]]></artwork>
      <t>The description of each field is as follows:
      </t>

<dl indent="10">

<dt>VER:
</dt>
<dd>The version. It <bcp14>MUST</bcp14> be set to 0x02.
</dd>

<dt>TYPE:
</dt>
<dd>The message type. It <bcp14>MUST</bcp14> be set to 0x01.
</dd>

<dt>QFI:
</dt>
<dd>Encodes the 3GPP 5G QoS Flow Identifier <xref target="TS38415"
format="default"/> to be used for mapping 5G QoS to IP DSCP/802.1 P-bits <xref
target="IEEE802" format="default"/>.
</dd>

<dt>R:
</dt>
<dd>(Short for Reflective QoS Indication <xref target="TS38415"
format="default"/>) Encodes the one bit RQI. It is set by the network side 5WE
termination for downstream traffic and ignored by the network for upstream
traffic.
</dd>

<dt>0:
</dt>
<dd>Indicates the bit(s) <bcp14>MUST</bcp14> be sent as zero and ignored on
receipt.
</dd>


<dt>SESSION_ID:
</dt>
<dd>A 16-bit unsigned integer in network byte order. It is used to distinguish
different PDU sessions that are in the VLAN delineated multiplex. A value of
0xffff is reserved for future use and <bcp14>MUST NOT</bcp14> be used.
</dd>

<dt>LENGTH:
</dt>
<dd>The length in bytes of the data payload including the initial Protocol
ID. It is 16 bits in network byte order.
</dd>

<dt>PROTOCOL ID:
</dt>

<dd><t>The 16 bit identifier of the data payload type encoded using values
from the IANA PPP DLL protocol numbers registry. (<eref
target="https://www.iana.org/assignments/ppp-numbers/ppp-numbers.xhtml#ppp-numbers-2"/>)</t>
<ul>
<li><t>The following values are valid in this field for 5G WWC use:</t>
  <ul>
    <li>0x0021: IPv4
    </li>
    <li>0x0031: Ethernet (referred to in PPP as "bridging")
    </li>
    <li>0x0057: IPv6
    </li>
  </ul>
</li>
<li>Packets received that do not contain one of the above protocol IDs are silently discarded.
</li>
</ul>
</dd>

<dt>DATA PAYLOAD:
</dt>
<dd>Encoded as per the protocol ID.
</dd>

</dl>
<!--      <ul empty="true" spacing="normal">
        <li>VER is the version. It <bcp14>MUST</bcp14> be set to 0x02.</li>
        <li>TYPE is the message type. It <bcp14>MUST</bcp14> be set to 0x01.</li>
        <li>QFI encodes the 3GPP 5G QoS Flow Identifier <xref target="TS38415" format="default"/> to be used for
      mapping 5G QoS to IP DSCP/802.1 P-bits <xref target="IEEE802" format="default"/>.</li>
        <li>R (short for Reflective QoS Indication <xref target="TS38415" format="default"/>) encodes the one bit
      RQI. It is set by the network side 5WE termination for downstream
      traffic and ignored by the network for upstream traffic.</li>
        <li>0 indicates the bit(s) <bcp14>MUST</bcp14> be sent as zero and ignored on
      receipt.</li>
        <li>SESSION_ID is a 16-bit unsigned integer in network byte order. It is
      used to distinguish different PDU sessions that are in the VLAN
      delineated multiplex. A value of 0xffff is reserved for future use and
      <bcp14>MUST NOT</bcp14> be used.</li>
        <li>LENGTH is the length in bytes of the data payload including
      the initial Protocol ID. It is 16 bits in network byte order.</li>
        <li>
          <t>PROTOCOL ID is the 16 bit identifier of the data payload type encoded
      using values from the IANA PPP DLL protocol numbers registry. (<eref target="https://www.iana.org/assignments/ppp-numbers/ppp-numbers.xhtml#ppp-numbers-2"/>)

          </t>
          <ul spacing="normal">
            <li>
              <t>The following values are valid in this field for 5G WWC use:

              </t>
              <ul spacing="normal">
                <li>0x0021: IPv4</li>
                <li>0x0031: Ethernet (referred to in PPP as "bridging")</li>
                <li>0x0057: IPv6</li>
              </ul>
            </li>
            <li>
      Packets received that do not contain one of the above protocol IDs are
      silently discarded.</li>
          </ul>
        </li>
      </ul>
      <dl newline="false" spacing="normal" indent="3">
        <dt/>
        <dd>
      DATA PAYLOAD is encoded as per the protocol ID.</dd>
      </dl>-->
    </section>
    <section anchor="sect-3" numbered="true" toc="default">
      <name>Acknowledgements</name>
      <t>
   This memo is a result of comprehensive discussions by the Broadband Forum's
   Wireline Wireless Convergence Work Area.  The authors would also like to
   thank <contact fullname="Joel Halpern"/> and <contact fullname="Dirk Von
   Hugo"/> for their detailed review of this document.</t>
    </section>
    <section anchor="sect-4" numbered="true" toc="default">
      <name>Security Considerations</name>
      <t>
   5G NAS procedures used for session life cycle maintenance employ ciphering
   and integrity protection <xref target="TS23502" format="default"/>. They
   can be considered to be a more secure session establishment discipline than
   existing RFC 2516 procedures, at least against on path attackers.  The
   design of the 5WE encapsulation will not circumvent existing anti-spoofing
   and other security procedures in deployed equipment.  The existing access
   equipment will be able to identify fields that they normally process and
   policed as per existing RFC 2516 traffic.</t>
      <t>
   Therefore, the security of a fixed access network using 5WE will be
   equivalent or superior to current practice.</t>
      <t>
   5WE encapsulated traffic is used on what the 5GC considers to be
   trusted non-3GPP interfaces, therefore is not ciphered. 5WE is not
   suitable for use over an untrusted non-3GPP interface.</t>
      <t>
   The security requirements of the 5G system are documented in
   <xref target="TS33501" format="default"/></t>
    </section>
    <section anchor="sect-5" numbered="true" toc="default">
      <name>IANA Considerations</name>
      <t>
   IANA is requested to create a registry on the Point-to-Point (PPP)
   Protocol Field Assignments IANA Web page as follows:</t>

<dl>

<dt>Registry Name:
</dt>
<dd>PPP Over Ethernet Versions
</dd>

<dt>Registration Procedure:
</dt>
<dd>Specification Required
</dd>

<dt>References:
</dt>
<dd><xref target="RFC2516"/> [this document]
</dd>

</dl>


<table anchor="iana_table">  <!-- Assign an anchor -->
  <name>PPP Over Ethernet Versions</name>    <!-- Give the table a title -->
  <thead>
    <tr>
      <th>VER</th>    <!-- <th>:  headings -->
      <th>Description</th>
      <th>Reference</th>
    </tr>
  </thead>
  <tbody>          <!-- The rows -->
    <tr>
      <td>0</td>
      <td>reserved</td>
      <td>[this document]</td>
    </tr>
    <tr>
      <td>1</td>
      <td>PPPoE</td>
      <td><xref target="RFC2516"/></td>
    </tr>
    <tr>
      <td>2</td>
      <td>5G WWC User Plane Encapsulation</td>
      <td>[this document]</td>
    </tr>
    <tr>
      <td>3-15</td>      
      <td>unassigned</td>      
      <td>[this document]</td>
    </tr>
  </tbody>
</table>

      <t>
   IANA is requested to add [this document] as an additional reference for
   Ethertype 0x8864 in the Ethertypes table on the IANA "IEEE 802 Numbers" web
   page.(<eref target="https://www.iana.org/assignments/ieee-802-numbers/ieee-802-numbers.xhtml#ieee-802-numbers-1"/>)</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.2119.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2516.xml"/>

<reference anchor="TS38415">
     <front>
       <title>NG-RAN; PDU session user plane protocol</title>
       <author>
         <organization>3GPPP</organization>
       </author>
       <date month="March" year="2018" />
     </front>
<refcontent>Release 15</refcontent>
<refcontent>TS 38.415</refcontent>
</reference>

   <reference anchor="TS23502">
     <front>
       <title>Procedures for the 5G System (5GS)</title>
       <author>
         <organization>3GPPP</organization>
       </author>
       <date month="December" year="2016" />
     </front>
<refcontent>Release 15</refcontent>
<refcontent>TS 23.502</refcontent>
   </reference>

   <reference anchor="TS23316">
     <front>
       <title>Wireless and wireline convergence access support for the 5G System (5GS)</title>
       <author>
         <organization>3GPPP</organization>
       </author>
       <date month="December" year="2018" />
     </front>
<refcontent>Release 16</refcontent>
<refcontent>TS 23.316</refcontent>
   </reference>

</references>
      <references>
        <name>Informative References</name>

<!-- [rfced] [TR101] URL https://www.broadband-forum.org/download/TR-101_Issue-2.pdf -->

        <reference anchor="TR101">
          <front>
            <title>Migration to Ethernet Based Broadband Aggregation</title>
            <author>
	    <organization>Broadband Forum</organization>
	    </author>
            <date month="July" year="2011"/>
          </front>
<refcontent>TR-101 issue 2</refcontent>
        </reference>

<!-- [rfced] [TR178] URL https://www.broadband-forum.org/download/TR-178_Issue-2.pdf -->

        <reference anchor="TR178">
          <front>
            <title>Multi-service Broadband Network Architecture and Nodal Requirements</title>
            <author>
	      <organization>Broadband Forum</organization>
	    </author>
            <date month="September" year="2014"/>
          </front>
<refcontent>TR-178 issue 1</refcontent>

        </reference>

   <reference anchor="IEEE802">
     <front>
       <title>IEEE Standard for Local and Metropolitan Networks: Overview and
       Architecture</title>
       <author>
         <organization>IEEE</organization>
       </author>
       <date month="June" year="2014" />
     </front>
<refcontent>Std 802-2014</refcontent>
   </reference>

   <reference anchor="TS33501">
     <front>
       <title>Security architecture and procedures for 5G System</title>
       <author>
         <organization>3GPPP</organization>
       </author>
       <date month="December" year="2019" />
     </front>
<refcontent>Release 16</refcontent>
<refcontent>TS 33.501</refcontent>
   </reference>

</references>
    </references>
  </back>
</rfc>
