Bgp Path Decision Algorithm; Configuring Next-Hop Processing - Juniper BGP - CONFIGURATION GUIDE V 11.1.X Configuration Manual

Junose software for e series routing platforms
Table of Contents

Advertisement

If only one route exists to a particular destination, BGP installs that route. If multiple
routes exist for a destination, BGP uses tie-breaking rules to decide which one of the
routes to install in the BGP routing table.

BGP Path Decision Algorithm

BGP determines the best path to each destination for a BGP speaker by comparing
path attributes according to the following selection sequence:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
The following sections discuss the attributes evaluated in the path decision process.
Examples show how you might configure these attributes to influence routing
decisions.

Configuring Next-Hop Processing

Routes sent by BGP speakers include the next-hop attribute. The next hop is the IP
address of a node on the network that is closer to the advertised prefix. Routers that
have traffic destined for the advertised prefix send the traffic to the next hop. The
next hop can be the address of the BGP speaker sending the update or of a third-party
node. The third-party node does not have to be a BGP speaker.
The next-hop attributes conform to the following rules:
Select a path with a reachable next hop.
Select the path with the highest weight.
If path weights are the same, select the path with the highest local preference
value.
Prefer locally originated routes (network routes, redistributed routes, or aggregated
routes) over received routes.
Select the route with the shortest AS-path length.
If all paths have the same AS-path length, select the path based on origin: IGP is
preferred over EGP; EGP is preferred over Incomplete.
If the origins are the same, select the path with lowest MED value.
If the paths have the same MED values, select the path learned by means of
EBGP over one learned by means of IBGP.
Select the path with the lowest IGP cost to the next hop.
Select the path with the shortest route reflection cluster list. Routes without a
cluster list are treated as having a cluster list of length 0.
Select the path received from the peer with the lowest BGP router ID.
Select the path that was learned from the neighbor with the lowest peer remote
address.
The next hop for EBGP sessions is the IP address of the peer that advertised the
route.
The next hop for IBGP sessions is one of the following:
Chapter 1: Configuring BGP Routing
Selecting the Best Path
107

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose 11.1.x bgp and mplsBgpMpls

Table of Contents