Understanding Route Aggregation in BGP



Similar documents
BGP Best Path Selection Algorithm

APNIC elearning: BGP Attributes

APNIC elearning: BGP Basics. Contact: erou03_v1.0

basic BGP in Huawei CLI

BGP Basics. BGP Uses TCP 179 ibgp - BGP Peers in the same AS ebgp - BGP Peers in different AS's Private BGP ASN. BGP Router Processes

IPv6 over MPLS VPN. Contents. Prerequisites. Document ID: Requirements

How To Understand Bg

BGP Router Startup Message Flow

Configuring a Gateway of Last Resort Using IP Commands

Using the Border Gateway Protocol for Interdomain Routing

BGP Link Bandwidth. Finding Feature Information. Contents

BGP Attributes and Path Selection

BGP Terminology, Concepts, and Operation. Chapter , Cisco Systems, Inc. All rights reserved. Cisco Public

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

Gateway of last resort is to network

Sample Configuration Using the ip nat outside source static

Sample Configuration Using the ip nat outside source list C

Border Gateway Protocol BGP4 (2)

BGP Link Bandwidth. Finding Feature Information. Prerequisites for BGP Link Bandwidth

> Border Gateway Protocol (BGP-4) Technical Configuration Guide. Ethernet Routing Switch. Engineering

- Border Gateway Protocol -

Lecture 18: Border Gateway Protocol"

Routing Protocol - BGP

Simple Multihoming. ISP/IXP Workshops

Monitoring and Troubleshooting BGP Neighbor Sessions

Border Gateway Protocol (BGP)

Module 7. Routing and Congestion Control. Version 2 CSE IIT, Kharagpur

Configuring BGP. Cisco s BGP Implementation

BGP Support for Next-Hop Address Tracking

Inter-domain Routing Basics. Border Gateway Protocol. Inter-domain Routing Basics. Inter-domain Routing Basics. Exterior routing protocols created to:

IP Addressing and Subnetting for New Users

Configuring Static and Dynamic NAT Simultaneously

Table of Contents. Cisco Configuring a Basic MPLS VPN

BGP1 Multihoming and Traffic Engineering

CRS 4.x: Automatic Work and Wrap up Time Configuration Example

CS551 External v.s. Internal BGP

How To Configure InterVLAN Routing on Layer 3 Switches

Multihomed BGP Configurations

BGP-4 Case Studies. Nenad Krajnovic.

BSCI Module 6 BGP. Configuring Basic BGP. BSCI Module 6

Application Note. Failover through BGP route health injection

Load balancing and traffic control in BGP

Cisco Configuring Basic MPLS Using OSPF

BGP: Frequently Asked Questions

Basic Configuration Examples for BGP

Internet inter-as routing: BGP

Chapter 49 Border Gateway Protocol version 4 (BGP-4)

How To Import Ipv4 From Global To Global On Cisco Vrf.Net (Vf) On A Vf-Net (Virtual Private Network) On Ipv2 (Vfs) On An Ipv3 (Vv

E : Internet Routing

Understanding Route Redistribution & Filtering

Table of Contents. Cisco IP Addressing and Subnetting for New Users

Exterior Gateway Protocols (BGP)

Inter-domain Routing. Outline. Border Gateway Protocol

Examination. IP routning på Internet och andra sammansatta nät, DD2491 IP routing in the Internet and other complex networks, DD2491

BRI to PRI Connection Using Data Over Voice

Router and Routing Basics

Configuring and Testing Border Gateway Protocol (BGP) on Basis of Cisco Hardware and Linux Gentoo with Quagga Package (Zebra)

How To Load Balance On A Bgg On A Network With A Network (Networking) On A Pc Or Ipa On A Computer Or Ipad On A 2G Network On A Microsoft Ipa (Netnet) On An Ip

BGP4 Case Studies/Tutorial

Table of Contents. Cisco How Does Load Balancing Work?

Simple Multihoming. ISP Workshops. Last updated 30 th March 2015

no aggregate-address address mask [as-set] [summary-only] [suppress-map map-name] [advertise-map map-name] [attribute-map map-name]

Chapter 6: Implementing a Border Gateway Protocol Solution for ISP Connectivity

ITRI CCL. IP Routing Primer. Paul C. Huang, Ph.D. ITRI / CCL / N300. CCL/N300; Paul Huang 1999/6/2 1

GregSowell.com. Mikrotik Routing

Routing in Small Networks. Internet Routing Overview. Agenda. Routing in Large Networks

HP Networking BGP and MPLS technology training

This feature was introduced. This feature was integrated in Cisco IOS Release 12.2(11)T.

BGP: Border Gateway Protocol

Advanced BGP Policy. Advanced Topics

Bell Aliant. Business Internet Border Gateway Protocol Policy and Features Guidelines

Administra0via. STP lab due Wednesday (in BE 301a!), 5/15 BGP quiz Thursday (remember required reading), 5/16

UPDATE = [Withdrawn prefixes (Optional)] + [Path Attributes] + [NLRIs].

Internet inter-as routing: BGP

Unity Error Message: Your voic box is almost full

Border Gateway Protocol (BGP-4)

Understanding Virtual Router and Virtual Systems

Load balancing and traffic control in BGP

JUNOS Secure BGP Template

Module 12 Multihoming to the Same ISP

MPLS VPN Route Target Rewrite

Lab 10: Confi guring Basic Border Gateway Protocol

Route Optimization. rek Petr Grygarek, VSB-TU Ostrava, Routed and Switched Networks 1

Document ID: Introduction

MPLS Configration 事 例

Textbook Required: Cisco Networking Academy Program CCNP: Building Scalable Internetworks v5.0 Lab Manual.

How To Set Up Bgg On A Network With A Network On A Pb Or Pb On A Pc Or Ipa On A Bg On Pc Or Pv On A Ipa (Netb) On A Router On A 2

Configuring Cisco CallManager IP Phones to Work With IP Phone Agent

Enable SMTP Message Notifications in Cisco Unity Connection 8.x

Based on Computer Networking, 4 th Edition by Kurose and Ross

netkit lab bgp: multi-homed Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

DD2491 p Inter-domain routing and BGP part I Olof Hagsand KTH/CSC

OSPF Configuring Multi-Area OSPF

Transitioning to BGP. ISP Workshops. Last updated 24 April 2013

Syslog Server Configuration on Wireless LAN Controllers (WLCs)

Edge-1#show ip route Routing entry for /24. Known via "bgp 65001", distance 200, metric 0. Tag 65300, type internal

ETHEL THE AARDVARK GOES BGP ROUTING

Transcription:

Understanding Route Aggregation in BGP Document ID: 5441 Contents Introduction Prerequisites Requirements Components Used Conventions Network Diagram Aggregate Without the as set Argument Aggregate with the as set Argument Change the Attributes of the Aggregate Route Use advertise map to Aggregate a Subset of Specific Routes Impact of the Use of suppress map with Other Configuration Commands Related Information Introduction Border Gateway Protocol (BGP) allows the aggregation of specific routes into one route with use of the aggregate address address mask [as set] [summary only] [suppress map map name] [advertise map map name] [attribute map map name] command. When you issue the aggregate address command without any arguments, there is no inheritance of the individual route attributes (such as AS_PATH or community), which causes a loss of granularity. This document illustrates how to manipulate the different attributes when you use the aggregate address command and how to influence the propagation. Prerequisites Requirements Cisco recomms that you have knowledge of these topics: A basic knowledge of BGP operation. Refer to BGP Case Studies. Components Used This document is not restricted to specific software and hardware versions. However, the configuration in this document was tested with Cisco IOS Software Release 12.2(28). The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command. Conventions Refer to Cisco Technical Tips Conventions for more information on document conventions.

Network Diagram Aggregate Without the as set Argument Use of the as set argument creates an aggregate address with a mathematical set of autonomous systems (ASs). This as set argument summarizes the AS_PATH attributes of all the individual routes. These sample configurations enable you to examine this feature and how this argument helps BGP detect and avoid loops. Router A hostname RouterA ip address 2.2.2.2 255.0.0.0 interface Loopback0 ip address 160.20.1.1 255.255.0.0 router bgp 100 network 160.20.0.0 Router A advertises network 160.20.0.0/16. neighbor 2.2.2.1 remote as 300 Router B hostname RouterB ip address 3.3.3.3 255.0.0.0 interface Loopback0 ip address 160.10.1.1 255.255.0.0 router bgp 200

network 160.10.0.0 Router B advertises network 160.10.0.0/16. neighbor 3.3.3.1 remote as 300 Router C hostname RouterC ip address 2.2.2.1 255.0.0.0 ip address 3.3.3.1 255.0.0.0 interface Serial2 ip address 4.4.4.1 255.0.0.0 router bgp 300 neighbor 2.2.2.2 remote as 100 neighbor 3.3.3.3 remote as 200 neighbor 4.4.4.4 remote as 400 aggregate address 160.0.0.0 255.0.0.0 summary only The network is summarized, and Router C only advertises 160.0.0.0/8. Router D hostname RouterD ip address 4.4.4.4 255.0.0.0 router bgp 400 neighbor 4.4.4.1 remote as 300 Router C (AS 300) aggregates the routes 160.20.0.0/16 and 160.10.0.0/16 that come from AS 100 and AS 200, respectively. This action occurs because you have configured the summary only argument on Router C. Router C only announces the aggregate 160.0.0.0/8 to Router D. The aggregate 160.0.0.0/8 is the classless interdomain routing (CIDR) route. The more specific 160.10.0.0/16 and 160.20.0.0/16 routes are suppressed, as this BGP table on Router C shows: RouterC# show ip bgp BGP table version is 6, local router ID is 4.4.4.1 Status codes: s suppressed, d damped, h history, * valid, > best, i internal Origin codes: i IGP, e EGP,? incomplete Network Next Hop Metric LocPrf Weight Path

*> 160.0.0.0/8 0.0.0.0 32768 i s> 160.10.0.0 3.3.3.3 0 0 200 i s> 160.20.0.0 2.2.2.2 0 0 100 i Here is the BGP table of Router D. Observe the path information of the aggregate route: RouterD# show ip bgp BGP table version is 6, local router ID is 4.4.4.4 Status codes: s suppressed, d damped, h history, * valid, > best, i internal Origin codes: i IGP, e EGP,? incomplete Network Next Hop Metric LocPrf Weight Path *> 160.0.0.0/8 4.4.4.1 0 300 i The aggregate route 160.0.0.0/8 is considered to have originated from AS 300 with origin code IGP. The route has lost all the specific AS_PATH information of the individual prefixes 160.10.0.0/16, of AS 200, and 160.20.0.0/16, of AS 100. Aggregate with the as set Argument Now, you configure the as set argument in the aggregate address command on Router C. Here is the new configuration: Router C hostname RouterC ip address 2.2.2.1 255.0.0.0 ip address 3.3.3.1 255.0.0.0 interface Serial2 ip address 4.4.4.1 255.0.0.0 router bgp 300 neighbor 2.2.2.2 remote as 100 neighbor 3.3.3.3 remote as 200 neighbor 4.4.4.4 remote as 400 aggregate address 160.0.0.0 255.0.0.0 summary only as set With the as set configuration command, the aggregate inherits the attributes of the more specific routes. Now, look at how this argument influences the show ip bgp output on Router D: RouterD# show ip bgp BGP table version is 2, local router ID is 4.4.4.4 Status codes: s suppressed, d damped, h history, * valid, > best, i internal Origin codes: i IGP, e EGP,? incomplete Network Next Hop Metric LocPrf Weight Path

*> 160.0.0.0/8 4.4.4.1 0 300 {200,100} i With the as set argument, the path information in the BGP table for the aggregate route changes to include a set from 300 {200,100}. This set indicates that the aggregate actually summarizes routes that have passed through AS 200 and AS 100. The as set information becomes important in the avoidance of routing loops because the information records where the route has been. In any closed network, this aggregate information propagates through BGP and back to one of the ASs that the as set lists. This propagation creates the possibility of a loop. The loop detection behavior of BGP notes its own AS number in the as set of the aggregate update and drops the aggregate. This action prevents a loop. Note: The as set argument contains information about each individual route that the aggregate summarizes. Changes in the individual route cause an update of the aggregate. In the example, if 160.10.0.0/16 goes down, the path information of the aggregate changes from 300 {200,100} to 300 {200}. The aggregate is updated. If the aggregate summarizes tens or hundreds of routes and the routes that form the aggregate have problems, there can be a constant flap. Change the Attributes of the Aggregate Route The Aggregate with the as set Argument section shows you how to use as set to save the AS_PATH attributes with a specific route. In some cases, you can require a change in the attributes of the aggregate route. Examples of such attributes include metric, community, and origin. This section shows how you can use the attribute map argument to manipulate the aggregate address attributes. In this case, you configure one or more of the specific aggregated routes with the no export community attribute. Router A sets the community attribute no export to network 160.20.0.0/16 and announces the network to Router C. This section shows the configuration. Router C inherits the community attribute no export while the router aggregates 160.0.0.8. Therefore, there is no advertisement of 160.0.0.0/8 to Router D. The configuration of Routers B, C, and D do not change. Here is the new configuration for Router A: hostname RouterA Router A ip address 2.2.2.2 255.0.0.0 router bgp 100 network 160.20.0.0 Router A advertises network 160.20.0.0/16. neighbor 2.2.2.1 remote as 300 neighbor 2.2.2.1 s community neighbor 2.2.2.1 route map SET_NO_EXPORT out access list 1 permit 160.20.0.0 0.0.255.255 route map SET_NO_EXPORT permit 10 match ip address 1 set community no export This sets the community attribute no export. at Router A for route 160.20.0.0/16

Here is the BGP table of Router C for 160.0.0.0/8: RouterC# show ip bgp 160.0.0.0 BGP routing table entry for 160.0.0.0/8, version 9 Paths: (1 available, best #1, not advertised to EBGP peer) Not advertised to any peer {200,100}, (aggregated by 300 4.4.4.1) 0.0.0.0 from 0.0.0.0 (4.4.4.1) Origin IGP, localpref 100, weight 32768, valid, aggregated, local, atomic aggregate, best, ref 2 Community: no export The community no export stops the Router C announcement of the aggregate route to ebgp peer Router D. Router D shows that it has not learned 160.0.0.0 from Router C: RouterD# show ip bgp 160.0.0.0 % Network not in table You can configure the attribute map argument at Router C in order to manipulate the community attribute of the aggregate route from no export to none. This configuration allows the advertisement of the aggregate to Router D. Router C hostname RouterC ip address 2.2.2.1 255.0.0.0 ip address 3.3.3.1 255.0.0.0 interface Serial2 ip address 4.4.4.1 255.0.0.0 router bgp 300 neighbor 2.2.2.2 remote as 100 neighbor 3.3.3.3 remote as 200 neighbor 4.4.4.4 remote as 400 aggregate address 160.0.0.0 255.0.0.0 as set summary only attribute map Map Use of the attribute map argument allows you to change the community of the aggregate. route map Map permit 10 set community none This sets the community of the aggregate to none. Now, look at the BGP table of Router C for 160.0.0.0/8. Because there is no community set for the aggregate route, Router C advertises 160.0.0.0/8 to Router D. RouterC# show ip bgp 160.0.0.0 BGP routing table entry for 160.0.0.0/8, version 6

Paths: (1 available, best #1) Advertised to non peer group peers: 2.2.2.2 3.3.3.3 4.4.4.4 {200,100}, (aggregated by 300 4.4.4.1) 0.0.0.0 from 0.0.0.0 (4.4.4.1) Origin IGP, localpref 100, weight 32768, valid, aggregated, local, atomic aggregate, best, ref 2 The show ip bgp 160.0.0.0 output at Router D shows that Router D has learned the aggregate route 160.0.0.0/8 from Router C. RouterD# show ip bgp 160.0.0.0 BGP routing table entry for 160.0.0.0/8, version 10 Paths: (1 available, best #1, table Default IP Routing Table) Not advertised to any peer 300 {200,100}, (aggregated by 300 4.4.4.1) 4.4.4.1 from 4.4.4.1 (4.4.4.1) Origin IGP, localpref 100, valid, external, best Use advertise map to Aggregate a Subset of Specific Routes If you have control over the individual prefixes that form the aggregate route, you can more easily decide which attributes the aggregate will carry. Exclude prefix 160.20.0.0 from the aggregate route in the example in the Change the Attributes of the Aggregate Route section. In this case, the aggregate 160.0.0.0/8 does not inherit the community attribute no export. In order to make this change, configure the advertise map argument at Router C. Router C hostname RouterC ip address 2.2.2.1 255.0.0.0 ip address 3.3.3.1 255.0.0.0 interface Serial2 ip address 4.4.4.1 255.0.0.0 router bgp 300 neighbor 2.2.2.2 remote as 100 neighbor 3.3.3.3 remote as 200 neighbor 4.4.4.4 remote as 400 aggregate address 160.0.0.0 255.0.0.0 as set summary only advertise map SELECT_SP_ROUTE You exclude a particular prefix with the use of advertise map. access list 1 permit 160.10.0.0 0.0.255.255 route map SELECT_SP_ROUTE permit 10 match ip address 1

Now, look at the BGP table of Router C for 160.0.0.0/8: RouterC# show ip bgp 160.0.0.0 BGP routing table entry for 160.0.0.0/8, version 15 Paths: (1 available, best #1) Advertised to non peer group peers: 2.2.2.2 4.4.4.4 200, (aggregated by 300 2.2.2.1) 0.0.0.0 from 0.0.0.0 (2.2.2.1) Origin IGP, localpref 100, weight 32768, valid, aggregated, local, atomic aggregate, best, ref 2 Only AS 200 is part of the AS_PATH information of the aggregate; AS 100 is not part of the information. Also, there is no inheritance of the community no export from 160.20.0.0/16. Therefore, the aggregate route is announced to Router D. The show ip bgp 160.0.0.0 output shows the announcement: RouterD# show ip bgp 160.0.0.0 BGP routing table entry for 160.0.0.0/8, version 7 Paths: (1 available, best #1, table Default IP Routing Table) Not advertised to any peer 300 200, (aggregated by 300 4.4.4.1) 4.4.4.1 from 4.4.4.1 (4.4.4.1) Origin IGP, localpref 100, valid, external, atomic aggregate, best ip bgp 160.0.0.0 Note: Because the aggregate as set has AS 200 only, Router A in AS 100 accepts the aggregate route and installs the route in the routing table. The BGP loop detection mechanism causes this route acceptance. The BGP loop detection mechanism does not detect its own AS in as set. RouterA# show ip bgp BGP table version is 3, local router ID is 160.20.0.1 Status codes: s suppressed, d damped, h history, * valid, > best, i internal Origin codes: i IGP, e EGP,? incomplete Network Next Hop Metric LocPrf Weight Path *> 160.0.0.0/8 2.2.2.1 0 300 200 i *> 160.20.0.0 0.0.0.0 0 32768 i Impact of the Use of suppress map with Other Configuration Commands The aggregate address command includes other configuration commands, such as suppress map. In order to understand the impact of the use of all the configuration commands in combination, note that aggregate address only inherits the attributes from the more specific routes when you use the as set configuration command. Examples of the attributes that aggregate address can inherit include no export and no advertise. When you use the suppress map configuration command along with the summary only configuration command, the summary only configuration command does not have any effect. With use of the suppress map configuration command, the more specific routes that the suppress map suppresses are not advertised. However, the routes that the suppress map does not cover are advertised in addition to the aggregated route. Therefore, the notes in this section apply to the use of suppress map either with or without the summary only configuration command. When you use as set with suppress map, although the suppressed routes are not advertised, the aggregated route inherits the attributes of all the suppressed routes. But you can override the inherited attributes with the use of other configuration commands, such as attribute map. The Change the Attributes of the Aggregate Route section describes the use of attribute map.

When you use the as set and suppress map configuration commands with advertise map, the aggregate forms. The aggregate inherits the attributes only out of the routes that are selected in the advertise map, irrespective of whether suppress map suppresses the route. See the Use advertise map to Aggregate a Subset of Specific Routes section. When you use advertise map and attribute map along with as set and other configuration commands, the attribute map overrides the attributes that are chosen in the advertise map. In general, when you use advertise map, only the advertise map influences the aggregate. In the absence of advertise map, the aggregate inherits the attributes of the more specific routes, both suppressed and unsuppressed. In both the cases, you can use the attribute map configuration command to override the chosen attributes. Related Information BGP: Frequently Asked Questions Troubleshooting BGP BGP Support Page Technical Support & Documentation Cisco Systems Contacts & Feedback Help Site Map 2014 2015 Cisco Systems, Inc. All rights reserved. Terms & Conditions Privacy Statement Cookie Policy Trademarks of Cisco Systems, Inc. Updated: Aug 10, 2005 Document ID: 5441