Skip to Content
Versatile Routing and Services with BGP: Understanding and Implementing BGP in SR-OS
book

Versatile Routing and Services with BGP: Understanding and Implementing BGP in SR-OS

by Alcatel-Lucent, Colin Bookham
February 2014
Intermediate to advanced
360 pages
7h 45m
English
Wiley
Content preview from Versatile Routing and Services with BGP: Understanding and Implementing BGP in SR-OS

Appendix A

Path Selection Process

This appendix explains the BGP path selection process and provides some additional detail about MED comparison based on parameter settings.

Best-Path Selection Algorithm

The BGP path decision process compares paths to the same destination prefix that are held in the Adj-RIB-In and defines a degree of preference for a path (or paths), which in turn is advertised to peers (subject to Adj-RIB-Out policy).

If the Next-Hop attribute of a BGP route is an address that is not reachable (resolvable), the route is not considered as part of the decision process. The process follows these steps:

1. Select the route from the hierarchy of routes learned from different protocols. In SR-OS this is indicated as preference, and the route learned through the protocol with the lowest preference value is considered the best. (Note that IBGP and EBGP both have a preference value of 170.)
2. Select the route with the highest Local Preference (LOCAL-PREF attribute).
3. Select the route with the least number of Autonomous Systems in its AS_PATH attribute (unless as-path-ignore is configured). An AS_SET counts as one AS.
4. Select the route with the lowest ORIGIN attribute (where IGP = 0, EGP =1, and incomplete = 2).
5. Select the route with the lowest MED value if one of the following applies:
i. Both routes have the MED attribute and were advertised by the same neighbor AS (leftmost AS in the AS_PATH).
ii. Both routes were advertised by a different neighbor AS but
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Deploying IPv6 in Broadband Access Networks

Deploying IPv6 in Broadband Access Networks

Adeel Ahmed, Salman Asadullah

Publisher Resources

ISBN: 9781118875629Purchase book