<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
  <!ENTITY I-D.ietf-mpls-mna-hdr SYSTEM 
    "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-mpls-mna-hdr.xml">
  <!ENTITY RFC2119 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
  <!ENTITY RFC3032 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.3032.xml">
  <!ENTITY RFC4385 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.4385.xml">
  <!ENTITY RFC5462 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.5462.xml">
  <!ENTITY RFC5586 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.5586.xml">
  <!ENTITY RFC6291 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6291.xml">
  <!ENTITY RFC8174 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml">
  <!ENTITY RFC9017 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.9017.xml">
  <!ENTITY RFC9613 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.9613.xml">
  <!ENTITY RFC9789 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.9789.xml">
  <!ENTITY RFC9790 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.9790.xml">
  <!ENTITY RFC9791 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.9791.xml">
]>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" submissionType="IETF" docName="draft-ietf-mpls-mna-ps-hdr-08" category="std" ipr="trust200902" obsoletes="" updates="" xml:lang="en" sortRefs="false" symRefs="true" tocInclude="true" version="3" consensus="true">
  <!-- xml2rfc v2v3 conversion 3.12.0 -->
  <!-- Generated by id2xml 1.5.0 on 2020-03-06T17:47:05Z -->
    <front>
    <title abbrev="Post-Stack MNA Specification">Post-Stack MPLS Network Action (MNA) Header Specification
    </title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-mpls-mna-ps-hdr-08"/>
    <author fullname="Jaganbabu Rajamanickam" initials="J." role="editor" surname="Rajamanickam">
      <organization>Cisco Systems, Inc.</organization>
      <address>
        <postal>
          <street>Canada</street>
        </postal>
        <email>jrajaman@cisco.com</email>
      </address>
    </author>

    <author fullname="Rakesh Gandhi" initials="R." role="editor" surname="Gandhi">
      <organization>Cisco Systems, Inc.</organization>
      <address>
        <postal>
          <street>Canada</street>
        </postal>
        <email>rgandhi@cisco.com</email>
      </address>
    </author>

    <author fullname="Royi Zigler" initials="R." surname="Zigler">
      <organization>Broadcom</organization>
      <address>
        <email>royi.zigler@broadcom.com</email>
      </address>
    </author>

    <author fullname="Jie Dong" initials="J." surname="Dong">
      <organization>Huawei Technologies</organization>
      <address>
        <postal>
          <street/>
          <city>Beijing</city>
          <country>China</country>
        </postal>
        <email>jie.dong@huawei.com</email>
      </address>
    </author>
    <author fullname="Jisu Bhattacharya" initials="J." surname="Bhattacharya">
      <organization>Cisco Systems, Inc.</organization>
      <address>
        <postal>
          <street>Canada</street>
        </postal>
        <email>jisu@cisco.com</email>
      </address>
    </author>   
    <date year="2026"/>
    <workgroup>MPLS Working Group</workgroup>
    <abstract>
      <t>
This document defines the Post-Stack MPLS Network Action (MNA) Header Specification for carrying Network Actions encodings and Ancillary Data after
the MPLS label stack, based on the In-Stack MNA Specification defined in "MPLS Network Action (MNA) Sub-Stack Specification."  MPLS Network Actions can be used to influence packet forwarding decisions, carry additional Operations, Administration, and Maintenance information in the MPLS packet, or perform user-defined operations. 
This document follows the framework specified in RFC 9789.
      </t>

    </abstract>
    </front>
    <middle>
      <section anchor="sect-1" numbered="true" toc="default">
    <name>Introduction</name>

<t>
 <xref target="RFC3032" format="default"/> defines the
      encoding of the MPLS label stack, the basic structure used
      to define a forwarding path. There are applications that 
      require MPLS packets to perform special network actions and
      carry optional Ancillary Data (AD) that can affect the
      packet forwarding decision or trigger Operations, Administration, and Maintenance (OAM) 
      logging, for example as described in <xref target="RFC9791" format="default"/>.  
      Ancillary Data can be used to carry additional
      information, for network slice purpose, as an example <xref target="RFC9791" format="default"/>.
</t>

<t>
In some cases, more AD may be required
than can be carried in the MPLS header, so these kinds of network
actions and their AD are encoded after the Bottom of Stack (BOS).
This network action with AD is called the Post-Stack (PS) MNA.
</t>

<t>
This document defines the Post-Stack MPLS Network Action (MNA) header specification for carrying Network Actions encodings and Ancillary Data after
the MPLS label stack.
The specification is based on the In-Stack MNA Specification defined in <xref target="I-D.ietf-mpls-mna-hdr" format="default"/>. 
The requirements for Post-Stack network action and Post-Stack data (PSD) are described in  <xref target="RFC9613" format="default"/>.  
This document follows the framework specified in <xref target="RFC9789" format="default"/>.
</t>

    </section>
    <section anchor="sect-2" numbered="true" toc="default">
      <name>Conventions Used in This Document</name>
      <section anchor="sect-2.1" numbered="true" toc="default">
        <name>Requirements Language</name>
        <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" format="default"/> <xref
      target="RFC8174" format="default"/> when, and only when,
      they appear in all capitals, as shown here.
    </t>
      </section>
    <section anchor="sect-2.2" numbered="true" toc="default">
      <name>Abbreviations</name>

      <t>
    The terminology defined in <xref
    target="RFC9789" format="default"/> and <xref
    target="RFC9613" format="default"/> are
    used in this document.
      </t> 

      <table anchor="abbreviations">
    <name>Abbreviations</name>
    <thead>
      <tr>
        <th align='left'>Abbreviation</th>
        <th align='left'>Meaning</th>
        <th align='left'>Reference</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>AD</td>
        <td>Ancillary Data</td>
        <td><xref target="RFC9613"/></td>
      </tr>
      <tr>
        <td>bSPL</td>
        <td>Base Special Purpose Label</td>
        <td><xref target="RFC9017"/></td>
      </tr>
      <tr>
        <td>BOS</td>
        <td>Bottom Of Stack</td>
        <td><xref target="RFC9789"/></td>
      </tr>
      <tr>
        <td>HBH</td>
        <td>Hop-By-Hop Scope</td>
        <td><xref target="RFC9789"/></td>
      </tr>
      <tr>
        <td>I2E</td>
        <td>Ingress-To-Egress Scope</td>
        <td><xref target="RFC9789"/></td>
      </tr>
      <tr>
        <td>IHS</td>
        <td>I2E, HBH, or Select Scope</td>
        <td><xref target="I-D.ietf-mpls-mna-hdr"/></td>
      </tr>
      <tr>
        <td>ISD</td>
        <td>In-Stack Data</td>
        <td><xref target="RFC9613"/></td>
      </tr>
      <tr>
        <td>LSE</td>
        <td>Label Stack Entry</td>
        <td><xref target="RFC9789"/></td>
      </tr>
      <tr>
        <td>MNA</td>
        <td>MPLS Network Actions</td>
        <td><xref target="RFC9789"/></td>
      </tr>
      <tr>
        <td>NAI</td>
        <td>Network Action Indicator</td>
        <td><xref target="RFC9613"/></td>
      </tr>
      <tr>
        <td>NAL</td>
        <td>Network Action Length</td>
        <td><xref target="I-D.ietf-mpls-mna-hdr"/></td>
      </tr>
      <tr>
        <td>NAS</td>
        <td>Network Action Sub-Stack</td>
        <td><xref target="RFC9789"/></td>
      </tr>
      <tr>
        <td>NASL</td>
        <td>Network Action Sub-Stack Length</td>
        <td><xref target="I-D.ietf-mpls-mna-hdr"/></td>
      </tr>
      <tr>
        <td>OAM</td>
        <td>Operations, Administration, and Maintenance </td>
        <td><xref target="RFC6291"/></td>
      </tr>

      <tr>
        <td>P bit</td>
        <td>Post-Stack MPLS Header Presence Bit</td>
        <td>This document</td>
      </tr>
      <tr>
        <td>PS</td>
        <td>Post-Stack</td>
        <td>This document</td>
      </tr>

      <tr>
        <td>PSD</td>
        <td>Post-Stack Data </td>
        <td>
          <xref target="RFC9613"/> and
          <xref target="RFC9789"/>
        </td>
      </tr>

       <tr>
        <td>PSMH</td>
        <td>Post-Stack MPLS Header</td>
        <td>This document</td>
      </tr>

      <tr>
        <td>TC</td>
        <td>Traffic Class</td>
        <td><xref target="RFC5462"/></td>
      </tr>
      <tr>
        <td>TTL</td>
        <td>Time To Live</td>
        <td><xref target="RFC3032"/></td>
      </tr>
    </tbody>
      </table>
    </section>
  </section>

  <section anchor="sect-3" numbered="true" toc="default">
    <name>Overview</name>

    <t>
      Two main parts are specified to support post-stack MNA:
    </t>
    <ul>
       <li>
          The Post-Stack MPLS header Presence Bit Carried in In-Stack MNA Sub-Stack.
       </li>
       <li>
          The Post-Stack MPLS header Encoding that includes Post-Stack MPLS Header Type and Post-Stack Network Actions.
       </li>
    </ul>
    
    <section>
      <name>Post-Stack MPLS Header Presence Bit Carried in In-Stack MNA Sub-Stack</name>
  
      <t>
   Bit 20 in LSE Format B carried in the In-Stack Network
   Action Sub-Stack (NAS) described in <xref target="I-D.ietf-mpls-mna-hdr" format="default"/> is 
   defined as the P bit in this document to indicate the presence of
   the Post-Stack MPLS Header in the packet after the BOS.
      </t>

      <figure anchor="MNA-PSMH-Presence-Bit">
        <name>Post-Stack MPLS Header Presence Bit Carried in In-Stack MNA Sub-Stack</name>
    <artwork name="" type="" align="left" alt=""><![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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  Opcode     |  13-bit Data (Format B) |P|IHS|S|  NASL |U| NAL |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>
      </figure>

     <t>
     The following flags are carried in an In-Stack NAS as defined in <xref target="I-D.ietf-mpls-mna-hdr" format="default"/> and shown in Figure 1. These flags are also applicable to Post-Stack MNA:
     </t>

      <ul>
          <li> 
          IHS (2 Bit): The In-Stack NAS for each scope with the P bit set has a corresponding Post-Stack MPLS Header.
          </li>

          <li> 
          U (1 Bit): Indicates the combined Unknown Action Handling of the In-Stack and the Post-Stack Network Actions.
          </li>
      </ul>

    </section>

    <section>
      <name>Post-Stack MPLS Header Encoding</name>
      
      <t>
      The Post-Stack MPLS Header (PSMH) for MNA is encoded after the LSE for which Bottom of the Stack (BOS) bit is set, either immediately after the BOS (i.e., start offset of 0) or after any other Post-Stack headers that follow the BOS (i.e., start offset of non-zero), as described in Section 4.
      </t>

      <t>
      The PSMH for MNA carries one or more Post-Stack Network Actions and their Ancillary Data.
      </t>
      <t>
        The PSMH for MNA consists of two main parts:
      </t>
      <ul>
          <li>
             Post-Stack MPLS Header Type 
          </li>
          <li>
             Post-Stack Network Action Encoding
          </li>
      </ul>

      <section>
          <name>Post-Stack MPLS Header Type</name>

       <t> The Post-Stack MPLS Header type is the top-header for all the Post-Stack Network Actions that are encoded in the PSMH for each scope as shown in Figure 2.
       </t>

      <figure anchor="Post-Stack-Header">
        <name>Post-Stack MPLS Header Type</name>
    <artwork name="" type="" align="left" alt=""><![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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
|  PFN  |Reserve|   PSMH-Len    |  Type = MNA-Post-Stack-Header |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
]]></artwork>
      </figure>

      <ul>

        <li> PFN (4 bits): The Post-Stack First Nibble (PFN) <xref target="RFC9790" format="default"/> identifies the start of the PSMH. 
        The PFN is set to 0x0 for the Post-Stack MPLS header.
        </li>

        <li> Reserve (4 bits): Reserved bits. 
        </li>

        <li> PSMH-Len (8 bits): The PSMH total length in 4-octet units that includes Post-Stack Network Actions. The length excludes the 4-byte PSMH type header.
        </li>

        <li> Type (16 bits): Type is set to 1 to indicate Post-Stack MPLS Header Type for MNA. See Section 8.2. 
        Note that other types of Post-Stack headers (besides MNA) can be defined in the future and is outside the scope of this document.
        </li>

      </ul>

       </section>

      <section>
          <name>Post-Stack Network Action Encoding</name>

      <t>
   The format shown in Figure 3, encodes a single Post-Stack Network
   Action.  By repeating this format, multiple Post-Stack Network
   Actions and their corresponding Ancillary Data can be encoded.
      </t>

      <figure anchor="Post-Stack-Network-Action-Encoding">
        <name>Post-Stack Network Action Encoding</name>
    <artwork name="" type="" align="left" alt=""><![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 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  
|  MNA-PS-OP  |R|R|  PS-NAL     |       Post-Stack Data         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
~                    Continued Post-Stack Data                  ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>
      </figure>
      <ul>
         <li> MNA-PS-OP (7 bits): Post-Stack Network Action Opcode. 
          See Section 8.3.
         </li>

         <li> R (2 bits): Reserved bits.
         </li>

         <li> PS-NAL (7 bits): Post-Stack Network Action Length in 4-octet units. This excludes the first 4-octets starting with MNA-PS-OP.
         </li>

         <li> Post-Stack Data (16 bits): Post-Stack Data associated with the Post-Stack Network Action.
         </li>

         <li> Continued Post-Stack Data: Further Post-Stack Data associated with
          the Post-Stack Network Action, as indicated by the value of
          PS-NAL. The padding rules for Post-Stack Data that does not fill
          a multiple of 32-bit units are described in the document that
          defines the NA indicated by the MNA-PS-OP value.
         </li> 

      </ul>
  
      </section>

      <section>
          <name>Encoding of an MPLS Packet with a Post-Stack Header for MNA</name>

      <figure anchor="MPLS-Packet-With-Post-Stack-Header">
        <name>Encoding of an MPLS Packet with a Post-Stack MPLS Header for MNA</name>
    <artwork name="" type="" align="left" alt=""><![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
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -
M |           MNA Label                   | TC  |0|    TTL        | N
P +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ A
L |Opcode=2=NoOp|    0                    |1|IHS|0| NASL=0|U|NAL=0| S
S +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -
H ~                                             |0|               ~
D +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
R |                                             |1|               |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -
P |  0x0  |Reserve|   PSMH-Len    | Type = MNA-Post-Stack-Header  |PSMHT
S +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -
M |  MNA-PS-OP  |R|R| PS-NAL      |       Post-Stack Data         | |
H +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+PSNA
| ~                   Continued Post-Stack Data                   ~ |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -
  ~                                                               ~
  ~                           Payload                             ~
  ~                                                               ~
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>
      </figure>

    <t> 
        An example of an MPLS packet encoding that carries an MPLS header and a Post-Stack MPLS header for the MNA Post-Stack Header type is shown in Figure 4. 
        The encoding contains the following fields.
    </t>

       <ul>
         <li> MPLS HDR: MPLS Header containing an MPLS label stack and MNA Sub-Stacks (NAS). 
         </li>

         <li> NAS: Network Action Sub-Stack. It has the P bit set to 1 to indicate the presence of a Post-Stack MPLS header for the MNA Post-Stack Header type in the packet. An MPLS packet may carry more than one NAS, not shown in Figure 4.
         </li>

         <li> PSMH: Post-Stack MPLS Header. This includes the Post-Stack MPLS header type (PSMHT) and Post-Stack network actions (PSNA). 
         </li>

         <li> PSMHT: Post-Stack MPLS Header Type. This includes the type of Post-Stack MPLS header, version, and Post-Stack MPLS Header length.
     In this example, the type is set to the MNA Post-Stack Header.
         </li>

         <li> PSNA: Post-Stack Network Actions. Applicable only when the type is set to the MNA Post-Stack Header. An MPLS packet may have more than one Post-Stack Network Action, not shown in Figure 4.
         </li>

      </ul>

      </section>

      </section>

    </section>

    <section anchor="SPL-OPCODES">
       <name>In-Stack Network Action Special Opcodes </name>

      <section anchor="SPL-OPCODES-PSD-OFFSET">
        <name>In-Stack Network Action Opcode for PSMH Start Offset for MNA</name>
      
      <t>
      Opcode: TBA2
      </t>

      <t>
      Purpose: This opcode carries the start offset of the PSMH for MNA from the BOS.
      </t>

      <t>
      LSE Format: B or C (defined in <xref target="I-D.ietf-mpls-mna-hdr" format="default"/>)
      </t>

      <t>
      Data: The data value of the LSE contains the offset from the
      MPLS BOS in 4-octet units.  
      </t>

      <t>
      Scope: This opcode can be used with any scope.
      </t>

      <t>
      This opcode allows the existing Post-Stack Headers (PSHs) <xref target="RFC9790"/>, e.g., the Generic
      Control Word (0000b) <xref target="RFC4385" format="default"/>
      and G-ACh (0001b) <xref target="RFC5586"/>, and any other PSH defined in the future to be placed
      immediately after the BOS. 
      </t>

      <t>
      If in the given NAS, the P bit is set and the PSMH Start Offset opcode is absent,
      the PSMH is encoded immediately after the MPLS BOS. A data value
      of 1 indicates that the PSMH starts at 4-octets after the BOS.
      </t>

        </section>

      <section anchor="SPL-OPCODES-PSD-OFFSET-DEPTH">
        <name>In-Stack Network Action Opcode for Offset of End of Post-Stack MPLS Header for MNA</name>
      
        <t>
      Opcode: TBA3
        </t>
        <t>
      Purpose: This opcode carries the offset of the end of the Post-Stack MPLS Header for MNA from the BOS.
        </t>
        <t>
      LSE Format: B or C (defined in <xref target="I-D.ietf-mpls-mna-hdr" format="default"/>).
        </t>
        <t>
      Data: The data value of the LSE contains the offset from the
      MPLS BOS in 4-octet units. A data value
      of 5 indicates that the Post-Stack MPLS Header ends at 20-octets after the BOS.
        </t>
        <t>
      Scope: This opcode can be used with any scope.
        </t>

    <t>
    The offset of the end of the PSMH for MNA and the offset of the start of the PSMH for MNA allow the NAS parser implementation to know the size of the
    PSMH without having to parse the PSMH (e.g., for Readable Label Depth with Post-Stack MPLS Header checks).
    </t>

        </section>

    </section>

  <section anchor="sect-J12.12a" numbered="true" toc="default">
    <name>Procedure</name>

      <section anchor="Processing-P">
       <name>Processing Rules for P Bit </name>

<t>
The P bit MUST be set to 1 in an In-Stack Network Action Sub-Stack when the corresponding Post-Stack MPLS Header is added in the packet.
</t>

<t>
By default, the PSMH starts immediately after the BOS.
The offset of the PSMH that does not start immediately after the BOS is indicated using the PSMH Start Offset Opcode TBA2.
</t>

<t>
The P bit MUST be set to 1 when the network action with opcode TBA2 is added to the In-Stack Network Action Sub-Stack. The node that recognizes the network action with Opcode TBA2 MUST process the packet according to the U flag if the P bit is not set.
</t>

<t>
The P bit MUST be set to 1 when the network action with opcode TBA3 is added to the In-Stack Network Action Sub-Stack. The node that recognizes the network action with Opcode TBA3 MUST process the packet according to the U flag if the P bit is not set.
</t>

<t>
The node that supports the P bit, processes the Post-Stack Network Actions in the Post-Stack MPLS Header as defined in this document. Conversely, the node that does not support the P bit skips processing the Post-Stack MPLS Header altogether.
</t>
      </section>

      <section anchor="Processing-Order">
       <name>Network Action Processing Order </name>

<t>
    The Post-Stack Network Actions are processed in the same order they are encoded after the BOS. 
    By default, they are processed after the In-Stack Network Actions in the Network Action Sub-Stack. 
    However, Post-Stack Network Action Opcodes for applications (such as IOAM as described in <xref target="RFC9791" format="default"/>) 
    can be added to the In-Stack Network Action Sub-Stack to process Post-Stack Network Actions in a certain order with respect to the Opcodes in the In-Stack Network Action Sub-Stack.
</t>

     </section>

  <section anchor="Signaling" numbered="true" toc="default">
    <name>Node Capability Signaling</name>
    <t>
The ingress node that is adding a Post-Stack MPLS Header MUST ensure that the egress node is capable of Post-Stack MNA processing and can remove the PSMH from the packet.
    </t>

    <ul>
    <li>
     Each participating node MUST signal the Post-Stack network actions that it supports to the encapsulating node.
    </li>
    <li>
     Each participating node MUST signal its "Readable Label Depth including Post-Stack MPLS Header" that can be encoded by the encapsulating node.
    Note that the "Readable Label Depth" defined in <xref target="I-D.ietf-mpls-mna-hdr" format="default"/> is extended
    in this document to include the length of the Post-Stack MPLS Header.
    </li>
    </ul>

    <t>
    The above capability signaling will be added in the appropriate protocols. Signaling details are outside the scope of this document.
    </t>

  </section>
  </section>

  <section anchor="sect-J12.1a" numbered="true" toc="default">
    <name>Processing the Network Action Sub-Stack and Post-Stack Header </name>

    <t>
    The processing of the Network Action Sub-Stack described in <xref target="I-D.ietf-mpls-mna-hdr" format="default"/>  are also applicable to the procedures defined in this document.
    This section defines the specific responsibilities for nodes along an MPLS path for processing a Post-Stack MPLS Header.
    </t>

    <section>
      <name> Encapsulating Node Responsibilities </name>

      <t>
    The encapsulating node MAY add a Post-Stack MPLS Header to the packet. The location of the header MAY be in accordance with local policy. The location may also be subject to any placement restrictions inherent in the implementation.
      </t>

      <t>
    The encapsulating node MUST NOT add a Post-Stack MPLS Header to the packet if the decapsulating node does not support Post-Stack MPLS Header.
      </t>


     <t>
    The encapsulating node MUST add the Post-Stack MPLS Header in the same order as the corresponding In-Stack NAS in the MPLS header.
    </t>

    </section>

    <section>
      <name> Transit Node Responsibilities </name>

      <t>
    A transit node MAY modify the Ancillary Data in the Post-Stack MPLS Header.
      </t>

      <t>
    A transit node MUST respect the Unknown Action Handling flag encoded in the corresponding NAS when processing the PSMH.
      </t>

      <t>
    A transit node that removes an NAS with the Select scope, MUST also remove the associated PSMH. 
      </t>

    </section>

    <section>
      <name> Penultimate Node Responsibilities </name>
      <t>
     In addition to the transit node responsibilities above, the penultimate node MUST NOT remove an HBH or I2E NAS <xref target="I-D.ietf-mpls-mna-hdr" format="default"/> and the associated PSMH when the NAS is exposed after removing the forwarding (transport) label. This allows the egress node to receive and process the NAS and the associated PSMH.
      </t>
    </section>

    <section>
      <name> Decapsulating Node Responsibilities </name>
      <t>
    The decapsulating node MUST remove the Post-Stack MPLS Headers from the packet when it removes the NASes.
      </t>

    </section>

  </section>

  <section anchor="sect-J11" numbered="true" toc="default">
    <name>Security Considerations</name>

    <t>
    The security considerations in <xref target="RFC3032" format="default"/>, <xref target="RFC9789" format="default"/>, 
    and <xref target="I-D.ietf-mpls-mna-hdr" format="default"/> also apply to this document.
    </t>

    <t>
    System designers must be aware that information included in Post-Stack Ancillary
    Data may be transmitted "in the clear."  Network actions that require
    the exchange of sensitive data, must be defined in such a way that 
    the data is encrypted in transit.
    </t>    

  </section>

  <section anchor="sect-J13" numbered="true" toc="default">
    <name>IANA Considerations</name>

    <section anchor="sect-J13.6" numbered="true" toc="default">
      <name>First Nibble for Post-Stack MPLS Header</name>
      <t>
    This document requests that IANA update the "Post-Stack First Nibble" registry created by 
    <xref target="RFC9790" format="default"/> to include the PFN value 0x0 for the Post-Stack MPLS Header. 
    This should be added as a new entry in the registry.
      </t> 

      <table anchor="iana-nafif-tbl-5" align="center">
        <name>Post-Stack First Nibble Registry</name>
        <thead>
          <tr>
            <th align="left"> Protocol</th>
            <th align="left"> Value</th>
            <th align="left"> Description</th>
            <th align="left"> Reference</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left"> MPLS </td>
            <td align="left"> 0x0 </td>
            <td align="left"> Post-Stack MPLS Header</td>
            <td align="left"> This document</td>
          </tr>
        </tbody>
      </table>

    </section>

    <section anchor="IANATopHdrType" numbered="true" toc="default">
      <name>Post-Stack MPLS Header Types Registry</name>

      <t>
    This document requests that IANA create a new registry with
    the name "Post-Stack MPLS Header Types" as follows. 
    The registration procedure for this registry is "IETF Review", "Experimental Use" and "Private Use". 
    The fields are "Type" (integer), "Description" (string), and "Reference" (string).  
     </t>

      <t>
    The Registration Procedure(s) for this registry are:
      </t>
      <table anchor="iana-top-hdr-type-tbl" align="center">
        <name> Post-Stack MPLS Header Types Registry </name>
        <thead>
          <tr>
            <th align="left">Type</th>
            <th align="center">Description</th>
            <th align="left">Reference</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">0</td>
            <td align="left">Reserved</td>
            <td align="left">This document</td>
          </tr>
          <tr>
            <td align="left">1-65520</td>
            <td align="left">IETF Review</td>
            <td align="left">This document</td>
          </tr>
          <tr>
            <td align="left">65521-65524</td>
            <td align="left">Experimental Use</td>
            <td align="left">This document</td>
          </tr>
          <tr>
            <td align="left">65525-65535</td>
            <td align="left">Private Use</td>
            <td align="left">This document</td>
          </tr>
        </tbody>
      </table>


      <t>
    The initial assignments for this registry are:
      </t>
      <table anchor="iana-top-hdr-type-tbl-assign" align="center">
        <name>Post-Stack MPLS Header Types</name>
        <thead>
          <tr>
            <th align="left">Type</th>
            <th align="center">Description</th>
            <th align="left">Reference</th>
          </tr>
        </thead>
        <tbody>

          <tr>
            <td align="left">0</td>
            <td align="left">Reserved</td>
            <td align="left">This document</td>
          </tr>
          <tr>
            <td align="left">1</td>
            <td align="left">Post-Stack MPLS Header Type For MNA</td>
            <td align="left">This document</td>
          </tr>

        </tbody>
      </table>

    </section>
        <section anchor="IANAFlags" numbered="true" toc="default">
      <name>Network Action Opcodes </name>

      <t>
      IANA maintains the "Network Action Opcodes" registry that will be created
      by [I-D.ietf-mpls-mna-hdr]. IANA is requested to perform two actions
      for this registry:
      </t>

      <t>
       1. Assign two code points for network actions defined in this document.
      </t>
 
      <t>
       2. Add a new column to indicate whether network action opcodes may be used In-Stack or Post-Stack.
      </t>

      <t>
      The resulting entries in the registry are as follows:
      </t>

      <table anchor="iana-nafif-tbl-2" align="center">
        <name>Network Action Opcodes</name>
        <thead>
          <tr>
            <th align="left"> Opcode</th>
            <th align="left"> Description</th>
            <th align="left"> In-Stack Only, Post-Stack Only, In-Stack and Post-Stack</th>
            <th align="left"> Reference</th>
          </tr>
        </thead>

       <tbody>
          <tr>
            <td align="left">0 </td>
            <td align="left">Reserved</td>
            <td align="left">Not Applicable</td>
            <td align="left"><xref target="I-D.ietf-mpls-mna-hdr" format="default"/></td>
          </tr>
       </tbody>

        <tbody>
          <tr>
            <td align="left">1</td>
            <td align="left">Flag-Based Network Action Indicators without AD</td>
            <td align="left">In-Stack Only</td>
            <td align="left"><xref target="I-D.ietf-mpls-mna-hdr" format="default"/></td>
          </tr>
        </tbody>

        <tbody>
          <tr>
            <td align="left">2</td>
            <td align="left">No operation Opcode</td>
            <td align="left">In-Stack and Post-Stack</td>
            <td align="left"><xref target="I-D.ietf-mpls-mna-hdr" format="default"/></td>
          </tr>
        </tbody>

        <tbody>
          <tr>
            <td align="left">TBA2 </td>
            <td align="left">Offset of Start of Post-Stack MPLS Header</td>
            <td align="left">In-Stack Only</td>
            <td align="left">This document</td>
          </tr>
        </tbody>

        <tbody>
          <tr>
            <td align="left">TBA3 </td>
            <td align="left">Offset of End of Post-Stack MPLS Header</td>
            <td align="left">In-Stack Only</td>
            <td align="left">This document</td>
          </tr>
        </tbody>

       <tbody>
          <tr>
            <td align="left">127 </td>
            <td align="left">Opcode Range Extension Beyond 127</td>
            <td align="left">In-Stack and Post-Stack</td>
            <td align="left"><xref target="I-D.ietf-mpls-mna-hdr" format="default"/></td>
          </tr>
       </tbody>

      </table>

    </section>

  </section>



  

 </middle>
  <back>
  



    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
    &I-D.ietf-mpls-mna-hdr;
    &RFC2119;
    &RFC3032;
    &RFC4385;
    &RFC5462;
    &RFC5586;
    &RFC6291;
    &RFC8174;
    &RFC9017;
    &RFC9789;
    &RFC9790;
      </references>
      <references>
    <name>Informative References</name>
    &RFC9613;
    &RFC9791; 
      </references>
    </references>

      <section anchor="sect-J14" numbered="true" toc="default">
    <name>Appendix A: Examples</name>

    <section anchor="sect-J6" numbered="true" toc="default">
      <name>Examples of Post-Stack MPLS Header Encoding</name>

    <section anchor="sect-J6.1a" numbered="true" toc="default">
      <name> NAS that only Indicates Post-Stack MPLS Header </name>

      <figure anchor="Header-Carrying-only-PSD">
        <name>NAS that only indicates Post-Stack MPLS Header </name>
        <artwork name="" type="" align="left" alt=""><![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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           MNA Label                   | TC  |0|    TTL        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Opcode=2=NoOp|    0                    |1|IHS|0| NASL=0|U|NAL=0|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
~                                             [0|               ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                                             |1|               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  0x0  |Reserve|   PSMH-Len=1  | Type = MNA-Post-Stack-Header  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  MNA-PS-OP  |R|R|  PS-NAL=0   |       Post-Stack Data         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
~                                                               ~
~                           Payload                             ~
~                                                               ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        ]]></artwork>  
      </figure>

      <t>
In some cases, the NAS may encode only the presence of Post-Stack MPLS Header. The Post-Stack MPLS Header starts immediately after the BOS.
      </t>

    </section>

   <section anchor="sect-J6.1aa" numbered="true" toc="default">
      <name> NAS that Indicates Post-Stack MPLS Header Start Offset</name>

      <figure anchor="Header-Carrying-only-PSD-Offset">
        <name>NAS Indicates Post-Stack MPLS Header Start Offset </name>
        <artwork name="" type="" align="left" alt=""><![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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           MNA Label                   | TC  |0|    TTL        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Opcode=TBA2 |  Post-Stack Offset = 2  |1|IHS|0| NASL=0|U|NAL=0|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
~                                             [0|               ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                                             |1|               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
|                                                               |
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
|  0x0  |Reserve|   PSMH-Len=1  | Type = MNA-Post-Stack-Header  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
|  MNA-PS-OP  |R|R|  PS-NAL=0   |       Post-Stack Data         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                                                       
~                                                               ~
~                           Payload                             ~
~                                                               ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        ]]></artwork>  
      </figure>

    <t>
     The NAS may encode the start offset of the Post-Stack MPLS Header with a non-zero value, for example, when it is after another header such as G-ACh or Control Word header. 
     In this example, the PSMH starts at an offset of 8 bytes after the BoS.
    </t>

    </section>


        <section anchor="sect-J7.1" numbered="true" toc="default">
        <name>Post-Stack Network Actions with Two Opcodes </name>

        <figure anchor="In-Stack-Ext-Hdr-1-a">
          <name>Post-Stack NA with Two Opcodes</name>
          <artwork name="" type="" align="left" alt=""><![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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          MNA Label                    | TC  |0|    TTL        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Opcode=2=NoOp|    0                    |1|IHS|1| NASL=0|U|NAL=0|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
|  0x0  |Reserve|   PSMH-Len=3  | Type = MNA-Post-Stack-Header  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
|  MNA-PS-OP=2|R|R|  PS-NAL=0   |       Post-Stack Data         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  
|  MNA-PS-OP=3|R|R|  PS-NAL=1   |       Post-Stack Data         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  
|                       Post-Stack Data                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                                                               |
|                     Optional Payload + Padding                |
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
          ]]></artwork>
        </figure>
 
        <t>
      This is an example where the Post-Stack MPLS Header encodes two different Post-Stack Network Actions.
    </t>
      
        <t>
      Details:
    </t>
        <ul empty="true" spacing="normal">
          <li> PSMH-Len=3: This is the total length of Post-Stack MPLS Header. </li>
          <li> MNA-PS-OP=2: Post-Stack NA Opcode 2. </li>
          <li> PS-NAL=0: Post-Stack Network Action does not contain any additional data. </li>
          <li> MNA-PS-OP=3: Post-Stack NA Opcode 3. </li>
          <li> PS-NAL=1: Post-Stack Network Action contains 1 additional 4-octet Ancillary Data. </li>
      </ul>
  
  </section>

       <section anchor="sect-J7.2" numbered="true" toc="default">
        <name>Post-Stack Network Action with two Different Scopes </name>

        <figure anchor="In-Stack-Ext-Hdr-1-b">
          <name>Post-Stack NA with two Different Scopes</name>
          <artwork name="" type="" align="left" alt=""><![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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          MNA Label                    | TC  |0|    TTL        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Opcode=2=NoOp|    0                    |1|HBH|0| NASL=0|U|NAL=0|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
|          MNA Label                    | TC  |0|    TTL        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Opcode=TBA2 |  Post-Stack Offset = 2  |1|I2E|1| NASL=0|U|NAL=0|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
|  0x0  |Reserve|   PSMH-Len=1  | Type = MNA-Post-Stack-Header  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  
|  MNA-PS-OP=2|R|R|  PS-NAL=0   |       Post-Stack Data         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  0x0  |Reserve|   PSMH-Len=2  |  Type = MNA-Post-Stack-Header |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
|  MNA-PS-OP=3|R|R|  PS-NAL=1   |       Post-Stack Data         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                      Post-Stack Data                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                                                               |
|                     Optional Payload + Padding                |
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
          ]]></artwork>
        </figure>
 
        <t>
This is an example of Post-Stack MPLS Header encoding, that encodes two different different scoped Post-Stack Network Actions. The first scope is Hop-By-Hop and the second scope is Ingress-To-Egress.
    </t>
      
        <t>
      Details:
    </t>
        <ul empty="true" spacing="normal">
          <li> The offset of the Hop-By-Hop scoped Post-Stack Network Action is 0.</li>
      <li> Opcode TBA2 carries the offset of the Ingress-To-Egress scoped Post-Stack Network Action. The data is 2, i.e., the Post-Stack MPLS Header starts 8 bytes after the MPLS Bottom of Stack.</li>
      </ul>
  
  </section>
  </section>

     <section anchor="sect-J6.1bb" numbered="true" toc="default">
      <name> Examples of In-Stack and Post-Stack Network Actions </name>

     <section anchor="sect-J6.1b" numbered="true" toc="default">
      <name> NAS with In-Stack and Post-Stack NAs </name>

      <figure anchor="Header-Carrying-ISD-PSD">
        <name>NAS with In-Stack and Post-Stack NAs</name>
        <artwork name="" type="" align="left" alt=""><![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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          MNA Label                    | TC  |0|    TTL        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Opcode=1    |   Flag-Based NAIs       |1|IHS|0| NASL=0|U|NAL=0|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
~                                             [0|               ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                                             |1|               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  0x0  |Reserve|   PSMH-Len=1  | Type = MNA-Post-Stack-Header  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
|  MNA-PS-OP  |R|R|  PS-NAL=0   |       Post-Stack Data        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
~                                                               ~
~                           Payload                             ~
~                                                               ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        ]]></artwork>  
      </figure>

      <t>
In some cases, the NAS may encode In-Stack NAs and indicate the presence of a Post-Stack MPLS Header. 
The IHS field indicates the scope of both the In-Stack and Post-Stack NAs.
      </t>

    </section>

    <section anchor="sect-J6.1c" numbered="true" toc="default">
      <name> NASes with Different In-Stack and Post-Stack Scopes</name>

      <figure anchor="Header-Carrying-ISD-PSD-Diff-Scope">
        <name>NASes with Different In-Stack and Post-Stack Scopes</name>
        <artwork name="" type="" align="left" alt=""><![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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          MNA Label                    | TC  |0|    TTL        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Opcode=1    |   Flag-Based NAIs       |0|HBH|0| NASL=0|U|NAL=0|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
|          MNA Label                    | TC  |0|    TTL        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Opcode=2=NoOp|    0                    |1|I2E|1| NASL=0|U|NAL=0|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  0x0  |Reserve|   PSMH-Len=1  | Type = MNA-Post-Stack-Header  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
|  MNA-PS-OP  |R|R|  PS-NAL=0   |       Post-Stack Data         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
~                                                               ~
~                           Payload                             ~
~                                                               ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        ]]></artwork>  
      </figure>

      <t>
    In some cases, the label stack may need to carry In-Stack NAs
    with Hop-By-Hop scope and Post-Stack NAs with I2E scope. In
    this case, there will be two NASes in the label stack. In this
    case, the first NAS will encode the In-Stack NA with the
    Hop-By-Hop scope and the second NAS will encode the presence
    of I2E-scoped Post-Stack NAs.
      </t>

    </section>

  </section>
  
 </section>

    <section numbered="false" anchor="acknowledgments" toc="default">
      <name>Acknowledgments</name>
      <t>
      The authors would like to thank the authors and contributors of the draft-ietf-mpls-mna-hdr as this document borrows some text from the earlier version of that document.
      The authors would like to thank Greg Mirsky, Loa Andersson, Haoyu Song, Adrian Farrel, Yao Liu, and Joel Halpern for reviewing this document and providing many useful comments.
       </t>
    </section>

    <section numbered="false" anchor="contributors" toc="default">
      <name>Contributors</name>
      <t>The following people have substantially contributed to this document:</t>

     <artwork name="" type="" align="left" alt=""><![CDATA[



John Drake 
Juniper Networks 
United States 
Email: jdrake@juniper.net 
    ]]></artwork>

    </section>



  </back>
</rfc>
