<?xml version="1.0" encoding="utf-8"?>
  <?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
  <!-- generated by https://github.com/cabo/kramdown-rfc version 1.6.14 (Ruby 2.6.10) -->


<!DOCTYPE rfc  [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">

<!ENTITY I-D.ietf-mpls-mna-fwk SYSTEM "https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-mpls-mna-fwk.xml">
<!ENTITY I-D.ietf-mpls-mna-hdr SYSTEM "https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-mpls-mna-hdr.xml">
<!ENTITY I-D.ietf-mpls-mna-requirements SYSTEM "https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-mpls-mna-requirements.xml">
<!ENTITY RFC2119 SYSTEM "https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC3032 SYSTEM "https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3032.xml">
<!ENTITY RFC6790 SYSTEM "https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6790.xml">
<!ENTITY RFC8174 SYSTEM "https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml">
<!ENTITY RFC6391 SYSTEM "https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6391.xml">
<!ENTITY RFC8012 SYSTEM "https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8012.xml">
<!ENTITY RFC8662 SYSTEM "https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8662.xml">
]>


<rfc ipr="trust200902" docName="draft-li-mpls-mna-entropy-03" category="info" submissionType="IETF">
  <front>
    <title abbrev="MNA Entropy">MPLS Network Action for Entropy</title>

    <author initials="T." surname="Li" fullname="Tony Li">
      <organization>Juniper Networks</organization>
      <address>
        <email>tony.li@tony.li</email>
      </address>
    </author>
    <author initials="J." surname="Drake" fullname="John Drake">
      <organization></organization>
      <address>
        <email>je_drake@yahoo.com</email>
      </address>
    </author>

    <date year="2024" month="August" day="28"/>

    
    <workgroup>MPLS Working Group</workgroup>
    

    <abstract>


<t>Load balancing is a powerful tool for engineering traffic across a
network and has been successfully used in MPLS as described in RFC
6790, "The Use of Entropy Labels in MPLS Forwarding". With the
emergence of MPLS Network Actions (MNA), there is signficant benefit
in being able to invoke the same load balancing capabilities within
the more general MNA infrastructure.</t>

<t>This document describes a network action for entropy to be used in
conjunction with "MPLS Network Action (MNA) Sub-Stack Solution".</t>



    </abstract>



  </front>

  <middle>


<section anchor="introduction"><name>Introduction</name>

<t>Load balancing is a powerful tool for engineering traffic across a
network. The use of entropy labels within MPLS was first described in
<xref target="RFC6790"/> and <xref target="RFC6391"/> and has been deployed succesfully in
multiple MPLS networks.</t>

<t>With the emergence of MPLS Network Actions
<xref target="I-D.ietf-mpls-mna-requirements"/> <xref target="I-D.ietf-mpls-mna-fwk"/>
<xref target="I-D.ietf-mpls-mna-hdr"/>, there is a benefit to being
able to describe entropy as a network action.  Without this, a packet
that required load balancing and network actions would need to deal
with the overhead of having both MNA and an Entropy Label in
the label stack. By defining an action for Entropy within the MNA
infrastructure, overhead and complexity can be reduced. It is
RECOMMENDED that MNA and the Entropy Label not be used in the same
packet, but if they are, the Entropy Label and Entropy Value do not
need to be the same as consistency for the flow suffices.</t>

<t>Given that <xref target="RFC6790"/> is widely deployed, it is expected that that will
continue to be a common mechanism for encoding an Entropy Label. This
document adds an alternative encoding that may be more efficient if other
MNA actions are in use. The two encodings can co-exist in the same network.</t>

<section anchor="REQ-lang"><name>Requirement Language</name>

<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.
These words may also appear in this document in
lower case as plain English words, absent their normative meanings.</t>

</section>
</section>
<section anchor="the-entropy-action"><name>The Entropy Action</name>

<t>This section describes the details of how the Entropy Action is
encoded, per Section 5 of <xref target="I-D.ietf-mpls-mna-fwk"/>.</t>

<t><list style="symbols">
  <t>Name: Entropy Action</t>
  <t>Network Action Indication: The Entropy Action is opcode TBA1.</t>
  <t>Scope: The Entropy Action is valid in Hop-by-Hop (HBH) and Select
scopes and SHOULD be processed as discussed below. The Entropy
Action is not valid in I2E scope and SHOULD be ignored if found in
I2E scope.</t>
  <t>In-Stack Data: The Entropy Action carries 20 bits of ancillary data,
known as the Entropy Value.</t>
  <t>Processing: The semantics of the Entropy Value are identical to the
semantics of the Entropy Label as found in <xref target="RFC6790"/>, <xref target="RFC8012"/>,
and <xref target="RFC8662"/>, except that the Entropy Value is not found in the
Label field of the Label Stack Entry (LSE). While the RFC 6790
Entropy Label has some restrictions to avoid collisions with the
reserved label space (0-15) <xref target="RFC3032"/>, those restrictions are not
necessary for the Entropy Value and do not apply. A forwarding node
SHOULD incorporate the Entropy Value into its forwarding decision
when the Entropy Action is evaluated.  Not using the Entropy Value
may result in unintended forwarding consequences, possibly resulting
in unnecessary congestion and packet loss.</t>
  <t>LSE Format: C.  There is no additional data. The Network Action
Length (NAL) field MUST be sent as zero. The U bit in the Format C
LSE may be set at the discretion of the implementation and network
operator.  If there are no further actions to be included in the
Network Action Sub-Stack (NAS), then the Entropy Action must follow
an opcode 2 (NOP) Format B LSE.</t>
  <t>Interactions: None</t>
</list></t>

</section>
<section anchor="security-considerations"><name>Security Considerations</name>

<t>The forwarding plane is insecure. If an adversary can affect the
forwarding plane, then they can inject data, remove data, corrupt
data, or modify data. MNA additionally allows an adversary to make
packets perform arbitrary network actions.</t>

<t>Link-level security mechanisms can help mitigate some on-link attacks,
but does nothing to preclude hostile nodes.</t>

</section>
<section anchor="iana-considerations"><name>IANA Considerations</name>

<t>This document requests that IANA allocate a codepoint (TBA1) from the
"Multiprotocol Label Switching Architecture (MPLS)"/"MPLS Network
Actions Parameters"/"Network Action Opcodes Registry" registry for the
Entropy Action. The allocation should reference this document.</t>

</section>


  </middle>

  <back>


    <references title='Normative References'>

&I-D.ietf-mpls-mna-fwk;
&I-D.ietf-mpls-mna-hdr;
&I-D.ietf-mpls-mna-requirements;
&RFC2119;
&RFC3032;
&RFC6790;
&RFC8174;


    </references>

    <references title='Informative References'>

&RFC6391;
&RFC8012;
&RFC8662;


    </references>



  </back>

<!-- ##markdown-source:
H4sIANxXz2YAA61Y23LjNhJ9x1cgmhc7JWptTzKZ0VN8m9hTvq0lb2qftiAS
lDAGAQYArdFO+V/2W/bL9jRAUhcruy+bqolIEN3oy+nuA2dZxnJbKDMf8yaU
2UcWVNByzG8fbib8Toaldc/8NA/KGl5axy9NcLZeMTGbOfmCfXen/VphcyMq
CBdOlCHTKqtq7bPKiEymLdnRe7act9p/h2oczH9ztqlZLoKcW7cac2VKy3wz
q5T3ODasaqi8vpx+Zqp2Yx5c48PJ0dGnoxPGRBMW1o0Z5xn+xf+U8WM+HfEb
1a0ko6bWrDYWrYMdXxqjauk6R333UVZCaRwFkZFWv7a/b075MuIXTjzL7YO+
2IXZXm/VfZX/KGj515VYWDvKbcWYsa4SQb1I8uE6uxgpiTT0cSuXz/s/LAq3
/4OTfzTKyQoR97Tj8fP5yfHxp/bx/dH7k/bxwy+fjtrHj8e//DTmjAK/YQ3t
ef/puNtzdNxJfvzwAY8syzIuZj44kQfGbqwo+ExoYXJKqvJc8NoupSsbjUBa
HeEjzVwZKR1tgWBZqpyL3FmP7cy0cBOm4Avh+UxKw32T59J7aNEr3nhZIPQJ
P9hRSJ87NUuLsIyRU0M+mC4kf/KS27IDJ78RM6l9L/zZuqVwBPzBiP+uwoKH
hWQIm5tLk0fJPSXg+QEAfzikzU6Sk17NDZwQJsBcI0sVEEY8koNipiVcx5kv
9lmSDPdACNfbocpFLWZKq6Ck50uYogyjvZXFEbBGOqFjnSE/TiDeTR4aJ0eM
TRewAFXXULb7YFDk+1CuK7ctQTJ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