<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
<!ENTITY RFC2119 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC4203 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4203.xml">
<!ENTITY RFC5120 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5120.xml">
<!ENTITY RFC5305 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5305.xml">
<!ENTITY RFC7471 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7471.xml">
<!ENTITY RFC7684 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7684.xml">
<!ENTITY RFC8174 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml">
<!ENTITY RFC8362 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8362.xml">
<!ENTITY RFC8570 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8570.xml">
<!ENTITY RFC8571 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8571.xml">
<!ENTITY RFC8754 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8754.xml">
<!ENTITY RFC9346 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.9346.xml">
<!ENTITY RFC9492 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.9492.xml">
<!ENTITY RFC9502 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.9502.xml">
<!ENTITY RFC9552 SYSTEM "https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.9552.xml">
]>
<rfc submissionType="IETF" docName="draft-gandhi-lsr-ber-02" category="std" ipr="trust200902" consensus="true">
    <!-- Generated by id2xml 1.5.0 on 2020-02-06T01:41:26Z -->
    <?rfc compact="yes"?>
    <?rfc text-list-symbols="oo*+-"?>
    <?rfc subcompact="no"?>
    <?rfc sortrefs="no"?>
    <?rfc symrefs="yes"?>
    <?rfc strict="yes"?>
    <?rfc toc="yes"?>
    <front>
        <title abbrev="IS-IS, OSPF, and BGP-LS BER Extensions"> IS-IS, OSPF, and BGP-LS Extensions for Advertising Bit Error Rate Metric for Traffic Engineering</title>
    <seriesInfo name="Internet-Draft" value="draft-gandhi-lsr-ber-02"/>    

    <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>

    <date year="2026"/>
    <workgroup>LSR Working Group</workgroup>
    <abstract>

    <t>
    Networks may experience transmission bit errors due to various factors, such as poor fiber quality. 
    This document describes extensions to IS-IS, OSPF, and BGP-LS to advertise the Bit Error Rate (BER) and 
    Packet Error Rate (PER) metrics for the links that can be used for Traffic Engineering. 
    </t>

    <t>
    Note that mechanisms for
    measuring bit errors or acting on that information, once
    advertised, are outside the scope of this document.
    </t>

    </abstract>
    </front>

    <middle>

   <section title="Introduction" anchor="sect-1">
<t>
Networks may experience transmission bit errors due to various factors, such as poor fiber quality. The bit error can be a single bit error or a burst of bit errors at a time. 
Bit errors include layer-2 bit errors (e.g., causing CRC errors) or layer-3 and layer-4 bit errors (e.g., causing checksum failures).
It is feasible to measure the Bit Error Rate (BER) and Packet Error Rate (PER) of the links using measurement packets. 
</t>

<t> 
<xref target="RFC8570" format="default"/> for IS-IS, <xref target="RFC7471" format="default"/> for OSPF, and <xref target="RFC8571" format="default"/> for BGP-LS, define Traffic Engineering (TE) metrics extensions for advertising latency, loss, and bandwidth metrics. </t>

<t>
In this document, IS-IS, OSPF, and BGP-LS extensions are defined to advertise the BER and PER metrics for the links in the network that can be used for TE. Additionally, IS-IS, OSPF and BGP-LS extensions are defined to advertise anomaly state that can be used to avoid the links with anomaly state in path computation.
 </t>

   <t>
Note that the mechanisms for measuring bit errors or acting on that information, once advertised, are outside the scope of this document.
    </t>

   </section>

   <section title="Conventions Used in This Document" anchor="sect-2">
       
   <section title="Requirements Language" anchor="sect-2.1">

   <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" format="default"/> <xref target="RFC8174" format="default"/>
   when, and only when, they appear in all capitals, as shown here.
   </t>

    </section>

    <section title="Abbreviations" anchor="sect-2.2">

    <t> BER:    Bit Error Rate </t>

    <t> EMA:    Exponential Moving Average </t>

    <t> PER:    Rate of Packets with Bit Errors </t>

    <t> TLV:    Type-Length-Value </t>

    </section>

    </section>

    <section title="Overview" anchor="sect-3">
<t>
In this document, IS-IS, OSPF, and BGP-LS extensions are defined to advertise the BER and PER metrics for the links in the network that can be used for TE.  Additionally, IS-IS, OSPF, and BGP-LS extensions are defined to advertise anomaly state that can be used to avoid the links with anomaly state in path computation.
</t>

<t>
The PER metric can be added in the existing packet loss metric (instead of using it as a separate metric).
However, the PER metric can provide different characteristics of the network, since, depending on the BER pattern (bursty or single), there can be high BER but low packet loss, and vice versa.
</t>

<t>
Editor's note: The BER and PER metrics of the links can be used as generic metrics in IS-IS, OSPF and BGP-LS. 
However, this does not support anomaly state advertisement.
</t>

    </section>

    <section title="Protocol Extensions" anchor="sect-4">


<t>
IS-IS, OSPF, and BGP-LS extensions are defined to advertise BER and PER metrics as well as anomaly state as follows.
</t>

<t>
A bit:
</t>
<t>
This field represents the Anomalous (A) bit. The A bit is set when the measured value of this parameter exceeds its configured maximum threshold. 
The A bit is cleared when the measured value falls below its configured reuse threshold. If the A bit is cleared, the sub-TLV represents steady-state link performance.
</t>
<t>
Unit for BER and PER Metrics:
</t>
<t>
This 24-bit field carries BER or PER as a percentage over a configurable interval. The basic unit is 0.000003%, where (2^24 - 2) is 50.331642%. 
This value is the highest percentage that can be expressed (the assumption that high-speed links with over 50% BER/PER are unusable). 
Measured values that are larger than the field maximum MUST be advertised as 0xFFFF FF. 
</t>

<t>
EMA:
</t>
<t>
The BER metric advertised is the exponential moving average (EMA) of the BER in order to suppress the frequent advertisements.
Similarly, the PER metric advertised is the exponential moving average (EMA) of the PER.
</t>

<t>
Threshold:
</t>
<t>
The BER metric is only advertised when user-configured threshold is crossed.
Similarly, the PER metric is only advertised when user-configured threshold is crossed.
</t>


    <section title="IS-IS Extensions" anchor="sect-4.1">
<t>
IS-IS extensions for TE are defined in <xref target="RFC8570" format="default"/>.  This document extends the sub-TLV structure defined in <xref target="RFC8570" format="default"/>.
These new sub-TLVs provide ways to advertise network-performance information related to BER and PER. 
The extensions in this document build on the extensions provided in IS-IS TE <xref target="RFC5305" format="default"/> 
and GMPLS <xref target="RFC4203" format="default"/>.
</t>

<t>
This document defines several additional sub-TLVs for the links.
</t>

<t>
      Value   Description
</t>
<t>
      -----   ----------------------------
</t>
<t>
      TBA1    Unidirectional Link BER
</t>
<t>
      TBA2    Unidirectional Link PER

</t>
<t>
Example Sub-TLV for advertising BER metric in IS-IS is shown in Figure 1. 
</t>
<t>

   <figure anchor="is-is-ber">
        <name>IS-IS Unidirectional BER Metric Sub-TLV </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 2
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |   Type        |   Length=4    |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |A|  RESERVED   |               BER                             |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      ]]></artwork>
    </figure>

</t>

<t>
The format of the PER metric sub-TLV is the same as the BER metric sub-TLV.
</t>

<t>
The Extended IS Reachability TLV (type 22) (defined in <xref target="RFC5305" format="default"/>), Inter-AS Reachability TLV (also called "inter-AS reachability information TLV") (type 141) (defined in <xref target="RFC9346" format="default"/>), and MT-ISN TLV (type 222) (defined in <xref target="RFC5120" format="default"/>) have nested sub-TLVs that permit the TLVs to be readily extended for BER and PER.  
This document registers new IS-IS TE sub-TLVs in the Sub-TLVs for TLVs 22, 23, 25, 141, 222, and 223.  
</t>

    </section>

    <section title="OSPF Extensions" anchor="sect-4.2">
<t>
OSPF extensions for TE are defined in <xref target="RFC7471" format="default"/>.  This document extends the sub-TLV structure defined in <xref target="RFC7471" format="default"/>.
These new sub-TLVs provide ways to advertise network-performance information related to BER and PER. 
</t>

<t>
This document defines several additional sub-TLVs for the links. 
</t>

<t>
      Value   Description
</t>
<t>
      -----   ----------------------------
</t>
<t>
      TBA11   Unidirectional Link BER
</t>
<t>
      TBA12   Unidirectional Link PER
</t>

<t>
Example Sub-TLV for advertising BER metric in OSPF is shown in Figure 2. 
</t>

   <figure anchor="ospf-ber">
        <name>OSPF Unidirectional BER Metric Sub-TLV </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 2
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |      Type                     |        Length = 4             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |A|  RESERVED   |               BER                             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      ]]></artwork>
    </figure>

<t>
The format of the PER metric sub-TLV is the same as the BER metric sub-TLV.
</t>

<t>The BER metric advertisement is carried in Application-Specific Link Attributes Sub-TLV <xref target="RFC9492"/>, 
   which is advertised in Extended Link Opaque LSAs <xref target="RFC7684"/> for OSPFv2 and E-Router-LSAs <xref target="RFC8362"/> for OSPFv3.</t>

    </section>

    <section title="BGP-LS Extensions" anchor="sect-4.3">
<t>
The IGP TE metric extensions in BGP - Link State (BGP-LS) advertisement are defined in <xref target="RFC8571" format="default"/>.
New BGP-LS Link Attribute TLVs are defined for BER and PER. New TLV formats follow the rules defined in <xref target="RFC9552" format="default"/>.
</t>
<t>
      Value   Description
</t>
<t>
      -----   ----------------------------
</t>
<t>
      TBA21   Unidirectional Link BER
</t>
<t>
      TBA22   Unidirectional Link PER
</t>

<t>
Example TLV for advertising BER metric in BGP-LS is shown in Figure 3 below.
</t>

   <figure anchor="bgp-ls-ber">
        <name>BGP-LS Unidirectional BER Metric TLV </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 2
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |   Type                        |         Length = 4            |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |A|  RESERVED   |               BER                             |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      ]]></artwork>
    </figure>

<t>
The format of the PER metric TLV is the same as the BER metric TLV.
</t>

    </section>

    </section>

    <section title="Security Considerations" anchor="sect-5">
<t>
The security considerations specified in <xref target="RFC7471" format="default"/>, <xref target="RFC8570" format="default"/>, 
and <xref target="RFC8571" format="default"/> apply to the procedure and extensions defined in this document.
</t>
    </section>

    <section title="IANA Considerations" anchor="sect-6">

    <section title="IS-IS Link Sub-TLVs" anchor="sect-6.1">
<t>
IANA maintains the registry for "IS-IS Sub-TLVs for TLVs Advertising Neighbor Information".
IANA is requested to allocate the following sub-TLVs for types 22, 23, 25, 141, 222, and 223 from this registry.
</t>

    <table anchor="iana-tlv-type-tbl-is-is" align="center">
       <name>IS-IS Sub-TLV Types</name>
        <thead>
          <tr>
            <th align="left">Value</th>
            <th align="center">Description</th>
            <th align="left">Reference</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">TBA1 </td>
            <td align="center">Unidirectional Link BER</td>
            <td align="left">This document</td>
          </tr>
          <tr>
            <td align="left">TBA2 </td>
            <td align="center">Unidirectional Link PER</td>
            <td align="left">This document</td>
          </tr>
        </tbody>
    </table>

    <t>
The new sub-TLVs are also added in the registry "IS-IS Sub-Sub-TLV Codepoints for Application-Specific Link Attributes".
    </t>

    </section>

    <section title="OSPF Link Sub-TLVs" anchor="sect-6.2">
    <t>
    IANA maintains the registry for "Types for sub-TLVs of TE Link TLV" for OSPF.
    IANA is requested to allocate the following sub-TLVs from this registry.
    </t>

    <table anchor="iana-tlv-type-tbl-ospf" align="center">
       <name>Types for sub-TLVs of TE Link TLV in OSPF</name>
        <thead>
          <tr>
            <th align="left">Value</th>
            <th align="center">Description</th>
            <th align="left">Reference</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">TBA11 </td>
            <td align="center">Unidirectional Link BER</td>
            <td align="left">This document</td>
          </tr>
          <tr>
            <td align="left">TBA12 </td>
            <td align="center">Unidirectional Link PER</td>
            <td align="left">This document</td>
          </tr>
        </tbody>
    </table>
    </section>

    <section title="BGP-LS Link Attribute TLVs" anchor="sect-6.3">
    <t>
    IANA maintains the registry for "BGP-LS NLRI and Attribute TLVs".
    IANA is requested to allocate the following TLVs from this registry.
    </t>


       <table anchor="iana-tlv-type-tblbgpls" align="center">
       <name>BGP-LS Attribute TLV Types</name>
        <thead>
          <tr>
            <th align="left">Value</th>
            <th align="center">Description</th>
            <th align="left">Reference</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">TBA21 </td>
            <td align="center">Unidirectional Link BER</td>
            <td align="left">This document</td>
          </tr>
          <tr>
            <td align="left">TBA22 </td>
            <td align="center">Unidirectional Link PER</td>
            <td align="left">This document</td>
          </tr>
        </tbody>
    </table>
    </section>

    </section>

    </middle>

    <back>
    <references title="Normative References">
    &RFC2119; 
    &RFC7471;
    &RFC7684;
    &RFC8174; 
    &RFC8362;
    &RFC8570;
    &RFC8571;
    &RFC9492;

    </references>
    <references title="Informative References">
    &RFC4203;
    &RFC5120;
    &RFC5305;
    &RFC9346;
    &RFC9552;

    </references>
    <section title="Acknowledgments" numbered="no" anchor="acknowledgments">
<t>
    TBA.
</t>
    </section>

    </back>

    </rfc>
