|
|
6. Path Selection with BGP
Connected: An Internet Encyclopedia
6. Path Selection with BGP
Up:
Connected: An Internet Encyclopedia
Up:
Requests For Comments
Up:
RFC 1772
Prev: 5. Policy Making with BGP
Next: 7. Required set of supported routing policies
6. Path Selection with BGP
6. Path Selection with BGP
One of the major tasks of a BGP speaker is to evaluate different
paths from itself to a set of destination covered by an address
prefix, select the best one, apply appropriate policy constraints,
and then advertise it to all of its BGP neighbors. The key issue is
how different paths are evaluated and compared. In traditional
distance vector protocols (e.g., RIP) there is only one metric (e.g.,
hop count) associated with a path. As such, comparison of different
paths is reduced to simply comparing two numbers. A complication in
Inter-AS routing arises from the lack of a universally agreed-upon
metric among AS's that can be used to evaluate external paths.
Rather, each AS may have its own set of criteria for path evaluation.
A BGP speaker builds a routing database consisting of the set of all
feasible paths and the list of destinations (expressed as address
prefixes) reachable through each path. For purposes of precise
discussion, it's useful to consider the set of feasible paths for a
set of destinations associated with a given address prefix. In most
cases, we would expect to find only one feasible path. However, when
this is not the case, all feasible paths should be maintained, and
their maintenance speeds adaptation to the loss of the primary path.
Only the primary path at any given time will ever be advertised.
The path selection process can be formalized by defining a complete
order over the set of all feasible paths to a set of destinations
associated with a given address prefix. One way to define this
complete order is to define a function that maps each full AS path to
a non-negative integer that denotes the path's degree of preference.
Path selection is then reduced to applying this function to all
feasible paths and choosing the one with the highest degree of
preference.
In actual BGP implementations, the criteria for assigning degree of
preferences to a path are specified as configuration information.
The process of assigning a degree of preference to a path can be
based on several sources of information:
- Information explicitly present in the full AS path.
- A combination of information that can be derived from the full
AS path and information outside the scope of BGP (e.g., policy
routing constraints provided as configuration information).
Possible criteria for assigning a degree of preference to a path are:
- AS count. Paths with a smaller AS count are generally better.
- Policy considerations. BGP supports policy-based routing based
on the controlled distribution of routing information. A BGP
speaker may be aware of some policy constraints (both within
and outside of its own AS) and do appropriate path selection.
Paths that do not comply with policy requirements are not
considered further.
- Presence or absence of a certain AS or AS's in the path. By
means of information outside the scope of BGP, an AS may know
some performance characteristics (e.g., bandwidth, MTU, intra-
AS diameter) of certain AS's and may try to avoid or prefer
them.
- Path origin. A path learned entirely from BGP (i.e., whose
endpoint is internal to the last AS on the path) is generally
better than one for which part of the path was learned via EGP
or some other means.
- AS path subsets. An AS path that is a subset of a longer AS
path to the same destination should be preferred over the
longer path. Any problem in the shorter path (such as an
outage) will also be a problem in the longer path.
- Link dynamics. Stable paths should be preferred over unstable
ones. Note that this criterion must be used in a very careful
way to avoid causing unnecessary route fluctuation. Generally,
any criteria that depend on dynamic information might cause
routing instability and should be treated very carefully.
Next: 7. Required set of supported routing policies
Connected: An Internet Encyclopedia
6. Path Selection with BGP
|
|
|
 |

|
 |
|
Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
| |
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
| |
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
| |
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
| |
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!
|
|
Service Details
|
|
 |
|