RFC 5701 PROPOSED STANDARD ROUTING · BGP · IPV6

IPv6 Address Specific BGP Extended Community Attribute

A BGP extended community that carries a 16-octet IPv6 address, for networks that cannot rely on IPv4 addresses.

On rfc-editor.org ↗
PUBLISHED
November 2009
AUTHORS
Y. Rekhter
STREAM
IETF
UPDATED BY
RFC 7153 — IANA Registries for BGP Extended Communities, RFC 7606 — Revised Error Handling for BGP UPDATE Messages
COMMUNITY SIZE
20 octets
GLOBAL ADMINISTRATOR
16 octets (IPv6 address)
LOCAL ADMINISTRATOR
2 octets
BGP ATTRIBUTE VALUE
25
ROUTE TARGET TYPE
0x0002
ROUTE ORIGIN TYPE
0x0003
DOI
10.17487/RFC5701

RFC text

Contents
Original text · RFC Editor View on rfc-editor.org ↗
Network Working Group                                         Y. Rekhter
Request for Comments: 5701                              Juniper Networks
Category: Standards Track                                  November 2009


         IPv6 Address Specific BGP Extended Community Attribute

Abstract

   Current specifications of BGP Extended Communities (RFC 4360) support
   the IPv4 Address Specific Extended Community, but do not support an
   IPv6 Address Specific Extended Community.  The lack of an IPv6
   Address Specific Extended Community may be a problem when an
   application uses the IPv4 Address Specific Extended Community, and
   one wants to use this application in a pure IPv6 environment.  This
   document defines a new BGP attribute, the IPv6 Address Specific
   Extended Community, that addresses this problem.  The IPv6 Address
   Specific Extended Community is similar to the IPv4 Address Specific
   Extended Community, except that it carries an IPv6 address rather
   than an IPv4 address.

Status of This Memo

   This document specifies an Internet standards track protocol for the
   Internet community, and requests discussion and suggestions for
   improvements.  Please refer to the current edition of the "Internet
   Official Protocol Standards" (STD 1) for the standardization state
   and status of this protocol.  Distribution of this memo is unlimited.

Copyright Notice

   Copyright (c) 2009 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (http://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the BSD License.

   This document may contain material from IETF Documents or IETF
   Contributions published or made publicly available before November
   10, 2008.  The person(s) controlling the copyright in some of this
   material may not have granted the IETF Trust the right to allow
   modifications of such material outside the IETF Standards Process.
   Without obtaining an adequate license from the person(s) controlling
   the copyright in such materials, this document may not be modified
   outside the IETF Standards Process, and derivative works of it may
   not be created outside the IETF Standards Process, except to format
   it for publication as an RFC or to translate it into languages other
   than English.

1.  Introduction

   Current specifications of BGP Extended Communities [RFC4360] support
   the IPv4 Address Specific Extended Community, but do not support an
   IPv6 Address Specific Extended Community.  The lack of an IPv6
   Address Specific Extended Community may be a problem when an
   application uses IPv4 Address Specific Extended Community and one
   wants to use this application in a pure IPv6 environment.

   Because the BGP Extended Community attribute defines each BGP
   Extended Community as being 8 octets long, it is not possible to
   define the IPv6 Specific Extended Community using the existing BGP
   Extended Community attribute [RFC4360].  Therefore, this document
   defines a new BGP attribute, the IPv6 Address Specific Extended
   Community, that has a structure similar to the IPv4 Address Specific
   Extended Community, and thus could be used in a pure IPv6 environment
   as a replacement of the IPv4 Address Specific Extended Community.

2.  IPv6 Address Specific BGP Extended Community Attribute

   The IPv6 Address Specific Extended Community Attribute is a
   transitive, optional BGP attribute [BGP-4].  The attribute consists
   of a set of "IPv6 Address Specific extended communities".  All routes
   with the IPv6 Address Specific Extended Community attribute belong to
   the communities listed in the attribute.

   Just like all other BGP Extended Communities, the IPv6 Address
   Specific Extended Community supports multiple sub-types.

   Each IPv6 Address Specific extended community is encoded as a
   20-octet quantity, as follows:

    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       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |          Global Administrator (cont.)                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |          Global Administrator (cont.)                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |          Global Administrator (cont.)                         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Global Administrator (cont.)  |    Local Administrator        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   The first high-order octet indicates whether a particular sub-type of
   this community is transitive across Autonomous Systems (ASes) (0x00),
   or not (0x40).  The second high-order octet of this extended type is
   used to indicate sub-types.  The sub-types are the same as for the
   IPv4 Address Specific Extended Community.

   Global Administrator field: 16 octets

      This field contains an IPv6 unicast address assigned by one of the
      Internet registries.

   Local Administrator field: 2 octets

      The organization that has been assigned the IPv6 address in the
      Global Administrator field can encode any information in this
      field.  The format and meaning of the value encoded in this field
      should be defined by the sub-type of the community.

3.  IANA Considerations

   This document defines a new BGP attribute, called the IPv6 Address
   Specific Extended Community (value 25).

   This document defines a class of extended communities, called the
   IPv6 Address Specific Extended Community, for which the IANA has
   created and will maintain a registry entitled "IPv6 Address Specific
   Extended Community".  Future assignments are to be made using the
   "First Come First Served" policy defined in [RFC5226].  The Type
   values for the transitive communities of the IPv6 Address Specific
   Extended Community class are 0x0000-0x00ff; for the non-transitive
   communities of that class, they are 0x4000-0x40ff.  Assignments
   consist of a name and the value.

   This document makes the following assignments for the IPv6 Address
   Specific extended community types:

      Name                                     Type Value
      ----                                     --------------
      IPv6 address specific Route Target       0x0002
      IPv6 address specific Route Origin       0x0003

4.  Security Considerations

   This document does not add new security issues.  All the security
   considerations for BGP Extended Communities apply here.  At the time
   that this document was written, there were significant efforts
   underway to improve the security properties of BGP.  For examples of
   documents that have been produced up to this time of publication, see
   [RFC4593] and [SIDR].

   There is a potential serious issue if a malformed, optional,
   transitive attribute is received.  This issue and the steps to avoid
   it are discussed in [OPT_TRANS].

5.  Acknowledgements

   Many thanks to Michael Lundberg and Emre Ertekin for their review and
   comments.

6.  References

6.1.  Normative References

   [BGP-4]      Rekhter, Y., Ed., Li, T., Ed., and S. Hares, Ed., "A
                Border Gateway Protocol 4 (BGP-4)", RFC 4271, January
                2006.

   [RFC5226]    Narten, T. and H. Alvestrand, "Guidelines for Writing an
                IANA Considerations Section in RFCs", BCP 26, RFC 5226,
                May 2008.

   [RFC4360]    Sangli, S., Tappan, D., and Y. Rekhter, "BGP Extended
                Communities Attribute", RFC 4360, February 2006.

6.2.  Informative References

   [OPT_TRANS]  Scudder, J. and E. Chen, "Error Handling for Optional
                Transitive BGP Attributes", Work in Progress, April
                2009.

   [RFC4593]    Barbir, A., Murphy, S., and Y. Yang, "Generic Threats to
                Routing Protocols", RFC 4593, October 2006.

   [SIDR]       Lepinski, M. and S. Kent, "An Infrastructure to Support
                Secure Internet Routing", Work in Progress, July 2009.

Author's Address

   Yakov Rekhter
   Juniper Networks, Inc.
   EMail: yakov@juniper.net

AI ELI5

On this page
PROBLEMBGP Extended Communities (RFC 4360) have an IPv4 Address Specific form but no IPv6 one, which is a problem when an application built on the IPv4 form must run in a pure IPv6 environment.
MECHANISMBecause every Extended Community is 8 octets long, an IPv6 address cannot fit, so RFC 5701 defines a new optional transitive BGP attribute whose entries are 20 octets: a type, a sub-type, a 16-octet IPv6 Global Administrator and a 2-octet Local Administrator.
STATUS TODAYIt is a Proposed Standard that assigns attribute value 25 and two community types, Route Target and Route Origin. The index lists it as updated by RFC 7153 and RFC 7606.

§1Why a New Attribute Is Needed

BGP Extended Communities, defined in RFC 4360, include an IPv4 Address Specific Extended Community but no IPv6 counterpart. An application that uses the IPv4 form therefore has a problem in a pure IPv6 environment.

The obstacle is size. The Extended Community attribute defines each community as 8 octets long, so a 16-octet IPv6 address cannot be added to it. RFC 5701 instead defines a separate BGP attribute with a structure similar to the IPv4 form, usable as a replacement for it.

The old name tag is a small sticker with room for a short address only. A long address will not fit, so a bigger sticker is needed.

§2The IPv6 Address Specific Extended Community

The attribute is a transitive, optional BGP attribute made up of a set of IPv6 Address Specific extended communities. Every route carrying it belongs to the communities listed. Each community is encoded in 20 octets.

  • The first octet is 0x00 if the sub-type is transitive across Autonomous Systems and 0x40 if not.
  • The second octet is the sub-type. The sub-types are the same as for the IPv4 Address Specific Extended Community.
  • The Global Administrator field is 16 octets and holds an IPv6 unicast address assigned by one of the Internet registries.
  • The Local Administrator field is 2 octets. The organization that holds the address can encode any information there, with the format and meaning defined by the sub-type.

Each tag has a part that says how far it may travel, a part that says what kind it is, a long part with the owner's address, and a small part where the owner writes whatever note they like.

IPV6 ADDRESS SPECIFIC EXTENDED COMMUNITY (RFC 5701)
IPv6 Address Specific extended community
FieldNameSizeValueDescription
TYPEType (0x00 or 0x40)1 byte0x00 transitive across ASes, 0x40 not.
SUB-TYPESub-Type1 byteSame sub-types as the IPv4 Address Specific community.
GLOBAL-ADMINGlobal Administrator16 bytesAn IPv6 unicast address assigned by an Internet registry.
LOCAL-ADMINLocal Administrator2 bytesAny information the address holder chooses; meaning set by the sub-type.

§3Registrations at IANA

The document defines a new BGP attribute, the IPv6 Address Specific Extended Community, with value 25. IANA created a registry for the class, with future assignments made by the First Come First Served policy of RFC 5226. Transitive types fall in 0x0000-0x00ff and non-transitive types in 0x4000-0x40ff.

Two types are assigned: IPv6 address specific Route Target as 0x0002 and IPv6 address specific Route Origin as 0x0003.

A central office keeps the list of tag types, and anyone who asks first can get a new type number. Two kinds are already written in.

§4Security Considerations

The document adds no new security issues, and all the security considerations for BGP Extended Communities apply. It points to ongoing efforts to improve BGP security and notes a potentially serious issue when a malformed optional transitive attribute is received, which another work in progress at the time discusses.

The bigger tag is no riskier than the old one, but a badly made tag that gets passed along can cause trouble.

§5References