![background image](http://html.mh-extra.com/html/foundry-networks/switch-and-router/switch-and-router_installation-and-configuration-manual_2324275685.webp)
Configuring BGP4
December 2000
19 - 3
•
AS-path – A list of the other ASs through which a route passes. BGP4 routers can use the AS-path to detect
and eliminate routing loops. For example, if a route received by a BGP4 router contains the AS that the router
is in, the router does not add the route to its own BGP4 table. (The BGP4 RFCs refer to the AS-path as
“AS_PATH”.)
•
Additional path attributes – A list of additional parameters that describe the route. The route origin and next
hop are examples of these additional path attributes.
NOTE:
The Layer 3 Switch re-advertises a learned best BGP4 route to the Layer 3 Switch’s neighbors even
when the software does not also select that route for installation in the IP route table. The best BGP4 route is the
BGP4 path that the software selects based on comparison of the paths’ BGP4 route parameters.
After a Foundry Layer 3 Switch successfully negotiates a BGP4 session with a neighbor (a BGP4 peer), the
Foundry Layer 3 Switch exchanges complete BGP4 route tables with the neighbor. After this initial exchange, the
Foundry Layer 3 Switch and all other RFC 1771-compliant BGP4 routers send UPDATE messages to inform
neighbors of new, changed, or no longer feasible routes. BGP4 routers do not send regular updates. However, if
configured to do so, a BGP4 router does regularly send KEEPALIVE messages to its peers to maintain BGP4
sessions with them if the router does not have any route information to send in an UPDATE message. See “BGP4
Message Types” on page 19-4 for information about BGP4 messages.
How BGP4 Selects a Path for a Route
When multiple paths for the same route are known to a BGP4 router, the router uses an algorithm to weigh the
paths and determine the optimal path for the route. The optimal path depends on various parameters including the
following. You can modify some of these parameters. (See “Optional Configuration Tasks” on page 19-27.)
•
Weight – A value that the Foundry BGP4 Layer 3 Switch associates with a specific BGP4 neighbor. For
example, if the Layer 3 Switch receives routes to the same destination from two BGP4 neighbors, the Layer 3
Switch prefers the route from the neighbor with the larger weight.
•
Local preference – An attribute that indicates a degree of preference for a route relative to other routes in the
local AS.
•
AS-path length – The number of ASs through which the route must pass to reach the destination. The AS-
path is a sequential list of the AS numbers through which the route information has passed to reach the BGP4
Layer 3 Switch.
•
Origin – The source of the route information. The origin can be IGP, EGP, or INCOMPLETE. IGP is
preferred over EGP and both are preferred over INCOMPLETE.
•
Multi-Exit Discriminator (MED) – A value associated with routes that have multiple paths through the
same AS. In BGP4, a route’s MED is equivalent to its “metric”.
•
Confederation membership.
•
Closest IBGP neighbor – The closest internal path to the destination within the local AS.
•
Number of paths available for load sharing.
Foundry Layer 3 Switches use the following algorithm to choose the optimal path for a BGP4 route. The algorithm
uses the parameters listed above.
1.
Is the next hop accessible though an Interior Gateway Protocol (IGP) route? If not, ignore the route.
2.
Use the path with the largest weight.
3.
If the weights are the same, prefer the route with the largest local preference.
4.
If the routes have the same local preference, prefer the route that was originated locally (by this BGP4 Layer
3 Switch).
5.
If the local preferences are the same and the routes were originated locally, prefer the route with the shortest
AS-path. All paths within a confederation have the same length.
6.
If the AS-path lengths are the same, prefer the route with the lowest origin type. From low to high, route origin
types are valued as follows:
Summary of Contents for Switch and Router
Page 2: ...December 2000 Copyright 2000 by Foundry Networks Inc ...
Page 26: ...Foundry Switch and Router Installation and Configuration Guide xxvi December 2000 ...
Page 64: ...Foundry Switch and Router Installation and Configuration Guide 2 34 December 2000 ...
Page 162: ...Foundry Switch and Router Installation and Configuration Guide 5 38 December 2000 ...
Page 196: ...Foundry Switch and Router Installation and Configuration Guide 6 34 December 2000 ...
Page 208: ...Foundry Switch and Router Installation and Configuration Guide 7 12 December 2000 ...
Page 236: ...Foundry Switch and Router Installation and Configuration Guide 8 28 December 2000 ...
Page 258: ...Foundry Switch and Router Installation and Configuration Guide 9 22 December 2000 ...
Page 420: ...Foundry Switch and Router Installation and Configuration Guide 13 32 December 2000 ...
Page 442: ...Foundry Switch and Router Installation and Configuration Guide 14 22 December 2000 ...
Page 554: ...Foundry Switch and Router Installation and Configuration Guide 15 112 December 2000 ...
Page 574: ...Foundry Switch and Router Installation and Configuration Guide 16 20 December 2000 ...
Page 626: ...Foundry Switch and Router Installation and Configuration Guide 17 52 December 2000 ...
Page 682: ...Foundry Switch and Router Installation and Configuration Guide 18 56 December 2000 ...
Page 826: ...Foundry Switch and Router Installation and Configuration Guide 20 20 December 2000 ...
Page 994: ...Foundry Switch and Router Installation and Configuration Guide 26 10 December 2000 ...
Page 1004: ...Foundry Switch and Router Installation and Configuration Guide B 6 December 2000 ...
Page 1044: ...Foundry Switch and Router Installation and Configuration Guide C 40 December 2000 ...
Page 1048: ...Foundry Switch and Router Installation and Configuration Guide D 4 December 2000 ...
Page 1070: ...Foundry Switch and Router Installation and Configuration Guide Index 18 December 2000 ...