<?xml version="1.0" encoding="iso-8859-1" ?>
<?rfc toc="yes" ?>
<?rfc symrefs="yes" ?>
<?rfc sortrefs="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>

<rfc category="std" ipr="trust200902" docName="draft-sx-mpls-detnet-bounded-latency-01" consensus="true" submissionType="IETF">

<front>
        <title abbrev="MPLS Encapsulation for DLNA"> MPLS Encapsulation for Deterministic Latency Network Action
 </title>

  <author fullname="Xueyan Song" initials="X." surname="Song">
      <organization>ZTE Corp.</organization>
     <address>
       <postal>
         <street/>

         <!-- Reorder these if your country does things differently -->

         <city/>

         <region/>

         <code/>

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

       <email>song.xueyan2@zte.com.cn</email>

       <!-- uri and facsimile elements may also be added -->
     </address>
    </author>
	
  <author fullname="Quan Xiong" initials="Q." surname="Xiong">
      <organization>ZTE Corp.</organization>
     <address>
       <postal>
         <street/>

         <!-- Reorder these if your country does things differently -->

         <city/>

         <region/>

         <code/>

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

       <phone/>

       <email>xiong.quan@zte.com.cn</email>

       <!-- uri and facsimile elements may also be added -->
     </address>
    </author>
	
  <author fullname="Rakesh Gandhi" initials="R." surname="Gandhi">
      <organization>Cisco Systems, Inc.</organization>
     <address>
       <postal>
         <street/>

         <!-- Reorder these if your country does things differently -->

         <city/>

         <region/>

         <code/>

         <country>Canada</country>
       </postal>

       <phone/>

       <email>rgandhi@cisco.com</email>

       <!-- uri and facsimile elements may also be added -->
     </address>
    </author>
	
    <date month="Oct" day="16" year="2023"/>		

  
    <area>Routing</area>
    <workgroup>MPLS Working Group</workgroup>

    <keyword>Request for Comments</keyword>
    <keyword>RFC</keyword>
    <keyword>Internet Draft</keyword>
    <keyword>I-D</keyword>

    <abstract>
    <t>  This document specifies formats and principles for the MPLS header which contains the Deterministic Latency Network Action (DLNA) option, designed for use over a 
	DetNet network with MPLS data plane. It enables guaranteed latency support and makes scheduling decisions for time-sensitive service running on
	DetNet nodes that operate within a constrained network domain.</t>
    </abstract>
    
</front>
  
<middle>

  <section title="Introduction">
  
   <t> As specified in <xref target="RFC8655"/> and <xref target="RFC8938"/>, Deterministic Networking (DetNet) operates at the IP layer and delivers
   service with low data loss rates and bounded latency guarantee within a network domain. </t>
  
  <t> As defined in <xref target="RFC8964"/>, the DetNet MPLS data plane provides a foundation of building 
  blocks to enable PREOF (Packet Replication, Elimination and Ordering Functions (PREOF)) functions to DetNet service and forwarding sub-layer. 
  The DetNet service sub-layer includes a DetNet Control Word (d-CW), service label (S-Label), an aggregation label (A-Label) in special case of 
  S-Label used for aggregation. The DetNet forwarding sub-layer supports one or more forwarding labels (F-Labels) used to forward a DetNet flow 
  over MPLS domains. The DetNet forwarding sub-layer provides corresponding forwarding assurance with IETF existing functions using resource allocations and 
  explicit routes. But these functions may not be enough to provide the deterministic latency (including bounded latency, low packet loss and in-order 
  delivery) assurance. Because latency variation in one DetNet system results in the need for extra buffer space in the next-hop DetNet system(s), which
in turn increases the worst-case per-hop latency. So standard queuing and scheduling algorithms are required to compute and reserve the sufficient buffer 
space for DetNet nodes along the path of DetNet flows.</t> 
  
  <t> To support time-sensitive service with ultra-low loss rates and deterministic latency, it is required to apply feasible 
  scheduling mechanisms to specific applications for deterministic networking. As described in <xref target="RFC9320"/>, 
the end-to-end bounded latency is considered as the sum of non-queuing and queuing delay bounds along with the queuing mechanisms. The value for 
non-queuing delay bounds (which consist of packet output delay, link delay, frame preemption delay and processing delay) is relative with the physical
 capability of on-used networks and can be considered to be stable. The unstable latency delay bounds are mainly from queuing delay and regulation 
 delay. The regulation delay is mainly from regulation policy. To simplify the question this draft assumes there is no regulation policy. So the 
 question is left to address the selection for queuing mechanisms and queuing delay information encapsulation in data plane. </t> 
  <t> The queuing mechanisms, as mentioned in <xref target="RFC9320"/> and <xref target="RFC8655"/>, which include Time Aware Shaping IEEE802.1Qbv, 
 Asynchronous Traffic Shaping IEEE802.1Qcr, cyclic-scheduling queuing mechanism proposed in IEEE802.1Qch. There are also discussions on new queuing or scheduling mechanisms
 such as <xref target="I-D.peng-6man-deadline-option"/> and <xref target="I-D.dang-queuing-with-multiple-cyclic-buffers"/>. In terms of delay guarantee for different 
 applications, to select the right scheduling/queuing mechanism applied to a specific application is required. Based on the existing DetNet MPLS encapsulations and mechanisms <xref target="RFC8964"/>, 
 the draft defines the encoding format for Deterministic Latency Network Action (DLNA) option in MPLS data plane.</t>
  
  <t> MPLS Network Actions (MNA) are used to indicate actions for LSPs and/or MPLS packets and to transfer data needed for these actions.  
<xref target="I-D.ietf-mpls-mna-hdr"/> defines the MNA solution for carrying Network Actions with In-Stack Data and associated Ancillary Data (AD) (i.e., in the MPLS label stack).
<xref target="I-D.jags-mpls-ps-mna-hdr"/> defines the MNA solution for carrying Network Actions with Post-Stack Data and associated Ancillary Data (i.e., below the bottom of the MPLS label stack).
This draft describes MNA solutions for DLNA in DetNet.</t>
  
  </section>
  
  <section title="Conventions">
 
  <section 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 
	<xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all capitals, as shown here.</t>	
  </section>
  
  <section title="Terminology"> 
   <t> Refer to <xref target="RFC8655"/>, <xref target="RFC8964"/>, <xref target="I-D.ietf-mpls-mna-hdr"/> and <xref target="RFC9320"/> for the key 
   terms used in this document.</t>  
    <t> Deterministic Latency (DL):the bound of network latency and delay variation between two DetNet endpoints. It may includes parameters such as bounded latency, bounded
	delay variation, etc.  </t> 
    <t> Deterministic Latency Network Action (DLNA): used to indicate deterministic latency network action for MPLS data plane.</t> 
  </section>
  
  </section>

  <section title="DetNet DLNA Option">
  
	<section title="Queuing delay">  
	
     <t> <xref target="RFC8655"/> provides the architecture for deterministic networking (DetNet) which enables the service delivery of DetNet flows with extremely
	 low packet loss rates and deterministic latency. The forwarding sub-layer provides corresponding forwarding assurance but can not provide the deterministic latency 
	 (including bounded latency, low packet loss and in-order delivery). As described at <xref target="RFC9320"/>, the end-to-end bounded latency 
	 for one DetNet flow is the sum of delay bound of non-queuing and queuing processing latency. The delay bound for non-queuing processing may include output delay, 
	 link delay, frame preemption delay, and processing delay, the delay bound for queuing processing may include regulator delay, queuing delay. It is assumed that the 
	 delay of non-queuing processing is fixed or be ignorable, the delay of queuing processing is variable. To realize the guarantee of bounded latency service it is important 
	 to select right queuing methodology applied to specific applications and carry necessary queuing delay information for computation of end-to-end latency. </t>

	 </section>  
	
	<section title="DLNA Option">  
	
     <t> The DetNet data plane encapsulation in transport network with MPLS data plane is specified in <xref target="RFC8964"/>. <xref target="I-D.xiong-detnet-data-fields-edp"/> has 
	 proposed a commom DetNet data fields for enhanced DetNet data plane and defined a DLNA option to carry queuing-based metadata.This document provides 
	 additional encapsulation for the DLNA in MPLS data plane. </t>	
	 
	 <t> The DetNet routers in data plane perform MPLS forwarding functions to choose a feasible way with sufficient network resources for the incoming packets, 
	 and makes right selection on the queuing or scheduling mechanisms applied for specific DetNet flows to satisfy strict QoS criteria in the forwarding output port.
	 The information for the queuing or scheduling mechanisms are carried in DetNet DLNA header. Refer to <xref target="I-D.stein-srtsn"/>, considering the time latency 
	 information are processed per hop so the time latency informations (such as deadline time, cycle identify, etc.) of each DetNet node for DetNet flows are expected 
	 to be carried as a set of lists of LSEs in MPLS data plane. </t>
	 
	</section> 

  </section>  	

  <section title="MPLS Extension for DLNA">  

	<section title="DetNet MPLS Header for DLNA">  
	
<t> The DetNet MPLS header follows <xref target="RFC8964"/>. To support deterministic bounded latency service this draft introduces 2 options to carry DetNet DLNA data using MPLS MNA solutions.  
As shown in figure 1, the MNA label is inserted to indicate the recognition of MPLS Network Actions, the DetNet DLNA
can be carried in or after MPLS Label Stack.</t>
<t> Option 1, the DetNet IS-DLNA are inserted to MPLS In-Stack </t>
<t> Option 2, the DetNet PS-DLNA are located to MPLS Post-Stack </t>
<t> The format for MPLS DetNet IS-DLNA follows MNA (MPLS Network Action) encapsulation specified in <xref target="I-D.ietf-mpls-mna-hdr"/> and <xref target="I-D.ietf-mpls-mna-fwk"/>, which is comprised of
a set of Label Stack Entries (LSEs) that carry the DetNet DLNA Network Action Indicator and Ancillary Data to perform DLNA actions for MPLS packets. The format for MPLS DetNet PS-DLNA 
refers to <xref target="I-D.jags-mpls-ps-mna-hdr"/>. The detailed DetNet IS-DLNA and PS-DLNA encapsulation refers to the following section in the draft.</t>	

<figure anchor="Figure_1" title="DetNet MPLS Header">
<artwork align="center"> <![CDATA[		 
+---------------------------+
|       DetNet App-Flow     |
|       Payload Packet      |
+---------------------------+--\
|   DetNet PS-DLNA (OPT 2)  |   \
+---------------------------+   |
|     DetNet Control Word   |   | 
+---------------------------+   | 
|          S-Label          |   | DetNet   
+---------------------------+   | Data Plane
|  DetNet IS-DLNA (OPT 1)   |   | MPLS Encapsulation 
+---------------------------+   |    
|          MNA Label        |   |  
+---------------------------+   | 
|          F-Label(s)       |   /
+---------------------------+--/
|         Data-Link         |
+---------------------------+
|          Physical         |
+---------------------------+					
]]></artwork>
 </figure>	 

	</section>  
	
	<section title="MPLS In-Stack DLNA Network Action">  	

<figure anchor="Figure_2" title="bSP-Label Format">
<artwork align="left"> <![CDATA[
 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|     MNA Label = bSPL (TBA)            | TC  |S|      TTL      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork></figure>

   <t> MNA Label: </t>
     <t>A new bSPL value is to be assigned by IANA. It is used to indicate the presence of the MPLS Network Action Sub-Stack (NASS). The assignment for this field value refers to <xref target="I-D.ietf-mpls-mna-hdr"/>.</t>
	 
<t> The MPLS In-Stack Data encoding format for DLNA option is shown in the figure 3. The format provides DLNA Indicator to describe the set of the DLNA network action. Its detailed information is carried in the following Ancillary Data for the present DLNA network action. </t>

<figure anchor="Figure_3" title="MPLS In-Stack Format for DLNA">
<artwork align="left"> <![CDATA[
 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|IS-DLNA=TBA1 |                Flag           |S|  Data |  NAL  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|1|             AD LSE1                       |S|    AD LSE1    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|1|             AD LSE2                       |S|    AD LSE2    | 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                 ...  ...  ...                                 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|1|             AD LSEn                       |S|    AD LSEn    | 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

]]></artwork></figure>


   <t> IS-DLNA (7 bits): This is the first 7-bit value in the Label Field. The value is used to indicate DLNA network action with In-Stack Data and to be assigned by IANA as value TBA1. </t>
   
   <t> Flag (16 bits): identifies the type of queuing mechanisms used in the network. The queuing type format is defined in section 4.2 of <xref target="I-D.xiong-detnet-data-fields-edp"/>.</t>
   
   <t> S (1 bit) : The Bottom of Stack <xref target="RFC3032"/>. </t> 
   
   <t> Data (4 bits) : Reserved bits for future use. </t>
   
   <t> NAL (4 bits): The DLNA action length. It indicates the number of AD LSEs in the sub-stack. </t>   
   
   <t> The first bit in the Label field of the following AD LSEs MUST be set to "1". As specified in <xref target="I-D.ietf-mpls-mna-hdr"/> this is to prevent aliasing the label field with other bSPLs on the legacy routers.	</t>
   
   <t> Ancillary Data:</t>
   <t> The 19-bit Label field and 4-bit TC field and 8-bit TTL field (except S bit) in the additional LSEs are used to carry the Ancillary Data for specific DLNA latency information.</t>  
   <t> The Ancillary Data LSE1 is expected to carry the latency information DLNA option data defined in section 4.2.2 of <xref target="I-D.xiong-detnet-data-fields-edp"/> of the edge DetNet node. Depend on 
   specific queuing mechanisms used in the network the DLNA field length for the latency information for one DetNet node is variable. The specific queuing (including cycle, deadline, etc.) data encapsulation are described in 
   <xref target="I-D.xiong-detnet-data-fields-edp"/>. </t> 
   <t> The first AD LSE is expected to carry the latency information for edge DetNet node. When the length of latency information is more than 32bits less than 64bits, both AD 
   LSE1 and LSE2 are expected to carry the latency information for edge DetNet node. In this case, the DLNA option data of next hop is carried in AD LSE3 and LSE4. Along the path of DetNet flows the
   AD LSE(n-1) and LSEn carry the DLNA option data for the peer edge DetNet node.  With the DetNet flows are being forwarded in its output ports the corresponding node latency information carried 
   in DLNA options are processed hop by hop. </t> 

    </section> 
	<section title="MPLS Post-Stack DLNA Network Action"> 
   <t> There are some limitaions to use MPLS In-Stack Data for DLNA. For example, the total length for In-Stack Data LSEs seems small (no more than 16LSEs), but on the other hand the latency information of each nodes 
   (nodes number may be more than 16 in DetNet) along the path of DetNet flows needs be carried in the MPLS sub-stack. Besides, HBH scenario brings high packet overload and low encapsulation efficiency. This document does 
   not exclude MNA Post-Stack solution for carrying DLNA. </t>
   <t> The MPLS Post-Stack format for DLNA Network Action refers to <xref target="I-D.ietf-mpls-mna-hdr"/> and <xref target="I-D.jags-mpls-ps-mna-hdr"/> and shown in figure 4.</t>

<figure anchor="Figure_4" title="MPLS Post-Stack Format for DLNA">
<artwork align="left"> <![CDATA[
 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           Label=MNA bSPL              | TC  |S|    TTL        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| MNA Opcode  |  Ancillary Data (AD)    |1|IHS|S| Res |U| NASL=0|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
~                                                               ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            Label                            |1|               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<-+                                                        
|0 0 0 0|                  Sequence Number                      |d-CW
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<-+
|N N N N|Version| PS-MNA-LEN    | TYPE = POST-STACK-MNA         | TH
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|<-+
|PS-DLNA=TBA2 |      DLNA Ancillary Data      |R|R| PS-DLNA-LEN |  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  |
|                                                               |  D
|                                                               |  L
~             DLNA Option and Ancillary Data                    ~  A
|                                                               |  |
|                                                               |  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<-+

]]></artwork></figure>
   <t> As specified at <xref target="I-D.ietf-mpls-mna-hdr"/>, The header for In-Stack Network Action encodes: </t>   
   <t> P (1 Bit) : This document sets the value to 1 to identify the presence of Post-Stack Network Action.</t>   
   <t> IHS (2 Bit) : Indicates the combined scope of the In-Stack and the Post-Stack Network Actions. </t>
   <t> U (1 Bit) : Indicates the combined Unknown Action Handling of the In-Stack and the Post-Stack Network Actions.</t>  

   <t> As specified at <xref target="I-D.jags-mpls-ps-mna-hdr"/>, The header for Post-Stack Network Action encodes: </t> 
   <t> Sequence Number: The format of DetNet Control Word (d-CW) refers to <xref target="RFC8964"/>.</t> 
   <t> NNNN (4 bits): This first nibble identifies the start of the Post-Stack Network Actions. A new value can be assigned 
       by IANA. Generic Associated Channel (0001b) can be used instead. The assignment for this field value is out of the scope of this draft.</t> 
   <t> Version (4 bits): This is Post-Stack MNA version.</t> 
   <t> PS-MNA-LEN (8 bits): Post-Stack MNA Total Length in words. This excludes the Post-Stack Top header.</t> 
   <t> TYPE (16 bits): Type is set to POST-STACK-MNA. In case of DetNet MPLS, this is DLNA Type.</t> 
   <t> PS-DLNA (7 bits): Post-Stack Network Action Opcode. The value is used to indicate DLNA network action with Post-Stack Data and to be assigned by IANA as value TBA2.</t> 
   <t> DLNA Ancillary Data (16 bits): Post-Stack Ancillary Data associated with the DLNA.</t> 
   <t> R (2 bits): Reserved bits.</t>
   <t> PS-DLNA-LEN (7 bits): Post-Stack DLNA Network Action Length. The number of LSEs of the following Ancillary Data.</t>    
   
   <t> The MPLS DLNA Network Action encapsulation with Post-Stack Data refers to the latest MPLS WG discussions and follows the encoding principles of the MNA Post-Stack Data speicified at MPLS WG.</t>	
	</section> 
 
</section>   
  
<section title="IANA Considerations">
<t> This document requests two new IANA-managed code-points for DetNet application processing. IANA maintains the "In-Stack MNA Opcode" registry when created from IANA request in <xref target="I-D.ietf-mpls-mna-hdr"/>. 
IANA is requested to allocate a value for In-Stack Network Action Opcode for DLNA application from this registry:</t>

<texttable title="In-Stack DLNA Network Action Opcode" anchor="IS-DLNA">
      <ttcol align='left'>Value</ttcol>
      <ttcol align='left'>Description</ttcol>
      <ttcol align='left'>Reference</ttcol>
      <c>TBA1</c>
      <c>IS-DLNA</c>
      <c>this document</c>
</texttable>

<t> IANA maintains the "Post-Stack MNA Opcode" registry when created from IANA request in <xref target="I-D.jags-mpls-ps-mna-hdr"/>. 
IANA is requested to allocate a value for Post-Stack Network Action Opcode for DLNA application from this registry:</t>
<texttable title="Post-Stack DLNA Network Action Opcode" anchor="PS-DLNA">
      <ttcol align='left'>Value</ttcol>
      <ttcol align='left'>Description</ttcol>
      <ttcol align='left'>Reference</ttcol>
      <c>TBA2</c>
      <c>PS-DLNA</c>
      <c>this document</c>
</texttable>

</section>

  
<section title="Security Considerations">
<t> Security considerations for DetNet are covered in the DetNet Architecture RFC8655 and DetNet Security Considerations 
<xref target="RFC9055"/>. MPLS security considerations are covered in <xref target="RFC8964"/>, <xref target="RFC3031"/>, <xref target="RFC3032"/>. 
These security considerations also apply to this document. The MNA security considerations speicified at <xref target="I-D.ietf-mpls-mna-hdr"/>
and <xref target="I-D.jags-mpls-ps-mna-hdr"/> are also applicable to the procedures defined in this document.</t>
</section>

<section title="Acknowledgements">
<t> The authors would like to acknowledge Shaofu Peng for his thorough review and very helpful comments. </t>
</section>  
  
</middle>
  
<back>
    <references title="Normative References">
		<?rfc include="reference.RFC.2119"?>
		<?rfc include="reference.RFC.8174"?>
		<?rfc include="reference.RFC.8964"?>
	    <?rfc include='reference.I-D.ietf-mpls-mna-hdr'?>
		<?rfc include='reference.I-D.jags-mpls-ps-mna-hdr'?>		
    </references>
	
    <references title="Informative References">
		<?rfc include="reference.RFC.3031"?>
		<?rfc include="reference.RFC.3032"?>
		<?rfc include="reference.RFC.8655"?>
		<?rfc include="reference.RFC.8938"?>
		<?rfc include="reference.RFC.9055"?>	
		<?rfc include="reference.RFC.9320"?>
	    <?rfc include='reference.I-D.ietf-mpls-mna-fwk'?>
	    <?rfc include='reference.I-D.dang-queuing-with-multiple-cyclic-buffers'?>	
	    <?rfc include='reference.I-D.peng-6man-deadline-option'?>	
	    <?rfc include='reference.I-D.stein-srtsn'?>		
		<?rfc include='reference.I-D.xiong-detnet-data-fields-edp'?>

    </references>	
</back>

</rfc>

