The following section is a summary of the major points you should be aware of in this chapter.
An Introduction to Border Gateway Protocol
- Border Gateway Protocol is a Path Vector protocol, a derivative of Distance Vector protocols
- BGP is primarily used to exchange NLRI between autonomous systems
- NLRI is exchanged between BGP routers or speakers using UPDATE messages
- NLRI is composed of a prefix and a length
- BGP is first and foremost a policy control tool, and then a routing protocol
- BGP runs directly over TCP, using port 179
- BGP can rely on the connection-oriented nature of TCP for the following services:
- Acknowledgments
- Segmentation and Reassembly
- Checksums
- Data sequencing
- Flow control
- Reliable Operation
- There are several BGP processes in Cisco IOS software, which are:
- The BGP Open process
- The BGP I/O process
- The BGP Scanner process
- The BGP Router process
- The BGP Open process is started during initialization and is used for peer establishment
- The BGP I/O process reads, writes, and executes BGP messages
- The BGP Scanner performs housekeeping services, such as verifying next hops
- The BGP Router process is responsible for initiating the other BGP processes
Border Gateway Protocol Characteristics
- BGP has the following characteristics:
- Reliability
- Stability
- Scalability
- Flexibility
Border Gateway Protocol AS Numbering System
- Unlike EIGRP which also uses AS numbers, BGP AS numbers can be public or private
- Public autonomous system numbers range from 1 to 64,511
- Public autonomous system numbers are assigned by IANA to RIRs
- The RIR assigns AS numbers to entities in its designated area
- Private autonomous system numbers range from 64,512 to 65,535
- There are five Regional Internet Registries, which are:
- Latin American and Caribbean Internet Addresses Registry (LACNIC) – www.lacnic.net
- African Network Information Centre (AfriNIC) – www.afrinic.net
- Réseaux IP Européens Network Coordination Centre (RIPE NCC) – www.ripe.net
- American Registry for Internet Numbers (ARIN) – www.arin.net
- Asia-Pacific Network Information Centre (APNIC) – www.apnic.net
Connecting to Internet Service Providers
- Several factors should be taken into consideration when connecting to ISPs. These include:
- Whether or not you want to use dynamic or static routing
- Whether or not you have a public AS number
- Whether or not you have your own registered public IP address space
- The acceptable or desired level of Internet redundancy
- What type(s) of link(s) you will need to connect to the ISP
- There are three types of implementations that can be used to connect to ISPs. These are:
- Single-homed implementations
- Stub Multi-homed implementations
- Multi-homed implementations
Receiving Routes from Internet Service Providers
- There are three options available for receiving routes from the ISP. These three options are:
- Default Route Only
- Default Route plus a Partial Internet Routing Table
- Full Internet Routing Table
Border Gateway Protocol Messages
- All Border Gateway Protocol messages all share a common header which is 19-bytes long
- There are only four BGP messages available. These four messages are:
- The OPEN Message
- The UPDATE Message
- The NOTIFICATION Message
- The KEEPALIVE Message
- The Open message is the first packet sent to a peer after the TCP connection is established
- The BGP UPDATE message is used to send and withdraw BGP routing information
- The BGP NOTIFICATION message is sent when an error condition is detected
- The KEEPALIVE message is used to determine whether or not a host or a link has failed
Establishing Border Gateway Protocol Adjacencies
- The adjacency is established in two phases which are TCP and BGP session establishment
- The different states BGP will go through before a neighbor relationship is established are:
- The Idle State
- The Connect State
- The Active State
- The OpenSent State
- The OpenConfirm State
- The Established State
Border Gateway Protocol Attributes
- BGP uses path attributes to ensure protocol reliability and routing information accuracy
- Path attributes are also used to prevent BGP loops
- Each BGP UPDATE message contains a single set of attributes for routes
- BGP path attributes fall into four separate categories, which are:
- Well-known mandatory
- Well-known discretionary
- Optional transitive
- Optional non-transitive
- The following table summarizes the BGP attributes within the ROUTE exam requirements:
|
Attribute |
Type Code |
Category |
|---|---|---|
|
ORIGIN |
1 |
Well-known Mandatory |
|
AS_PATH |
2 |
Well-known Mandatory |
|
NEXT_HOP |
3 |
Well-known Mandatory |
|
MULTI_EXIT_DISC |
4 |
Optional, Non-Transitive |
|
LOCAL_PREF |
5 |
Well-known Discretionary |
|
ATOMIC_AGGREGATE |
6 |
Well-known Discretionary |
|
AGGREGATOR |
7 |
Optional, Transitive |
|
COMMUNITY |
8 |
Optional, Transitive |
|
ORIGINATOR_ID |
9 |
Optional, Non-Transitive |
|
CLUSTER_LIST |
10 |
Optional, Non-Transitive |
|
WEIGHT |
N/A |
Proprietary |
Border Gateway Protocol Loop Prevention
- There are two types of loops that exist in routed networks. The two types of loops are:
- Routing Information Loops
- Routing Loops
- The following mechanisms are used to prevent routing information loops for eBGP:
- The AS_PATH attribute
- The following mechanisms are used to prevent routing information loops for iBGP:
- Preventing iBGP speakers from advertising iBGP routes to iBGP peers
- The ORIGINATOR_ID attribute
- The CLUSTER_LIST attribute
- BGP routing loops can be avoided by implementing one of the following solutions:
- Enabling BGP on all transit or intermediate devices between the edge routers
- Redistributing BGP into EIGRP, or any other IGP that may be running
The BGP Path Selection Process
- BGP uses a complex path selection process before electing the best path
- By default, a BGP speaker receiving UPDATES selects only a single best path
- The BGP best path selection process is performed based on attributes