Hashing Algorithm Selection for Port-Channel Load Balancing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Hashing algorithms for load balancing in port-channel architectures do not consider available bandwidth, leading to uneven traffic distribution and underutilization of network links, resulting in dropped packets when links reach 100% utilization.
Innovation Solution
A method to evaluate and determine a preferred hashing algorithm based on flow variance metrics such as mean, variance, and coefficient of variation, allowing for optimal distribution of traffic across physical links by calculating percentage utilization and bandwidth requirements for each interface.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Extent of automation
If a hashing algorithm is used to assign flows to physical links, then traffic distribution is simplified and routing decisions are automated, but load balancing becomes uneven and bandwidth utilization is suboptimal
Solution Approach 1:
The patent implements dynamic load balancing by continuously monitoring bandwidth utilization on each physical link and adjusting flow assignment in real-time. The system transitions from static hashing to dynamic allocation, where the forwarding engine reassigns flows based on current link conditions, ensuring optimal bandwidth utilization while maintaining automated routing decisions.
Solution Approach 2:
The system incorporates feedback mechanisms by monitoring bandwidth utilization metrics from each physical link and using this information to adjust flow assignment decisions. The forwarding engine receives feedback on link utilization and dynamically modifies hashing parameters or flow-to-link mappings to achieve balanced load distribution across all links.
2Adaptability or versatility
If multiple hashing algorithms are supported for evaluation, then adaptability to different traffic patterns improves, but device complexity increases
Solution Approach 1:
The system performs preliminary evaluation of multiple hashing algorithms during idle periods or low-traffic conditions, calculating performance metrics for each algorithm without affecting real-time traffic forwarding. This pre-computation approach allows the system to identify the optimal algorithm for current traffic patterns while maintaining simple real-time forwarding operations.
Solution Approach 2:
The patent introduces an intermediary performance evaluation layer that sits between the multiple hashing algorithms and the forwarding engine. This intermediary layer evaluates algorithm performance metrics and selects the optimal algorithm, shielding the forwarding engine from the complexity of managing multiple algorithms while still benefiting from their adaptability.
Data Source
AI summary
Techniques are disclosed for determining a preferred hashing algorithm for load balancing physical interface utilization in a network device, such as a switch, configured with a port-channel architecture. While a current hashing algorithm is being applied to network traffic flows, a forwarding engine of the network device retrieves snapshot data of each flow and evaluates the flows against other hashing algorithms. The forwarding engine, for each hashing algorithm result, calculates statistical measures, such as mean, variance, and coefficient of variation. These measures are used to determine the preferred hashing algorithm to subsequently be applied. Once determined, the networking device may notify a user (e.g., a system administrator) of the algorithm.


