YouTube Icon

Interview Questions.

Top 31 Border Gateway Protocol (BGP) Interview Questions You Must Prepare - Jul 24, 2022

fluid

Top 31 Border Gateway Protocol (BGP) Interview Questions You Must Prepare

Q1. Types Of Bgp Routing Table?

Till now all of us agree with that BGP is having best a single routing desk in which it used to save the routes and technique for the great course calculation. But we all are flawed here really BGP keeps three table one for storing incoming routes from neighbours, one for sending the routes to neighbours and one for installing the routes wherein you surely find the routes with next-hop address. The tables are given below:-

Adj-RIB-in

Adj-RIB-out

Loc-RIB

Adj-RIB-in shops the unprocessed information acquired from its peers. Here the high-quality path selection happens as consistent with BGP attributes and after conformation path is entered into the neighborhood bgp table i.E Loc-RIB. From the neighborhood RIB desk it conform the next-hop deal with if it handy via IGP then the direction is entered into the principle routing table. 

Q2. Describe Push, Swap, Pop Functions In Mpls And Also Explain Penultimate Hop Popping (Hypertext Preprocessor)?

Label switching is a discrete mechanism from IP forwarding; right here LSR regulates what label feature desires to be completed, along with Push, Pop, or Swap, to procedure a packet during the MPLS spine the usage of label switching.

Push: Add a label

Pop: Remove a label

Swap: Exchange/ update a label

Q3. What Is Recursive Lookup?

The router looks up the BGP direction and the subsequent hop to attain a destination in the far off AS. Then the router looks up the course to reach the subsequent hop. In this manner router has to perform research two times to attain to a destination, this technique is referred to as recursive lookup.

Q4. Explain Various States Of Bgp?

Idle - The BGP manner is either administratively down or anticipating the the subsequent retry try.

Connect - The BGP process is expecting the TCP connection to be completed. If it is a success, it'll maintain to the OpenSent nation. In case it fails, it will hold to the Active nation.

Active - BGP will try any other TCP 3-manner handshake to set up a reference to the remote BGP neighbor. If it's miles a success, it will pass to the OpenSent nation.

Opensent - The TCP connection exists, and a BGP Open message has been sent to the peer, but the matching Open message has not but been acquired from the alternative router.

Openconfirm - An Open message has been both sent to and acquired from the opposite router. Next step is to get hold of a BGP Keepalive message (to confirm that all neighbor-associated parameters match) or a BGP Notification message (to learn that there may be some mismatch in neighbor parameters).

Established - All neighbor parameters matched, the neighbor relationship has been hooked up and the peers can now alternate Update messages

Q5. What Do You Mean By Mpls? What Are The Benefits Of Using Mpls?

This is one of the most not unusual questions requested for the duration of the MPLS interviews, so this query must be prepared for earlier than dealing with the interview. Here you should start wering with the aid of introducing MPLS.

Multiprotocol label switching (MPLS) offer a mechanism to procedure packets on the premise of labels. It is a records forwarding carrier that offers high-stop network communications from one network node to the following on the basis of labels as opposed to routing table lookups. Routing table research for each packet makes conversation sluggish but MPLS makes use of LFIB/forwarding table to technique label from one node to every other.

The essential advantages of the usage of MPLS are:

QoS integration: supports multiple degrees of QoS, to manage latency, jitter and packet loss for various forms of site visitors (voice, video, e mail, bulk record trfers, and so forth.)

Fast convergence: label-based switching, no need to appearance up routing tables

Scalability to IP VPNs

Low community congestion using MPLS TE

Reliable and relaxed

Q6. What Administrative Distance Bgp Uses For Ibgp & Ebgp ?

AD for iBGP = 2 hundred, AD for eBGP = 20.

Q7. Explain Border Gateway Protocol (bgp) ?

Border Gateway Protocol advertises, learns and chooses the excellent paths within the worldwide Internet. When  ISPs connect, they generally use BGP to alternate routing information. Enterprises also once in a while uses BGP to alternate routing data with ISPs, permitting the Enterprise routers to learn Internet routes. When we've got multiple Internet connections and we want to persuade a few packets to take one direction and a few packets to take any other we use BGP.

Q8. Explain Loop Prevention Mechanism In Bgp?

BGP makes use of two mechanism to save you loops:-

When a router learns routes from an iBGP peer, that router does not advertise the identical routes to another iBGP peer.

By the use of AS_PATH - When advertising to an eBGP peer, a BGP router adds its very own ASN to the AS_PATH. If a BGP router receives an replace and the path commercial lists an AS_PATH with its own ASN, the router ignores that direction.

Note - A BGP router does now not add its ASN while marketing to an iBGP peer.

Q9. What Is The Difference Between Local Preference And Med?

The Local Preference attribute is to steer your very own AS a way to get or exit to another AS. MED is to influence other AS how to input your own AS.

Q10. Explain Bgp Weight Attribute?

The weight characteristic is a Cisco proprietary characteristic that is used inside the path choice system while there may be more than one route to the identical destination. A route with the Higher weight fee is desired. The default fee for weight is @The weight attribute is local to the router and isn't propagated to any BGP friends. Weight attribute is ready by a router when receiving Updates influencing that one router’s path for a prefix.

Q11. What Is The Command To Administratively Disable Bgp Neighborship?

# neighbor neighbor-ip shutdown

# no neighbor neighbor-ip shutdown (to allow it again)

Q12. What Is Route Reflector And Why It Is Required?

In BGP, course discovered from an iBGP neighbor will not be marketed to every other iBGP neighbor. To conquer this example path reflector is used. It acts as a path reflector server and makes IBGP acquaintances as route reflector customers permitting direction classified ads among them.

Q13. What Are Lib And Lfib? If We Disable Cef (on A Cisco Device) Will Mpls Work?

The distinction among two is sort of like RIB and FIB, as RIB uses FIB to forward site visitors. Label Information Base (LIB) is a table in which prefix to label bindings are constructed and saved inside the control plane and may be seen with “show mpls ldp bindings.” Label Forwarding Information Base (LFIB) is another MPLS table used to forward label packets at some point of the MPLS network and construct in the facts aircraft. To take a look at LFIB, run “show mpls forwarding-table.” The lookups are in truth finished in the LFIB, no longer the LIB.

If CEF is disabled, MPLS will not work, as it makes use of LFIB to ahead categorized packets and LFIB constructed from the FIB table.

Q14. Difference Between Ebgp And Ibgp Neighbor?

In iBGP, neighborship is formed among routers within the equal AS (autonomous device) whereas in eBGP, neighborship is formed among routers within distinct AS.

Q15. Name Bgp Path Attributes To Control Incoming And Outgoing Traffic?

BGP has a couple of course attributes to influencing traffic glide. In the maximum not unusual practice we do manage incoming site visitors the use of AS-Path prepending and MED (multi-go out discriminator). And, to influence outgoing site visitors, weight and nearby preference are the nice picks.

Q16. Explain Bgp Recursive Lookup And Site Of Origin (soo)?

BGP recursive research includes the router looking up the BGP route and BGP next hop to reach a vacation spot within the far flung AS. Then the router will look up the direction into IGP to attain the BGP next hop. This mechanism is referred to as BGP recursive research.

BGP site of beginning (SoO) is a loop prevention approach within the MPLS backbone surroundings. BGP SoO is related to a CE-neighbor; that’s why every time the PE router put it on the market a prefix to a CE neighbor, it check the SoO of the prefix with the SoO of the BGP neighbor to keep away from loops.

Q17. Describe The Roles Of Rd And Rt In Mpls L3vpn? Is It Possible To Assign A Same Rd To Multiple Customers?

Route distinguisher (RD) is used to differentiate identical routes in one-of-a-kind VRFs, while route goal (RT) is used to percentage routes among them. Route target additionally specifies which prefixes get imported or exported at the PE router.

No, we will’t assign same RD to multiple clients on a PE router due to the fact the principle cause of defining RD is restrained to provide uniqueness in distinct VRFs.

Q18. Describe Bgp Communities. Name Well-acknowledged Communities?

BGP communities are commonly used to manipulate route policies within the BGP environment and used as flags in order to mark it over the set of community prefixes. BGP communities’ facts may be shared with a neighbor through using the command “neighbor x.X.X.X ship-network trendy extended both” and may be carried out the use of route-maps to a defined neighbor. Some famous BGP groups are:

Local-AS: Share the prefixes with iBGP-confederation friends only.

No-Advertise: Do now not percentage the prefixes with anyone.

No-Export: Do no longer percentage the prefixes with every other Global AS, share inside the Public-AS handiest.

Internet: Share the prefixes with all.

Q19. Explain Bgp Path Attributes?

BGP supports a huge kind of Path Attributes. BGP use those route attributes to observe the competing BGP paths (routes) in BGP desk to select the excellent direction(route).

Next Hop - It lists the following-hop IP cope with used to reach a prefix. If Next hop is accessible? If no course to reach Next Hop, router can't use this route.

Weight - It is a numeric value set by means of a router when receiving updates to persuade the path for a prefix. It isn't advertised to any BGP friends. Bigger is desired

Local Preference - It is a numeric value set and communicated within a unmarried AS for the reason of choosing exceptional path for all routers in that AS to attain a certain community. Bigger is favored

Locally injected routes - Locally injected routes (routes injected the use of network command) are better than iBGP/eBGP learned.

AS Path - It is the range of ASNs inside the AS Path. Smaller is preferred.

Origin - Preferred I over E & E over ?. It implies that the path become injected into BGP as I (IGP), E (EGP) or ? (incomplete records).

Multi-Exit Discriminator (MED) - Allows an AS to tell a neighboring AS the first-rate route to forward packets into the primary AS. Smaller is favored.

Neighbor type - eBGP is preferred over iBGP.

IGP metric - Route with nearest IGP neighbor (lowest IGP metric) is favored.

@eBGP direction - Oldest (longest known) direction is preferred.

Neighbor Router ID - Lowest is preferred.

Neighbor IP address - Lowest is desired.

Q20. What Is The Difference Between Hard Reset And Soft Reset In Bgp?

In case of difficult reset the neighborhood router brings down the neighborship, brings down the underlying TCP connection and all the BGP table entries discovered from that neighbor are eliminated. #clean ip bgp * In case of gentle reset, the router does no longer bring down the BGP neighborship or the underlying TCP connection. However, the local router resends outgoing Updates and reprocesses incoming Updates adjusting the BGP table primarily based on the current configuration. #clear ip bgp * soft command is used for soft reset.

Q21. Explain Bgp Local Preference?

Local preference is an indication to the AS about which route has preference to exit the AS a good way to attain a sure network. A path with a better nearby desire is preferred greater. By default value for neighborhood desire is a hundred and may be changed manually. Unlike the load attribute, that's best applicable to the local router, neighborhood choice characteristic is communicated all through a single AS for the purpose of influencing the choice of high-quality course to go out the AS.

Q22. Can Routers On Different Subnet Become Bgp Neighbors?

BGP does no longer require associates to be attached to the identical subnet. Instead, BGP routers use a TCP connection between the routers to pass BGP messages allowing neighboring routers to be on the identical or specific subnet.

Q23. Explain Bgp Med?

The cause of MED is to persuade how other self sustaining systems enters into your AS to attain a sure prefix. BGP MED is an attribute which isn't propagated during the whole network but simply to adjoining AS. The decrease the MED the extra the direction can be preferred.

Q24. How Can You Differentiate Vpnv4 And Ipv4 Address-family?

Address-family VPNv4 is used to trport VRF visitors, that is pretty heavier (ninety six bits) than everyday IPv4 packets, and cope with-family IPv4 is used to trport conventional 32-bit IPv4 packets. When we installation L3VPN, we need VPNv4 peering among the PEs to take the VRF routes (categorized with RD, RT) to the corresponding destination PE router.

Q25. What Are Different Bgp Message Types?

Open - It is Used to establish a neighbor courting and trade parameters, such as self reliant device number and authentication values.

Keepalive - It is Sent periodically to maintain the neighbor relationship. If the Keepalive message is not obtained in the negotiated Hold timer than BGP neighborship can be turned down.

Update - It exchanges Path Attributes and the associated prefix/length (NLRI) that use those attributes.

Notification - It is Used to report BGP blunders. It results in a reset of neighbor relationship.

Q26. What Is Any Trport Over Mpls (atom)? Do We Require Vrf Or Bgp-vpn To Form Atom Connectivity?

Any Trport over MPLS (AToM) enables provider vendors to supply Layer 2 connectivity over a MPLS spine to connect different clients’ web sites with current facts link layer (Layer 2) networks. BGP-VPN or VRF isn't required to configure AToM; to shape AToM connectivity we do use xconnect (cross join) peering with unique VC-ID to differentiate more than one customers.

Q27. Do We Need To Follow 3 Way Handshake Process To Establish Bgp Communication?

Yes.

Q28. My Bgp Is Showing 0.Zero.Zero.Zero As Router-id; What Could Be The Possible Reason?

This takes place whilst we configure BGP on a router that has non-IP interfaces, that means that if a router’s interfaces aren't configured with any IP cope with, then BGP cannot get the router-id. In that case, BGP assumes zero.0.Zero.Zero as router-id.

Q29. If My Bgp Neighbor Is Stuck In Idle Or Active State, What Should I Do?

If BGP peer is in idle state, then it may be due to bodily connectivity failure or the neighbor isn't always defined well with respective AS. In connect kingdom, BGP attempts to establish a TCP consultation over port wide variety 179; if it fails to establish the connection, then it is going to lively kingdom, wherein it attempts once more to establish a TCP connection. By the usage of “debug ip bgp” and “debug ip tcp tractions” commands, we can study the exact cause of TCP connection failure. Lack of the “replace-source” or “ebgp-multihop” command can also be a purpose of neighbor energetic state.

Q30. What Do You Understand By Bgp Split-horizon Rule?

This rule states, “Network prefixes learned from an iBGP peer will now not be shared with some other iBGP peer” to prevent routing loops. BGP uses the AS_PATH characteristic to avoid routing loops, which me a route will no longer be conventional if the AS_PATH incorporates the identical AS variety of the router where it is receiving. Route-reflector and confederation strategies are used to share iBGP found out networks with every other iBGP neighbor.

Q31. What Tcp Port Number Bgp Use For Connection?

BGP uses TCP port 179 for the relationship.




CFG