Internet-Draft | Post-Stack MNA Solution | March 2023 |
Rajamanickam, et al. | Expires 11 September 2023 | [Page] |
This document defines the Post-Stack MPLS Network Action (MNA) solution for carrying Network Actions and Ancillary Data after the MPLS label stack based on In-Stack MNA solution defined in draft-ietf-mpls-mna-hdr. MPLS Network Actions can be used to influence packet forwarding decisions, carry additional OAM information in the MPLS packet or perform user-defined operations. This document addresses the MNA requirements specified in draft-ietf-mpls-mna-requirements. This document follows the MNA framework specified in draft-ietf-mpls-mna-fwk.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 11 September 2023.¶
Copyright (c) 2023 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
[RFC3032] defines the encoding of the MPLS label stack, the basic structure used to define a forwarding path. Forthcoming applications require MPLS packets to perform special network actions and carry optional Ancillary Data (AD) that can affect the packet forwarding decision or trigger OAM logging, for example. Ancillary Data can be used to carry additional information, such as a IOAM, Path tracing etc. Several MNA applications are described in [I-D.ietf-mpls-mna-usecases]. User-defined network actions allow new, local actions to be defined. In some cases, more Ancillary Data may required to be carried in the MPLS header, so these kind of Network Actions and its Ancillary data are encoded after the MPLS Stack. These are called as Post-Stack Data.¶
This document defines the syntax and semantics of Post-Stack Network Actions and their corresponding Ancillary Data based on the In-Stack MNA solution defined in [I-D.ietf-mpls-mna-hdr]. This document addresses the requirements specified in [I-D.ietf-mpls-mna-requirements]. This document follows the framework specified in [I-D.ietf-mpls-mna-fwk].¶
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 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
The terminology defined in [I-D.ietf-mpls-mna-fwk] and [I-D.ietf-mpls-mna-requirements] are used in this document.¶
Abbreviation | Meaning | Reference |
---|---|---|
AD | Ancillary Data | [I-D.ietf-mpls-mna-requirements] |
bSPL | Base Special Purpose Label | [RFC9017] |
BOS | Bottom Of Stack | [RFC3032] |
HBH | Hop-By-Hop Scope | [I-D.ietf-mpls-mna-fwk] |
I2E | Ingress-To-Egress Scope | [I-D.ietf-mpls-mna-fwk] |
IHS | I2E, HBH, or Select Scope | [I-D.ietf-mpls-mna-hdr] |
ISD | In-Stack Data | [I-D.ietf-mpls-mna-requirements] |
LSE | Label Stack Entry | [RFC3032] |
MNA | MPLS Network Actions | [I-D.ietf-mpls-mna-fwk] |
NAI | Network Action Indicator | [I-D.ietf-mpls-mna-requirements] |
NAL | Network Action Length | [I-D.ietf-mpls-mna-hdr] |
NAS | Network Action Sub-Stack | [I-D.ietf-mpls-mna-fwk] |
NASL | Network Action Sub-Stack Length | [I-D.ietf-mpls-mna-hdr] |
OAM | Operations And Management | [RFC4377] |
P | Post-Stack Network Action Indicator Bit | This document |
PSD | Post-Stack Data | [I-D.ietf-mpls-mna-requirements] and [I-D.ietf-mpls-mna-fwk] |
PSMNA | Post-Stack MPLS Network Action | This document |
PS-MNA-OP | Post-Stack MPLS Network Action Opcode | This document |
TC | Traffic Class | [RFC5462] |
TTL | Time To Live | [RFC3032] |
A Flag in the In-Stack NAS header [I-D.ietf-mpls-mna-hdr] indicates the presence of the Post-Stack MNA. The Post-Stack MNA's are encoded after the MPLS Label Stack (BoS).¶
The Post-Stack MNA encoding contains two main parts:¶
A reserved bit (21st bit from left in LSE Format B) in the In-Stack MNA header described in [I-D.ietf-mpls-mna-hdr] is used to indicate the presence of the Post-Stack Network Action.¶
The below are the flags applicable to Post-Stack MNA encoding purposes defined in [I-D.ietf-mpls-mna-hdr].¶
The Post-Stack Network Action and its Ancillary Data are encoded after the MPLS Label Stack (BoS). The Post-Stack Network Action may carry multiple Post-Stack Network Actions and its corresponding Ancillary Data.¶
This consist of two main parts:¶
This header is overall for all the Post-Stack Network Actions that are encoded.¶
This header encodes a single Post-Stack Network Action. Using this scheme, multiple Post-Stack Network Action and its corresponding Ancillary data can be encoded.¶
Some of the In-Stack MNA Opcodes are allocated to support Post-Stack Network Action. They are as follows.¶
Opcode: 1¶
Purpose: This opcode carries the start offset of the Post-Stack Network Action Top Header.¶
LSE Format: B¶
Data: The data value of the LSE contains the offset from the MPLS BOS in units of 4 octets. This allows the Generic Control Word (0000b) [RFC4385] and G-ACh (0001b) [RFC5586] fields to be placed immediately after the BOS. In the absence of this opcode, the Post-Stack Network Action is encoded immediately after the MPLS BOS. A data value of 1 indicates that the PAH starts 4 octets after the BOS.¶
Scope: This opcode can be used with any scope.¶
Opcode: 4¶
Purpose: In cases where the ordering of network action is significant and where some of the network actions reside in Post-Stack Network Action, this opcode can be used to insert Post-Stack network actions into the order of execution. The 'P' bit and 'O' bit MUST be set in the NAS's Format B LSE if this opcode is used.¶
LSE Format: B, C, D¶
Data: The data field contains one or more 7-bit Post-Stack MNA Opcode. When used with LSE Format B, only one PS MNA Opcode is carried. Two PS MNA opcodes can be carried in a Format C LSE, and if Format D LSEs are used, each may carry up to three PS MNA opcodes. The PS MNA opcodes are the stored concatenated in the most significant bits of the data field. If multiple indicators are carried, the most significant PS MNA opcode is evaluated to the least significant. PS MNA opcodes do not span LSEs. If some PS MNA opcode positions are not to be used, then the opcode should be set to value 0.¶
Scope: This opcode can be used with any scope.¶
The ingress node which is adding a Post-Stack MNA MUST make sure that the egress node is capable of MNA and removes the Post-Stack MNA.¶
The above capability signaling will be added in appropriate protocols. Signaling details are outside the scope of this document.¶
This section defines the specific responsibilities for nodes along a MPLS path.¶
The encapsulating node MAY add Post-Stack MNA to the packet in accordance with its policies, the placement restrictions, and the limitations.¶
The encapsulating node MUST NOT add a Post-Stack MNA to the packet if the decapsulation node does not support Post-Stack MNA.¶
If the encapsulating node is also a transit node, then it MUST also respect transit node responsibilities.¶
A transit node MAY change the Ancillary Data in the Post-Stack MNA.¶
A transit node MUST respect the Unknown Action Handling value encoded in the NAS.¶
A node that removes the last copy of a NAS that has the P bit set MUST remove all Post-Stack Network Actions.¶
In addition to the transit node responsibilities above, the penultimate node MUST NOT remove the last copy of a HBH or I2E NAS when it is exposed after removing the forwarding (transport) label. This allows the egress node to process the NAS.¶
The decapsulating node MUST remove any Post-Stack MNA it receives.¶
The security considerations in [RFC3032] also apply to this document.¶
In addition, MNA creates a new dimension in security concerns:¶
This document requests that IANA allocate a value (TBA1) for the Post-Stack MNA Nibble (NNNN) to indicate the start of the Post-Stack Network Actions. The reference should be this document.¶
The In-Stack Network Action Opcodes for In-Stack Network Action Opcode registry are defined in the document as follows¶
Opcode | Description | Reference |
---|---|---|
1 | Offset of start of Post-Stack Network Action Header | This document |
4 | PS-IS-NA Ordering | This document |
This document requests that IANA create a new registry with the name "Post-Stack Network Action Opcodes". The registration procedure for this registry is "IETF Review". The fields are "Opcode" (integer), "Description" (string), and "Reference" (string). Opcode is an integer 0-127.¶
The initial assignments for this registry are:¶
Opcode | Description | Reference |
---|---|---|
0 | Reserved | This document |
1-110 | Unassigned | |
111-126 | Private Use |
In some cases, the NAS may encode only the presence of Post-Stack NAs. In this case, the P-Bit is set. The IHS field indicates the scope of the Post-Stack NAs (I2E, HBH, Select).¶
In some cases, the NAS may encode In-Stack NAs and indicate the presence of Post-Stack NAs. In this case, P-Bit is set. The NASL is set to "1", indicating the presence of one additional LSE. The IHS field indicates the scope of both the In-Stack and Post-Stack NAs.¶
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.¶
This is an example of Post-Stack MNA encoding, that encode two different Post-Stack Network Actions.¶
Details:¶
The semantics of a network action can vary widely and the results of processing one network action may affect the processing of a subsequent network action.¶
By default, Post-Stack NAs follow the ordering of the encoding. However, the PS-IS-NA ordering opcode can be used to override the default ordering and interleave Post-Stack network actions with In-Stack network actions.¶
In some cases, Post-Stack NAs needs to be processed before In-Stack NAs. This section shows how to prioritize the Post-Stack NAs over In-Stack NAs.¶
In the above example, opcode 8 is processed first, then the Flag-Based NAIs, followed by Post-Stack NA Opcode 6, and finally opcode 7.¶
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 following people have substantially contributed to this document:¶