Connected: An Internet Encyclopedia
BGP-4 Protocol Overview
Top: Connected: An Internet Encyclopedia
Up: Topics
Up: Functions
Up: Routing
Search: Search Depth:
Search Type:String RegEx Search Options: NoCase WholeWord

BGP-4 Protocol Overview

Border Gateway Protocol Version 4 (BGP-4), documented in RFC 1771, is the current exterior routing protocol used for the global Internet. BGP is essentially a distance-vector algorithm, but with several twists that resemble link-state operation. Other BGP-related documents are RFC 1772 (BGP Application), RFC 1773 (BGP Experience), RFC 1774 (BGP Protocol Analysis), and RFC 1657 (BGP MIB).

BGP uses TCP as its transport protocol, on port 179. On connection start, BGP peers exchange complete copies of their routing tables, which can be quite large. However, only changes (deltas) are then exchanged, which makes long running BGP sessions more efficient than shorter ones.

BGP's basic unit of routing information is the BGP path, a route to a certain set of CIDR prefixes. Paths are tagged with various path attributes. The sender of the path is noted as the next hop. It the responsibility of the BGP implementation to select among competing paths using a nearly completely undefined algorithm. RFC 1771 states only that the computation be based on "preconfigured policy information. The exact nature of this policy information and the computation involved is a local matter."

One of BGP-4's most important functions is loop detection at the Autonomous System level. An important path attribute is AS-PATH, a list of Autonomous Systems being used for data transport. The syntax of this attribute is made more complex by its need to support path aggregation, when multiple paths are collapsed into one to simplify further route advertisements.

A free software implementation of BGP-4 can be found in Gated.


Connected: An Internet Encyclopedia
BGP-4 Protocol Overview