An Azure service that provides private connections between Azure datacenters and infrastructure, either on premises or in a colocation environment.
Hi @ Peter Stieber,
Welcome to Microsoft Q&A Platform.
It looks like you're diving deep into the Virtual Hub Route Selection Algorithm and have some good questions about how routingWeight fits into the picture. Here’s a breakdown of your queries regarding routingWeight and its impact based on the scenarios you mentioned:
Scenario 1: HRP set to ExpressRoute or VPN
If you have two local ExpressRoute connections advertising the same prefix with the same AS-Path length, the one with the higher routingWeight should be preferred. In this case, routingWeight behaves similarly to BGP Local Preference, effectively taking precedence over the AS-Path comparison when it comes to choosing a route.
Scenario 2: HRP set to AS Path
When HRP is set to AS Path, the selection process prioritizes routes based on the shortest AS-Path length. However, if there’s a tie in AS-Path length, routingWeight comes into play as a tie-breaker. So, it doesn’t get completely ignored; instead, it can influence the final decision between equally competing routes.
This nuance indicates that it might be worthwhile to update the documentation to reflect how routingWeight impacts decision-making in different HRP configurations.
Recommendations
- Documentation Feedback: Since you mentioned that the parameter is impactful but not noted in the selection steps, it could be beneficial to provide feedback to the Azure documentation team for clarity.
- Testing: You might consider setting up a test with two ExpressRoute connections to verify how
routingWeightaffects routing decisions in practice.
References
- About virtual hub routing preference
- Optimize routing for Azure ExpressRoute
- Troubleshoot and Resolve ExpressRoute Connectivity and Performance Issues
Please
and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.