📄 rfc1998.txt
字号:
Network Working Group E. ChenRequest for Comments: 1998 MCICategory: Informational T. Bates cisco Systems August 1996 An Application of the BGP Community Attribute in Multi-home RoutingStatus of This Memo This memo provides information for the Internet community. This memo does not specify an Internet standard of any kind. Distribution of this memo is unlimited.Abstract This document presents an application of the BGP community attribute [2] in simplifying the implementation and configuration of routing policies in the multi-provider Internet. It shows how the community based configuration can be used to replace the AS-based customization of the BGP "LOCAL_PREF" attribute, a common method used today. Not only does the technique presented simplifies configuration and management at the provider level, it also represents a paradigm shift in that it gives the potential for the customer to control its own routing policy with respect to its service provider, as well as providing the ability for policy configuration to be done at a prefix based granularity rather than the more common AS based granularity.1. Introduction In the multi-provider Internet, it is common for a service subscriber (i.e., customer) to have more than one service provider, or to have arrangements for redundant connectivity to the global connected Internet. As discussed in [3], routing strategies in these cases usually require coordination between the service subscriber and its providers, which typically leads to customization of router configurations (e.g., BGP "LOCAL_PREF") not only by the subscriber, but also by its providers. Due to the large number of customers a provider serves, customization of router configurations at the provider level may present management and scalability problems. This document presents an application of the BGP community attribute in simplifying the implementation of routing strategies in the multi-provider Internet. More specifically, the technique presented uses a community-based, rather than the common AS-based,Chen & Bates Informational [Page 1]RFC 1998 Use of Community August 1996 configuration of the BGP "LOCAL_PREF". It essentially removes the need for customized configuration of the BGP "LOCAL_PREF" attribute at the provider level while maintaining the same level of routing functionality and flexibility. It also represents a paradigm shift in that it gives the potential for the customer to control its own routing policy with respect to its service provider, as well as providing the ability for policy configuration to be done at a prefix based granularity rather than the more common AS based granularity in use today.2. AS-based Configuration and its Drawbacks As discussed in [3], in today's multi-provider Internet, customized configuration of the BGP "LOCAL_PREF" attribute is often required to implement common routing strategies such as load-sharing or backup. There are two main reasons: o Lack of available implementations and deployment of routing software that supports the "Destination Preference Attribute" (DPA) as specified in [4]. DPA allows one to specify a globally transitive preference so that return traffic favors certain path. As discussed in [3], the attribute will be very useful in influencing route selection for routes with identical "LOCAL_PREF" and equal AS-path length. o In the multi-provider Internet, it is common for a provider to assign higher BGP "LOCAL_PREF" values for routes from its customers than from other service providers. This practice provides some degree of protection for its customer routes, and it facilitates implementation of certain routing strategies. It, however, also complicates other routing implementations such as backup arrangement, thus, requiring customized "LOCAL_PREF" configuration. Figure 1 shows a typical case of a backup arrangement in the multi- provider Internet. In Figure 1, AS1 and AS2 are both providers, and AS3 and AS4 are customers of AS1 and AS2, respectively. AS3 has entered a bilateral agreement with AS4 to provide backup to each other. That is, AS3 would use its direct link to AS4 to reach only AS4 in the normal circumstance, and for transit in the case of a failure between AS3 and AS1. To realize this routing agreement, AS3 requests that its provider AS1 adjust its BGP "LOCAL_PREF" configuration so that AS1 reaches AS4 via AS2.Chen & Bates Informational [Page 2]RFC 1998 Use of Community August 1996 +------+ +------+ | AS1 |------| AS2 | +------+ +------+ | | +------+ +------+ | AS3 |------| AS4 | +------+ +------+ Figure 1: Typical Backup Scenario Primarily due to scalability and management concerns, most providers only perform "LOCAL_PREF" customization based on ASs, not on IP prefixes. If IP prefix-based "LOCAL_PREF" configuration is needed, a technique known as as the BGP AS-path manipulation can be used. However, it is currently only available in certain vendor's products. There are several drawbacks with the the practice of AS-based BGP "LOCAL_PREF" configuration at the provider level: o The implementation tends to less efficient due to the process of coordination and configuration. More importantly, the process needs to be repeated each time a change (e.g., adding a new AS) occurs. o The AS-based customization complicates router configuration and increases complexity of network operation. It has become a serious scalability issue for providers. o It can not implement prefix-based configuration without the AS-path manipulation (i.e., using fake AS). o Keeping configuration up-to-date is some times problematic.3. How the BGP Community Attribute Can Help3.1 Overview of the Community Attribute The BGP community path attribute is an optional transitive attribute of variable length [1,2]. The attribute consists of a set of four octet values, each of which specify a community. The community attribute values are encoded using an AS number in the first two octets, with the remaining two octets defined by the AS. As defined in [2], a community is a group of destinations (i.e. prefixes) that share some common attribute. Each destination can belong to multiple communities. All prefixes with the community attribute belong to the communities listed in the attribute.Chen & Bates Informational [Page 3]RFC 1998 Use of Community August 1996 The BGP community allows one to group a set of prefixes and perform routing decisions based on the identity of the group. The well-known communities NO_EXPORT (0xFFFFFF01) and NO_ADVERTISE (0xFFFFFF02) are intuitive, and can be used for optimizing routing and for improving route aggregation.3.2 Community-based Configuration With the BGP community attribute [2], a provider can now use community-based, rather than AS-based, configuration of BGP "LOCAL_PREF". The provider first needs to coordinate with its customers a set of communities to be mapped to certain BGP "LOCAL_PREF" values. The provider can then apply a uniform BGP configuration to all its customers that would capture routes with the community values, and set up the appropriate BGP "LOCAL_PREF" values accordingly. A customer that requires customization in its provider BGP "LOCAL_PREF" configuration can simply send the appropriate community values in its routing announcements. The major advantages of using this technique include: o The customer has full control in the process, which makes a lot of sense as the customer is in a position to have better understanding about its own topology and routing policy requirement. o The effect of route-based customization in BGP "LOCAL_PREF" configuration by providers can now be achieved, thus, removing the need of AS-Path manipulation in certain cases. o It addresses the scalability issue facing providers as it distributes the configuration work to the customer that requires customization.Chen & Bates Informational [Page 4]RFC 1998 Use of Community August 19964. A Real-World Implementation Example MCI currently makes heavy use of the BGP "LOCAL_PREF" attribute value as part of its routing policy configuration process. Different BGP "LOCAL_PREF" values are assigned for routes from different sources. Table 1 details these values: +-------------------------+------------+ | Category | LOCAL_PREF | +-------------------------+------------+ |Customer Routes | 100 | |Customer backup Routes | 90 | |Other ISP Routes | 80 | |Customer-Provided backup | 70 | +-------------------------+------------+ Table 1: Defined LOCAL_PREF Values Note: o The value '100' is the default value used within our network configuration.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -