<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY RFC2119 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC8174 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml">
<!ENTITY RFC4271 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4271.xml">
<!ENTITY RFC8279 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8279.xml">
<!ENTITY RFC8126 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8126.xml">
<!ENTITY RFC7606 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7606.xml">
<!ENTITY RFC2283 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2283.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-ietf-bier-idr-extensions-14"
     ipr="trust200902">
  <front>
    <title abbrev="BGP Extensions for BIER">BGP Extensions for BIER</title>

    <author fullname="Xiaohu Xu" initials="X.X." surname="Xu">
      <organization>China Mobile</organization>

      <address>
        <email>xuxiaohu@cmss.chinamobile.com</email>
      </address>
    </author>

    <author fullname="Mach Chen" initials="M.C." surname="Chen">
      <organization>Huawei</organization>

      <address>
        <email>mach.chen@huawei.com</email>
      </address>
    </author>

    <author fullname="Keyur Patel" initials="K.P." surname="Patel">
      <organization>Arrcus, Inc.</organization>

      <address>
        <email>keyur@arrcus.com</email>
      </address>
    </author>

    <author fullname="IJsbrand Wijnands" initials="I.W." surname="Wijnands">
      <organization>Individual</organization>
      <address>
        <email>ice@braindump.be</email>
      </address>
    </author>

    <author fullname="Antoni Przygienda" initials="A.P." surname="Przygienda">
      <organization>Juniper</organization>
      <address>
        <email>prz@juniper.net</email>
      </address>
    </author>
    <author fullname="Zhaohui Zhang" initials="Z." role="editor" surname="Zhang">
      <organization>Juniper</organization>
      <address>
        <email>zzhang@juniper.net</email>
      </address>
    </author>

    <abstract>
      <t>Bit Index Explicit Replication (BIER) is a new multicast forwarding
      architecture that doesn't require an explicit tree-building protocol
      and doesn't require intermediate routers to maintain per-tree multicast
      states. Some BIER-specific information and state, which are only in
      proportion to the network but not per-tree, do need to be advertised,
      calculated, and maintained. This document describes BGP extensions for
      advertising the BIER information and methods for calculating BIER states
	  based on the advertisement in a single Administrative Domain.</t>
    </abstract>

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

  <middle>
    <section title="Introduction">
      <t>Bit Index Explicit Replication (BIER) [RFC8279] is a new multicast
      forwarding architecture which doesn't require an explicit tree-building
      protocol and doesn't require intermediate routers to maintain per-tree
      multicast states. It supports both native and tunneled BIER forwarding.
	  This document describes BGP extensions for advertising
	  the BIER-specific information and the methods for calculating BIER
	  forwarding states with this information. More
      specifically, in this document, we define a new optional
      transitive BGP attribute, referred to as the BIER attribute, to convey
      the BIER-specific information such as BIER Forwarding Router identifier
      (BFR-id), BitString Length (BSL), and so on. The signaling is to be
	  used in a single Administrative Domain, and <xref target="op"/> specifies
	  procedures to prevent the BIER attribute from "leaking out" of the domain.</t>

      <!--t>These extensions are applicable in those multi-tenant data centers
      where BGP instead of IGP is used as an underlay <xref target="RFC7938"/>. These
      extensions may also be applicable to other BGP based network
      scenarios, e.g., as described in <xref target="I-D.ietf-bier-multicast-as-a-service"/>.</t-->
    </section>

    <section anchor="Abbreviations_Terminology" title="Terminology">
      <t>This document makes use of the terms defined in <xref target="RFC4271"/> and [RFC8279]. Some terminologies are listed below for convenience.
      </t>
    <t>BIER: Bit Indexed Explicit Replication</t>
    <t>BFR: BIER Forwarding Router</t>
    <t>BFR-ID: BIER Forwarding Router Identifier</t>
    <t>BIFT: BIER Forwarding Table</t>
    <t>BIFT-id: BIER Forwarding Table Identifier</t>
    <t>BFER: BIER Forwarding Egress Router</t>
    <t>BFR-prefix: Each BFR is assigned a single "BFR-prefix" for each
	sub-domain to which it belongs. It is recommended that the BFR-prefix
	be a loopback address of the BFR.
	</t>
	<t>NLRI: Network Layer Reachability Information <xref target="RFC4271"/></t>
	<t>AFI: Address Family Identifier <xref target="RFC2283"/></t>
	<t>SAFI: Subsequent Address Family Identifier <xref target="RFC2283"/></t>
    </section>

    <section title="BIER Path Attribute">
      <t>This draft defines a new optional, transitive BGP path attribute,
      referred to as the BIER attribute. This attribute can be attached to a
      BGP UPDATE message by the originator for NLRIs of AFI 1/2 and
	  SAFI 1/2/4 so as to indicate the BIER-specific information of a
	  particular BFR identified by the /32 (for IPv4) or /128 (for IPv6) host address prefix contained
	  in the NLRI, or a set of BFERs covered by a non-host address prefix
	  <xref target="I-D.ietf-bier-prefix-redistribute"/>. In other words, if the
      BIER path attribute is present, the NLRI is treated by BIER as a
      "BFR-prefix". Use of the attribute with other AFIs/SAFIs is outside the
	  scope of this document.
	  </t>
	  <t>
The BIER path attribute is encoded in the TLV format shown as follows:
          <artwork align="center"><![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            |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  ~                        Value (variable)                       ~
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>

The Length field defines the length of the value portion in octets (thus, a TLV with no value portion would have a length of zero). The TLV is not padded to 4-octet alignment. Unknown and unsupported types MUST be preserved and propagated within both the NLRI and the BIER Attribute. The presence of unknown or unexpected TLVs MUST NOT result in the NLRI or the BIER Attribute being considered malformed.
      </t>
	  <t>
	  When creating a BIER attribute, a BFR needs to include one
      BIER TLV for every Sub-domain that the prefix belongs to. The
      attribute type code for the BIER Attribute is TBD. The value field of
      the BIER Attribute contains one or more BIER TLV shown as follows:</t>
          <artwork align="center"><![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 = 1            |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |  Sub-domain   |            BFR-ID             |   Reserved    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   ~                                                               ~
   |                           Sub-TLVs                            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+..........................

]]></artwork>
        <list>
          <t>Type: 1.</t>

          <t>Length: Two octets encoding the length in octets of the Value
          part.</t>

          <t>Sub-domain <xref target="RFC8279"/>: a one-octet field encoding the sub-domain ID
          corresponding to the BFR-ID.</t>

          <t>BFR-ID <xref target="RFC8279"/>: a two-octet field encoding the BFR-ID.</t>

          <t>Sub-TLVs: contains one or more sub-TLV.</t>
        </list>

        <t>The BIER TLV MAY appear multiple times in the BIER Path
        Attribute, one for each sub-domain. There MUST be no more than
        one BIER TLV with the same Sub-domain value; if there is, the
        entire BIER Path Attribute MUST be ignored.
        </t>
        <t>A BIER TLV may have sub-TLVs, which may have their own sub-TLVs.
        All those are referred to as sub-TLVs and share the same Type space,
        regardless of the level.
        </t>
    <section title="BIER MPLS Encapsulation sub-TLV">
      <t>The BIER MPLS Encapsulation sub-TLV has the following format.
	  It MAY appear multiple times in the BIER TLV.
      </t>
      <t>
   The BIER MPLS Encapsulation Sub-TLV has the following format:
          <artwork align="center"><![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 = 2            |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     Max SI    |BS Len |             Label                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   ~                        sub-TLVs                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   ]]></artwork></t>

		  <t><list>
    <t>
   Type:  2
    </t>
    <t>

   Length:  2 octets. The value is 4 or other (depending on sub-TLVs)
    </t>
    <t>

   Max SI:  A 1-octet field encoding the maximum Set Identifier (SI)
      (see Section 1 of [RFC8279]) used in the encapsulation for this
      BIER sub-domain for this BitString length.
    </t>
    <t>

   BS Len (BitString Length):  A 4-bit field encoding the supported
      BitString length associated with this BFR-prefix.  The values
      allowed in this field are specified in Section 2 of [RFC8296].
    </t>
    <t>

   Label:  A 20-bit value representing the first label in the label range.
    </t>
 </list></t>
    <t>
   The "label range" is the set of labels beginning with the Label and
   ending with (Label + (Max SI)).  A unique label range is allocated
   for each BitString length and sub-domain-id.  These labels are used
   for BIER forwarding as described in [RFC8279] and [RFC8296].
    </t>
    <t>

   The size of the label range is determined by the number of SIs
   (Section 1 of [RFC8279]) that are used in the network.  Each SI maps
   to a single label in the label range: the first label is for SI=0,
   the second label is for SI=1, etc.
    </t>
    <t>

   If the label associated with the Maximum Set Identifier exceeds the
   20-bit range, the BIER MPLS Encapsulation Sub-TLV containing the
   error MUST be ignored.
    </t>
    <t>

   If the same BitString length is repeated in multiple BIER MPLS
   Encapsulation Sub-TLVs inside the same BIER TLV, all BIER MPLS
   Encapsulation Sub-TLVs in the BIER TLV MUST be ignored.
    </t>
    <t>

   Label ranges within all BIER MPLS Encapsulation Sub-TLVs advertised
   by the same BFR MUST NOT overlap.  If an overlap is detected, all
   BIER MPLS Encapsulation Sub-TLVs advertised by the BFR MUST be ignored.
    </t>
    </section>

    <section title="BIER Non-MPLS Encapsulation sub-TLV">
      <t>The BIER non-MPLS Encapsulation sub-TLV is used for non-MPLS encapsulation and has the following format. It MAY appear multiple times within a
   single BIER TLV.  If the same BitString length is repeated in
   multiple BIER non-MPLS encapsulation Sub-TLVs inside the same BIER
   TLV, the BIER TLV MUST be ignored.
      </t>

          <t><artwork align="center"><![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 = 3            |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     Max SI    |BS LEN |                  BIFT-id              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   ~                        sub-TLVs                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
          ]]></artwork></t>

	<t><list>
    <t>
   Type:  3.
    </t>
    <t>

   Length:  2 octets. The value is 4 or other (depending on sub-TLVs).
    </t>
    <t>

   Max SI:  A 1-octet field encoding the Maximum Set Identifier
     (Section 1 of [RFC8279]) used in the encapsulation for this BIER
     subdomain for this BitString length. The first BIFT-id is for SI=0,
     the second BIFT-id is for SI=1, etc. If the BIFT-id associated with
     the Maximum Set Identifier exceeds the 20-bit range, the sub-TLV
     MUST be ignored.
    </t>
    <t>

   BIFT-id:  A 20-bit field representing the first BIFT-id in the
     BIFT-id range.
    </t>
    <t>

   BitString Length (BS Len):  A 4-bit field encoding the bitstring
     length (as per [RFC8296]) supported for the encapsulation.
    </t>
 </list></t>
    <t>
   The "BIFT-id range" is the set of 20-bit values beginning with the
   BIFT-id and ending with (BIFT-id + (Max SI)).  These BIFT-id's are
   used for BIER forwarding as described in [RFC8279] and [RFC8296].
    </t>
    <t>
   The size of the BIFT-id range is determined by the number of SI's
   (Section 1 of [RFC8279]) that are used in the network.  Each SI maps
   to a single BIFT-id in the BIFT-id range: the first BIFT-id is for
   SI=0, the second BIFT-id is for SI=1, etc.
    </t>
    <t>

   If the BIFT-id associated with the Maximum Set Identifier exceeds
   the 20-bit range, the BIER non-MPLS Encapsulation sub-TLV
   containing the error MUST be ignored.
    </t>
    <t>

	  BIFT-id ranges within all the BIER non-MPLS Encapsulation sub-TLVs
	  advertised by the same BFR MUST NOT overlap.  If an overlap is
   detected, all the BIER non-MPLS Encapsulation sub-TLV advertised
   by the BFR MUST be ignored. However, the
   BIFT-id ranges may overlap across different encapsulation types and
   that is allowed.  As an example, the BIFT-id value in the non-MPLS
   encapsulation sub-TLV may overlap with the Label value in the
   Label range in BIER MPLS encapsulation sub-TLV.
    </t>

    </section>

    <section title="BIER Nexthop sub-TLV">
        <t>The BIER Nexthop sub-TLV MAY be included in the MPLS or non-MPLS
        Encapsulation sub-TLV as well as in the top-level BIER TLV. It is used
		when calculating BIFT entries, as described in <xref target="bift"/>
		and illustrated in <xref target="biernh"/>.
        </t>
          <artwork align="center"><![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 = 4           |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                            Nexthop                            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

]]></artwork>
        <list>
          <t>Type: 4</t>

          <t>Length: 2 octets. The value is 4 if the Nexthop is IPv4 address and 16 if the Nexthop is IPv6 address</t>

          <t>Nexthop: 4 or 16 octets of IPv4/IPv6 address</t>

        </list>
    </section>

    </section>

      <section title="Originating/Propagating/Updating BIER Attribute">
		<t>The use of BIER attribute with a non-host BFR-prefix NLRI
		is covered in <xref target="I-D.ietf-bier-prefix-redistribute"/>.
		</t>
        <t>A BIER Forwarding Egress Router (BFER) MUST attach a BIER attribute
        to its own /32 (for IPv4) or /128 (for IPv6)
		host BFR-prefix NLRI. The BIER attribute MUST include one
        BIER TLV for each BIER sub-domain that it supports. Each BIER TLV
        MUST include an MPLS and/or non-MPLS Encapsulation sub-TLV, and SHOULD
        include a BIER Nexthop sub-TLV with the Nexthop set to the
        BIER prefix. If the BIER Nexthop sub-TLV is not included, the BIER prefix
        will be used by receiving BFRs as the BIER nexthop when calculating BIFT.
        </t>
        <!--t>A BFR/BFER MAY attach a BIER proxy range sub-TLV
        <xref target="I-D.ietf-bier-prefix-redistribute"/> in the BIER TLV.
		If the NRLI is a non-host prefix with the proxy range sub-TLV,
		a BIER Nexthop sub-TLV MUST be inlucded to encode the originating
		BFR/BFER's address, and a host BIER prefix NLRI MUST be originated
		for the BFR/BFER.
        Other than this case,
		<t>A BFR that is not a BFER (i.e., its BFR-ID is 0)
        SHOULD NOT attach a BIER attribute to its own BIER prefix NLRIs
        (if a BIER attribute is attached it will not get used anyway).
		</t>
		a BFR receiving a non-host BIER prefix without the BIER proxy range
		sub-TLV SHOULD perform an "attribute discard" action
		<xref target="RFC7606"/> about the BIER	attribute.
        </t-->
        <t>When a BGP speaker receives an update with the BIER path attribute,
		the syntactic validation of the attribute is done regardless if
		the speaker is a BFR or not, and appropriate action is taken,
		e.g., performing an "attribute discard" action
		<xref target="RFC7606"/> about the BIER	attribute.
		If it is a BFR, then semantics validation of the BIER path
		attribute is done. If the validation passes, BIFT entries are
		calculated as described in <xref target="bift"/>.
		Otherwise, some or all BIER TLVs
		MUST be ignored and not re-advertised further. However, as long as
		the syntactic validation of the BIER path attribute passes, the route
		is useable for non-BIER purposes.
        </t>
        <t>When a BFR re-advertises a BGP NLRI with a BIER attribute, for the
		sub-domains that this BFR supports, in the corresponding BIER TLV it
        SHOULD set/update the BIER Nexthop sub-TLV to use its own BIER prefix,
        in which case it MUST replace the MPLS or non-MPLS Encapsulation sub-TLV
        with its own, i.e., as if the BFR is attaching the
        encapsulation sub-TLV for its own BIER prefix. If it does not
        update the BIER Nexthop sub-TLVs, it MUST NOT update MPLS or
        non-MPLS Encapsulation sub-TLV. If it does not support a sub-domain,
		it MUST NOT update the corresponding BIER TLV.
        </t>
        <t>It's possible that the BFR supports some but not all BSLs
        in the received MPLS or non-MPLS Encapsulation sub-TLVs.
        After updating the BIER Nexthop sub-TLV in the top BIER TLV
        to itself, for the BSLs that it does support, the BFR MUST remove
        the BIER Nexthop sub-TLV (if present) in the corresponding Encapsulation
        sub-TLVs. For the BSLs that it does not support, it MUST NOT update
        those Encapsulation sub-TLVs except that if a BIER Nexthop sub-TLV
        is not included in the Encapsulation sub-TLV, the received BIER Nexthop
        sub-TLV in the top BIER TLV MUST be copied into the Encapsulation
        sub-TLV. All impacted length fields (e.g.,
        the Encapsulation sub-TLV Length, the top-level BIER TLV Length) MUST
        be updated accordingly.
        </t>
      <t>Since the BIER attribute is an optional, transitive BGP path
      attribute, a non-BFR BGP speaker could still re-advertise the received
      route with a BIER attribute.
      </t>
      <t>Two different BFR-prefixes MUST NOT have the same non-zero BFR-ID
	  in the same sub-domain. If a duplication is detected, the receiving
	  BFR MUST NOT use it for BIFT calculation for the sub-domain and an
	  error SHOULD be logged.  The BFR SHOULD discard the BIER attribute that
	  contains the duplicate BFR-ID.
      </t>
    </section>

    <section title="BIFT Calculation with BGP Signaling" anchor="bift">
	  <t>As pointed out in <xref target="RFC8279"/>, BIFTs are derived from
	  the unicast FIB by adding BIER-specific information.
	  </t>
      <t>For each sub-domain, a BFR calculates the corresponding BIFTs
      by going through the BIER prefixes whose BIER attribute includes
      a BIER TLV for the sub-domain.
      For a non-zero BFR-id in the BIER TLV, <!--or for each BFR-id
      in the BIER Proxy Range sub-TLV in the BIER TLV of a BIER prefix,-->
      a BIFT entry is created or updated. The entry's BFR Neighbor
      (BFR-NBR) <xref target="RFC8279"/> is the Nexthop in the BIER
      Nexthop sub-TLV in the corresponding Encapsulation sub-TLV, or
      in the top-level BIER TLV if the Encapsulation sub-TLV does not
      have a Nexthop sub-TLV. If there is no Nexthop sub-TLV at all,
      The entry's BFR Neighbor is the BIER prefix itself. The BIER label
      or BIFT-id for the entry is derived from the Label Range in the
      MPLS Encapsulation sub-TLV or from the BIFT-id Range in the
      non-MPLS Encapsulation sub-TLV.
      </t>
      <t>BIER traffic is sent to the BFR-NBR either natively (BIER header
      directly follows a layer 2 header) if the BFR-NBR is directly
      connected, or via a tunnel otherwise. Notice that, if a non-BFR
      BGP speaker re-advertises a BIER prefix (in this case it can not update
      the BIER attribute since it is not capable), or if a BFR BGP speaker
      re-advertises a BIER prefix without updating the BIER Nexthop
      sub-TLV, the BFR receiving the prefix will tunnel BIER traffic - 
      the BGP speaker re-advertising the BIER prefix will not see the
      BIER traffic for the BIER prefix.
      </t>
      <t>How the tunnel is set up and chosen is outside the scope of this
	  document. It can be any kind of tunnel, e.g., MPLS Label Switched Path
	  or IP/GRE, as long as the tunnel header can indicate that the payload
	  is BIER.
      </t>
    </section>
    <section title="Example of BIER Nexthop Usage and Handling" anchor="biernh">
	  <t>Consider a simple topology as follows:
          <artwork><![CDATA[

                                      ----- BFER1
                                     /
           BFR1 --- non-BFR --- BFR2 ------ BFER2
                                     \
                                      ----- BFER3

      ]]></artwork>
	  </t>
	  <t>The BFER1/2/3 each advertises a route for its loopback address
      with a BIER path attribute, listing one BIER TLV for each subdomain
	  that it is in, with a non-zero BFR-ID and an MPLS Encapsulation sub-TLV.
	  A BIER Nexthop sub-TLV is included in the one from BFER1 but not the
	  ones from BFER2/3. The BIER Nexthop sub-TLV encodes the addresses of
	  BFER2 and BFER3 respectively.
	  </t>
	  <t>When BFR2 receives the route, it calculates its BIFT entries.
	  Because the route from BFER1 does not include a BIER Nexthop, BFR2
	  uses BFRer1's BFR-prefix as the nexthop.
	  </t>
	  <t>When BFR2 re-advertises the routes to the non-BFR, it adds
	  a BIER Nexthop sub-TLV to the BFER1 route, and updates the BIER Nexthop
	  sub-TLV in the BFER2/3 routes, all encoding BFR2's own address.
	  It also updates the MPLS Encapsulation sub-TLV to encode its own labels.
	  </t>
	  <t>When the non-BFR receives the routes, since it does not support BIER,
	  no BIER-specific action is taken and the routes are re-advertised to
	  BFR1 with the BIER path attribute unchanged.
	  </t>
	  <t>When BFR1 receives the routes, it calculates the BIFT entries,
	  using BFR2's address encoded in the BIER Nexthop sub-TLV as the
	  nexthop. Because BFR2 is not directly connected, a tunnel must be used.
	  </t>
    </section>

    <section title="Operational Considerations" anchor="op">
      <t>It's assumed by this document that the BIER domain
	  <xref target="RFC8279"/> is aligned with
      an Administrative Domain (AD) which may be composed of multiple
	  Autonomous Systems. Use of the BIER attribute in other
      scenarios is outside the scope of this document.</t>

      <t>A boundary router of the AD that supports the BIER attribute MUST
      support a per-EBGP-session/group policy, that indicates whether the
      attribute is allowed and by default it is NOT allowed.
	  If it is not allowed, the BIER
      attribute MUST NOT be sent to any EBGP peer of the session/group.
      If a BIER attribute is received from the peer, it MUST be treated
	  exactly as if it were an unrecognized non-transitive attribute.
	  That is, "it MUST be quietly ignored and not passed along to other
	  BGP peers".</t>
      <t>BFR-prefixes are typically loopback addresses on the BFRs. They
	  are distributed throughout the AD but they do not need to be
	  distributed outside the AD for the BIER purposes. This is analogous
	  to that Provider Edge router's loopback addresses are distributed
	  inside the AD but they do not need to be distributed outside the AD.
      </t>
    </section>

    <section anchor="IANA" title="IANA Considerations">
      <t>IANA is requested to assign a codepoint TBD in the "BGP Path
      Attributes" registry to the BIER attribute.</t>
      <t>IANA is requested to create a registry in the BGP Parameters registry
	  group for "BGP BIER TLV and SUB-TLV Types".
      The type field for the registry consists of two octets, with
      possible values from 1 to 655355 (the value 0 is reserved). The
      allocation policy for this field is to be "First Come First Serve"
	  <xref target="RFC8126"/>.
      </t>
      <t>
      Four initial values are to be allocated from the "BGP BIER TLV and Sub-TLV
      Types" registry as follows:
      <list>
      <t>1: BIER TLV</t>
      <t>2: MPLS Encapsulation sub-TLV</t>
      <t>3: non-MPLS Encapsulation sub-TLV</t>
      <t>4: BIER Nexthop sub-TLV</t>
      </list>
      </t>
    </section>

    <section anchor="Security" title="Security Considerations">
      <t>This document introduces no new security considerations beyond those
      already discussed in [RFC4271] and [RFC8279] and the
	  operational considerations (<xref target="op"/>) of this document.</t>
    </section>
    <section title="Contributors">
      <t>This document has the following contributors:
    <artwork>
Zheng Zhang
ZTE
zhang.zheng@zte.com.cn
    </artwork>
      </t>
    </section>
    <section anchor="Acknowledgements" title="Acknowledgements">
      <t>Thanks a lot for Eric Rosen and Peter Psenak for their
      valuable comments on this document.</t>

      <!---->
    </section>

  </middle>

  <back>
    <references title="Normative References">
      &RFC2119;
      &RFC8174;
      &RFC4271;
      &RFC8279;
    </references>

    <references title="Informative References">
      <?rfc include='reference.I-D.ietf-bier-prefix-redistribute.xml'?>
      &RFC8126;
      &RFC2283;
      &RFC7606;
    </references>
  </back>
</rfc>
