Controller Route Priority Allocation for Distributed Gateway ECMP Avoidance
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In VXLAN distributed gateway scenarios, manual modification of route priorities to avoid equal-cost multi-path (ECMP) is labor-intensive and error-prone, leading to inefficiencies in route priority configuration.
Innovation Solution
A controller is introduced to automatically allocate different route priorities to direct routes generated based on the same IP address, using a preset allocation rule to ensure that paths to a destination IP address are selected based on route priority, thereby reducing the formation of unnecessary ECMP and conserving hardware resources.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If manual modification of route priorities is performed to avoid ECMP, then ECMP formation is prevented, but configuration efficiency deteriorates and error rate increases
Solution Approach 1:
An automated controller is introduced as an intermediary between network administrators and the routing configuration system. The controller receives interface creation requests, automatically generates direct routes with unique priorities, and distributes them to distributed gateways, eliminating manual intervention and its associated errors while improving configuration efficiency
Solution Approach 2:
The system enables self-service automation where the controller autonomously performs route priority allocation without human intervention. When a layer 3 interface is created, the controller automatically generates direct routes with unique priorities and configures them on relevant distributed gateways, making the system self-configuring and error-free
2Productivity
If automated route priority allocation is implemented, then configuration efficiency improves, but system complexity increases
Solution Approach 1:
The controller is designed as a multi-functional centralized management system that handles interface creation requests, generates direct routes, allocates unique priorities, and distributes configurations to multiple distributed gateways. This universal approach consolidates complexity into a single manageable component rather than distributing it across multiple devices
Solution Approach 2:
The system automatically changes the priority parameter of direct routes based on predefined allocation rules. When generating direct routes from layer 3 interfaces, the controller assigns unique priority values to differentiate routes and prevent ECMP, transforming a static configuration problem into a dynamic parameter assignment process
Data Source
Figure 1
Figure 2
Figure 3~4
AI summary
Embodiments of the present invention disclose a route priority configuration method, a device, and a controller. The controller receives an interface creation request for creating a layer 3 interface on a target device, where the interface creation request carries an IP address and a subnet mask. The controller generates a direct route of the layer 3 interface based on the interface creation request; allocates a route priority to the direct route according to a preset allocation rule; and sends the direct route and the route priority corresponding to the direct route to the target device, where the preset allocation rule indicates that a route priority corresponding to a direct route that is based on the IP address and that is of any one of at least two devices on which distributed gateways are deployed is different from a route priority corresponding to a direct route that is based on the IP address and that is of another device in the at least two devices. According to this application, direct routes generated based on a same IP address can correspond to different route priorities, to avoid a case in which direct routes advertised by different distributed gateways form ECMP, and improve route priority configuration efficiency.