<?xml version="1.0" encoding="utf-8"?>
<?xml-model href="rfc7991bis.rnc"?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="std" docName="draft-ietf-idr-rfc4360-bis-08" obsoletes="4360" updates="5701" submissionType="IETF" consensus="true" ipr="pre5378Trust200902" xml:lang="en">
  <front>
    <title abbrev="BGP Extended Communities Attribute">
      BGP Extended Communities Attribute
    </title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-idr-rfc4360-bis-08"/>
    <author initials="S." surname="Sangli" fullname="Srihari Sangli">
      <organization>HPE</organization>
      <address>
        <postal>
          <street>Mahadevapura, Bengaluru, KA 560048</street>
          <street>India</street>
        </postal>
        <email>ssangli@juniper.net</email>
      </address>
    </author>
    <author fullname="Nat Kao" initials="N" role="editor" surname="Kao">
      <organization>Individual Contributor</organization>
      <address>
        <email>pyxislx@gmail.com</email>
      </address>
    </author>
    <date year="2026"/>
    <area>Routing Area</area>
    <workgroup>IDR Working Group</workgroup>
    <keyword>RFC</keyword>
    <keyword>Request for Comments</keyword>
    <keyword>I-D</keyword>
    <keyword>Internet-Draft</keyword>
    <keyword>BGP, Extended Community</keyword>
    <abstract>
      <t>
        This document describes the "extended community" BGP-4 attribute.
        This attribute provides a mechanism for labeling information carried
        in BGP-4.  These labels can be used to control the distribution of
        this information, or for other applications.
      </t>
      <t>
        This document obsoletes RFC 4360.
        This document also updates RFC 5701 by incorporating the operations section.
      </t>
    </abstract>
  </front>

  <middle>
    <section>
      <name>Introduction</name>
      <t>
        The Extended Community Attribute provides a mechanism for labeling information carried in BGP-4 <xref target="RFC4271"/>.
        It provides two important enhancements over the existing BGP Community Attribute <xref target="RFC1997"/>:
      </t>
      <ul>
        <li>An extended range, ensuring that communities can be assigned for a plethora of uses, without fear of overlap.</li>
        <li>The addition of a Type field provides structure for the community space.</li>
      </ul>
      <t>
        The addition of structure allows the usage of policy based on the application for which the community value will be used. For
        example, one can filter out all communities of a particular type, or allow only certain values for a particular type of community.
        It also allows one to specify whether a particular community is transitive or non-transitive across an Autonomous System (AS)
        boundary. Without structure, this can only be accomplished by explicitly enumerating all community values that will be denied or
        allowed and passed to BGP speakers in neighboring ASes based on the transitive property.
      </t>
      <t>
        This document obsoletes <xref target="RFC4360"/>.
        <xref target="operations"/> of this document also applies to <xref target="RFC5701"/> and effectively updates it.
      </t>
      <section title="Requirements Language" anchor="requirements">
        <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>
      </section>
    </section>

    <section title="BGP Extended Communities Attribute" anchor="bgp-ec-attr">
      <t>
        The Extended Communities Attribute is a transitive optional BGP attribute, with the Type Code 16. The attribute consists of a set
        of "extended communities". All routes with the Extended Communities attribute belong to the communities listed in the attribute.
      </t>
      <section title="BGP Extended Community Attribute Encoding" anchor="bgp-ec-encoding">
        <dl newline="true">
          <dt>
            Each Extended Community is encoded as an 8-octet quantity inside the BGP Extended Community Attribute, as follows:
          </dt>
          <dd>
            <figure>
              <artwork type="ascii-art">
                <![CDATA[
 
- Type Field  : 1 or 2 octets
- Value Field : Remaining octets

 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 high    |  Type low(*)  |                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+          Value                |
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

(*) Present for Extended Types only, used for the Value field
    otherwise.
                  ]]>
              </artwork>
            </figure>
            <dl newline="true">
              <dt>Type Field:</dt>
              <dd>
                <t>
                  Two classes of Type Field are introduced: Regular Type and Extended Type.
                </t>
                <t>
                  The size of the Type Field for Regular Types is 1 octet, and the size of the Type Field for Extended Types is 2 octets.
                </t>
                <t>
                  The value of the high-order octet of the Type Field determines if an extended community is a Regular Type or an Extended
                  Type. The class of a type (Regular or Extended) is not encoded in the structure of the type itself. The
                  class of a type is specified in the document that defines the type and the IANA registry.
                </t>
                <dl newline="true">
                  <dt>
                    The high-order octet of the Type Field is as shown below:
                  </dt>
                  <dd>
                    <figure>
                      <artwork type="ascii-art">
                        <![CDATA[

 0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
|I|T|           |
+-+-+-+-+-+-+-+-+
                          ]]>
                      </artwork>
                    </figure>
                    <dl newline="true">
                      <dt>I - IANA authority bit</dt>
                      <dd>
                        <dl>
                          <dt>Value 0:</dt>
                          <dd>IANA-assignable type using the "First Come First Serve" policy</dd>
                          <dt>Value 1:</dt>
                          <dd>
                            Part of this Type Field space is for IANA assignable types using either the Standard Action or the Early IANA
                            Allocation policy. The rest of this Type Field space is for Experimental use.
                          </dd>
                        </dl>
                      </dd>
                      <dt>T - Transitive bit</dt>
                      <dd>
                        <dl>
                          <dt>Value 0:</dt>
                          <dd>The community is transitive across ASes</dd>
                          <dt>Value 1:</dt>
                          <dd>The community is non-transitive across ASes</dd>
                        </dl>
                      </dd>
                      <dt>Remaining 6 bits:</dt>
                      <dd>Together with the I and T bit, indicate the Type of the extended community.</dd>
                    </dl>
                  </dd>
                </dl>
              </dd>
              <dt>Value Field:</dt>
              <dd>
                The encoding of the Value Field is dependent on the "type" of the community as specified by the Type Field.
              </dd>
            </dl>
          </dd>
        </dl>
        <t>
          Two extended communities are declared equal only when all 8 octets of the community are equal.
        </t>
        <t>
          The two members in the tuple &lt;Type, Value&gt; should be enumerated to specify any community value. The remaining octets of the
          community are interpreted based on the value of the Type field.
        </t>
      </section>
    </section>

    <section title="Defined BGP Extended Community Types" anchor="bgp-ec-types">
      <t>
        This section introduces a few extended types and defines the format of the Value Field for those types. The types introduced here
        provide "templates", where each template is identified by the high- order octet of the extended community Type field, and the
        low-order octet (sub-type) is used to indicate a particular type of extended community.
      </t>

      <section title="Two-Octet AS-Specific Extended Community" anchor="two-octet-as-ec">
        <t>
          This is an extended type with Type Field composed of 2 octets and Value Field composed of 6 octets.
        </t>
        <figure>
          <artwork type="ascii-art">
            <![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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 0x00 or 0x40  |   Sub-Type    |    Global Administrator       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                     Local Administrator                       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
              ]]>
          </artwork>
        </figure>
        <t>
          The value of the high-order octet of this extended type is either 0x00 or 0x40. The low-order octet of this extended type is
          used to indicate sub-types.
        </t>
        <dl newline="true">
          <dt>
            The Value Field consists of two sub-fields:
          </dt>
          <dd>
            <dl newline="true">
              <dt>Global Administrator sub-field: 2 octets</dt>
                <dd>
                  <t>
                    This sub-field contains an Autonomous System number assigned by IANA.
                  </t>
                  <t>
                    For a non-mappable four-octet Autonomous System number <xref target="RFC6793"/>,
                    the BGP speaker SHOULD fill AS_TRANS <xref target="RFC6793"/> in this field.
                    This sub-field MAY contain an arbitrary value chosen by the operator,
                    provided it is allowed by the specific extended community.
                  </t>
                </dd>
              <dt>Local Administrator sub-field: 4 octets</dt>
              <dd>
                The organization identified by Autonomous System number in the Global Administrator sub-field can encode any information in
                this sub-field. The format and meaning of the value encoded in this sub-field should be defined by the sub-type of the
                community.
              </dd>
            </dl>
          </dd>
        </dl>
      </section>
    
      <section title="IPv4-Address-Specific Extended Community" anchor="ipv4-addr-ec">
        <t>
          This is an extended type with Type Field composed of 2 octets and Value Field composed of 6 octets.
        </t>
        <figure>
          <artwork type="ascii-art">
            <![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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 0x01 or 0x41  |   Sub-Type    |    Global Administrator       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Global Administrator (cont.)  |    Local Administrator        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
              ]]>
          </artwork>
        </figure>
        <t>
          The value of the high-order octet of this extended type is either 0x01 or 0x41. The low-order octet of this extended type is used
          to indicate sub-types.
        </t>
        <dl newline="true">
          <dt>
            The Value field consists of two sub-fields:
          </dt>
          <dd>
            <dl newline="true">
              <dt>Global Administrator sub-field: 4 octets</dt>
              <dd>
                This sub-field contains an IPv4 unicast address assigned by one of the Internet registries.
              </dd>
              <dt>Local Administrator sub-field: 2 octets</dt>
              <dd>
                The organization that has been assigned the IPv4 address in the Global Administrator sub-field can encode any information in
                this sub-field. The format and meaning of the value encoded in this sub-field should be defined by the sub-type of the
                community.
              </dd>
            </dl>
          </dd>
        </dl>
      </section>

      <section title="Opaque Extended Community" anchor="opaque-ec">
        <t>
          This is an extended type with Type Field composed of 2 octets and Value Field composed of 6 octets.
        </t>
        <figure>
          <artwork type="ascii-art">
            <![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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 0x03 or 0x43  |   Sub-Type    |                Value          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         Value (cont.)                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
              ]]>
          </artwork>
        </figure>
        <t>
          The value of the high-order octet of this extended type is either 0x03 or 0x43. The low-order octet of this extended type is used
          to indicate sub-types.
        </t>
        <t>
          This is a generic community of extended type. The value of the sub-type that should define the Value Field is to be assigned by
          IANA.
        </t>
      </section>
      <section title="Notes about the AS-Specific Extended Community for 4-Octet ASes" anchor="four-octet-as-ec">
        <t>
          A 4-Octet AS-Specific type of extended community is defined in <xref target="RFC5668"/> and otherwise not covered in this document.
        </t>
      </section>
    </section>

    <section title="Route Target Community">
      <t>
        The Route Target Community identifies one or more routers that may receive a set of routes (that carry this Community) carried by
        BGP. This is transitive across the Autonomous System boundary.
      </t>
      <t>
        The Route Target Community is of an extended type.
      </t>
      <t>
        The value of the high-order octet of the Type field for the Route Target Community can be 0x00 (as defined in
        <xref target="two-octet-as-ec"/>), 0x01 (as defined in <xref target="ipv4-addr-ec"/>), or 0x02 (as defined in <xref target="RFC5668"/>).
        The value of the low-order octet of the Type field for this community is 0x02.
      </t>
      <t>
        When the value of the high-order octet of the Type field is 0x00 or 0x02, the Local Administrator sub-field contains a number from a
        numbering space that is administered by the organization to which the Autonomous System number carried in the Global Administrator
        sub- field has been assigned by an appropriate authority.
      </t>
      <t>
        When the value of the high-order octet of the Type field is 0x01, the Local Administrator sub-field contains a number from a
        numbering space that is administered by the organization to which the IPv4 address carried in the Global Administrator sub-field has
        been assigned by an appropriate authority.
      </t>
      <t>
        One possible use of the Route Target Community is specified in <xref target="RFC4364"/>.
      </t>
    </section>

    <section title="Route Origin Community">
      <t>
        The Route Origin Community identifies one or more routers that inject a set of routes (that carry this Community) into BGP. This is
        transitive across the Autonomous System boundary.
      </t>
      <t>
        The Route Origin Community is of an extended type.
      </t>
      <t>
        The value of the high-order octet of the Type field for the Route Origin Community can be 0x00 (as defined in
        <xref target="two-octet-as-ec"/>), 0x01 (as defined in <xref target="ipv4-addr-ec"/>), or 0x02 (as defined in <xref target="RFC5668"/>).
        The value of the low-order octet of the Type field for this community is 0x03.
      </t>
      <t>
        When the value of the high-order octet of the Type field is 0x00 or 0x02, the Local Administrator sub-field contains a number from a
        numbering space that is administered by the organization to which the Autonomous System number carried in the Global Administrator
        sub- field has been assigned by an appropriate authority.
      </t>
      <t>
        When the value of the high-order octet of the Type field is 0x01, the Local Administrator sub-field contains a number from a
        numbering space that is administered by the organization to which the IPv4 address carried in the Global Administrator sub-field has
        been assigned by an appropriate authority.
      </t>
      <t>
        One possible use of the Route Origin Community is specified in <xref target="RFC4364"/>.
      </t>
    </section>

    <section title="Operations" anchor="operations">
      <t>
        This section also applies to <xref target="RFC5701"/>.
      </t>
      <t>
        A BGP speaker may use the Extended Communities attribute to control which routing information it accepts or distributes to its
        peers.
      </t>
      <t>
        The Extended Community attribute MUST NOT be used to modify the BGP best path selection algorithm in a way that leads to forwarding
        loops.
      </t>
      <t>
        A BGP speaker receiving a route that doesn't have the Extended Communities attribute MAY append this attribute to the route when
        propagating it to its peers.
      </t>
      <t>
        A BGP speaker receiving a route with the Extended Communities attribute MAY modify this attribute according to the local policy.
      </t>
      <t>
        By default if a range of routes is to be aggregated and the resultant aggregate's path attributes do not carry the ATOMIC_AGGREGATE
        attribute, then the resulting aggregate should have an Extended Communities path attribute that contains the set union of all the
        Extended Communities from all of the aggregated routes. The default behavior could be overridden via local configuration, in which
        case handling the Extended Communities attribute in the presence of route aggregation becomes a matter of the local policy of the
        BGP speaker that performs the aggregation.
      </t>
      <t>
        A route may carry both the BGP Communities attribute, as defined in
        <xref target="RFC1997"/>, and the Extended BGP Communities attribute.
        In this case, the BGP Communities attribute is handled as specified in 
        <xref target="RFC1997"/>, and the Extended BGP Communities attribute is handled as specified in this document.
      </t>
      <t>
        Non-transitive extended communities MUST NOT be sent (originated or propagated) across an Autonomous System boundary unless
        explicitly configured to do so. Non-transitive extended communities SHOULD NOT be removed when advertising the route within the
        same BGP AS Confederation (as defined in <xref target="RFC5065"/>).
      </t>
      <t>
        By default, when a BGP speaker receives routes with non-transitive extended communities across Autonomous System or
        Confederation Member-AS boundaries, it SHOULD NOT remove these extended communities. The behavior MAY be configurable. The BGP
        speaker SHOULD also allow local policies to perform operations on these extended communities, such as matching, deleting, and
        modifying.
      </t>
      <t>
        For IPv6 address-specific use-cases, one may consider using IPv6-Address-Specific BGP Extended Communities <xref target="RFC5701"/>.
      </t>
    </section>

    <section title="Error Handling" anchor="error-handling">
      <t>
        <xref target="RFC7606" sectionFormat="comma" section="7.14"/>,
        defines the error handling procedure for the Extended Community attribute.
      </t>
    </section>

    <section title="IANA Considerations" anchor="iana-considerations">
      <t>
        This document obsoletes <xref target="RFC4360"/>, but it does not change the IANA Considerations of <xref target="RFC7153"/>
        that updated <xref target="RFC4360"/> and created the "Border Gateway Protocol (BGP) Extended Communities" <xref target="IANA-BGP-EC"/>
        registry group along with the registries therein corresponding to the specifications in this document.
        Therefore, IANA should continue to manage those registries as per <xref target="RFC7153"/>.
      </t>
      <t>
        However, IANA is requested to replace all references to <xref target="RFC4360"/> with this document in the "BGP Path Attributes"
        <xref target="IANA-BGP-PATH-ATTRIBUTES"/> registry, the "BGP Extended Communities" <xref target="IANA-BGP-EC"/> registry group,
        and the "IPFIX Entities" <xref target="IANA-IPFIX"/> registry group.
      </t>
      <t>
        IANA is requested to list this document as an additional reference for the following entries in the "BGP Transitive Extended
        Community Types" registry <xref target="IANA-BGP-EC-TRANS"/>:
      </t>
      <table>
        <name>BGP Transitive Extended Community Types</name>
        <thead>
          <tr>
            <th>TYPE VALUE</th>
            <th>NAME</th>
            <th>REFERENCE</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">0x00</td>
            <td align="left">
              Transitive Two-Octet AS-Specific Extended Community (Sub-Types are defined in the "Transitive Two-Octet AS-Specific
              Extended Community Sub-Types" registry <xref target="IANA-BGP-EC-TRANS-TWO-OCTET-AS"/>)
            </td>
            <td align="left">
              <xref target="RFC7153"/>
              [this document]
            </td>
          </tr>
          <tr>
            <td align="left">0x01</td>
            <td align="left">
              Transitive IPv4-Address-Specific Extended Community (Sub-Types are defined in the "Transitive IPv4-Address-Specific
              Extended Community Sub-Types" registry <xref target="IANA-BGP-EC-TRANS-IPV4"/>)
            </td>
            <td align="left">
              <xref target="RFC7153"/>
              [this document]
            </td>
          </tr>
          <tr>
            <td align="left">0x03</td>
            <td align="left">
              Transitive Opaque Extended Community (Sub-Types are defined in the "Transitive Opaque Extended Community Sub-Types"
              registry <xref target="IANA-BGP-EC-TRANS-OPAQUE"/>)
            </td>
            <td align="left">
              <xref target="RFC7153"/>
              [this document]
            </td>
          </tr>
        </tbody>
      </table>
      <t>
        IANA is requested to list this document as an additional reference for the following entries in the "BGP Non-Transitive Extended
        Community Types" registry <xref target="IANA-BGP-EC-NONTRANS"/> :
      </t>
      <table>
        <name>BGP Non-Transitive Extended Community Types</name>
        <thead>
          <tr>
            <th>TYPE VALUE</th>
            <th>NAME</th>
            <th>REFERENCE</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">0x40</td>
            <td align="left">
              Non-Transitive Two-Octet AS-Specific Extended Community (Sub-Types are defined in the "Non-Transitive Two-Octet
              AS-Specific Extended Community Sub-Types" registry <xref target="IANA-BGP-EC-NONTRANS-TWO-OCTET-AS"/>)
            </td>
            <td align="left">
              <xref target="RFC7153"/>
              [this document]
            </td>
          </tr>
          <tr>
            <td align="left">0x41</td>
            <td align="left">
              Non-Transitive IPv4-Address-Specific Extended Community (Sub-Types are defined in the "Non-Transitive
              IPv4-Address-Specific Extended Community Sub-Types" registry <xref target="IANA-BGP-EC-NONTRANS-IPV4"/>)
            </td>
            <td align="left">
              <xref target="RFC7153"/>
              [this document]
            </td>
          </tr>
          <tr>
            <td align="left">0x43</td>
            <td align="left">
              Non-Transitive Opaque Extended Community (Sub-Types are defined in the "Non-Transitive Opaque Extended Community
              Sub-Types" registry <xref target="IANA-BGP-EC-NONTRANS-OPAQUE"/>)
            </td>
            <td align="left">
              <xref target="RFC7153"/>
              [this document]
            </td>
          </tr>
        </tbody>
      </table>
      <t>
        IANA is requested to list this document as an additional reference for the following entries in the "Transitive Four-Octet
        AS-Specific Extended Community Sub-Types" registry <xref target="IANA-BGP-EC-TRANS-FOUR-OCTET-AS"/>:
      </t>
      <table>
        <name>Transitive Four-Octet AS-Specific Extended Community Sub-Types</name>
        <thead>
          <tr>
            <th>SUB-TYPE VALUE</th>
            <th>NAME</th>
            <th>REFERENCE</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">0x02</td>
            <td align="left">Route Target</td>
              <td align="left">
                <xref target="RFC5668"/>
                [this document]
              </td>
          </tr>
          <tr>
            <td align="left">0x03</td>
            <td align="left">Route Origin</td>
              <td align="left">
                <xref target="RFC5668"/>
                [this document]
              </td>
          </tr>
        </tbody>
      </table>
      <t>
        Furthermore, IANA is requested to add the note below to the following registries under the "BGP Extended Communities" registry
        group:
      </t>
      <ul>
        <li>BGP Transitive Extended Community Types <xref target="IANA-BGP-EC-TRANS"/></li>
        <li>BGP Non-Transitive Extended Community Types <xref target="IANA-BGP-EC-NONTRANS"/></li>
        <li>Transitive Two-Octet AS-Specific Extended Community Sub-Types <xref target="IANA-BGP-EC-TRANS-TWO-OCTET-AS"/></li>
        <li>Non-Transitive Two-Octet AS-Specific Extended Community Sub-Types <xref target="IANA-BGP-EC-NONTRANS-TWO-OCTET-AS"/></li>
        <li>Transitive Four-Octet AS-Specific Extended Community Sub-Types <xref target="IANA-BGP-EC-TRANS-FOUR-OCTET-AS"/></li>
        <li>Non-Transitive Four-Octet AS-Specific Extended Community Sub-Types <xref target="IANA-BGP-EC-NONTRANS-FOUR-OCTET-AS"/></li>
        <li>Transitive IPv4-Address-Specific Extended Community Sub-Types <xref target="IANA-BGP-EC-TRANS-IPV4"/></li>
        <li>Non-Transitive IPv4-Address-Specific Extended Community Sub-Types <xref target="IANA-BGP-EC-NONTRANS-IPV4"/></li>
        <li>Transitive Opaque Extended Community Sub-Types <xref target="IANA-BGP-EC-TRANS-OPAQUE"/></li>
        <li>Non-Transitive Opaque Extended Community Sub-Types <xref target="IANA-BGP-EC-NONTRANS-OPAQUE"/></li>
        <li>Transitive IPv6-Address-Specific Extended Community Types <xref target="IANA-BGP-EC-TRANS-IPV6"/></li>
        <li>Non-Transitive IPv6-Address-Specific Extended Community Types <xref target="IANA-BGP-EC-NONTRANS-IPV6"/></li>
      </ul>
      <t>
        "When an Extended Community requests allocation for a code point of both transitive and non-transitive variants for the same
        type/sub-type, it is recommended that the same value be assigned to them."
      </t>
    </section>

    <section title="Security Considerations" anchor="security-considerations">
      <t>
        The BGP Extended Communities provide a general mechanism for labeling BGP routes and thus share security considerations similar to
        BGP Communities <xref target="RFC1997"/> and BGP Large Communities <xref target="RFC8092"/>.
      </t>
      <t>
        Since any intermediate BGP speaker along the route propagation path may have added, deleted, or altered the BGP Extended Communities
        attribute, deployments relying on such an attribute carried in the BGP Update message must trust every other BGP speaker in the
        path.
        However, specifying the mechanism to provide such trust is beyond the scope of this document.
      </t>
      <t>
        The BGP Extended Communities attribute itself does not protect the integrity of each extended community value.
        The operator should be aware that any BGP speaker along the path can alter the attribute without notice.
        Protecting the integrity of the handling of BGP Extended Communities attribute in a manner consistent with
        the intent of expressed BGP routing policies falls within the broader scope of securing BGP
        and is therefore not addressed here.
      </t>
      <t>
        Additionally, extended communities are used in several specialized ways to implement or augment other BGP signaling mechanisms.
        For example, the route-target extended community, defined in this document, is used to signal Layer 3 VPN membership.
        In some scenarios, these mechanisms are used to construct internal infrastructure. Therefore, these extended communities carry
        information private to a specific administrative domain.
        Leaking such extended communities into other administrative domains poses significant security risks.
      </t>
      <t>
        To prevent information leakage or privacy breaches across different administrative domains, proper filtering of the extended
        communities should always be exercised:
        <ul>
          <li>
            <t>
              Operators should filter transitive and non-transitive extended communities at the boundary of different administrative domains
              on both transmission and reception using appropriate routing policies, since this prevents extended communities outside the
              administrative domain from interacting inappropriately with the operator's network.
            </t>
          </li>
          <li>
            <t>
              Implementations should provide policy mechanisms to filter extended communities based on type, and possibly sub-type, to
              permit filtering the entire class of extended communities.
              Implementations may also provide the flexibility to match or inverse-match a set of extended communities for building
              permit/deny lists.
            </t>
          </li>
          <li>
            <t>
              Implementations that understand the internal format of a defined extended community should provide per-community match
              capability.
              Implementations that don't understand the internal format may match against the value field opaquely.
            </t>
          </li>
          <li>
            <t>
              Implementations should provide mechanisms to strip all extended communities at the boundary of administrative domains.
            </t>
          </li>
          <li>
            <t>
              Implementations may strip all extended communities by default while providing knobs to modify the default behavior.
            </t>
          </li>
        </ul>
      </t>
    </section>
    <section title="Contributors" anchor="Contributors">
      <t>
        Dan Tappan and Yakov Rekhter were the authors of <xref target="RFC4360"/> and, therefore, are contributing authors of this document.
      </t>
    </section>
    <section title="Acknowledgements" anchor="acknowledgements">
      <t>
        We wish to thank John Hawkinson, Jeffrey Haas, Bruno Rijsman, Bill Fenner, and Alex Zinin for their suggestions and feedback on 
        the original <xref target="RFC4360"/>.
      </t>
      <t>
        We thank Yakov Rekhter and Alfred Hoenes for pointing out several errors in <xref target="RFC4360"/>.
      </t>
      <t>
        We also wish to thank Bruno Decraene, Laurent Vanbever, and Pierre Francois for pointing out inconsistencies regarding the
        procedures for originating non-transitive extended communities in <xref target="I-D.decraene-idr-rfc4360-clarification"/>.
      </t>
      <t>
        We also thank Jeffrey Haas, Robert Raszuk, Bruno Decraene, Linda Dunbar, Yingzhen Qu, Jie Dong, Lizhen Qiang, Erik Auerswald, Aijun
        Wang, John Scudder, and Job Snijders for their suggestions and feedback on this document.
      </t>
    </section>
  </middle>

  <back>
    <displayreference target="RFC4271" to="BGP-4"/>
    <references title="Normative References">
      <xi:include href="http://bib.ietf.org/public/rfc/bibxml/reference.RFC.1997.xml"/>
      <xi:include href="http://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
      <xi:include href="http://bib.ietf.org/public/rfc/bibxml/reference.RFC.4271.xml"/>
      <xi:include href="http://bib.ietf.org/public/rfc/bibxml/reference.RFC.5065.xml"/>
      <xi:include href="http://bib.ietf.org/public/rfc/bibxml/reference.RFC.5668.xml"/>
      <xi:include href="http://bib.ietf.org/public/rfc/bibxml/reference.RFC.5701.xml"/>
      <xi:include href="http://bib.ietf.org/public/rfc/bibxml/reference.RFC.6793.xml"/>
      <xi:include href="http://bib.ietf.org/public/rfc/bibxml/reference.RFC.7153.xml"/>
      <xi:include href="http://bib.ietf.org/public/rfc/bibxml/reference.RFC.7606.xml"/>
      <xi:include href="http://bib.ietf.org/public/rfc/bibxml/reference.RFC.8092.xml"/>
      <xi:include href="http://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
      <reference anchor="IANA-BGP-PATH-ATTRIBUTES" target="https://www.iana.org/assignments/bgp-parameters/bgp-parameters.xhtml#bgp-parameters-2" derivedAnchor="IANA-BGP-PATH-ATTRIBUTES">
        <front>
          <title>BGP Path Attributes</title>
          <author>
            <organization showOnFrontPage="true">
              IANA
            </organization>
          </author>
        </front>
      </reference>
      <reference anchor="IANA-BGP-EC" target="https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml" derivedAnchor="IANA-BGP-EC">
        <front>
          <title>BGP Extended Communities</title>
          <author>
            <organization showOnFrontPage="true">
              IANA
            </organization>
          </author>
        </front>
      </reference>
      <reference anchor="IANA-BGP-EC-TRANS" target="https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml#transitive" derivedAnchor="IANA-BGP-EC-TRANS">
        <front>
          <title>BGP Transitive Extended Community Types</title>
          <author>
            <organization showOnFrontPage="true">
              IANA
            </organization>
          </author>
        </front>
      </reference>
      <reference anchor="IANA-BGP-EC-NONTRANS" target="https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml#non-transitive" derivedAnchor="IANA-BGP-EC-NONTRANS">
        <front>
          <title>BGP Non-Transitive Extended Community Types</title>
          <author>
            <organization showOnFrontPage="true">
              IANA
            </organization>
          </author>
        </front>
      </reference>
      <reference anchor="IANA-BGP-EC-TRANS-TWO-OCTET-AS" target="https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml#trans-two-octet-as" derivedAnchor="IANA-BGP-EC-TRANS-TWO-OCTET-AS">
        <front>
          <title>Transitive Two-Octet AS-Specific Extended Community Sub-Types</title>
          <author>
            <organization showOnFrontPage="true">
              IANA
            </organization>
          </author>
        </front>
      </reference>
      <reference anchor="IANA-BGP-EC-NONTRANS-TWO-OCTET-AS" target="https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml#non-trans-two-octet-as" derivedAnchor="IANA-BGP-EC-NONTRANS-TWO-OCTET-AS">
        <front>
          <title>Non-Transitive Two-Octet AS-Specific Extended Community Sub-Types</title>
          <author>
            <organization showOnFrontPage="true">
              IANA
            </organization>
          </author>
        </front>
      </reference>
      <reference anchor="IANA-BGP-EC-TRANS-IPV4" target="https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml#trans-ipv4" derivedAnchor="IANA-BGP-EC-TRANS-IPV4">
        <front>
          <title>Transitive IPv4-Address-Specific Extended Community Sub-Types</title>
          <author>
            <organization showOnFrontPage="true">
              IANA
            </organization>
          </author>
        </front>
      </reference>
      <reference anchor="IANA-BGP-EC-NONTRANS-IPV4" target="https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml#non-trans-ipv4" derivedAnchor="IANA-BGP-EC-NONTRANS-IPV4">
        <front>
          <title>Non-Transitive IPv4-Address-Specific Extended Community Sub-Types</title>
          <author>
            <organization showOnFrontPage="true">
              IANA
            </organization>
          </author>
        </front>
      </reference>
      <reference anchor="IANA-BGP-EC-TRANS-OPAQUE" target="https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml#trans-opaque" derivedAnchor="IANA-BGP-EC-TRANS-OPAQUE">
        <front>
          <title>Transitive Opaque Extended Community Sub-Types</title>
          <author>
            <organization showOnFrontPage="true">
              IANA
            </organization>
          </author>
        </front>
      </reference>
      <reference anchor="IANA-BGP-EC-NONTRANS-OPAQUE" target="https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml#non-trans-opaque" derivedAnchor="IANA-BGP-EC-NONTRANS-OPAQUE">
        <front>
          <title>Non-Transitive Opaque Extended Community Sub-Types</title>
          <author>
            <organization showOnFrontPage="true">
              IANA
            </organization>
          </author>
        </front>
      </reference>
      <reference anchor="IANA-BGP-EC-TRANS-FOUR-OCTET-AS" target="https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml#trans-four-octet-as" derivedAnchor="IANA-BGP-EC-TRANS-FOUR-OCTET-AS">
        <front>
          <title>Transitive Four-Octet AS-Specific Extended Community Sub-Types</title>
          <author>
            <organization showOnFrontPage="true">
              IANA
            </organization>
          </author>
        </front>
      </reference>
      <reference anchor="IANA-BGP-EC-NONTRANS-FOUR-OCTET-AS" target="https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml#non-trans-four-octet-as" derivedAnchor="IANA-BGP-EC-NONTRANS-FOUR-OCTET-AS">
        <front>
          <title>Non-Transitive Four-Octet AS-Specific Extended Community Sub-Types</title>
          <author>
            <organization showOnFrontPage="true">
              IANA
            </organization>
          </author>
        </front>
      </reference>
      <reference anchor="IANA-IPFIX" target="https://www.iana.org/assignments/ipfix/ipfix.xhtml" derivedAnchor="IANA-IPFIX">
        <front>
          <title>IPFIX Entities</title>
          <author>
            <organization showOnFrontPage="true">
              IANA
            </organization>
          </author>
        </front>
      </reference>
      <reference anchor="IANA-BGP-EC-TRANS-IPV6" target="https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml#trans-ipv6" derivedAnchor="IANA-BGP-EC-TRANS-IPV6">
        <front>
          <title>Transitive IPv6-Address-Specific Extended Community Types</title>
          <author>
            <organization showOnFrontPage="true">
              IANA
            </organization>
          </author>
        </front>
      </reference>
      <reference anchor="IANA-BGP-EC-NONTRANS-IPV6" target="https://www.iana.org/assignments/bgp-extended-communities/bgp-extended-communities.xhtml#non-trans-ipv6" derivedAnchor="IANA-BGP-EC-NONTRANS-IPV6">
        <front>
          <title>Non-Transitive IPv6-Address-Specific Extended Community Types</title>
          <author>
            <organization showOnFrontPage="true">
              IANA
            </organization>
          </author>
        </front>
      </reference>
    </references>
    <references title="Informative References">
      <xi:include href="http://bib.ietf.org/public/rfc/bibxml/reference.RFC.4360.xml"/>
      <xi:include href="http://bib.ietf.org/public/rfc/bibxml/reference.RFC.4364.xml"/>
      <xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.draft-decraene-idr-rfc4360-clarification-00.xml"/>
    </references>

    <section anchor="Appendix" title="Comparison with RFC4360">
      <t>
        The encodings and definitions of the extended communities are unchanged in this document.
      </t>
      <t>
        Besides addressing known errata in <xref target="RFC4360"/>, this document updates the following:
      </t>
      <ul>
        <li>
          <xref target="bgp-ec-types"/> now includes references to the case for the 4-Octet Autonomous System number.
        </li>
        <li>
          <xref target="operations"/> clarifies the operations of non-transitive extended communities across
          Autonomous System or Confederation Member-AS boundaries.
        </li>
        <li>
          <xref target="error-handling"/> is added to describe the error handling procedures.
        </li>
        <li>
          <xref target="iana-considerations"/> is updated to reflect the current IANA registry status.
          The update splits the "BGP Extended Communities Type" registry into transitive and non-transitive registries.
          This section also contains similar updates for the Sub-Types defined.
        </li>
        <li>
          <xref target="security-considerations"/> is updated to reflect the current security practice.
        </li>
      </ul>
    </section>
    
 </back>
</rfc>
