BGP Interview Questions For Experienced CCNA and CCNP Network Engineers
In this article you will find the most important and most asked BGP Interview Questions For Experienced CCNA and CCNP Network Engineers. It will cover all concepts of BGP (Border Gateway Protocol) .
What is BGP?
BGP stands for Border Gateway Protocol and it is the main dynamic routing protocol used on the Internet. BGP is for the large networks and normally used for connecting different ISPs. Since BGP operates with large amounts of data (the current size of the table for IPv4 is more than 450 thousand routes), the principles of its configuration and operation are different from the internal dynamic routing protocols (IGP). BGP may be used for routing within an AS and classified as IGP protocol while the other protocols may be referred to as Exterior Border Gateway Protocol. BGP is consider as a path vector protocol & it routing metric based on paths, network-policies sets by a network administrator.
What you know about BGP, explain some basic characteristics?
This is a General BGP Interview Questions most face in networking job interview.
BGP is a path-vector protocol with following common characteristics:
- Uses TCP to transfer data, this ensures reliable delivery of protocol updates (port 179)
- Sends updates only after network changes (no periodic updates)
- Periodically sends keepalive messages to verify TCP connections.
- The protocol metric is called path vector or attributes.
What is default administrative distance for BGP?
Following are the default administrative distance for BGP routes:
External BGP route=20
External EIGRP route=170
Internal BGP route=200
When to use BGP?
BGP is a protocol for ISPs and it is like a distance vector protocol. Its hop count is a AS and that way it is also known as path vector protocol. Normally we use the BGP in large ISP environment. You can establised a connection between different autonomous systems by BGP. BGP is a good option in transit autonomous system, which means that you can allow your data packets to move through from one autonomous system to other autonomous system.
What are different mode of configuration for BGP?
You can configure BGP protocol according to your memory and hardware requirements with following ways:
Default route: In this mode of configuration ISP only advertise the default route with BGP, and all other routes are accessible through this default route. This is most efficient way of configuration when you have a small amount of memory.
Full updates: In this mode of configuration you will receive the full routing table from ISP. This mode required a lot amount of memory.
Partial updates: In partial update configuration mode of BGP you will receive the routes for prefixes which are suitable to reach from your ISP router. For other routes you will also have a default route.
Name few well known BGP metric’s attributes?
BGP path selection depends on the following attributes values:
- Weight(Cisco proprietary attributes )
- Local Preference (highest local value will be preferred, default value is 100)
- AS path length
- Origin code
- eBGP path over iBGP path
- Shortest IGP path to BGP next hop
- Oldest path
- Router ID
- Neighbor IP address
What Are Different BGP Message Types?
Open: Open message is Used to create a neighbor relationship and exchange BGP=parameters, including AS number and authentication values.
Keep-alive: These keepalive messages are sent periodically to keep the neighbor relation-ship. If the Keep-alive messages are not received within a Hold timer than BGP neighbor-ship will be break down.
Update messages: These messages are used to exchanges Path Attributes and the associated prefix /l ength that use those attributes.
Notification: In BGP notifications are used to report BGP problem or errors. It results in a reset of neighbor relationship.
What is IBGP and EBGP ?
IBGP works within the single AS and transfer BGP routes within a single autonomous system.
EBGP: BGP running between autonomous systems. By default, eBGP neighbors must be directly connected.
Name some BGP Timers?
- Keepalive Interval:The time interval in seconds, between sending keep-alive messages. The default keepalive timer is 60
- Hold Time: Interval in seconds, after which the neighbor will be considered unavailable. The default is hold down time is 180 seconds.
Explain BGP Neighborhood relationships?
In BGP you are required to manually configure each neighbor in order to establish a neighborhood relationship.
There are type of neighbors in BGP:
- An internal BGP neighbor (iBGP neighbor) is a neighbor that resides on the same AS as the local router. iBGP neighbors do not have to be directly connected.
- An external BGP neighbor (eBGP neighbor) is a neighbor that is in an AS other than the local router. EBGP neighbors must be directly connected by-default.
The type of neighbor has little effect on the setting of neighborhood relations. More significant differences between the different types of neighbors appear in the process of sending BGP updates and adding routes to the routing table.
BGP performs these checks when it forms neighborhood relationships:
- The router should receive a request for a TCP connection with the address of the sender, which the router
will find listed in the list of neighbors (the neighbor command).
- The autonomous system number of the local router must match the autonomous system number, which is
indicated on the neighboring router by the command neighbor remote-as (this requirement is not observed when setting up confederations).
- Router IDs must not be the same.
- The neighbors must pass the authentication information if it is configured.
What are the different Neighbor Adjacency States Of Bgp?
It is an important concept regarding BGP Interview Questions, following are Neighbor Adjacency States Of Bgp:
Idle: The BGP process is either administratively down or waiting for new neighbor adjacency.
Connect: During the BGP process, if the TCP connection is successful, it will continue to the Open=Sent state. In case it fails, it will continue to the Active state.
Active: BGP will try another TCP three way handshake to create a connection to remote BGP-neighbor. If it is successful, it will move to the Open-Sent state.
Open-sent: The TCP connection exists, and a BGP Open message has been sent to the peer, but the matching Open message has not yet been received from the other router.
Open-confirm: When an Open message has been received from neighbor router, a BGP Neighbor Adjacency is complete. A hold down timer will starts once this done.
Established: All BGP neighbor parameters matched, the neighbor relationship has been established and the peers can now exchange Update messages.
Can router on different subnet become BGP neighbor ?
The answer is Yes. BGP router become neighbors on different subnets. Instead, BGP use a TCP connection between the neighbor routers to pass BGP messages on the same or different subnet.
Which TCP port BGP use?
Border Gateway Protocol uses TCP port number 179 for creating connection. (Most common BGP interview questions.)
What is eBGP multihop?
When eBGP peers or routers are not directly connected with each other. And there are one or more non BGP peers to reach BGP router. You are required to configure eBGP multihop to enables the non BGP routes to pass through the BGP neighbor relationship & exchange update-messages.
What is BGP TLL Security ?
BGP TTL Security is a Security technique and Mechanism, which is used to implemented/enhance the security of of the TCP connection between BGP peers. You can secure BGP connection by disconnecting “faked TCP reset packets” from any other sources by using the BGP TTL Security.
What is BGP path selection criteria?
If no path selection policies are configured for BGP on the Cisco router. Then router will go to each next step only if the values match the previous one.
- The maximum weight value (local to the router).
- The maximum value of local preference (for the whole AS).
- Prefer the local route of the router (next hop = 0.0.0.0).
- The shortest path through autonomous systems. (shortest AS_PATH)
- The minimum value of the origin code (IGP <EGP <incomplete).
- The minimum value of MED (distributed between autonomous systems).
- The eBGP path is better than the iBGP path.
- Choose a path through the nearest IGP neighbor.
- Select the oldest route for the eBGP path.
- The neighbor with the lowest BGP router ID.
- In last the neighbor with the smallest IP address.
(This is a very important BGP interview Questions to remember. )
What is transit AS?
With Transit AS you can transmitted traffic of other autonomous systems.
What is Split-horizon?
Split horizon is a rule that a routing information will not be send back to router from which it is received. Mean a routing information will not send back in a direction from which side he received. This is a very important concept and used for preventing the routing loop in a network.
(Alternatively you may asked this question in BGP interview questions.)
What are Loop prevention mechanism in BGP?
There are two mechanisms to prevent loops in BGP:
- When we are advertising to an eBGP router/peer, a BGP router adds its own A SN to the AS-PATH. If a
BGP router receives an update & route advertisement lists an AS-PATH with its own ASN, then the router
ignores that route.
- When a router learns routes from an iBGP peer, that router does not advertise the same routes to another
Thank you for reading this, please add the “BGP Interview Questions” in comments that you have faced in job interview to improve this article.