On medium or large-scale Border Gateway Protocol (BGP) networks, the BGP routing table on a device contains a large number of routing entries. Storing the routing table consumes a great deal of memory, and transmitting and processing routing information consume significant network resources. Route summarization can reduce the size of a routing table, prevent specific routes from being advertised, and minimize the impact of route flapping on network performance.
Route summarization is the process of summarizing specific routes with the same IP prefix into a summary route. BGP supports automatic and manual route summarization. Table 1 defines the differences between the two modes.
Route Summarization Mode |
Implementation |
Characteristics |
|---|---|---|
Automatic route summarization |
After automatic route summarization is configured, BGP summarizes routes based on the natural network segment and sends only the summarized route to peers. For example, 10.1.1.1/24 and 10.2.1.1/24 are summarized into 10.0.0.0/8, which is a Class A address. |
|
Manual route summarization |
BGP routes are summarized manually. |
|
An automatically summarized route comes from local routes, and the mechanism of automatic route summarization is much less complex than that of manual route summarization. Therefore, the next section describes only manual route summarization.
Atomic_Aggregate: a well-known discretionary BGP attribute, carried in Update messages, indicating that a route is a summarized one. BGP speakers cannot delete this attribute during route transmission.
Aggregator: an optional transitive attribute, carried in Update messages, indicating where routes are summarized. Aggregator consists of the AS number and router ID of the router that performs the route summarization.
AS_Sequence: a type of AS_Path, carried in Update messages, recording in reverse order all the numbers of the ASs that a route passes from the local device to the destination address.
AS_Set affects BGP route selection. Whenever AS_Set changes, a router sends Update messages to its peers whose routes are not summarized by the router to notify the change. If the summarized route passes through a large number of ASs and the specific routes change frequently, the router needs to send Update messages frequently to its peers to notify them of the AS_Set changes. This process may lead to route flapping.
AS4_Path: a new attribute defined by BGP. It is similar to AS_Path in function, but AS4_Path can carry both 2-byte and 4-byte AS numbers. AS4_Path can be classified as AS4_Sequence or AS4_Set, which are respectively similar to AS_Sequence and AS_Set in function.
AS4_Aggregator: a new attribute defined by BGP. AS4_Aggregator carries 4-byte AS numbers, while Aggregator carries 2-byte AS numbers.