fbpx

Exploring the Multihop option in BGP and its implementation scenarios

Facebook
Twitter
LinkedIn
WhatsApp
Telegram

BGP is typically configured to establish direct neighbor sessions. However, in some cases, it may be beneficial to allow BGP sessions to extend across multiple jumps or "hops“. This is known as “multihop".

At the end of the article you will find a small test that will allow you assess the knowledge acquired in this reading

BGP Multihop Implementation Scenarios

1. Connectivity through Transparent Transmission Links

In situations where there is a transparent transmission link, such as a fiber optic network, it is possible to configure BGP in multihop mode. This is useful when direct connectivity between routers is not practical or possible.

2. Service Provider Networks

Service providers often have complex network topologies. In a scenario where two BGP routers belong to different service providers, the multihop option may be essential to establish BGP sessions over the intermediate network.

3. Resilience and Redundant Connectivity

To improve network resilience, multihop sessions can be established. If there are multiple paths between two BGP routers, this option allows configuration of sessions over alternative paths, thus increasing redundancy and availability.

4. BGP Confederation Scenarios

BGP Confederation is a technique for dividing an autonomous system into sub-autonomous ones for ease of administration. In this context, multihop can be used to establish sessions between BGP routers belonging to different sub-autonomous groups.

5. Implementation of Overlay Networks

In overlay networks, where multiple network layers overlap, multihop becomes a valuable option. It allows BGP routers to establish sessions across overlay layers, thereby connecting otherwise isolated network segments.

Exploring the Multihop option in BGP and its implementation scenarios

Considerations and Best Practices

Security

It is essential to implement proper security measures when configuring BGP in multihop mode to avoid potential threats such as spoofing attacks.

Latency

The additional latency introduced by multiple hops must be considered. In time-sensitive scenarios, it is crucial to evaluate whether the multihop option is the most appropriate.

Bandwidth

The available bandwidth between routers over multiple hops must be sufficient to ensure optimal performance.

Monitoring and Diagnosis

Implementing monitoring and diagnostic tools is essential to evaluate the performance and health of BGP sessions in multihop mode.

 

Example on a MikroTik router

Suppose you want to configure a BGP Multihop session between two MikroTik routers with the following IP addresses:

  • Router A: 192.168.1.1
  • Router B: 192.168.2.1

Here is an example configuration:

  • Access the CLI of Router A.
  • Configure autonomous system (AS) on both routers. For example, let's set AS 65001 to both.
/ip bgp set as=65001 router-id=192.168.1.1
  • Configure Router B as a BGP peer on Router A and set the number of multihop hops. In this case, we will configure 2 jumps.
/ip bgp peer add remote-address=192.168.2.1 remote-as=65001 multihop=yes ttl=2
  • Now, activate the BGP session so that it starts exchanging routing information.
/ip bgp peer enable 0
  • Repeat these steps on Router B to configure the BGP Multihop session in the opposite direction.

This example establishes a BGP Multihop connection between the two MikroTik routers, allowing the BGP session to traverse multiple hops or intermediate routers. Be sure to adjust the IP addresses and AS numbers according to your specific configuration.

 

In conclusion

Using the multihop option in BGP offers flexibility and optimization in scenarios where direct connectivity is not practical.

By understanding their applications and following best practices, network administrators can improve the efficiency and resilience of their infrastructures.

Careful implementation of this advanced functionality contributes to the continued evolution and adaptability of networks in an environment of rapid technological transformation.

Brief knowledge quiz

What do you think of this article?
Do you dare to evaluate your learned knowledge?

QUIZ - Exploring the Multihop option in BGP and its implementation scenarios

Recommended book for this article

Do you want to suggest a topic?

Every week we post new content. Do you want us to talk about something specific?
Topic for the next blog

Leave a comment

Your email address will not be published. Required fields are marked with *

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

17%

all MikroTik OnLine courses

CW23-AX

30%

all Academy courses

CW23-LIB

25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

22%

all MikroTik OnLine courses

BF23-AX

35%

all Academy courses

BF23-LIB

30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011