<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="3"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc comments="yes"?>
<?rfc inline="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<rfc category="std" docName="draft-hwy-bfd-sdi-01" ipr="trust200902">
  <front>
    <title abbrev="BFD Signal Degrade Indication">Signal Degrade Indication in
    BFD</title>

    <author fullname="Liuyan Han" initials="L" surname="Han">
      <organization>China Mobile</organization>

      <address>
        <postal>
          <street>No.32 Xuanwumen west street</street>

          <code>100053</code>

          <region>Beijing</region>

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

        <phone/>

        <facsimile/>

        <email>hanliuyan@chinamobile.com</email>
      </address>
    </author>

    <author fullname="Minxue Wang" initials="M" surname="Wang">
      <organization>China Mobile</organization>

      <address>
        <postal>
          <street>No.32 Xuanwumen west street</street>

          <code>100053</code>

          <region>Beijing</region>

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

        <phone/>

        <facsimile/>

        <email>wangminxue@chinamobile.com</email>
      </address>
    </author>

    <author fullname="Fan  Yang" initials="F" surname="Yang">
      <organization>Huawei Technologies</organization>

      <address>
        <postal>
          <street>Huawei Campus, No. 156 Beiqing Rd.</street>

          <city>Beijing</city>

          <region/>

          <code>100095</code>

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

        <phone/>

        <facsimile/>

        <email>shirley.yangfan@huawei.com</email>

        <uri/>
      </address>
    </author>

    <date day="8" month="July" year="2022"/>

    <workgroup>BFD Working Group</workgroup>

    <abstract>
      <t>To satisfy the requirements of signal degrade indication described in
      <xref target="I-D.yang-mpls-ps-sdi-sr"/>, this document illustrates the
      extension of BFD protocol to support signal degrade indication.</t>
    </abstract>

    <note title="Requirements Language">
      <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">RFC 2119</xref>.</t>
    </note>
  </front>

  <middle>
    <section title="Background">
      <t>Signal Degrade (SD) is categorized as one of triggers to bring
      survivability challenge to networks <xref target="RFC4428"/>. Not like
      the signal failure caused by failure of links or nodes, Signal Degrade
      (SD) is normally caused by fiber aging, fiber impairment, fiber
      pollution, optical module mismatch or WDM transmission error etc.</t>

      <t>The detection and transmission of signal degrade is discussed in
      <xref target="I-D.zhl-mpls-tp-sd"/> and <xref
      target="I-D.yang-mpls-ps-sdi-sr"/>. When signal degrade is detected, it
      can be spread via control plane, forwarding plane, or management plane,
      or combination of any of them.</t>

      <t>BFD <xref target="RFC5880"/> and SBFD <xref target="RFC7880"/> are
      widely used as the failure notification in networks due to the
      characteristics of simplicity and efficiency. BFD also provides good
      opportunity to indicate signal degrade by reflecting it in BFD state
      changes. This document extends the BFD protocol to carry signal degrade
      indication in networks.</t>

      <t/>
    </section>

    <section title="Terminology">
      <t>SD: Signal Degrade</t>

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

      <t>MIP: Maintenance Entity Group Intermediate Point</t>

      <t>PLR: Packet Loss Rate</t>

      <t>FEC: Forwarding Error Correction</t>

      <t>SLA: Service Level Agreement</t>

      <t>BFD: Bidirectional Forwarding Detection</t>

      <t>SBFD: Seamless BFD</t>

      <t>OAM: Operation, Administration and Maintenance</t>

      <t/>
    </section>

    <section title="Signal Degrade Overview">
      <section title="Signal Degrade Definition">
        <t>In [IEEE 802.3-2018], Bit Error Rate (BER) is defined as the ratio
        of the number of bits received in error to the total number of bits
        received. It is one of parameters to indicate quality of physical
        links. Depending on the Forwarding Error Correction (FEC) capability
        of PHYs, BER can be classified into pre-FEC BER and post-FEC BER. The
        pre-FEC BER value acquired from PHY on receiving port indicates the on
        wire BER value of physical link. This value can also be measured via
        external test instruments. Generally speaking, BER specifically refers
        to pre-FEC BER. If FEC capability is unavailable for some legacy PHYs,
        it is meaningless to differentiate pre-FEC and post-FEC BER
        values.</t>

        <t>Signal degrade can be detected based on the physical bit error
        statistic on port level, no matter whether the PHY is with or without
        Forwarding Error Correction. Port level statistic is an intuitive
        approach to be best understood in the equipment and network systems.
        In practice, flexible configuration of the watermark to trigger the
        indication of signal degrade is also preferred.</t>

        <t/>
      </section>

      <section title="Signal Degrade vs Packet Loss Rate">
        <t>In packet switched network, the measurement of physical link is
        based on the unit of packet, resulting in either no packet loss or a
        number of packet loss to indicate the status of link. Although PHYs
        are defined in [IEEE 802.3-2018], vendors may have different
        implementations to deal with the error bits when equipment detects
        them. Moreover, bit is a fix unit, but packet has variable length.
        Several error bits can lead to one packet loss, or multiple packets'
        loss. There is no uniform approach to calculate pre-FEC BER into PLR.
        It means there is no parameter directly indicated the status of
        physical links in packet switched network.</t>

        <t/>
      </section>

      <section title="Use BFD to Support Signal Degrade Indication">
        <t>For the network where BFD is used to provide the fast failure
        detection, the minimal detection interval e.g. 3.3ms actually leaves a
        huge gap of data packets between two consecutive BFD packets when the
        line rate packets are transmitted over high speed Ethernet link. Take
        an example of 10Gbps link transmitting the packets with length of 192
        bytes to calculate, more than twenty thousand packets are transmitted
        within 3.3ms. Note that the criteria to announce a failure of BFD
        based on three consecutive BFD packet loss. It may not be accurate to
        rely on BFD to detect and trigger the protection mechanism if there is
        signal degrade on the physical link.</t>
      </section>

      <section title="Notification Spread in Network">
        <t>In current packet switched networks, the error bit information like
        BER is only obtained and processed locally on each node. There is no
        indication or advertisement of the errors or its indications of
        physical links. It should be possible to spread this information via
        control plane, management plane or even data plane to suit for
        different needs. Especially, if the signal degrade of the link could
        be transmitted in data plane and aware by any other nodes, local
        repair or end-to-end path protection could be performed even more
        efficiently. Previous work proposed in <xref
        target="I-D.rkhd-mpls-tp-sd"/>, <xref target="I-D.zhl-mpls-tp-sd"/>
        and <xref target="I-D.zhang-ccamp-rsvpte-ber-measure"/> give the
        examples of protocol extensions to support SD transmission for further
        network convergence behaviors. With the emerge of telemetry, it is
        also possible to collect and report this information more frequently
        to SDN controller to facilitate the network operation and
        management.</t>
      </section>
    </section>

    <section title="BFD Extension to Indicate Signal Degrade">
      <t>The Diagnostic code in BFD specifies the local system's reason for
      the last change in session state. The definition of the Values is
      specified in Section 4.1 of <xref target="RFC5880"/>.</t>

      <t>In this document, reserved values from 9 to 31 are requested to IANA
      to support the signal degrade indication and removal.</t>

      <t><figure align="center">
          <preamble>(preamble)</preamble>

          <artwork><![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
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |Vers |  Diag   |Sta|P|F|C|A|D|M|  Detect Mult  |    Length     |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                       My Discriminator                        |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                      Your Discriminator                       |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                    Desired Min TX Interval                    |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                   Required Min RX Interval                    |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                 Required Min Echo RX Interval                 |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                   Authentication (optional)                   |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>

          <postamble>BFD Packet Format</postamble>
        </figure></t>

      <t/>

      <t/>
    </section>

    <section title="IANA Considerations">
      <t>The document requires the definition of the new indication and
      removal of the signal degrade indication in BFD Value code.</t>
    </section>

    <section title="Security Considerations">
      <t>TBD</t>
    </section>
  </middle>

  <back>
    <references title="Normative References">
      <?rfc ?>

      <?rfc include="reference.RFC.2119"?>

      <?rfc include="reference.RFC.7880"?>

      <?rfc include="reference.RFC.5880"?>
    </references>

    <references title="Informative References">
      <?rfc include='reference.I-D.yang-mpls-ps-sdi-sr'?>

      <?rfc include='reference.RFC.4428'
?>

      <?rfc include='reference.RFC.6372'?>

      <?rfc include='reference.RFC.5586'?>

      <?rfc include='reference.I-D.zhl-mpls-tp-sd'?>

      <?rfc include='reference.I-D.rkhd-mpls-tp-sd'?>

      <?rfc include='reference.I-D.zhang-ccamp-rsvpte-ber-measure'?>

      <?rfc ?>

      <?rfc ?>

      <?rfc ?>
    </references>
  </back>
</rfc>
