InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What are the different types of loop prevention mechanisms in BGP? |
|
Answer» Following are the different ways of loop prevention mechanisms in BGP :
In this article, we have covered the most frequently ASKED interview questions on Border Gateway PROTOCOL (BGP). If you are preparing for a BGP interview, you can EXPECT questions from networking as well. Do not worry, we got you covered. To go through the most frequently asked interview questions on networking, visit this link. |
|
| 2. |
What do you understand about TTL Security in the context of BGP? What is the need for TTL security in BGP? |
|
Answer» When constructing an eBGP neighborship through a Service PROVIDER Network, there is a security risk of an attack from an UNPROTECTED Internet Service Provider domain to a secured client environment. A disadvantage of eBGP multihop is that a DOS attack can be carried out by spoofing legal packets towards a BGP router in large numbers. TTL-Security is a method we employ to secure our eBGP session from DOS attacks like this. Only eBGP sessions, not iBGP sessions, can employ the BGP TTL Security check. Only one of TTL Security and eBGP multihop can be enabled to generate directly linked or multihop peering sessions. A simple command can be USED to configure the TTL-Security feature against an eBGP neighbour: neighbor TTL-security hopsBy default, BGP sends packets with a TTL of 1 to external neighbours and accepts packets with a TTL of 0 or higher from external neighbours (as measured after the local router has DECREMENTED the TTL of the incoming packet). By requiring BGP to originate packets with a TTL of 255, the TTL-Security modifies the default BEHAVIOUR of originating. |
|
| 3. |
Differentiate between Enhanced Interior Gateway Routing Protocol (EIGRP) and Border Gateway Protocol (BGP). |
||||||||||||||
|
Answer» Enhanced Interior Gateway Routing Protocol (EIGRP): If two routers in the same area exist, EIGRP is used to share information between them. It's also a COMPLICATED protocol, but it's simple to set up and use in both small and big networks. It's also a hybrid protocol, as it combines elements of both distance VECTOR and link-state routing protocols. Following table LISTS the differences between Enhanced Interior Gateway Routing Protocol (EIGRP) and Border Gateway Protocol (BGP):
|
|||||||||||||||
| 4. |
Differentiate between Border Gateway Protocol (BGP) and Routing Information Protocol (RIP). |
||||||||||||||||
|
Answer» Following are the differences between Border Gateway Protocol (BGP) and Routing Information Protocol (RIP) :
|
|||||||||||||||||
| 5. |
Explain the Path selection criteria used in BGP. |
|
Answer» BGP seeks to reduce the number of paths available to only one best path; it does not load balance by DEFAULT. To do so, it looks at the following path properties of any loop-free, synchronised (if synchronisation is enabled) ROUTES with an accessible next-hop:
|
|
| 6. |
What do you mean by BGP Message Types? Explain the different Message Types in BGP in detail. |
|
Answer» The BGP Message types are used to create a NEIGHBOUR relationship and exchange parameters such as the autonomous system number and authentication values. A BGP message is made up of two parts: a BGP header and data. The header format is the same in all of the BGP messages. TCP is used to transmit BGP messages (port 179). The length of the message ranges from 19 to 4096 octets. Each BGP message's header is 19 octets long and consists of three fields. The types of BGP messages are listed below:
|
|
| 7. |
Explain the various types of communities used in BGP. |
|
Answer» Following are the various types of communities used in BGP:
When a route is associated with a No-Advertise community, the BGP speaker will not advertise the route to any internal or external BGP peers. R1 does not advertise a No-Advertise Route (10.10.10.0/24) to peers R11, R12, and R111 in the following example.
When a No-Export community is associated with a route, the router will only advertise the route to internal peers. R1, R11, and R12 are not advertising a No-Export Route (10.10.10.0/24) to their external peer, R111, as seen in the following example. R1 will not advertise the route to R111 in this situation, just to R11 and R12, because they are internal BGP peers. As a result, because R111 is an external BGP peer, R11 and R12 will not advertise either route to it.
There is an important regulation about internal BGP neighbours to avoid BGP routing loops: an IBGP neighbour cannot advertise a route to another IBGP neighbour if it obtained that route from another IBGP neighbour. A Local AS Route (10.10.10.0/24) is not promoted between IBGP neighbours (R11 and R111) within the local AS in the following example. According to the criteria indicated above, R11 advertises the route to R22, but R22 does not advertise the path to R111. There are several options for getting the route to R111, including constructing a full mesh of IBGP sessions between AS11 routers or dividing the AS 11 into a sub-AS within a confederation. Outside of AS11, no one knows what AS 1000 and AS1001 are. R111 can now receive the 10.10.10.0/24 route even if it does not have full mesh BGP peering. Outside of the sub-AS, the Local-AS community does not advertise routes.
When a router's peer router is about to be purposely shut down, the Graceful SHUTDOWN (65535:0) community is used to seamlessly shut down paths it could use. Consider the following scenario: R111 is utilising R11 to access the 10.10.10.0/24 network, but R11 will be rebooted to be upgraded: R111 replies by transferring traffic to R12 with minimum disruption when R11 announces this community:
An Extended community is an 8-byte value that is split into TWO parts:
There are three fields in an extended community: kind, administrator, and assigned number (type:administrator:assigned-number). The administrator field can be an AS or an IP ADDRESS, depending on the value of the high-order byte in the Type field. MPLS-VPN is the most well-known use for extended communities, as it uses two extended communities:
A Virtual Routing and Forwarding (VRF) table is a virtual routing table that can have its own routing policies that are independent of the global routing table or other VRFs. Essentially, you can connect numerous client sites and create a DISTINCT routing table (VRF) throughout the entire network exclusively for this customer, with routing policies that differ from those of other customers.
In MPLS VPN setups, the Route Target community is used to segregate two customers' routing tables, as depicted in the diagram below: VRF Customer RED is only present on R1 and R12, and VRF Customer BLUE is only present on R11 and R22 in this scenario, but they may have been present on all four routers. When a route is exported from VRF Red using BGP, the route-target 100:100 is assigned to the route. When the route reaches R12, the route from R1 is imported, allowing the sites connected to R1 and R12 to communicate.
The route origin community is used in an MPLS VPN environment to identify where routes originated from so that readvertisement back to that site is avoided. When PE1 receives the route from CE1, it ATTACHES the route origin community in addition to the route-target that is linked to the route (through export). The route reaches PE2, but PE2 does not inform CE2 because it is aware that it originated at the location. |
|
| 8. |
What do you understand about communities in the context of BGP? |
|
Answer» A BGP community is a transitive, optional BGP property that is RECOGNISED and SENT between BGP peers. A BGP community is a tag that is appended to the BGP routes that are exchanged between two BGP peers. A community is a 32-bit number that is divided into two 16-bit sections. The first 16 bits indicate the community's AS number, while the FOLLOWING 16 bits represent a unique number assigned by the AS. Because each AS number is distinct, each community on the INTERNET is SIMILARLY distinct. This means that an AS with the ASN 9999 (or 0x270F in hex) can have communities ranging from 0x270F0000 to 0x270FFFFF. |
|
| 9. |
What do the various BGP Path Attributes mean? |
|
Answer» BGP offers a variety of Path Attributes, which are used to compare competing BGP pathways (routes) in the BGP table to identify the best possible path (route). The following are some BGP Path Attributes:
|
|
| 10. |
Differentiate between hard reset and soft reset in the context of BGP. |
|||||||||||||||||||||||||||
|
Answer» Following are the differences between hard reset and soft reset in the context of BGP:
|
||||||||||||||||||||||||||||
| 11. |
Differentiate between Open Shortest Path First (OSPF) and Border Gateway Protocol (BGP). |
||||||||||||||||||||
|
Answer» Open Shortest Path First (OSPF): Open shortest path first (OSPF) is a link-state routing protocol that USES its own shortest path first (SPF) algorithm to discover the optimum path between the SOURCE and DESTINATION router. A link-state routing protocol employs the idea of triggered updates, in which updates are only triggered when a change in the learnt routing table is detected, as opposed to the distance-vector routing protocol, in which the routing table is exchanged over a period of time. Open shortest path first (OSPF) is an Interior Gateway Protocol (IGP) that tries to move packets within a large autonomous system or routing domain. It's a network layer protocol that uses AD value 110 and runs on protocol number 89. OSPF employs the multicast address 224.0.0.5 for routine communication and 224.0.0.6 for updates to designated ROUTERS (DRs) and backup designated routers (BDRs) (BDR). Following are the differences between Border Gateway Protocol (BGP) and Open Shortest Path First (OSPF):
|
|||||||||||||||||||||