Professional Documents
Culture Documents
⇧ SCROLL TO TOP
https://www.javatpoint.com/bgp-interview-questions 1/13
06/10/2023, 22:44 Top 25+ Most Asked BGP Interview Questions and Answers (2023) - javatpoint
BGP stands for Border Gateway Protocol. It is a standardized exterior gateway protocol
designed to exchange routing and provide information among autonomous systems (AS) on
the Internet. BGP is mainly used for routing within an autonomous system. In this application,
it is called Interior Border Gateway Protocol, Internal BGP, or iBGP. As the other use, the
internet application of this protocol is called Exterior Border Gateway Protocol, External BGP,
or eBGP.
We can classify the Border Gateway Protocol as a path vector protocol. It makes routing
decisions according to paths, network policies, or rule sets configured by a network
administrator. It is also involved in making core routing decisions. For example, when two
ISPs connect, they typically use BGP to exchange routing information.
BGP is usually configured between two directly connected routers that belong to different
autonomous systems. BGP routers do not need neighbours to be attached to the same
subnet. Instead, they use a TCP connection between the routers to pass BGP messages and
allowing neighbouring routers to be on the same or different subnet.
https://www.javatpoint.com/bgp-interview-questions 2/13
06/10/2023, 22:44 Top 25+ Most Asked BGP Interview Questions and Answers (2023) - javatpoint
The main purpose of BGP is to exchange routing updates like other routing protocols, but
generally, it does not exchange individual network routes. It exchanges summaries of
network routes. That's why it is typically used over very large networks, including the
Internet.
BGP is a path-vector protocol or an exterior gateway protocol (EGP) used in routing on the
Internet. Following are the most common characteristics of BGP:
BGP uses TCP port 179 to establish connections with neighbours and transfer data to
ensure reliable protocol updates delivery.
It sends updates only when changes occur in the network (no periodic updates).
It periodically sends keepalive messages to verify TCP connections.
The metric of the protocol is called path-vector or attributes.
BGP uses several attributes in the routing-decision algorithm.
BGP is an interdomain routing protocol.
BGP is a path-vector routing protocol that is best suited for strategic routing policies.
It uses confederations and route reflectors to reduce BGP peering overhead.
BGPv4 implements CIDR.
eBGP is used for external neighbours between different autonomous systems.
iBGP is used for internal neighbours within the same autonomous system.
It uses MED (metric) attributes between autonomous systems to influence inbound
traffic.
It uses weight to influence the path of outbound traffic from a single router configured
locally.
The eBGP is used for external neighbours between different autonomous systems. On the
other hand, iBGP is used for internal neighbours within the same autonomous system.
No, we cannot use BGP instead of any IGP because BGP works between different
autonomous systems, but IGP works inside an autonomous system.
In BGP, any two routers that formed a TCP connection to exchange BGP routing information
are called peers. Peers are also called BGP neighbours.
In a computer network that uses the Routing Information Protocol (RIP) or other distance
vector routing protocols, poison reverse is how a gateway node tells its neighbour gateways
that one gateway is unreachable over the interface or no longer connected.
https://www.javatpoint.com/bgp-interview-questions 4/13
06/10/2023, 22:44 Top 25+ Most Asked BGP Interview Questions and Answers (2023) - javatpoint
Note: A BGP router does not add its ASN when advertising to an iBGP peer.
14) What is the difference between Hard Reset and Soft Reset in BGP?
In BGP terminology, the administrators are required to reset BGP peers. There are two ways
to reset a peer:
Hard Reset
Soft Reset
Let's see the differences between Hard Reset and Soft Reset in a tabular form:
https://www.javatpoint.com/bgp-interview-questions 5/13
06/10/2023, 22:44 Top 25+ Most Asked BGP Interview Questions and Answers (2023) - javatpoint
Primary Goal Hard Reset kills the TCP session with A soft reset is of 2 types:
the BGP neighbour forcing it to 1. Soft reset with Route refresh:
restart. It kills the TCP connection Soft reset with Route refresh
between the peers, re-establishes allows BGP peers to request an
the connection with a BGP open update without killing the entire
message, and proceeds with the neighbour relationship.
regular message exchanges between 2. Soft-reconfiguration: Soft-
peers. reconfiguration stores a copy of
BGP routes delivered in the BGP
update from our peer because
the route-refresh request is not
sent to the BGP neighbour.
Direction Both In and Out Either In or Out
Impact The hard reset can severely disrupt The soft reset can impact only
the reachability of all networks. those prefixes that are affected
by the policy change.
Usage Hard Reset should be used only as a Soft is the most preferred
last option when soft reset cannot approach, and it is mostly used.
address the issue.
Memory It doesn't require any additional It requires additional memory
usage memory requirement for storing since the router now stores
another table. another table for each neighbour
instead of one BGP table.
Prerequisite It doesn't require any prerequisites. Both peers may be required to
support the Route Refresh
capability in soft reset with the
Route refresh feature.
Convergence It requires a very long convergence Its convergence time is much
time time since the processing of the full shorter than a hard reset.
table takes a long time.
Related clear ip bgp {* | neighbor ip | peer- clear ip bgp {neighbor ip} soft
commands group} out
clear ip bgp {neighbor ip} soft in
https://www.javatpoint.com/bgp-interview-questions 6/13
06/10/2023, 22:44 Top 25+ Most Asked BGP Interview Questions and Answers (2023) - javatpoint
15) What are BGP Message types? What are the different BGP
Message types?
BGP Message types are used to establish a neighbour relationship and exchange
parameters, including autonomous system number and authentication values. Following is a
list of some BGP Message types:
Open: The open message type creates a neighbour relationship and exchanges BGP
parameters, including AS number and authentication values.
Keepalive: The Keepalive BGP message type is sent periodically to maintain the
neighbour relationship. If the Keepalive message is not received within the negotiated
Hold Time, the BGP neighborship is turned down.
Update: This message type is used to exchange the path attributes and the
associated prefix/length that uses those attributes.
Notification: This message type is used to report BGP errors. Finally, it resets the
neighbour relationship.
BGP path selection depends on the values of the attributes. Following is a list of some well
known BGP metric's attributes:
Weight (Cisco proprietary attributes)
Local Preference (highest local value will be preferred, the default value is 100)
Originate
AS path length
Origin code
MED
eBGP path over iBGP path
Shortest IGP path to BGP next-hop
Oldest path
Router ID
Neighbor IP address
https://www.javatpoint.com/bgp-interview-questions 7/13
06/10/2023, 22:44 Top 25+ Most Asked BGP Interview Questions and Answers (2023) - javatpoint
RIP stands for Routing Information Protocol. It is one of the oldest distance-vector routing
protocols used to employ the hop count as a routing metric. RIP also prevents the routing
loops by limiting the number of hops allowed in a path from source to destination.
The main purpose of BGPMED is to influence how other autonomous systems enter into your
autonomous system to reach a certain prefix. BGP MED is an attribute that is not propagated
throughout the whole network but just to adjacent AS. The lower the MED, the more the path
will be preferred.
BGP supports several Path Attributes varieties and uses these path Attributes to check the
competing BGP paths (routes) in the BGP table to find out the best possible path (route).
Following is a list of some BGP Path Attributes:
Next Hop: The Next Hop Path Attributes is used to list the next-hop IP address to
reach a prefix. It checks if the Next hop is reachable. If no route is able to reach Next
Hop, the router does not use this route.
Weight: The weight Path Attributes is a numeric value set by a router when you
receive the updates to influence the route for a prefix. It is not advertised to any BGP
peers, and a bigger weight is preferred.
Local Preference: This is also a numeric value set. It is communicated within a single
autonomous system to choose the best route for all routers in that autonomous
system to reach a certain network. The bigger value is preferred.
Locally injected routes: Locally injected routes are the routes injected using the
network command. These are better than iBGP/eBGP.
Multi-Exit Discriminator (MED) allows an autonomous system to tell the
neighbouring autonomous system the best path to forward packets. Smaller is
preferred.
AS Path: It specifies the number of ASNs in the AS Path. Smaller is preferred.
https://www.javatpoint.com/bgp-interview-questions 8/13
06/10/2023, 22:44 Top 25+ Most Asked BGP Interview Questions and Answers (2023) - javatpoint
In BGP, the order of preference varies on whether the attributes are applied for inbound
updates or outbound updates.
For inbound updates, the order of preference is:
Route-map
Filter-list
Prefix-list
distribute-list
For outbound updates, the order of preference is:
Filter-list
Route-map | unsuppress-map
Advertise-map (conditional-advertisement)
Prefix-list
distribute-list
21) What are the various types of communities used in BGP? Why are
they used?
There are four well-known communities used in BGP. The following list specifies their usage:
No-export: It is used to prevent the route from being advertised outside the local
autonomous system to eBGP peers.
No-advertise: It is used to prevent the route from being advertised to either internal
or external peers.
Internet: It is used to allow the route to be advertised outside the local autonomous
system.
Local-AS: It is used to prevent the route from being advertised outside the local
autonomous system to either eBGP or confederate peers.
A route reflector is a BGP router that can break the iBGP loop avoidance rule. A route
reflector can advertise updates received from an iBGP peer to another iBGP peer under
specific conditions. Route reflectors are used to eliminate the full mesh requirement by
breaking the rule and building iBGP networks that scale easily and cleanly.
https://www.javatpoint.com/bgp-interview-questions 10/13
06/10/2023, 22:44 Top 25+ Most Asked BGP Interview Questions and Answers (2023) - javatpoint
https://www.javatpoint.com/bgp-interview-questions 11/13
06/10/2023, 22:44 Top 25+ Most Asked BGP Interview Questions and Answers (2023) - javatpoint
Preparation
Company
Interview
Questions
Company Questions
Trending Technologies
https://www.javatpoint.com/bgp-interview-questions 12/13
06/10/2023, 22:44 Top 25+ Most Asked BGP Interview Questions and Answers (2023) - javatpoint
B.Tech / MCA
https://www.javatpoint.com/bgp-interview-questions 13/13