www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / TSHOOT / Module 7 / Border Gateway Protocol Overview

Border Gateway Protocol Overview

Border Gateway Protocol is a Path Vector protocol that is primarily used to exchange Network Layer Reachability Information between routing domains or autonomous systems. In other words, BGP is used as an inter-domain or inter-autonomous system protocol. NLRI is exchanged between BGP routers, referred to as BGP speakers, using UPDATE messages. The NLRI is composed of a prefix and a length. The prefix refers to the network address for that subnet and the length specifies the number of network bits and is simply a network mask in CIDR notation while. Some NLRI examples include 10.0.0.0/8 or 150.1.1.0/24. The sections that follow describe core BGP characteristics that you should be intimately familiar with. It is important to remember, however, that the primary emphasis of this guide is troubleshooting. Therefore core BGP principles will be only described briefly in this chapter. Additional information on BGP can be found in the current ROUTE guide which is also available online.

Cisco IOS Software Border Gateway Protocol Processes

There are 4 (four) BGP processes that run when BGP is enabled in Cisco IOS-based devices:

  1. The BGP Open process
  2. The BGP I/O process
  3. The BGP Scanner process
  4. The BGP Router process

The BGP Open process is used for peer establishment. This process runs at initialization, when establishing a TCP connection with a BGP peer. The BGP I/O process handles the reading, writing, and execution of BGP messages, such as the UPDATE and KEEPALIVE messages. This process provides the interface between TCP and BGP and reads messages from the TCP socket and placing them into the BGP input queue, so that they can be processed by the BGP Router process, and moving messages. The I/O process also moves messages in the output queue (OutQ) to the TCP socket.

The BGP Scanner process periodically scans the BGP Routing Information Base (RIB) in order to determine if prefixes and attributes should be deleted and if route map or filter caches should be flushed. Additionally, the BGP Scanner walks the BGP table and confirms reachability of the next hops, i.e. it validates that next hops are still valid. If the next hop for a prefix is not reachable, all BGP entries that use that next hop are removed from the BGP RIB. By default, the BGP Scanner runs every 60 seconds; however this interval can be changed using CLI commands. And finally, the BGP Router process sends and receives routes, establishes peers, and interacts with the RIB. This process is also used to calculate the BGP best path and receives commands entered via the CLI.

The BGP Router process is the main process responsible for initiating the other BGP processes. There are three major components of the BGP Router process. These components are:

  1. The BGP Routing Information Base (RIB)
  2. The IP RIB for BGP-learned Prefixes
  3. The IP Switching Component for BGP-learned Prefixes

The BGP RIB contains network entries, path entries, path attributes, and additional information such as route map and BGP filter list cache entries. The BGP-learned prefixes are stored in the IP RIB in two types of structures, which are Network Description Blocks (NDBs) and Routing Descriptor Blocks (RDBs). An NDB is a single entry in the routing table that represents a network prefix and contains information such as the network address, mask, and administrative distance. The NDB is stored in the routing table with a RDB, which is used to store the actual next hop information. And finally, the IP switching component refers to structures such as the FIB which is applicable when Cisco Express Forwarding (CEF) is enabled.

BGP Data Structures

In Cisco IOS software, BGP information is stored in one of two data structures or tables which are the Neighbor Table and the BGP Table. Both are described in the following section.

The BGP Neighbor Table contains a list of all the configured neighbors of the local BGP speaker. This includes the IP address of the neighbor, the neighbor’s autonomous system, the adjacency state, e.g. established, active, etc, as well as other pertinent information such as the number of prefixes received from the neighbor. The Neighbor Table can be viewed using the show ip bgp neighbors command. However, a summary or all neighbors is also included in the output of theshow ip bgp summary command. Following is a sample output of the show ip bgp neighborscommand for a specific neighbor:

R4#show ip bgp neighbors 3.3.3.3
BGP neighbor is 3.3.3.3,  remote AS 3, external link
BGP version 4, remote router ID 3.3.3.3
BGP state = Established, up for 17:21:33
Last read 00:00:33, last write 00:00:33, hold time is 180, keepalive interval is 60 seconds
Neighbor capabilities:
Route refresh: advertised and received(old & new)
Address family IPv4 Unicast: advertised and received
Message statistics:
InQ depth is 0
OutQ depth is 0
Sent       Rcvd
Opens:                  1          1
Notifications:          0          0
Updates:               43         43
Keepalives:          1044       1044
Route Refresh:          1          0
Total:               1089       1088
Default minimum time between advertisement runs is 30 secondsFor address family: IPv4 Unicast
BGP table version 125, neighbor version 125/0
Output queue size : 0
Index 1, Offset 0, Mask 0x2
1 update-group member
Sent       Rcvd
Prefix activity:               —-       —-
Prefixes Current:               3          0
Prefixes Total:                64          0
Implicit Withdraw:              7          0
Explicit Withdraw:             54          0
Used as bestpath:             n/a          0
Used as multipath:            n/a          0Outbound    Inbound
Local Policy Denied Prefixes:    ——–    ——-
AS_PATH loop:                       n/a         64
Suppressed due to dampening:          6        n/a
Total:                                6         64
Number of NLRIs in the update sent: max 18, min 0

Connections established 1; dropped 0
Last reset never
External BGP neighbor may be up to 2 hops away.
Connection state is ESTAB, I/O status: 1, unread input bytes: 0
Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 2
Local host: 4.4.4.4, Local port: 14912
Foreign host: 3.3.3.3, Foreign port: 179

Enqueued packets for retransmit: 0, input: 0  mis-ordered: 0 (0 bytes)

Event Timers (current time is 0x140B8DC0):
Timer          Starts    Wakeups            Next
Retrans          1082          0             0x0
TimeWait            0          0             0x0
AckHold          1079       1038             0x0
SendWnd             0          0             0x0
KeepAlive           0          0             0x0
GiveUp              0          0             0x0
PmtuAger            0          0             0x0
DeadWait            0          0             0x0

iss:  507514249  snduna:  507536397  sndnxt:  507536397     sndwnd:  16023
irs: 1009588969  rcvnxt: 1009610970  rcvwnd:      16023  delrcvwnd:    361

SRTT: 300 ms, RTTO: 303 ms, RTV: 3 ms, KRTT: 0 ms
minRTT: 12 ms, maxRTT: 300 ms, ACK hold: 200 ms
Flags: active open, nagle
IP Precedence value : 6

Datagrams (max data segment is 536 bytes):
Rcvd: 1121 (out of order: 0), with data: 1079, total data bytes: 22000
Sent: 2160 (retransmit: 0, fastretransmit: 0, partialack: 0, Second Congestion: 0), with data: 1081, total data bytes: 22147

The BGP Table or BGP Routing Information Base (RIB) contains all routes injected into BGP on the local BGP speaker, as well as those received from internal and external peers. The information stored in the BGP Table or RIB includes NEXT_HOP information, AS_PATH information, and MED information amongst other parameters. Following is a sample output of the BGP RIB which can be viewed using the show ip bgp command:

R3#show ip bgp
BGP table version is 136, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incompleteNetwork          Next Hop            Metric LocPrf Weight Path
*> 150.2.0.0/24     4.4.4.4                  0             0 4 5 6 7 ?
*> 150.3.0.0/24     4.4.4.4                  0             0 4 5 6 7 ?
*> 150.4.0.0/24     4.4.4.4                  0             0 4 8 9 1 ?
*> 150.5.0.0/24     4.4.4.4                  0             0 4 8 9 1 ?
*> 150.9.0.0/24     4.4.4.4                  0             0 4 6 7 8 ?
*> 160.0.0.0/24     4.4.4.4                  0             0 4 6 7 8 ?

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:

  1. The OPEN Message
  2. The UPDATE Message
  3. The NOTIFICATION Message
  4. The KEEPALIVE Message

The Open message, BGP message Type 1, is the first packet BGP sends to a peer after the TCP connection has been established. It allows the two peers to negotiate the parameters of the peer session. The different parameters include the BGP version, the hold time for the session, authentication data, refresh capabilities, and support for multiple NLRI.  If the OPEN message is acceptable, a KEEPALIVE message confirming the OPEN is sent back. Once the OPEN is confirmed, UPDATE, KEEPALIVE, and NOTIFICATION messages may be exchanged. The OPEN message includes parameters such as autonomous system number, authentication information (MD5), if configured, the BGP router ID (RID), as well as the Hold Timer value.

The BGP UPDATE message (Type 2) is used to send and withdraw BGP routing information or NLRI. Additionally, the UPDATE message also contains information previously advertised by the local router that is no longer valid as well as new information that is being advertised to the remote peer. Each UPDATE message contains a single set of BGP attributes and all of the routes using those attributes. The format of this message reduces the total number of packets that routers must send between the BGP peers when exchanging NLRI.

The BGP NOTIFICATION message (Type 3) is sent when an error condition is detected. When a BGP peer detects an error within the session, it sends a Notification message to the remote router and immediately closes both the BGP and TCP sessions. The minimum length of the NOTIFICATION message is 21 bytes, including the header. Within the NOTIFICATION message, the 1-byte Error Code field specifies the type of BGP error seen by the local router. Six error codes have been defined. These error codes are:

  1. Error Code 1:  Message Header Error
  2. Error Code 2:  OPEN Message Error
  3. Error Code 3:  UPDATE Message Error
  4. Error Code 4:  Hold Time Expired
  5. Error Code 5:  BGP Finite State Machine Error
  6. Error Code 6:  Cease

The KEEPALIVE message (Type 4) is used to determine whether a host or a link has failed. This message type contains a single 19-byte header and no other data. By default, BGP peers exchange KEEPALIVE messages every 60 seconds. Also, by default, the Hold Time value used by BGP is three times the value of the Keepalive interval.

The advertisement of an UPDATE message within the keepalive period resets the timer to 0. In other words, the KEEPALIVE message is sent only in the absence of other messages for a particular session. If the local router does not receive a KEEPALIVE or UPDATE message within the Hold Time period, a NOTIFICATION message of Hold Time Expired is generated and the session is torn down.

Establishing Border Gateway Protocol Adjacencies

Because BGP is unique in that it uses TCP as the underlying protocol, the process of establishing a neighbor relationship is two-fold: the first phase being the establishment of the TCP session, and the second phase being the established of the BGP peer session. RFC 1771 includes a section on the BGP Finite State Machine (FSM). The FSM includes an overview of BGP operations by state. The different states BGP will go through before a neighbor relationship is established are:

  1. The Idle State
  2. The Connect State
  3. The Active State
  4. The OpenSent State
  5. The OpenConfirm State
  6. The Established State

The first three states pertain to the establishment of the underlying TCP connection between the BGP speakers. The second three states pertain to the establishment of the actual BGP session. The show ip bgp summary or the show ip bgp neighbors commands can be used to view some, not all, of these states when BGP is enabled on Cisco IOS software routers and switches.

The Idle state is the initial BGP state after BGP is enabled on a router, or when a router is reset. No BGP resources are allocated to the peer in this state. Additionally, when in this state, no incoming connections are allowed.  Following is the output of the show ip bgp neighborscommand immediately after BGP has been enabled and a neighbor has been defined.

R2#show ip bgp neighbors
BGP neighbor is 10.0.1.1,  remote AS 1, external link
BGP version 4, remote router ID 0.0.0.0
BGP state = Idle
Last read 00:00:00, last write 00:00:00, hold time is 180, keepalive interval is 60 seconds[Truncated Output]

The same state would be seen as follows if the show ip bgp summary command was used:

R2#show ip bgp summary
BGP router identifier 2.2.2.2, local AS number 2
BGP table version is 1, main routing table version 1Neighbor     V   AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.0.1.1     4    1       0       0        0    0    0 never    Idle

In the Connect state, BGP waits for a TCP connection to be completed.  If successful, the local router will send an OPEN message to the peer and the BGP state machine transitions to the OpenSent state. However, if the TCP connection attempt fails, the local router resets the ConnectRetry timer and transitions to the Active state. Additionally, depending on the failure condition, the local router could also revert back to the Idle state. Additionally, if the ConnectRetry timer reaches 0 while the local router is in the Connect state, the timer is reset and another connection attempt is made. In this case, the local router remains in the Connect state.

In the Active state, a TCP connection is initiated to establish a BGP neighbor relationship, also referred to as a BGP peer relationship.  In plain English, the BGP routing process tries to establish a TCP session with the peer. If the session establishes successfully, an OPEN message is sent to the peer, the Hold Timer is set to a large value and the local router transitions to the OpenSent state. However, if the TCP session fails to establish, the local router initiates another session, sets the ConnectRetry timer to 0, and transitions back to the Connect state. During this state, if the remote peer attempts to establish a connection to the local router using an unexpected IP address for the session, the local router will refuse the connection. The local router will remain in the Active state and reset the ConnectRetry timer. If any other failures occur, the local router releases all BGP resources associated with the connection and transitions back to the Idle state. Following is the output of the show ip bgp neighbors command following the completion of the Connect state:

R2#show ip bgp neighbors
BGP neighbor is 10.0.1.1,  remote AS 1, external link
BGP version 4, remote router ID 0.0.0.0
BGP state = Active
Last read 00:00:01, last write 00:00:01, hold time is 180, keepalive interval is 60 seconds[Truncated Output]

The same state would be seen as follows if the show ip bgp summary command was used:

R2#show ip bgp summary
BGP router identifier 2.2.2.2, local AS number 2
BGP table version is 1, main routing table version 1Neighbor    V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.0.1.1    4     1     215     215        0    0    0 00:00:01 Active

After sending the OPEN message to the peer, BGP then transitions to the OpenSent state. In this state, the local router waits for a response to the sent OPEN message. When an OPEN message is received, all fields in the message are checked. If an error is detected, the local router will send the peer a NOTIFICATION message and transition back to the Idle state.  However, if a successful, i.e. error free response, is received, the BGP state moves to OpenConfirm and BGP sends a KEEPALIVE message and sets a KeepAlive timer.  Additionally, the previously large Hold Timer set in the Active state is replaced with the new negotiated Hold Time value as the BGP peers negotiate and agree on parameters for the session. Finally, if a TCP disconnect is received while in this state, the local router terminates the BGP session, resets the ConnectRetry timer, and transitions back to the Active state.

The OpenConfirm state is the second to last state before the final state, the Established state, is reached. In this state, BGP waits for a KEEPALIVE or NOTIFICATION message. If the local router receives a KEEPALIVE message, it transitions to the Established state. However, if a KEEPALIVE is not received before the negotiated Hold Timer expires, the local router will send a NOTIFICATION message to the peer with the error code ‘Hold Timer Expired’ and transition to the Idle state. Additionally, if the local router receives a NOTIFICATION message from its peer, it will also immediately transition to the Idle state. In this state, if any other failure is detected, the local router sends NOTIFICATION message with error code ‘Finite State Machine Error’ and transitions back to the Idle state. BGP goes through the same steps again to try and establish the connection.

The Established state is reached when the initial KEEPALIVE message is received while BGP is in the OpenConfirm state. This is the final state of a peer relationship and designates a fully operational connection. Two BGP peers can exchange routing information only when the Established state is reached. In the Established state BGP can exchange UPDATE, NOTIFICATION, and KEEPALIVE messages with its peer. The Established state can be validated using the show ip bgp neighbors command as illustrated in the output below:

R2#show ip bgp neighbors
BGP neighbor is 10.0.0.1,  remote AS 1, external link
BGP version 4, remote router ID 1.1.1.1
BGP state = Established, up for 00:12:17
Last read 00:00:17, last write 00:00:17, hold time is 180, keepalive interval is 60 seconds

Unlike the show ip bgp neighbors command, the show ip bgp summary command will not show the Established state. Instead, the State will not be listed and the number of prefixes received from the peer(s) will be listed instead. If no prefixes are received from the peers, a value of zero will be present. This is illustrated in the following output on a BGP speaker with multiple peers or neighbors in the Established state:

R2#show ip bgp summary
BGP router identifier 2.2.2.2, local AS number 2
BGP table version is 3, main routing table version 3
2 network entries using 234 bytes of memory
3 path entries using 156 bytes of memory
3/2 BGP path/bestpath attribute entries using 372 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 786 total bytes of memory
BGP activity 3/1 prefixes, 4/1 paths, scan interval 60 secsNeighbor   V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.0.0.1   4     1      87      88        3    0    0 00:15:05        1
10.0.1.1   4     1      90      94        3    0    0 00:15:19        1
10.0.3.3   4     3      19      23        3    0    0 00:07:25        0

Border Gateway Protocol Attributes

Border Gateway Protocol path attributes fall into four separate categories, which are:

  1. Well-known mandatory
  2. Well-known discretionary
  3. Optional transitive
  4. Optional non-transitive

All BGP speakers must recognize all of the well-known mandatory attributes, which must be included for all prefixes. However, discretionary attributes may or may not be included for a particular prefix. Discretionary attributes may be used based on the decision of the network administrator; however, their use is not mandatory. BGP speakers do not have to understand optional attributes but must re-advertise them based on their transitive setting. Transitive attributes are advertised to all BGP peers, while non-transitive attributes may be discarded if the local router doesn’t recognize them. Although BGP does support multiple path attributes, this guide will only discuss the following:

  1. ORIGIN
  2. AS_PATH
  3. NEXT_HOP
  4. MED
  5. LOCAL_PREF
  6. WEIGHT

NOTE: Additional detailed information on these and other BGP attributes may be found in the current ROUTE guide which is presently available online.

The ORIGIN attribute is a well-known mandatory attribute.  The ORIGIN attribute is generated by the autonomous system that originates the routing information. This attribute is automatically defined when a route or prefix is injected into BGP, but may be modified using a route-map in Cisco IOS software. There are three possible Origin values. These values are:

  1. IGP
  2. EGP
  3. INCOMPLETE

An ORIGIN of IGP indicates that the prefix was injected into BGP using the network command in Cisco IOS software. Prefixes with this ORIGIN code are displayed with the letter ‘i’. These routes are internal to the originating AS.

An ORIGIN code of EGP indicates that the prefix originated from the Exterior Gateway Protocol (EGP). Prefixes with this ORIGIN code are displayed with the letter ‘e’ and are encoded as a value of 1. EGP is beyond the scope of the TSHOOT exam and is not described in this guide.

And finally, an ORGIN code of INCOMPLETE indicates that the original source or the prefix is not known to the router injecting the route into BGP. This code is used for prefixes that are redistributed into BGP using the redistribute command. In Cisco IOS software, prefixes with the INCOMPLETE attribute code are displayed with the question mark, i.e. ‘?’.

The AS_PATH attribute is used to prevent routing information loops in inter-AS BGP, i.e. eBGP, implementations. The AS_PATH attribute contains a reverse order sequenced list of autonomous system numbers that represent the domains the prefix has transited. This attribute is changed only when an UPDATE is sent to an eBGP neighbor, but not when sent to an iBGP peer; hence the reason that this attribute is applicable only for external BGP implementations.

When an eBGP speaker receives UPDATE messages, it looks at the AS_PATH list to determine the best (shortest) path to the destination prefix. However, if the eBGP speaker notices its autonomous system number in the AS_PATH list, it ignores this UPDATE and does not take it into consideration in the path selection process. This prevents the router from receiving and accepting information that it originated, or was originated within its own autonomous system

The NEXT_HOP attribute, Attribute Type Code 3, is a well-known mandatory attribute that is used to define the next hop IP address to the destination prefix from the BGP perspective. Unlike with traditional IGPs, the next hop for a BGP prefix does not have to be directly connected. In such cases, the local router performs a recursive lookup in the routing table to locate a route to the BGP next hop. The result of this recursive lookup is the physical next hop assigned to the BGP route in the routing and forwarding tables. There are variable ways in which the NEXT_HOP for a prefix is determined and set. These variable ways include:

  1. When the prefix is first injected into BGP
  2. When the prefix is advertised via eBGP
  3. When the next hop is manually changed

When a prefix is first injected into BGP, then the BGP speaker on which the prefix is injected will be responsible for setting the NEXT_HOP attribute. The actual value, i.e. the actual IP address specified, depends on how the prefix is injected into BGP as follows:

  1. If the prefix is injected into BGP using the network command and the prefix is a directly connected subnet, the NEXT_HOP address will be 0.0.0.0 on the local BGP speaker
  2. If a prefix is injected into BGP using the network command and that prefix is known via an IGP then the NEXT_HOP contains the IP address of the IGP next hop router
  3. If the prefix is redistributed into BGP from an IGP using the redistribute command, the NEXT_HOP address will be set to the same next hop address of the IGP
  4. When BGP route summarization is configured using the aggregate-address router configuration command, the NEXT_HOP is set to the address of the router that is performing the summarization when an UPDATE message is sent. If summarization is performed on the local BGP speaker, then the NEXT_HOP address will be 0.0.0.0
  5. When the prefix is advertised via eBGP, the NEXT_HOP will automatically be set to the IP address of the eBGP speaker that is sending the UPDATE message for the prefix
  6. If more than two eBGP peers reside on the same multi-access segment, the BGP speaker that is advertising the prefix sets the NEXT_HOP address in the UPDATE to the original BGP speaker on the same segment rather than to itself
  7. By default, the NEXT_HOP is not changed when a prefix is advertised by a BGP speaker to an iBGP peer. This can be modified using the next-hop-self command

The MULTI_EXIT_DISC (MED) attribute Discriminator attribute is a 32-bit positive integer that is defined as Attribute Type Code 4. In addition to this, MED is an optional non-transitive attribute. MED is typically used on inter-AS links and allows BGP to choose among multiple exit points to the same neighboring AS. In other words, MED, which is expressed as a metric value, is used as a suggestion to the peer external AS regarding the preferred route into the local AS that is advertising the metric. The term ‘suggestion’ is used because it is not mandatory for the neighboring AS to adhere to the values specified using this attribute. The following section describes the MED rules when using Border Gateway Protocol:

  1. If the prefix is for a directly connected network and BGP the network or redistributecommand is used to inject the prefix into BGP, then the BGP MED value is set to 0
  2. If the prefix is received from an IGP, when it is injected into BGP using the network orredistribute command, the MED value is set to the IGP metric
  3. If the prefix is injected into BGP using the aggregate-address command, i.e. it is a summary prefix; then the MED value is not set
  4. A BGP speaker will advertise prefixes with the same metric to another iBGP peer
  5. By default, if the prefix is learned from an iBGP peer, the edge router will remove the MED value before advertising the prefix to an eBGP peer

The LOCAL_PREF attribute is a 32-bit positive integer that defines a preference over one exit point in an AS. This attribute is a well-known discretionary BGP attribute, defined as Attribute Type Code 5. The LOCAL_PREF attribute is used only within an AS for path selection manipulation. If an iBGP speaker receives an UPDATE for the same destination from multiple iBGP peers, it will prefer the path with the highest LOCAL_PREF value. In Cisco IOS software, the default LOCAL_PREF value is 100; however, this value can be changed to any value between 0 and 4294967295.

The WEIGHT attribute is used in a manner similar to the LOCAL_PREF attribute. That is, this attribute is used to define a preference over one exit point in an AS over another. However, unlike the LOCAL_PREF attribute, which is propagated to other routers in the AS, the Cisco WEIGHT attribute is locally significant to the device on which it is configured – much like administrative distance values. This attribute, therefore, does not the routing policy of other neighbor routers, nor will it be sent to other routers.

The WEIGHT is a 4-byte integer between 0 and 65,535. While this attribute is proprietary, it has priority over all other attributes in the BGP path selection process. By default, all prefixes injected into BGP on the local BGP speaker are assigned a WEIGHT of 32,768.  Because this attribute is locally significant, this default value is not set in the UPDATES sent to any other neighbors. In Cisco IOS software, the higher the WEIGHT, the more preferred the path will be.

Influencing Inbound Path Selection

When using BGP attributes to influence inbound path selection, the BGP attribute configuration must be implemented in the outbound direction. The attributes that are used to influence the path a neighboring autonomous system uses to take back into the originating autonomous system must be advertised in UPDATES sent to that neighboring autonomous system. There are BGP two attributes that are used to influence the inbound path:

  1. The MULTI_EXIT_DISC attribute
  2. The AS_PATH attribute

There are two attributes that are used to influence the path that BGP speakers within the same autonomous system will take to exit the autonomous system. Unlike the attributes used to influence inbound path selection, the attributes used to influence outbound path selection are applied in the inbound direction, but also using route maps. These two attributes are:

  1. The LOCAL_PREF Attribute
  2. The WEIGHT Attribute

Having recapped on the BGP fundamentals, which are also described in additional detail in the ROUTE guide, the following section describes some common BGP problems and provides recommended solutions for resolving them. Keep in mind that it is not possible to go through all possible BGP problems. Instead, emphasis will only be placed on the most common ones.

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.