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.
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?
Recommended book for this article
BGP and MPLS RouterOS v7 book
Study material for the MTCINE Certification Course updated to RouterOS v7