28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Selecting Active Routes<br />

For each destination (prefix) in the routing table, RPD selects the best route, called<br />

the active route, and installs it into the forwarding table. The algorithm that RPD<br />

uses to select the active route is fairly involved, but there will be times when you will<br />

be analyzing the flow of traffic through your network and you will need to understand<br />

how and why RPD has chosen a particular path. The following is the JUNOS<br />

algorithm for selecting the active route:<br />

1. Choose the route with the lowest preference value.<br />

2. For BGP routes, prefer the one with the higher local preference value. Otherwise,<br />

choose the path with the lowest preference2 value. (This is a secondary<br />

preference you can set for some protocols to use as a tiebreaker when the primary<br />

preferences are identical.)<br />

3. If the route includes an AS path:<br />

a. Prefer the route with a shorter AS path. (Confederation sequences are<br />

assigned a path length of 0, and AS and confederation sets have a path<br />

length of 1.)<br />

b. Prefer the route with the lower origin code. Routes learned from an IGP<br />

have a lower origin code than those learned from an EGP, and both have<br />

lower origin codes than incomplete routes (routes whose origin is unknown).<br />

c. If you are not using BGP nondeterministic routing-table path selection<br />

behavior, for paths with the same neighboring AS numbers at the beginning<br />

of the AS path, prefer the path with the lowest multiple exit discriminator<br />

(MED) metric. Confederation AS numbers are not considered when deciding<br />

what the neighbor AS number is.<br />

If you are using nondeterministic routing-table path selection behavior, prefer<br />

the path with the lowest MED metric.<br />

In both cases, confederations are not considered when determining neighboring<br />

ASs, and a missing metric is treated as a MED of 0.<br />

4. Prefer strictly internal routes, which include IGP routes and locally generated<br />

routes (such as static and direct).<br />

5. Prefer strictly EBGP routes over external paths learned through IBGP.<br />

6. For BGP, prefer the route whose next hop is resolved through the IGP route with<br />

the lowest metric.<br />

7. For BGP, prefer the route with the greatest number of BGP next hops.<br />

8. For BGP, prefer the route with the shortest route reflection cluster list. Routes<br />

without a cluster list are considered to have a cluster list of length 0.<br />

9. For BGP, prefer the route with the lowest IP address value for the BGP router ID.<br />

10. Prefer the path that was learned from the neighbor with the lowest peer IP<br />

address.<br />

250 | Chapter 8: IP Routing<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!