Ch 11: BGP Flashcards
Which of the following autonomous systems are private? (Choose two.)
a. 64,512–65,535
b. 65,000–65,535
c. 4,200,000,000–4,294,967,294
d. 4,265,000–4,265,535,016
A and C. ASNs 64,512–65,535 are private ASNs within the 16-bit ASN range, and 4,200,000,000–4,294,967,294 are private ASNs within the extended 32-bit range.
Which BGP attribute must be recognized by all BGP implementations and advertised to other autonomous systems?
- Well-known mandatory
- Well-known discretionary
- Optional transitive
- Optional non-transitive
- Well-known mandatory attributes must be recognized by all BGP implementations and included with every prefix advertisement.
T/F: BGP supports dynamic neighbor discovery by both routers.
False.
BGP neighbors are statically defined. There is a feature that supports dynamic discovery by one peer (though it is beyond the scope of this book), but the other router must still statically configure the remote BGP peer.
T/F: A BGP session is always one hop away from a neighbor.
False.
BGP supports multi-hop neighbor adjacency.
T/F: The IPv4 address family must be initialized to establish a BGP session with a peer using IPv4 addressing.
False.
The IPv4 address family is automatically initialized by default on IOS-based devices.
Which command is used to view the BGP neighbors and their hello intervals?
- show bgp neighbors
- show bgp afi safi neighbors
- show bgp afi safi summary
- show afi bgp interface brief
B. The command show bgp afi safi neighbors displays all the neighbors, their capabilities, session timers, and other useful troubleshooting information.
How many tables does BGP use for storing prefixes?
a. One
b. Two
c. Three
d. Four
C.
BGP uses three tables (Adj-RIB-In, Loc-RIB, and Adj-RIB-Out) for storing BGP prefixes.
T/F: BGP advertises all its paths for every prefix so that every neighbor can build its own topology table.
False.
BGP advertises only the path that the local router deems is the best path.
Which BGP command advertises a summary route to prevent link-flap processing by downstream BGP routers?
- aggregate-address network subnet-mask as-set
- aggregate-address network subnet-mask summary-only
- summary-address network subnet-mask
- summary-address network mask subnet-mask
2.
The command aggregate-address network subnet-mask summary-only creates a BGP aggregate and suppresses the component routes.
T/F: The IPv6 address family must be initialized to establish a BGP session with a peer using IPv6 addressing.
True.
The IPv6 address family does not exist by default on IOS-based devices.
What is a BGP AS?
From the perspective of BGP, an autonomous system (AS) is a collection of routers under a single organization’s control, using one or more IGPs to route packets internally within the AS..
T/F: An IGP is required in a BGP AS to route internally.
An IGP is not required within an AS; an AS could use BGP as the only routing protocol.
How many AS numbers are available?
2^32 = 4G
ASNs were originally 2 bytes (16-bit range), which made 65,535 ASNs possible. Due to exhaustion, RFC 4893 expanded the ASN field to accommodate 4 bytes (32-bit range). This allows for 4,294,967,295 unique ASNs, providing quite an increase from the original 65,535 ASNs.
What are the two reserved ASN ranges for private networks?
- 64,512–65,535 are private ASNs in the 16-bit ASN range
- 4,200,000,000–4,294,967,294 are private ASNs within the extended 32-bit range.
What entity is responsible for assigning ASNs?
The Internet Assigned Numbers Authority (IANA) is responsible for assigning all public ASNs to ensure that they are globally unique. IANA requires the following items when requesting a public ASN:
- Proof of a publicly allocated network range
- Proof that Internet connectivity is provided through multiple connections
- Need for a unique routing policy from providers
What are PAs?
BGP uses path attributes (PAs) associated with each network path. The PAs provide BGP with granularity and control of routing policies within BGP. The BGP prefix PAs are classified as follows:
- Well-known mandatory
- Well-known discretionary
- Optional transitive
- Optional non-transitive
T/F: Prefix advertisements must include mandatory well-known attributes but discretionary well-known attributes are optionally included.
True.
well-known attributes must be recognized by all BGP implementations.
Well-known mandatory attributes must be included with every prefix advertisement; well-known discretionary attributes may or may not be included with a prefix advertisement.
What is NLRI?
In BGP, the Network Layer Reachability Information (NLRI) is a routing update that consists of the network prefix, prefix length, and any BGP PAs for the specific route.
What are the two types of optional PAs? Do they need to be recognized by all BGP implementations?
There are four categories of path attributes:
-
Well-known mandatory
- Must be recognized by all BGP routers and must be included in every update message. Routing information errors occur without this attribute.
-
Well-known discretionary
- Can be recognized by all BGP routers; can be included in every update message as needed.
-
Optional transitive
- Transitive attribute between ASs. A BGP router not supporting this attribute can still receive routes with this attribute and advertise them to other peers.
-
Optional non-transitive
- If a BGP router does not support this attribute, it will not advertise routes with this attribute.
Optional attributes do not have to be recognized by all BGP implementations. Optional attributes can be set so that they are transitive and stay with the route advertisement from AS to AS. Other PAs are non-transitive and cannot be shared from AS to AS.
T/F: BGP is a path vector routing protocol.
True.
BGP is a path vector routing protocol and does not contain a complete topology of the network, as link-state routing protocols do. BGP behaves like distance vector protocols, ensuring that a path is loop free.
What is AS_Path?
The BGP attribute AS_Path is a well-known mandatory attribute and includes a complete list of all the ASNs that the prefix advertisement has traversed from its source AS.
AS_Path is used as a loop-prevention mechanism in BGP. If a BGP router receives a prefix advertisement with its AS listed in the AS_Path attribute, it discards the prefix because the router thinks the advertisement forms a loop.
Figure 11-1 shows the loop-prevention mechanism:
- AS 100 advertises the 172.16.1.0/24 prefix to AS 200.
- AS 200 advertises the prefix to AS 400, which then advertises the prefix to AS 300.
- AS 300 advertises the prefix back to AS 100 with an AS_Path of 300 400 200 100. AS 100 sees itself in the AS_Path variable and discards the prefix.

What is MP-BGP? What is the AFI? and the SAFI?
Originally, BGP was intended for routing of IPv4 prefixes between organizations, but RFC 2858 added Multi-Protocol BGP (MP-BGP) capability by adding an extension called the address family identifier (AFI).
An address family identifier (AFI) correlates to a specific network protocol, such as IPv4 or IPv6, and additional granularity is provided through a subsequent address-family identifier (SAFI) such as unicast or multicast.
What are the MP_REACH_NLRI and MP_UNREACH_NLRI attributes used for? Where are they carried?
These attributes are carried inside BGP update messages and are used to carry network reachability information for different address families.
NLRI = Network Layer Reachability Information
What is the difference between Multiprotocol BGP, MP-BGP, and MBGP?
No difference, just different names for the same thing.
Some network engineers refer to Multiprotocol BGP as MP-BGP, and other network engineers use the term MBGP. Both terms refer to the same thing.






















