The BGP aggregate-address can be used to summarise a set of networks into a single prefix. In the
diagram below, Im going to use R2 to summarise prefixes inside AS20 & AS30, then send the summary
to R3.
195.26.10.10
0 10 i
0
0 10 i
This output also highlights some other important points when looking at aggregation. We can now see
that we have lost some path information about our two networks from AS20 and AS30. The aggregate
shows these routes are now in AS10 (Although this sentence isnt technically correct, this is what it
looks like when first glancing at the information in the BGP table above; a technical explanation is given
later).
Because the atomic-aggregate attribute is there; it signifies that the NLRI should not be de-aggregated,
as the advertising router (2.2.2.2) has chosen to advertise a less-specific prefix for a range of networks.
It also means that some of the paths to the destination may not follow the AS_PATH that has been
advertised.
As you know, the AS_PATH is used in BGP as a loop prevention mechanism. So because this
information is now lost, we could inherit a loop. Cisco has provided a solution to this situation by
breaking down the AS_PATH attribute into two tuples (sub-components of the AS_PATH). These are
the AS_SEQUENCE and AS_SET:
AS_SEQUENCE. This is the ordered list of ASs that were used in the path to reach the destination.
AS_SET. This is an unordered list of ASs that were used in the path to reach the destination.
When a BGP speaker aggregates multiple AS_PATHs, he will select the longest, most common shared
chain of AS_SEQUENCE tuples and put this into the AS_PATH attribute for the aggregated prefix (in
our topology this is just AS10). Any ASs that are uncommon to each prefix are put into the AS_SET
attribute. The end result is that any BGP speaker will be able to detect a loop because each AS that
has been traversed, will either be in the AS_PATH or AS_SET; and if the speaker sees his AS in any
of these attributes, he can be confident a loop has occurred. Lets enable this feature now.
R2(config-router)#aggregate-address 206.25.128.0 255.255.128.0 summary-only as-set
R3#sh ip bgp
BGP table version is 8, local router ID is 195.26.10.9
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? incomplete