28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

way, a policy applied to a group overrides a BGP-wide policy, and a policy applied to<br />

a peer overrides both a group and BGP-wide policy.<br />

Multiprotocol BGP (MBGP), defined in RFC 2858, is an extension to BGP that supports<br />

other protocols, including IPv6, MPLS, and VPNs.<br />

In choosing routes toward a destination, if there is more than one route to the same<br />

destination, BGP uses an algorithm to select a single route to use (see the Introduction<br />

to Chapter 8). Note that other router vendors may follow a slightly different set<br />

of rules to determine the active route.<br />

For more information about BGP, see BGP4: Inter-Domain Routing in the Internet<br />

(Addison-Wesley).<br />

BGP Attributes<br />

BGP routers exchange routes, or NLRI, with their neighbors. An NLRI consists of a<br />

route prefix and the BGP attributes associated with the route. Attributes contain<br />

information about a route, such as where it came from and how to reach it, that BGP<br />

uses to choose the best path to a destination. A number of attributes were defined in<br />

the original BGP specification, and, over time, attributes have been added to extend<br />

the functionality of BGP. Compared to IGP routes, which generally just carry the<br />

route, a next hop, metric, and an optional tag, BGP routes typically have about a<br />

dozen attributes associated with them.<br />

There are several types of attributes. Well-known attributes are supported by all BGP<br />

implementations. Mandatory attributes are included with every prefix. If they are<br />

missing, the receiving BGP router will generate an error message. Discretionary<br />

attributes are those that BGP routers must recognize and support but don’t have to<br />

be included with every prefix. When a BGP router passes a prefix to its peers, it<br />

includes all well-known, mandatory, and discretionary attributes associated with the<br />

prefix, either in the state they were received or in the state after they were modified<br />

when they passed through the local AS.<br />

BGP routers can also include optional attributes with prefixes, or those that are not<br />

necessarily supported by all BGP routers. Optional attributes can be transitive, which<br />

means that BGP must include the information when sending the prefix to another<br />

router even if the sending router doesn’t understand the option, or nontransitive,<br />

which allows a router that doesn’t understand the option to silently drop it when<br />

advertising the prefix.<br />

The following are some of the common BGP attributes. Most BGP implementations<br />

understand these attributes.<br />

ORIGIN (well-known, mandatory)<br />

Designates how BGP learned about the route. It can be one of the following:<br />

I<br />

Route was originally learned from an IGP in the originating AS.<br />

420 | Chapter 13: BGP<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!