<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<rfc ipr="trust200902"
     docName="draft-ietf-idr-otc-rs-verification-01"
     category="std"
     submissionType="IETF"
     updates="9234"
     consensus="true"
     tocInclude="true"
     tocDepth="3"
     sortRefs="true"
     symRefs="true"
     version="3"
     xml:lang="en">

  <front>
    <title abbrev="Route Leak Detection by RS-Client">
      Route Leak Detection by RS-Client Using Only to Customer (OTC)
      Attribute
    </title>

    <seriesInfo name="Internet-Draft" value="draft-ietf-idr-otc-rs-verification-01" stream="IETF"/>

    <author fullname="Bryton Herdes" initials="B." surname="Herdes">
      <organization abbrev="Cloudflare">Cloudflare, Inc.</organization>
      <address>
        <postal>
          <street/>
          <city>Champaign</city>
          <region>Illinois</region>
          <code/>
          <country>United States of America</country>
        </postal>
        <email>bryton@cloudflare.com</email>
      </address>
    </author>

    <author fullname="Alexander Azimov" initials="A." surname="Azimov">
      <organization>Yandex</organization>
      <address>
        <postal>
          <street>Ulitsa Lva Tolstogo 16</street>
          <city>Moscow</city>
          <code>119021</code>
          <country>Russian Federation</country>
        </postal>
        <email>a.e.azimov@gmail.com</email>
      </address>
    </author>

    <author fullname="Antonis Chariton" initials="A." surname="Chariton">
      <organization>Cisco</organization>
      <address>
        <postal>
          <city>Zurich</city>
          <code>8000</code>
          <country>Switzerland</country>
        </postal>
        <email>acharito@cisco.com</email>
      </address>
    </author>

    <area>Routing</area>
    <workgroup>Inter-Domain Routing</workgroup>

    <keyword>BGP</keyword>
    <keyword>route leak</keyword>
    <keyword>OTC</keyword>
    <keyword>route server</keyword>
    <keyword>IXP</keyword>

    <abstract>
      <t>
        RFC 9234 can be used for both prevention and detection
        of route leaks by enforcing appropriate BGP Role configuration.
        However, RFC 9234 does not specify any route leak check for routes
        received from Route Servers (RS), causing leak detection and mitigation
        to be dependent on whether the RS implements BGP Roles. This document
        updates RFC 9234 and defines a new check for RS-Clients. This new check
        improves RFC 9234 partial deployment scenarios.
      </t>
    </abstract>
  </front>

  <middle>
    <section anchor="introduction" numbered="true">
      <name>Introduction</name>

      <t>
        <xref target="RFC9234"/> specifies OTC Attribute and Peering Roles: Customer, Provider, Peer, RS, and RS-Client.
        Section 5 of <xref target="RFC9234"/> specifies ingress filtering based on the OTC value for routes received from a Peer. It says:
      </t>
      <blockquote quotedFrom="RFC 9234">
        If a route with the OTC Attribute is received from a Peer (i.e., remote AS with a Peer Role) and the Attribute has a value that is not equal to the remote (i.e., Peer's) AS number, then it is a route leak and MUST be considered ineligible.
      </blockquote>
      <t>
        For the routes received from an RS, <xref target="RFC9234"/> doesn't specify any route leak check, though an RS basically provides service for indirect peering, thus the same procedure as for a Peer should be applied.
      </t>
      <t>
        <xref target="update"/> extends this check to routes received from an RS, so that an RS-Client verifies that, if the OTC Attribute is present, its value matches the RS's AS number.
      </t>

      <section anchor="requirements" numbered="true">
        <name>Requirements Language</name>
        <t>
          The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>", "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as described in BCP&nbsp;14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all capitals, as shown here.
        </t>
      </section>

      <section anchor="terminology" numbered="true">
        <name>Terminology</name>
        <t>
          Terminology follows <xref target="RFC9234"/>: the BGP Roles Provider, Customer, RS, RS-Client, and Peer are as defined in its Sections 3.1 and 4, and "local AS" and "remote AS" are the two ends of an eBGP session.
          "Route is ineligible" is as in <xref target="RFC4271"/>.
        </t>
      </section>
    </section>

    <section anchor="problem" numbered="true">
      <name>Problem Statement</name>

      <t>
        An RS exists to redistribute routes between RS-Clients that peer laterally through it.
        <xref target="RFC9234"/> states that if a route received by an RS from an RS-Client has the OTC Attribute, it is a route leak.
        But if the RS is non-compliant, it will accept the route without checking the OTC value and redistribute it to its RS-Clients.
      </t>
      <t>
        If the RS implements <xref target="RFC9234"/>, it will reject routes received from its RS-Clients if the OTC Attribute is present.
        If the OTC Attribute is absent, a compliant RS will add the OTC Attribute with a value equal to its own AS number when advertising routes to its RS-Clients.
      </t>
      <t>
        From the point of view of the RS-Client, a correct route received from an RS can only carry either no OTC Attribute or one with a value equal to the RS's AS number.
        Otherwise, it is a route leak.
      </t>
    </section>

    <section anchor="update" numbered="true">
      <name>Update to the OTC Ingress Procedure</name>

      <t>
        This section updates Section 5 of <xref target="RFC9234"/> by adding a new check for RS-Clients.
      </t>
      <t>
        If a route with the OTC Attribute is received from an RS (i.e., local AS with an RS-Client Role) and the Attribute has a value that is not equal to the remote (i.e., RS's) AS number, then it is a route leak and MUST be considered ineligible.
      </t>
    </section>

    <section anchor="ops" numbered="true">
      <name>Operational Considerations</name>
      <t>
        The update in <xref target="update"/> is backwards compatible with <xref target="RFC9234"/> on the wire: it does not change the OTC Attribute or the BGP Role Capability, and it does not require any new BGP capability negotiation between implementations.
      </t>
    </section>

    <!-- ================================================================= -->
    <section anchor="iana" numbered="true">
      <name>IANA Considerations</name>
      <t>
        This document has no IANA actions.
      </t>
    </section>

    <!-- ================================================================= -->
    <section anchor="impl" numbered="true" removeInRFC="true">
      <name>Implementation Status</name>
      <t>
        This section records the status of known implementations of the
        protocol defined by this specification at the time of posting of
        this Internet-Draft, and is based on a proposal described in
        <xref target="RFC7942"/>.
        The description of implementations in this section is intended to
        assist the IETF in its decision processes in progressing drafts to
        RFCs.
        Please note that the listing of any individual implementation here
        does not imply endorsement by the IETF.
        Furthermore, no effort has been spent to verify the information
        presented here that was supplied by IETF contributors.
        This is not intended as, and must not be construed to be, a catalog
        of available implementations or their features.
        Readers are advised to note that other implementations may exist.
      </t>
      <t>
        According to <xref target="RFC7942"/>, "this will allow reviewers
        and working groups to assign due consideration to documents that
        have the benefit of running code, which may serve as evidence of
        valuable experimentation and feedback that have made the
        implemented protocols more mature.
        It is up to the individual working groups to use this information
        as they see fit".
      </t>
      <t>
        The IDR working group maintains an implementation report for this
        document at
        <eref target="https://wiki.ietf.org/group/idr/implementations/draft-ietf-idr-otc-rs-verification" brackets="angle"/>.
        Known implementations of the check specified in
        <xref target="update"/> are:
      </t>
      <ul spacing="normal">
        <li>
          <eref target="https://frrouting.org/">FRRouting (FRR)</eref>:
          implemented, and to be released starting with FRR 10.8.
          Licensed under the GPLv2 or later.
          Reported to the IDR working group on 20 November 2026:
          <eref target="https://mailarchive.ietf.org/arch/msg/idr/AE0Sn1xxRNHi38seMinfNqLfA8U/" brackets="angle"/>.
        </li>
        <li>
          <eref target="https://www.openbgpd.org/">OpenBGPD</eref>:
          to be included in the next OpenBGPD release after 9.3.
          Licensed under the ISC (BSD-style) license.
          Reported to the IDR working group on 19 October 2026:
          <eref target="https://mailarchive.ietf.org/arch/msg/idr/dakmMszNXCDAoamGnOggJ-EDcHo/" brackets="angle"/>.
        </li>
      </ul>
    </section>

    <!-- ================================================================= -->
    <section anchor="security" numbered="true">
      <name>Security Considerations</name>
      <t>
        The security considerations in Section 8 of <xref target="RFC9234"/> apply.
      </t>
      <t>
        The imposition of the extra OTC check specified in this document
        improves route leak detection and mitigation in partial deployment
        scenarios.
      </t>
    </section>

  </middle>

  <back>

    <references>
      <name>References</name>

      <references>
        <name>Normative References</name>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author fullname="S. Bradner" initials="S." surname="Bradner"/>
            <date month="March" year="1997"/>
            <abstract>
              <t>In many standards track documents several words are used to signify the requirements in the specification. These words are often capitalized. This document defines these words as they should be interpreted in IETF documents. This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <date month="May" year="2017"/>
            <abstract>
              <t>RFC 2119 specifies common key words that may be used in protocol specifications. This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the defined special meanings.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
        <reference anchor="RFC9234" target="https://www.rfc-editor.org/info/rfc9234">
          <front>
            <title>Route Leak Prevention and Detection Using Roles in UPDATE and OPEN Messages</title>
            <author fullname="A. Azimov" initials="A." surname="Azimov"/>
            <author fullname="E. Bogomazov" initials="E." surname="Bogomazov"/>
            <author fullname="R. Bush" initials="R." surname="Bush"/>
            <author fullname="K. Patel" initials="K." surname="Patel"/>
            <author fullname="K. Sriram" initials="K." surname="Sriram"/>
            <date month="May" year="2022"/>
            <abstract>
              <t>Route leaks are the propagation of BGP prefixes that violate assumptions of BGP topology relationships, e.g., announcing a route learned from one transit provider to another transit provider or a lateral (i.e., non-transit) peer or announcing a route learned from one lateral peer to another lateral peer or a transit provider. These are usually the result of misconfigured or absent BGP route filtering or lack of coordination between autonomous systems (ASes). Existing approaches to leak prevention rely on marking routes by operator configuration, with no check that the configuration corresponds to that of the External BGP (eBGP) neighbor, or enforcement of the two eBGP speakers agreeing on the peering relationship. This document enhances the BGP OPEN message to establish an agreement of the peering relationship on each eBGP session between autonomous systems in order to enforce appropriate configuration on both sides. Propagated routes are then marked according to the agreed relationship, allowing both prevention and detection of route leaks.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9234"/>
          <seriesInfo name="DOI" value="10.17487/RFC9234"/>
        </reference>
        <reference anchor="RFC4271" target="https://www.rfc-editor.org/info/rfc4271">
          <front>
            <title>A Border Gateway Protocol 4 (BGP-4)</title>
            <author fullname="Y. Rekhter" initials="Y." role="editor" surname="Rekhter"/>
            <author fullname="T. Li" initials="T." role="editor" surname="Li"/>
            <author fullname="S. Hares" initials="S." role="editor" surname="Hares"/>
            <date month="January" year="2006"/>
            <abstract>
              <t>This document discusses the Border Gateway Protocol (BGP), which is an inter-Autonomous System routing protocol.</t>
              <t>The primary function of a BGP speaking system is to exchange network reachability information with other BGP systems. This network reachability information includes information on the list of Autonomous Systems (ASes) that reachability information traverses. This information is sufficient for constructing a graph of AS connectivity for this reachability from which routing loops may be pruned, and, at the AS level, some policy decisions may be enforced.</t>
              <t>BGP-4 provides a set of mechanisms for supporting Classless Inter-Domain Routing (CIDR). These mechanisms include support for advertising a set of destinations as an IP prefix, and eliminating the concept of network "class" within BGP. BGP-4 also introduces mechanisms that allow aggregation of routes, including aggregation of AS paths.</t>
              <t>This document obsoletes RFC 1771. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4271"/>
          <seriesInfo name="DOI" value="10.17487/RFC4271"/>
        </reference>
      </references>

      <references>
        <name>Informative References</name>
        <reference anchor="RFC7942" target="https://www.rfc-editor.org/info/rfc7942">
          <front>
            <title>Improving Awareness of Running Code: The Implementation Status Section</title>
            <author fullname="Y. Sheffer" initials="Y." surname="Sheffer"/>
            <author fullname="A. Farrel" initials="A." surname="Farrel"/>
            <date month="July" year="2016"/>
            <abstract>
              <t>This document describes a simple process that allows authors of Internet-Drafts to record the status of known implementations by including an Implementation Status section. This will allow reviewers and working groups to assign due consideration to documents that have the benefit of running code, which may serve as evidence of valuable experimentation and feedback that have made the implemented protocols more mature.</t>
              <t>This process is not mandatory. Authors of Internet-Drafts are encouraged to consider using the process for their documents, and working groups are invited to think about applying the process to all of their protocol specifications. This document obsoletes RFC 6982, advancing it to a Best Current Practice.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="205"/>
          <seriesInfo name="RFC" value="7942"/>
          <seriesInfo name="DOI" value="10.17487/RFC7942"/>
        </reference>
      </references>
    </references>

    <section anchor="acknowledgements" numbered="false">
      <name>Acknowledgements</name>
      <t>
        The authors would like to thank Job Snijders, Nick Buraglio, and
        James Bensley for their suggestions on this document.
        The authors would also like to thank Claudio Jeker and Donatas
        Abraitis for implementing this specification in OpenBGPD and
        FRRouting, respectively.
      </t>
    </section>
  </back>
</rfc>
