You are on page 1of 8

06/10/2023, 22:44 Top 30 BGP Interview Questions and Answers - Coding Ninjas

udio Library Interview Questions Top 30 BGP Interview Qu… Browse Category

Last Updated: Sep 28, 2023

Top 30 BGP Interview Questions and Answers


Author
Neha Singh 2 upvotes Share

Introduction
Every minute, a lot happens online. People are sending and receiving 333.2 billion emails
each day. Do you know how your emails go to their target receiver? How do these data
packets make their way over the internet?

Set and
All of this is accomplished through Internet routing, yourBGP learning
(Borderplan Gateway Protocol) is
a routing protocol used to conduct Internet routing.
Important for focused learning

BGP is one of the favourite topics in CCNP interviews. This


Preparearticle
for techwill discuss the top 30
frequently asked BGP interview questions and answers. interviews
So, Without any further ado! Let’s
start.
Learn and practise
Also Read About, Pandas Interview Questions coding

Become an expert

BGP Interview Questions and competitive coder

Answers Already setup? Next

1. What exactly is BGP? What is the session type of BGP?

Ans: Border Gateway Protocol (BGP) is a standardised exterior gateway protocol that
allows autonomous systems (AS) on the Internet to share routing and accessibility
information.

It is classified as a Path vector Protocol. The Border Gateway Protocol is engaged in


core routing decisions.
It determines routing decisions depending on pathways, network regulations, or rule
sets a network administrator provides.

BGP has two session types:


a.) Internal BGP(iBGP)
b.) External BGP(eBGP)

BGP can be utilised for routing within an autonomous system. The interior Border
Gateway Protocol, often known as Internal BGP or iBGP, is used for routing within an
autonomous system.
The protocol's Internet implementation is known as Exterior Border Gateway Protocol,
External BGP, or eBGP.

https://www.codingninjas.com/studio/library/top-30-bgp-interview-questions-and-answers 1/8
06/10/2023, 22:44 Top 30 BGP Interview Questions and Answers - Coding Ninjas
2. What are some critical differences between iBGP and eBGP?

Ans:Learn
The main differences
Contests between
& Events iBGPprep
Interview and eBGP are asResources
Practice follows: Login

Explore guided paths - Structured learning of concepts asked in


Go To Guided Paths
interviews

estions and A…

Questions

drawbacks to …

gnificance of B…

routing most c…

3. What do you mean when you mention "peers" in BGP?

Ans: Peers are any two routers that have established a TCP connection to exchange
BGP routing information in BGP. BGP neighbours are also known as peers.

4. Is it possible for routers on different subnets to become BGP neighbours?

Ans: BGP is frequently set up between two directly connected routers with other
autonomous systems.

BGP routers don't require their neighbours to be on the same subnet. Instead, they
employ a TCP connection between the routers to send and receive BGP messages,
Set your learning plan
allowing neighbouring routers to be on the same or distinct subnets.
Important for focused learning

Prepare for tech


5. What is the border gateway protocol's port number?
interviews

Ans: The Transmission Control Protocol (TCP) port 179


Learn ispractise
and used by the Border
Gateway Protocol. coding

6. How can we determine the status of the BGP? Become an expert


competitive coder
Ans: There are two methods for deciding BGP status:
a.) In CONFIGURATION ROUTER BGP mode,Already type show
setup?
config to see the BGP
configuration.
b.) In EXEC Privilege mode, run the show IP BGP summary command to see the BGP
status.

7. In the context of BGP, what do you mean by split-horizon?

Ans: The split horizon is a method employed by distance vector protocols to


avoid network routing loops. The basic concept is straightforward that is the
information should never be routed back in the same direction from which it originated.

Because distance vector protocols like Routing Information Protocol (RIP) are prone to
routing loops, which occur when a data packet is repeatedly routed in an endless loop
and routed through the same routers, a split-horizon is required. Split horizon is
a protocol loop avoidance approach.

8. What do you mean by poison reverse in the context of BGP?

Ans: The Poison Reverse method is a commonly used distance-vector


routing approach. To solve the count-to-infinity problem, Poison Reverse is utilised. In
other words, poison reverse is the inverse of the split horizon. Route advertising that
would be suppressed by split horizon is instead advertised at an infinite distance with
poison reverse. The RIP(Routing Information Protocol) is the basis for Poison Reverse.

https://www.codingninjas.com/studio/library/top-30-bgp-interview-questions-and-answers 2/8
06/10/2023, 22:44 Top 30 BGP Interview Questions and Answers - Coding Ninjas

9. In the context of networking, what do you mean by Routing Information Protocol


(RIP)?

Ans: The Routing Information System (RIP) is a dynamic routing protocol that uses hop
count as a routing statistic to discover the best path between source and destination
networks. It is a distance-vector routing protocol that runs at the OSI application
layer. Port 520 is used by the RIP protocol.

The hop count is the number of routers that connect the source and destination
networks. The shortest path to a network is considered the best route and is thus
placed into the routing table. RIP limits the number of hops permitted between source
and destination, effectively eliminating loops.

The maximum number of hops allowed by RIP is 15, and the network considers a hop
count of 16 to be unreachable.

10. What is a route reflector, and why does it need to be used?

Ans: A route reflector is a BGP router permitted to ignore the iBGP loop avoidance rule.
Under specific settings, route reflectors can broadcast updates received from an iBGP
peer to another iBGP peer.
Route reflectors bypass the complete mesh requirement, allowing for creating iBGP
networks that scale simply and cleanly.

11. What is BGP recursive lookup, and how does it work?

Ans: The next-hop attribute of BGP recursive route lookup can be used to find a path to
a network that the IGP is aware of. The Border Gateway Protocol would not work
without the recursive lookup because it is constructed on top of recursive routing.

Set your learning plan


12. What is an autonomous system number (AS), and for
Important how canlearning
focused You get one?

Ans: AS numbers are globally unique numbers used to identify


Prepare for tech ASes and allow them to
share outside routing information with their neighbours. An AS is a network of IP
interviews
networks linked together and follows a single, well-defined routing strategy.
Learn and practise
There are a limited number of AS numbers available. As a result, it's critical to
coding
determine which sites require unique AS numbers and which don't. Sites that don't
need their own AS number should utilise one of theBecome
AS numbers
an expert intended for private
competitive
use, ranging from 64512 to 65535. Go to the AS Number coder
Registration Services website
to receive an AS number.
Already setup?

13. What does the next hop of 0.0.0.0 mean in the show IP BGP command output?

Ans: This is one of the most frequently asked BGP interview questions and answers.
A network in the BGP table with a next-hop address of 0.0.0.0 indicates that the
network was created locally through IGP redistribution into BGP or by a network or
aggregation command in the BGP setup.

14. What do the various BGP Path Attributes mean?

Ans: BGP includes several Path Attributes that can be used to compare competing BGP
paths (routes) in the BGP table to determine the best path (route).

The following are some BGP Path Attributes:


→ Next Hop: Path Attributes display the Following Hop, which is the IP address of the
prefix's following hop. It determines whether the Next Hop can be accomplished or not.
The router does not use this route if no other route can reach Next Hop.

→ The weight Path Attributes is a numeric number that a router gives you to affect the
route for a prefix when you obtain updates. It isn't well recognised among BGP
colleagues that greater weights are preferred.

→ Local Preference is a collection of quantitative values as well. It's sent within a single

https://www.codingninjas.com/studio/library/top-30-bgp-interview-questions-and-answers 3/8
06/10/2023, 22:44 Top 30 BGP Interview Questions and Answers - Coding Ninjas
autonomous system so that all routers in that system can determine the optimum route
to a particular network. If the value is higher, that is preferred.

15. How do you interpret communities in the context of BGP?

Ans: A BGP community is a transitive BGP attribute that BGP peers can recognise and
communicate. BGP routes sent between two BGP peers are given a BGP community.

Two 16-bit sections of a 32-bit integer make constitute a community. The AS number
for the community is the first 16 bits, and the next 16 bits are a unique number
assigned by the AS. Each AS number is unique, and each online community is also
unique.

16. What are some examples of BGP timers?

Ans: There are primarily two types of BGP timers:


Keep-alive Interval: This parameter determines the time in seconds between keep-
alive messages being sent. The keep-alive timer is set to 60 seconds by default.
Hold Time: This parameter sets the time span in seconds after which the neighbour is
considered unavailable. 180 seconds is the default hold time.

17. What exactly does the term "keepalive" mean?

Ans: It's used to keep track of BGP neighbours and identify those who aren't active. In
keepalive messages, just the packet header is seen (19 octets in length). When the
frequency of sending keepalive messages is set to 0, they are not delivered.

18. Can BGP (Border Gateway Protocol) be used instead of any IGP (Internal Gateway
Protocol)?

Ans: The interviewer can ask this type of yes-no question


Set your also.plan
learning So let’s find the solution
to this question in our BGP interview questions and answers section.
Important for focused learning

No, we can't utilise BGP in place of any IGP since BGP connects
Prepare for tech autonomous systems,
whereas IGP operates within autonomous systems. interviews

Learn and practise


19. What are the different types of communities, andcoding
why are they used?

Ans: Four well-known communities can be mentioned Becomebyanname:


expert
a.) No-export: It prohibits the route from broadcast competitive
to eBGP coder
peers outside of the local
AS.
b.) No-advertise: This option prohibits the route from
Already being advertised to internal or
setup?
external peers.
c.) Internet: The route can be publicised outside of the local AS via the internet.
d.) Local-AS: It restricts the route from broadcast to eBGP or confederate peers outside
of the local AS.

20. What is the goal of BGP MED?

Ans: BGP MED's primary goal is to impact how other autonomous systems interact
with your autonomous system(AS) to reach a specific prefix. BGP MED is a property
only broadcast to nearby ASes, rather than the entire network. The path will be
preferred more when the MED decreases.

21. Is authentication possible with BGP?

Ans: The interviewer can also ask about the authentication with BGP. So here we are
discussing the answer to this question in our BGP interview questions and answers
article.

Yes! Authentication is possible with BGP. The MD5 authentication is supported by BGP.

https://www.codingninjas.com/studio/library/top-30-bgp-interview-questions-and-answers 4/8
06/10/2023, 22:44 Top 30 BGP Interview Questions and Answers - Coding Ninjas
22. Is the next-hop affected by iBGP (internal BGP) sessions?

Ans: In iBGP sessions, the next-hop property obtained from eBGP peers is retained.
This is why it's crucial to have an internal route to the next hop. The BGP route is
unreachable elsewhere.

Use the next-hop-self neighbour command or provide the network that the next hop
belongs to in the IGP to force the router to advertise itself as the next hop rather than
the external peer.

23. What is the value of BGP AD?

Ans: Routers employ the administrative distance (AD) metric to identify the best path.
It aids the router in selecting the best route when there are two or more distinct routes
to the same destination from two different routing protocols.

The AD value is used to rank routes from most desired to least liked in Preference.
The most-preferred route's AD value is the lowest, while the least-preferred route's AD
value is the highest.

24. What is synchronisation, and how does it affect BGP routes in the IP routing table?

Ans: BGP should not broadcast until all routers in your AS have learned about it
through IGP. Suppose your AS is responsible for routing traffic from another AS to a
third AS. Before advertising a route to external peers, BGP waits for it to propagate
within the AS. If a BGP router with synchronisation disabled cannot validate iBGP
learned routes in its IGP, it does not add them to the routing table.

Issue the no synchronisation command under router BGP to disable synchronisation. As


a result, BGP cannot validate iBGP routes in IGP.

25. What is DUAL, exactly? Set your learning plan


Important for focused learning
Ans: The DUAL abbreviation stands for Diffusing Update Algorithm. EIGRP uses the
DUAL to determine the best routes to a destination. It supports
Prepare for tech classless routing. As a
result, EIGRP routing updates will now include subnet mask information. Discontinuous
interviews
networks and variable-length subnet masks(VLSM) are now possible.
Learn and practise
coding
26. What is the EIGRP protocol, and how does it work?
Become an expert
competitive
Ans: The Enhanced Interior Gateway Routing Protocol, or coder
EIGRP, is a distance vector
routing protocol for IP, AppleTalk, and NetWare networks.
Already setup?

27. What is EGP, and how does it work?

Ans: EGP is an acronym for "Exterior Gateway Protocol." It's a protocol for sharing
data between gateway hosts in autonomous systems close to each other.

28. What does route dampening accomplish?

Ans: Route dampening reduces the effect of downstream autonomous systems' route
flaps on local and upstream autonomous systems.

29. In general, which routes will affect by route dampening?

Ans: This type of logical question can also be asked in the interview. So, we are
discussing the answer to this question in our BGP interview questions and answer
section.

Only EBGP(External BGP) routes are affected by route dampening.

30. How much RAM should your router have to get your ISP's entire BGP routing table?

https://www.codingninjas.com/studio/library/top-30-bgp-interview-questions-and-answers 5/8
06/10/2023, 22:44 Top 30 BGP Interview Questions and Answers - Coding Ninjas
Ans: The amount of memory needed to store BGP routes is determined by various
parameters:
a.) Including Router.
b.) The number of alternate paths accessible.
c.) Route dampening.
d.) Community.
e.) The number of all routes defined.
f.) BGP attributes.
g.) VPN configurations.

It's difficult to estimate the amount of RAM needed to keep a specific number of BGP
routes without knowing these factors. To store a whole global BGP routing table from
one BGP peer, Cisco typically recommends a router with at least 512 MB of RAM.
However, it's critical to comprehend how to save memory and achieve effective routing
without needing to acquire the entire Internet routing table.

Frequently Asked Questions

What are the drawbacks to BGP?


The failure of BGP to solve some significant security vulnerabilities and several operational
ones are two of its primary flaws. BGP's design and widespread use have hindered
previous attempts to secure inter-domain routing.

What is the significance of BGP?


BGP ensures network stability by allowing routers to react to route failures: if one way fails,
a new path is found promptly. BGP makes routing decisions based on paths defined by
network administrators' rules or network policies.

Where is BGP routing most commonly used?


BGP (Border Gateway Protocol) is the Internet's routingSet your learning
protocol. BGPplan selects the most
Important for focused learning
efficient routes for delivering Internet traffic, similar to how the post office sets the most
efficient ways for sending mail.
Prepare for tech
interviews

Conclusion Learn and practise


coding
We have addressed the most frequently asked BGP interview questions and answers.
Become an expert
We hope this article helped you in gaining knowledge about BGP
competitive and Networking. To learn
coder
more about Computer Networking, you can visit our articles on Computer Networks.

This article is related to networking protocols andAlready


networksetup?
security. So, it is recommended
to see our articles on Network Protocols and Network Security.

Recommended Readings:

LWC Interview Questions


Distance Vector Routing Algorithm
WCF Interview Questions
Html interview questions
SQL Query Interview Questions
Excel Interview Questions
MySQL Interview Questions
Database Interview Questions
MongoDB Interview Questions
Selenium Interview Questions
Spring boot interview questions

Do upvote our blog to help other ninjas grow.

Head over to our practice platform Coding Ninjas Studio to practice top problems,
attempt mock tests, read interview experiences, interview bundle, follow guided paths for
placement preparations, and much more!!

We wish you Good Luck! Keep coding and keep reading Ninja!!

https://www.codingninjas.com/studio/library/top-30-bgp-interview-questions-and-answers 6/8
06/10/2023, 22:44 Top 30 BGP Interview Questions and Answers - Coding Ninjas

Previous article Next article

MVC Interview Top SQL Server


Questions | Part 2 Interview Questions

Related articles

OOPs Interview Questions || Part-1

OOPs Interview Questions || Part-2

Spring Interview Questions and Answers (2023)

Top 30+ SQL Query Interview Questions and Answers (2023)

Comments

No comments yet

Be the first to share what you think


Set your learning plan
Important for focused learning

Prepare for tech


interviews

Learn and practise


coding

Become an expert
competitive coder

Library: Java Python C Programming Language


Already setup?
C++ Programming Language Cloud Computing
Node JS Machine Learning Deep Learning
Big Data Operating System Go Language C#
Ruby Amazon Web Services Microsoft Azure
Google Cloud Platform Data Warehousing
Internet of Things

Interested in Coding Ninjas Flagship


Click Here
Courses?

CODING PRODUCTS COMMUNITY FOLLOW US ON


NINJAS
Problem of Coding
About Us the day Ninjas
Download our app: Studio
Press Interview
Privacy Problems Blog
Policy Events
https://www.codingninjas.com/studio/library/top-30-bgp-interview-questions-and-answers 7/8
06/10/2023, 22:44 Top 30 BGP Interview Questions and Answers - Coding Ninjas

Terms & Interview


Campus
Conditions Experiences
Ninjas
Bug Interview
Bounty Bundle

Hire from Guided


Coding Paths
Ninjas
Library
Studio
Test Series

Contest

Online
Compiler

Problem
Lists

We
accept
payments
using:

Set your learning plan


Important for focused learning

Prepare for tech


interviews

Learn and practise


coding

Become an expert
competitive coder

Already setup?

https://www.codingninjas.com/studio/library/top-30-bgp-interview-questions-and-answers 8/8

You might also like