Routing TCP/IP Vol 2 Notes13 Jul 2008
Chapter 2: Introduction to BGP4Border Gateway Protocol (BGP) was developed to replace Exterior Gateway Protocol (EGP). The current incarnation of the protocol is version four, introduced in RFC 1771. BGP is typically only required for Internet connectivity, and even then often only when peering with multiple service providers. BGP behaves as a distance vector protocol, but uses an AS path instead of a single metric. For this reason, it is referred to as path vector. Load balancing (by default, across a maximum of 6 paths) is only provided by eBGP; iBGP can only use one link. BGP message types:
BGP neighbor states:
Path AttributesAttribute classes:
Attributes:
Administrative weight is a Cisco proprietary attribute, a 16-bit value referenced only by the local router. An AS Path can be one of two types (as distinguished by its type code):
An AS Set is used to record AS numbers lost when aggregation is performed. The Atomic Aggregate attribute does not have to be included to indicate aggregation has been performed if an AS Set is included. BGP OperationDecision Process
Route DampeningRoute dampening reduces the effects of flapping routes by preventing their propagation through a network. A route is assigned a penalty when it flaps. This penalty increases with the rate of flapping. The penalty is decreased gradually. The time it takes to decrease by half is its half-life. When the accumulated penalty exceeds the suppress limit, the route is suppressed. The route is put back in use when the penalty drops below the reuse limit. The maximum suppress limit defines a maximum suppress time. iBGP SynchronizationiBGP peers must be fully meshed, as iBGP-learned routes are not passed to other iBGP peers. The rule of synchronization requires that an iBGP-learned route must be known by an IGP before it enters the BGP routing table. The synchronization requirement can be disabled with Managing Large-Scale PeeringPeer groups can be defined to simplify assigning characteristics to similar BGP neighbors. In addition to simplifying configuration, peer groups improve performance by requiring fewer consultations of the policy database. Communities can be implemented to apply policies to a group of routes (by appending one or more Community attributes). Route reflectors can alleviate the iBGP relationships needed within an AS by purposefully relaying routes between iBGP peers. A route reflector and its clients is referred to as a cluster. Route reflectors employ the Originator ID and Cluster List attributes to avoid loops within the AS. A confederation is an AS which has been divided into sub-autonomous systems (members). Like regular ASs, confederations use two types of AS Path for loop avoidance:
These confederation-specific attributes are not communicated outside the confederation. Within a confederation, eBGP routes external to the confederation are preferred over eBGP routes from another confederation member AS. |
Navigation
Armory
Online Toolbox
|