<?xml version="1.0" encoding="US-ASCII"?>
<!-- edited with XMLSPY v5 rel. 3 U (http://www.xmlspy.com)
     by Daniel M Kohn (private) -->
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY rfc2119 PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml">
]>
<?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-wang-lsr-passive-interface-attribute-02"
     ipr="trust200902">
  <front>
    <title abbrev="PIA">Passive Interface Attribute</title>

    <author fullname="Aijun Wang" initials="A" surname="Wang">
      <organization>China Telecom</organization>

      <address>
        <postal>
          <street>Beiqijia Town, Changping District</street>

          <city>Beijing</city>

          <code>102209</code>

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

        <email>wangaj3@chinatelecom.cn</email>
      </address>
    </author>

    <author fullname="Zhibo Hu" initials="Z" surname="Hu">
      <organization>Huawei Technologies</organization>

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

          <city>Beijing</city>

          <code>100095</code>

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

        <email>huzhibo@huawei.com</email>
      </address>
    </author>

    <author fullname="Gyan S. Mishra" initials="G" surname="Mishra">
      <organization>Verizon Inc.</organization>

      <address>
        <postal>
          <street>13101 Columbia Pike</street>

          <city>Silver Spring</city>

          <code>MD 20904</code>

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

        <email>gyan.s.mishra@verizon.com</email>
      </address>
    </author>

    <date day="28" month="September" year="2020"/>

    <area>RTG Area</area>

    <workgroup>LSR Working Group</workgroup>

    <keyword>RFC</keyword>

    <abstract>
      <t>This document describes the mechanism that can be used to
      differentiate the passive interfaces from the normal interfaces within
      ISIS or OSPF domain.</t>
    </abstract>
  </front>

  <middle>
    <section anchor="intro" title="Introduction">
      <t>Passive interfaces are used commonly within an operators enterprise
      or service provider networks. One of the most common use cases for
      passive interface is in a data center Layer 2 and Layer 3 TOR(Top of
      Rack) switch where the inter connected link between the TOR switches and
      uplink to the Core switch are only a few links and a majority of the
      links are Layer 3 VLAN Switched Virtual Interface Default Gateways
      trunked betwen the TOR switches servicing Layer 2 broadcast domains. In
      this scenario all the VLANs are made passive as it is recommended to
      limit the number of network LSAs between routers and switches to avoid
      unnecessary hello processing overhead.</t>

      <t>Another common use case is an inter-as routing scenario where the
      same routing protocol but diffent IGP instance is running between the
      adjacent BGP domains. Using passive interface on the inter-as tiepoint
      connections can ensure that prefixes contained within a domain are only
      reachable within the domain itself and not allow the link state database
      to be merged between domain which could result in undesirable
      consequences.</t>

      <t>For operator which runs different IGP domains that interconnect with
      each other, there is desire to obtain the inter-as topology information
      as described in <xref
      target="I-D.ietf-idr-bgpls-inter-as-topology-ext"/>. If the router that
      runs BGP-LS is within one IGP domain and can distinguish passive
      interfaces from other interfaces with transit neighbor, it is then easy
      for the router to report these passive links using BGP-LS to centralized
      PCE controller.</t>

      <t>But OSPF and ISIS have no capabilities to flag such passive
      interface.</t>

      <t>This document defines the protocol extension for OSPF and ISIS for
      the prefix that comes from passive interface.</t>
    </section>

    <section title="Conventions used in this document">
      <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"/>
      .</t>
    </section>

    <section title="Scenario Description">
      <t>Figure 1 illustrates the topology scenario when ISIS/OSPF is running
      in different domain. B1, B3 are border routers within IGP domain A, B2,
      B4 are border routers within domain B. S1-S4 are the internal routers
      within domain A, T1-T4 are the internal routers within domain B. The two
      domain are interconnected via the links between B1/B2 and B3/B4.</t>

      <t>Passive interfaces are enabled in the links between B1/B2 and B3/B4
      respectively. For domain A and B, the S2/T1 router that runs ISIS/OSPF
      can't extract the passives links from the normal links and report it to
      PCE controller via the BGP-LS protocol. They can only judge the passive
      interfaces from other characteristics, such as no IGP neighbor on this
      link. Such judgement can extract these passive links but it is not
      accurate, because it covers also the situation when there are some
      issues to establish the ISIS adjacency/OSPF neighbor but not the passive
      interface.</t>

      <t>For passive interfaces that are used in the edge router or switches
      which connects the server, for example in the router S1/S4 and T2/T4 in
      Figure 1, knowing these interfaces are correctly configured will also
      benefit the management of them.</t>

      <t>The method to label these passive interfaces explicitly is necessary
      then.</t>

      <t><figure>
          <artwork align="center"><![CDATA[                      +-----------------+
                 +----+IP SDN Controller+----+
                 |    +-----------------+    |
                 |                           |
                 |BGP-LS                     |BGP-LS
                 |                           |
 +---------------+-----+               +-----+--------------+
 | +--+        +-++   ++-+           +-++   +|-+        +--+|
 | |S1+--------+S2+---+B1+-----------+B2+---+T1+--------+T2||
 | +-++   N1   +-++   ++-+           +-++   ++++   N2   +-++|
 |   |           |     |               |     ||           | |
 |   |           |     |               |     ||           | |
 | +-++        +-++   ++-+           +-++   ++++        +-++|
 | |S4+--------+S3+---+B3+-----------+B4+---+T3+--------+T4||
 | +--+        +--+   ++-+           +-++   ++-+        +--+|
 |                     |               |                    |
 |                     |               |                    |
 |  Domain A(ISIS)     |               |  Domain B(OSPF)    |
 +---------------------+               +--------------------+

             Figure 1: Inter-AS Domain Scenarios
]]></artwork>
        </figure></t>
    </section>

    <section title="Passive Interface Attribute">
      <section title="ISIS Passive Interface Attribute">
        <t><xref target="RFC7794"/> defines the "IPv4/IPv6 Extended
        Reachability Attribute Flags" sub-TLV to advertise the additional
        flags associated with a given prefix advertisement. We propose new
        bit(Bit 5 is desired) to be assigned by the IANA for the passive
        interface attribute, as illustrated in Figure2:</t>

        <t><figure>
            <artwork align="center"><![CDATA[                     0 1 2 3 4 5 6 7
                     +-+-+-+-+-+-+-+-+
                     |X|R|N|E|A|U     
                     +-+-+-+-+-+-+-+-+
                Figure 2: Prefix Attribute Flags

        U-flag: Unactive Flag(Bit 5)
                Set for local interface that is configured as passive interface.
]]></artwork>
          </figure></t>

        <t>When the interfaces on one router be configured as the passive
        interface, the U-flag bit will be set in the "IPv4/IPv6 Extended
        Reachability Attribute Flags" sub-TLV. This sub-TLV will be included
        in the TLV 135, TLV 235, TLV 236 and TLV 237 as necessary and be
        flooded within the ISIS domain.</t>
      </section>

      <section title="OSPF Passive Interface Attribute">
        <t><xref target="RFC5340"/> defines the "Prefix Option field" in
        "Intra-Area-Prefix-LSAs" LSA to describe the prefix capabilities. The
        bits in this field can be defined to flag the prefix is coming from
        the passive interface. We propose new bit(Bit 1 is desired) to be
        assigned by the IANA for the passive interface, as illustrated in
        Figure 3:</t>

        <t><figure>
            <artwork align="center"><![CDATA[                     0  1  2  3  4  5  6  7
                    +--+--+--+--+--+-+--+--+
                    |  |  | U|DN| P|x|LA|NU|
                    +--+--+--+--+--+-+--+--+

                 Figure 3: The PrefixOptions Field

        U-flag: Unactive Flag(Bit 0)
                Set for local interface that is configured as passive interface.
]]></artwork>
          </figure></t>

        <t>When the interfaces on one router be configured as the passive
        interface, the U-flag bit will be set in the "Prefix Option field" of
        Intra-Area-Prefix-LSAs.</t>

        <t>The router receives such advertisement can then easily distinguish
        the passive interfaces from the normal interface, and reports them to
        the PCE controller if it run the BGP-LS protocol.</t>
      </section>
    </section>

    <section title="Security Considerations">
      <t>Security concerns for ISIS are addressed in <xref target="RFC5304"/>
      and<xref target="RFC5310"/></t>

      <t>Advertisement of the additional information defined in this document
      introduces no new security concerns.</t>
    </section>

    <section title="IANA Considerations">
      <t>IANA is requested to allocate the P-bit (bit position 5 is desired)
      from the "Bit Values for Prefix Attribute Flags Sub-TLV" registry.</t>
    </section>

    <section title="Acknowledgement">
      <t>Thanks Shunwan Zhang, Tony Li, Les Ginsberg and Robert Raszuk for
      their suggestions and comments on this idea.</t>
    </section>
  </middle>

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

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

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

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

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

    <references title="Informative References">
      <?rfc include="reference.I-D.ietf-idr-bgpls-inter-as-topology-ext"?>
    </references>
  </back>
</rfc>
