<?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-xzlnp-bier-ioam-07" consensus="true" submissionType="IETF">

<front>
  <title abbrev="BIER Encap for IOAM Data"> BIER Encapsulation for IOAM Data </title>

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

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

         <city>Nanjing</city>

         <region/>

         <code/>

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

       <phone/>

       <email>xiao.min2@zte.com.cn</email>

       <!-- uri and facsimile elements may also be added -->
     </address>
    </author>

  <author fullname="Zheng(Sandy) Zhang" initials="Z" surname="Zhang">
      <organization>ZTE Corp.</organization>
     <address>
       <postal>
         <street/>

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

         <city>Nanjing</city>

         <region/>

         <code/>

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

       <phone/>

       <email>zhang.zheng@zte.com.cn</email>

       <!-- uri and facsimile elements may also be added -->
     </address>
    </author>

  <author fullname="Yisong Liu" initials="Y" surname="Liu">
      <organization>China Mobile</organization>
     <address>
       <postal>
         <street/>

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

         <city>Beijing</city>

         <region/>

         <code/>

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

       <phone/>

       <email>liuyisong@chinamobile.com</email>

       <!-- uri and facsimile elements may also be added -->
     </address>
    </author>
	
  <author fullname="Nagendra Kumar Nainar" initials="N" surname="Nainar">
      <organization>Cisco Systems, Inc.</organization>
     <address>
       <postal>
         <street>7200-11 Kit Creek Road</street>

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

         <city/>

         <region>Research Triangle Park, NC  27709</region>

         <code/>

         <country>United States of America</country>
       </postal>

       <phone/>

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

       <!-- uri and facsimile elements may also be added -->
     </address>
    </author>
	
  <author fullname="Carlos Pignataro" initials="C" surname="Pignataro">
      <organization>North Carolina State University</organization>
     <address>
       <postal>
         <street></street>

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

         <city/>

         <region></region>

         <code/>

         <country>United States of America</country>
       </postal>

       <phone/>

       <email>cpignata@gmail.com</email>
	   
       <email>cmpignat@ncsu.edu</email>

       <!-- uri and facsimile elements may also be added -->
     </address>
    </author>
	
    <date year="2024"/>
  
    <area>Routing</area>
    <workgroup>BIER Working Group</workgroup>

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

    <abstract>
  <t> In-situ Operations, Administration, and Maintenance (IOAM) collects operational and telemetry information in the packet while 
  the packet traverses a path between two points in the network. Bit Index Explicit Replication (BIER) is an architecture that 
  provides optimal multicast forwarding through a "multicast domain", without requiring intermediate routers to 
  maintain any per-flow state or to engage in an explicit tree-building protocol. The BIER header contains a bit-string 
  in which each bit represents exactly one egress router to forward the packet to. This document outlines the requirements 
  to carry IOAM data in BIER header and specifies how IOAM data is encapsulated in BIER header. </t>
    </abstract>
    
</front>
  
<middle>

  <section title="Introduction">
  
  <t> In-situ Operations, Administration, and Maintenance (IOAM) collects operational and telemetry information in the packet while 
  the packet traverses a path between two points in the network. <xref target="RFC9197"/> defines four IOAM option types with different 
  IOAM data fields used to record OAM information within the packet. <xref target="RFC9326"/> defines IOAM Direct Export (DEX) option 
  type, which indicates OAM information to be collected without being embedded in the data packets. The term "in-situ" refers to the 
  fact that the OAM data is added to the data packets rather than being sent within packets specifically dedicated to OAM. </t>
  
  <t> Bit Index Explicit Replication (BIER), as defined in <xref target="RFC8279"/>, is an architecture that provides optimal 
  multicast forwarding through a "multicast domain", without requiring intermediate routers to maintain any per-flow state or 
  to engage in an explicit tree-building protocol. The BIER header, as defined in <xref target="RFC8296"/>, contains a bit-string 
  in which each bit represents exactly one egress router to forward the packet to. </t>
  
  <t> This document outlines the requirements to carry IOAM data in BIER header and specifies how IOAM data is encapsulated. </t>
  
  </section>
  
  <section title="Conventions Used in This Document">
  
    <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="Abbreviations">
    <t> Abbreviations used in this document:</t>
    <t> BFER: Bit Forwarding Egress Router</t>
    <t> BFIR: Bit Forwarding Ingress Router</t>
    <t> BIER: Bit Index Explicit Replication</t>
    <t> DEX: Direct Export</t>	
    <t> GRE: Generic Routing Encapsulation</t>
    <t> IOAM: In-situ Operations, Administration, and Maintenance</t>
	<t> OAM: Operations, Administration, and Maintenance</t>
    </section>
       
  </section>

  <section title="Requirements to carry IOAM data">

  <t> <xref target="I-D.ietf-bier-use-cases"/> lists many use cases for BIER. Usually there are many multicast flows within one 
  network domain, and some of the multicast flows, such as live video and real-time meeting, are sensitive to packet loss, delay 
  and other factors. The network operator wants to know the real-time statistics for these flows, such as delay, sequence, the 
  ingress/egress interface, and the usage of buffer. </t>
  
  <t> So methods are needed for measuring the real-time transportation guarantee of BIER packets. This document attempts to 
  provide a way to carry IOAM data in the BIER packets. </t>
       
  </section>
  
  <section title="IOAM data fields encapsulation in BIER header">
	
  <t> The BIER header is defined in <xref target="RFC8279"/>. The BIER OAM header that follows BIER header is defined in 
  <xref target="I-D.ietf-bier-ping"/>. IOAM-Data-Fields can either be carried in BIER using a new type of OAM message which 
  follows the BIER OAM header (referred to as option 1), or be carried in BIER using a new next protocol header which immediately 
  follows the BIER header (referred to as option 2). In this document, option 2 is selected and the reason is discussed in Section 5.1.
  An IOAM header is added containing different IOAM-Data-Fields defined in <xref target="RFC9197"/> and <xref target="RFC9326"/>. </t>
  
  <t> [Editor's Note: Except for aforementioned option 1 and 2, IOAM-Data-Fields can also be carried in BIER extension header 
  <xref target="I-D.zzhang-bier-extension-headers"/>, which is referred to as option 3. Once there is WG consensus to adopt BIER 
  extension header, the selected BIER IOAM Encapsulation would be changed from option 2 to option 3.] </t>
  
  <t> In a BIER domain where IOAM is applied, inserting the IOAM header into the BIER packets is enabled at the BFIRs, which also 
  serve as the IOAM encapsulating nodes by means of configuration. Deleting the IOAM header from the BIER packets is enabled at the BFERs, 
  which also serve as the IOAM decapsulating nodes by means of configuration. </t>
	
  <t> The Encapsulation format for IOAM over BIER is defined as follows: </t>
		
     <figure anchor="Figure_1" title="IOAM Encapsulation Format within BIER">
     <artwork align="left"><![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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<-+
|              BIFT-id                  | TC  |S|     TTL       |  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  |
|Nibble |  Ver  |  BSL  |              Entropy                  |  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  B
|OAM|Rsv|    DSCP   |Proto=TBA1 |            BFIR-id            |  I
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  E
|                BitString  (first 32 bits)                     ~  R
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  |
~                                                               ~  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  |
~                BitString  (last 32 bits)                      |  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<-+
|  IOAM-Type    | IOAM HDR Len  |      Reserved     | Next Proto|  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  I
|                                                               |  O
|                                                               |  A
~                 IOAM Option and Optional Data Space           ~  M
|                                                               |  |
|                                                               |  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<-+
|                                                               |
|                                                               |
|                 Payload + Padding (L2/L3/...)                 |
|                                                               |
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     ]]></artwork>
     </figure>
	 
     <t> The BIER header and fields are defined in <xref target="RFC8296"/>. Within the BIER header, a 6-bit field as 
	 "Proto" (Next Protocol) is used to identify the type of the payload immediately following the BIER header, The "Proto" 
	 value is set to TBA1 when the IOAM header is present.</t>	
	 
     <t> The IOAM related fields in BIER are defined as follows:</t>	
	 	 
    <t> 
	<list>
     <t> IOAM-Type: An 8-bit field defining the IOAM option type, as defined in Section 7.1 of <xref target="RFC9197"/> 
	 and Section 4.1 of <xref target="RFC9326"/>.</t>
	 
	 <t> IOAM HDR Len: An 8-bit unsigned integer. Length of the IOAM header in 4-octet units.</t>
	 
     <t> Reserved: A 10-bit reserved field MUST be set to zero upon transmission and ignored upon receipt.</t>
	 
     <t> Next Proto: A 6-bit unsigned integer that identifies the type of payload immediately following this IOAM option. 
	 The semantics of this field are identical to the "Proto" field in <xref target="RFC8296"/>.</t>
	 
     <t> IOAM Option and Optional Data Space: IOAM option header and data as specified by the IOAM-Type field. They're 
	 defined in Section 4 of <xref target="RFC9197"/> and Section 3 of <xref target="RFC9326"/>.</t>
	</list>
    </t> 
	
     <t> Multiple IOAM options MAY be included within a BIER encapsulation. For example, if a BIER encapsulation contains 
	 two IOAM options preceding a data payload, the "Next Proto" field of the first IOAM option would be set to the value 
	 of TBA1 that indicates a second IOAM option follows, while the "Next Proto" field of the second IOAM option would be 
	 set to the value of "BIER Next Protocol" indicating the type of the data payload. Each type of IOAM option MUST occur 
	 at most once within a BIER encapsulation.</t>	
	 
     <t> Note that in a BIER multicast network, if the IOAM Trace option is carried in the BIER packets, when the BIER packets 
	 are replicated at the branch nodes, the IOAM Trace option would be replicated too. In a case it's a concern to the network 
	 operator, the IOAM DEX option may be used as a substitution, or other methods beyond the scope of this document can be applied.</t>	
	 
  </section> 

  <section title="Considerations"> 
  
  <t> This section summarizes a set of considerations on the overall approach taken for IOAM data encapsulation in BIER, 
  as well as deployment considerations. </t>
  
  <section title="Selecting the encapsulation approach"> 
    
  <t> Both the encapsulation options for IOAM over BIER described in Section 4 are supposed to be feasible, nevertheless this 
  document needs to select one as the standardized encapsulation. Considering the fact that the encapsulation format of option 
  2 using a new next protocol header is more concise than option 1 using a new type of OAM message, and many other transport 
  protocols, e.g., GRE, use a new next protocol header to encapsulate IOAM data, the encapsulation format of option 2 is selected 
  as the standardized one. </t>
    
  </section>
	
  <section title="Interaction with the BIER OAM field"> 
    
  <t> <xref target="RFC8296"/> defines a two-bit field, referred to as OAM. <xref target="I-D.ietf-bier-pmmm-oam"/> 
  describes how to use the two-bit OAM field for alternate-marking performance measurement method. This document would not 
  change the semantics of the two-bit OAM field. The BIER IOAM header and the BIER OAM field are orthogonal and they can 
  co-exist in one packet, i.e., a BIER packet with IOAM data can set the OAM field and a BIER packet with OAM field set can 
  carry IOAM data. </t>
    
  </section>
	
  </section>

  <section title="Security Considerations">
  
  <t> This document describes the encapsulation of IOAM data in BIER. Security considerations of the specific IOAM data 
  are described in <xref target="RFC9197"/> and <xref target="RFC9326"/>. </t>
  
  <t> IOAM is considered a "per domain" feature, where one or several operators decide on configuring IOAM according to their 
  needs. IOAM is expected to be deployed in a limited domain <xref target="RFC8799"/>. As such, it assumes that a node involved 
  in IOAM operation has previously verified the integrity of the path. Still, the operators need to properly secure the IOAM domain 
  to avoid malicious configuration and use, which could include injecting malicious IOAM packets into the domain. </t>
  
  <t> As this document describes new protocol fields within the existing BIER encapsulation, these are similar to the security 
  considerations of <xref target="RFC8296"/>. </t>

  </section>
  
  <section title="IANA Considerations"> 
  <t> In the "BIER Next Protocol Identifiers" registry created for <xref target="RFC8296"/>, a new Next Protocol Value for 
  IOAM is requested from IANA as follows:</t>
     <texttable anchor="Table_1" title="New BIER Next Protocol Identifier">

         <ttcol align="left">BIER Next Protocol Identifier</ttcol>

         <ttcol align="left">Description</ttcol>
		 
         <ttcol align="left">Semantics Definition</ttcol>

         <ttcol align="left">Reference</ttcol>

         <c>TBA1</c>

         <c>In-situ OAM (IOAM)</c>

         <c>Section 4</c>

         <c>This Document</c>

     </texttable>
  </section>

  <section title="Acknowledgements">
  <t> The authors would like to acknowledge Greg Mirsky 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.8279"?>
     <?rfc include="reference.RFC.8296"?>
     <?rfc include="reference.RFC.9197"?>
     <?rfc include="reference.RFC.9326"?>
    </references>
	
    <references title="Informative References">
     <?rfc include="reference.RFC.8799"?>
     <?rfc include="reference.I-D.ietf-bier-ping"?>
     <?rfc include="reference.I-D.ietf-bier-use-cases"?>
     <?rfc include="reference.I-D.ietf-bier-pmmm-oam"?>
     <?rfc include="reference.I-D.zzhang-bier-extension-headers"?>
    </references>
	
</back>
</rfc>
