<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="3"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>

<rfc category="std" number="8571" ipr="trust200902" submissionType="IETF"
     consensus="yes">

  <front>

    <title abbrev="BGP-LS Advertisement of IGP TE Metric Extensions">BGP - Link
    State (BGP-LS) Advertisement of IGP Traffic Engineering Performance
    Metric Extensions</title>

    <author fullname="Les Ginsberg" initials="L." role="editor"
            surname="Ginsberg">
      <organization>Cisco Systems, Inc.</organization>
      <address>
        <postal>
          <street/>
          <city/>
          <code/>
          <country>United States of America</country>
        </postal>
        <email>ginsberg@cisco.com</email>
      </address>
    </author>

    <author fullname="Stefano Previdi" initials="S." surname="Previdi">
      <organization>Huawei</organization>
      <address>
        <postal>
          <street/>
          <city/>
          <code/>
          <country>Italy</country>
        </postal>
        <email>stefano@previdi.net</email>
      </address>
    </author>

    <author fullname="Qin Wu" initials="Q." surname="Wu">
      <organization>Huawei</organization>
      <address>
        <postal>
          <street>101 Software Avenue, Yuhua District</street>
          <city>Nanjing, Jiangsu</city>
          <code>210012</code>
          <country>China</country>
        </postal>
        <email>bill.wu@huawei.com</email>
      </address>
    </author>

    <author fullname="Jeff Tantsura" initials="J." surname="Tantsura">
      <organization>Apstra, Inc.</organization>
      <address>
        <postal>
          <street/>
          <city/>
          <region/>
          <code/>
          <country>United States of America</country>
        </postal>
        <email>jefftant.ietf@gmail.com</email>
      </address>
    </author>

    <author fullname="Clarence Filsfils" initials="C." surname="Filsfils">
      <organization>Cisco Systems, Inc.</organization>
      <address>
        <postal>
          <street/>
          <city>Brussels</city>
          <region/>
          <code/>
          <country>Belgium</country>
        </postal>
        <email>cfilsfil@cisco.com</email>
      </address>
    </author>

    <date month="March" year="2019"/>

    <abstract>
      <t>This document defines new BGP - Link State (BGP-LS) TLVs in order to
      carry the IGP Traffic Engineering Metric Extensions defined in the
      IS-IS and OSPF protocols.</t>
    </abstract>
  </front>

  <middle>
    <section title="Introduction">
      <t>BGP - Link State (BGP-LS) <xref target="RFC7752"/> defines
      Network Layer Reachability Information (NLRI) and attributes in
      order to carry link-state information. New BGP-LS Link Attribute TLVs
      are required in order to carry the Traffic Engineering Metric Extensions
      defined in <xref target="RFC8570"/> and <xref
      target="RFC7471"/>.</t>
    </section>

    <section title="Link Attribute TLVs for TE Metric Extensions">
      <t>The following new Link Attribute TLVs are defined:</t>

      <t><figure>
          <artwork><![CDATA[    TLV Code Point                 Value
   --------------------------------------------------------
    1114              Unidirectional Link Delay

    1115              Min/Max Unidirectional Link Delay

    1116              Unidirectional Delay Variation

    1117              Unidirectional Link Loss
 
    1118              Unidirectional Residual Bandwidth

    1119              Unidirectional Available Bandwidth

    1120              Unidirectional Utilized Bandwidth
]]></artwork>
        </figure>TLV formats are described in detail in the following
      subsections. TLV formats follow the rules defined in <xref
      target="RFC7752"/>.</t>

      <section title="Unidirectional Link Delay TLV">
        <t>This TLV advertises the average link delay between two directly
        connected IGP link-state neighbors. The semantics and values of the
        fields in the TLV are described in <xref target="RFC8570"/>
        and <xref target="RFC7471"/>.</t>

        <figure align="center" anchor="DELAYFIG">
          <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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   Type                        |           Length              |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |A|  RESERVED   |                   Delay                       |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>
        </figure>

        <t>where:</t>
      <t><list style="hanging">
        <t hangText="Type:">1114</t>

        <t hangText="Length:">4</t>
      </list></t>
      </section>

      <section title="Min/Max Unidirectional Link Delay TLV">
        <t>This TLV advertises the minimum and maximum delay values
        between two directly connected IGP link-state neighbors. The semantics
        and values of the fields in the TLV are described in
        <xref target="RFC8570"/> and <xref target="RFC7471"/>.</t>

        <figure align="center" anchor="MINMAXFIG">
          <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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   Type                        |           Length              |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |A| RESERVED    |                   Min Delay                   |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   RESERVED    |                   Max Delay                   |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>
        </figure>

        <t>where:</t>

      <t><list style="hanging">
        <t hangText="Type:">1115</t>

        <t hangText="Length:">8</t>
      </list></t>
      </section>

      <section title="Unidirectional Delay Variation TLV">
        <t>This TLV advertises the average link delay variation between
        two directly connected IGP link-state neighbors. The semantics
        and values of the fields in the TLV are described in
        <xref target="RFC8570"/> and <xref target="RFC7471"/>.</t>

        <figure align="center" anchor="DELAYVARFIG">
          <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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   Type                        |           Length              |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |  RESERVED     |               Delay Variation                 |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>
      </figure>

        <t>where:</t>

      <t><list style="hanging">
        <t hangText="Type:">1116</t>

        <t hangText="Length:">4</t>
      </list></t>
      </section>

      <section title="Unidirectional Link Loss TLV">
        <t>This TLV advertises the loss (as a packet percentage) between
        two directly connected IGP link-state neighbors. The semantics
        and values of the fields in the TLV are described in
        <xref target="RFC8570"/> and <xref target="RFC7471"/>.</t>

        <figure align="center" anchor="ULLOSSFIG">
          <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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   Type                        |           Length              |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |A|  RESERVED   |                  Link Loss                    |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>
        </figure>

        <t>where:</t>

      <t><list style="hanging">
        <t hangText="Type:">1117</t>

        <t hangText="Length:">4</t>
      </list></t>
      </section>

      <section anchor="RESBW" title="Unidirectional Residual Bandwidth TLV">
        <t>This TLV advertises the residual bandwidth between two directly
        connected IGP link-state neighbors. The semantics and values of the
        fields in the TLV are described in <xref target="RFC8570"/> and
        <xref target="RFC7471"/>.</t>

        <figure align="center" anchor="RESBANDFIG">
          <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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   Type                        |           Length              |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                          Residual Bandwidth                   |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>
        </figure>

        <t>where:</t>

      <t><list style="hanging">
        <t hangText="Type:">1118</t>

        <t hangText="Length:">4</t>
      </list></t>
      </section>

      <section title="Unidirectional Available Bandwidth TLV">
        <t>This TLV advertises the available bandwidth between two
        directly connected IGP link-state neighbors. The semantics
        and values of the fields in the TLV are described in
        <xref target="RFC8570"/> and <xref target="RFC7471"/>.</t>

        <figure align="center" anchor="AVAILFIG">
          <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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   Type                        |           Length              |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                      Available Bandwidth                      |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>
        </figure>

        <t>where:</t>

      <t><list style="hanging">
        <t hangText="Type:">1119</t>

        <t hangText="Length:">4</t>
      </list></t>
      </section>

      <section title="Unidirectional Utilized Bandwidth TLV">
        <t>This TLV advertises the bandwidth utilization between two
        directly connected IGP link-state neighbors. The semantics
        and values of the fields in the TLV are described in
        <xref target="RFC8570"/> and <xref target="RFC7471"/>.</t>

        <figure align="center" anchor="UTILFIG">
          <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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   Type                        |           Length              |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                     Utilized Bandwidth                        |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>
        </figure>

        <t>where:</t>

      <t><list style="hanging">
        <t hangText="Type:">1120</t>

        <t hangText="Length:">4</t>
      </list></t>
      </section>

      <section title="Mappings to IGP Source Sub-TLVs">
        <t>This section documents the mappings between the Link Attribute TLVs
        defined in this document and the corresponding advertisements sourced
        by the IGPs.</t>

        <t>For OSPFv2 and OSPFv3, the advertisements are defined in <xref
        target="RFC7471"/>. For IS-IS, the advertisements are defined in <xref
        target="RFC8570"/>.</t>

        <t><figure align="center" anchor="IGPCODESFIG">
            <artwork><![CDATA[+---------------------------------------+----------+----------------+
| Attribute Name                        |  IS-IS   | OSPFv2/OSPFv3  |
|                                       | Sub-TLV  |   Sub-TLV      |
+---------------------------------------+----------+----------------+
| Unidirectional Link Delay             |   33     |     27         |
+---------------------------------------+----------+----------------+
| Min/Max Unidirectional Link Delay     |   34     |     28         |
+---------------------------------------+----------+----------------+
| Unidirectional Delay Variation        |   35     |     29         |
+---------------------------------------+----------+----------------+
| Unidirectional Link Loss              |   36     |     30         |
+---------------------------------------+----------+----------------+
| Unidirectional Residual Bandwidth     |   37     |     31         |
+---------------------------------------+----------+----------------+
| Unidirectional Available Bandwidth    |   38     |     32         |
+---------------------------------------+----------+----------------+
| Unidirectional Utilized Bandwidth     |   39     |     33         |
+---------------------------------------+----------+----------------+
]]></artwork>
          </figure></t>
      </section>
    </section>

    <section title="Security Considerations">
      <t>Procedures and protocol extensions defined in this document do not
      affect the BGP security model. See the "Security Considerations" section
      of <xref target="RFC4271"/> for a discussion of BGP security. Also, refer
      to <xref target="RFC4272"/> and <xref target="RFC6952"/> for analyses of
      security issues for BGP. Security considerations for acquiring and
      distributing BGP-LS information are discussed in <xref
      target="RFC7752"/>.</t>

      <t>The TLVs introduced in this document are used to propagate
      the Traffic Engineering Metric Extensions defined in
      <xref target="RFC8570"/> and <xref target="RFC7471"/>.
      These TLVs represent the state and resource
      availability of the IGP link. It is assumed that the IGP instances
      originating these TLVs will support all the required security and
      authentication mechanisms (as described in <xref target="RFC8570"/>
      and <xref target="RFC7471"/>) in order to prevent any security issues
      when propagating the TLVs into BGP-LS. The advertisement of the link
      attribute information defined in this document presents no additional
      risk beyond that associated with the existing link attribute information
      already supported in <xref target="RFC7752"/>.</t>
    </section>

    <section anchor="IANA" title="IANA Considerations">
      <t>IANA has made assignments in the "BGP-LS Node
      Descriptor, Link Descriptor, Prefix Descriptor, and Attribute TLVs"
      registry for
      the new Link Attribute TLVs as listed below: <figure>
          <artwork><![CDATA[
    TLV Code Point    Description
   --------------------------------------------------------
    1114              Unidirectional Link Delay

    1115              Min/Max Unidirectional Link Delay

    1116              Unidirectional Delay Variation

    1117              Unidirectional Link Loss
 
    1118              Unidirectional Residual Bandwidth

    1119              Unidirectional Available Bandwidth

    1120              Unidirectional Utilized Bandwidth
]]></artwork>
        </figure></t>
    </section>

  </middle>

  <back>
    <references title="Normative References">
      <?rfc include="reference.RFC.7471"?>

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

<!-- draft-ietf-lsr-isis-rfc7810bis (RFC 8570) -->
<reference anchor='RFC8570' target="https://www.rfc-editor.org/info/rfc8570">
<front>
<title>IS-IS Traffic Engineering (TE) Metric Extensions</title>
<author initials='L' surname='Ginsberg' fullname='Les Ginsberg' role="editor">
    <organization />
</author>
<author initials='S' surname='Previdi' fullname='Stefano Previdi' role="editor">
    <organization />
</author>
<author initials='S' surname='Giacalone' fullname='Spencer Giacalone'>
    <organization />
</author>
<author initials='D' surname='Ward' fullname='David Ward'>
    <organization />
</author>
<author initials='J' surname='Drake' fullname='John Drake'>
    <organization />
</author>
<author initials='Q' surname='Wu' fullname='Qin Wu'>
    <organization />
</author>
<date month='March' year='2019' />
</front>
<seriesInfo name="RFC" value="8570"/>
<seriesInfo name="DOI" value="10.17487/RFC8570"/>
</reference>

    </references>

    <references title="Informative References">
      <?rfc include="reference.RFC.4271"?>

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

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

    <section anchor="Acknowledgements" title="Acknowledgements" numbered="no">
      <t>The authors wish to acknowledge comments from Ketan Talaulikar.</t>
    </section>

    <section title="Contributors" numbered="no">
      <t>The following people have contributed substantially to this document
      and should be considered coauthors:</t>

      <t><figure>
          <artwork><![CDATA[
   Saikat Ray
   Individual
   Email: raysaikat@gmail.com

   Hannes Gredler
   RtBrick Inc.
   Email: hannes@rtbrick.com
]]></artwork>
        </figure></t>
    </section>
  </back>
</rfc>
