Load balancing routing method for high-performance computing cluster

By decomposing the network of high-performance computing clusters into small-scale sub-networks and using Cartesian product combination, combined with optimized path selection and mathematical models, the load balancing problem in traditional routing methods is solved and global optimal load balancing and scalability are achieved. , reducing verification costs and improving network performance.

CN118869607AInactive Publication Date: 2024-10-29NANTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411186904.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional routing methods in high-performance computing clusters are difficult to achieve effective load balancing, resulting in network congestion, increased communication delays, and reduced throughput. Moreover, existing methods have high computational complexity, lack scalability, and theoretical guarantees in large-scale networks. Verification The cost is high.

Method used

Decompose the large-scale network into small-scale sub-networks, solve the load balancing routing problem respectively, use Cartesian product combination to achieve link load balancing through optimized path selection, and use simulation tools to verify the performance of the method based on strict mathematical models.

Benefits of technology

It achieves global optimal load balancing, reduces computational complexity, improves scalability and verification credibility, and significantly improves network performance and resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0005013773100000041
    Figure BDA0005013773100000041
  • Figure BDA0005013773100000042
    Figure BDA0005013773100000042
  • Figure FDA0005013773080000011
    Figure FDA0005013773080000011
Patent Text Reader

Abstract

The invention discloses a load balancing routing method for a high-performance computing cluster, which comprises the following steps of: firstly, decomposing a large-scale network of the high-performance computing cluster into a plurality of small-scale sub-networks; then, respectively solving a load balancing routing problem for each sub-network to enable each sub-network to meet link load balancing; and finally, multiplying the small-scale sub-networks meeting the link load balancing by using a Cartesian product to form a large-scale network. According to the method, local optimization is considered, more importantly, global load balancing is achieved, the expandability of the algorithm is greatly improved, the method can be applied to a larger-scale high-performance computing cluster, and the congestion problem caused by unbalanced routing in network communication is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a computer network routing method, and in particular to a load balancing routing method in a high performance computing cluster. Background Art

[0002] With the rapid growth of high-performance computing (HPC) and big data processing needs, the scale and complexity of computing clusters are also expanding. In this large-scale computing environment, network performance has become one of the key factors affecting the overall system efficiency. Traditional routing methods often have difficulty in achieving effective load balancing when faced with such a complex network topology, leading to network congestion, increased communication delays, and decreased throughput. This not only affects the execution efficiency of computing tasks, but also reduces the energy utilization of the overall system.

[0003] There are already some load balancing routing methods for high-performance computing clusters. Although static routing is simple, it lacks flexibility and is difficult to adapt to dynamically changing network loads. Dynamic adaptive routing can adjust policies according to real-time network conditions, but it may cause routing oscillations and is difficult to achieve global optimization. Software-defined networking (SDN)-based methods dynamically manage routing through a central controller, but may face controller performance bottlenecks in large-scale networks. Distributed routing algorithms such as ant colony algorithms and genetic algorithms can achieve load balancing to a certain extent, but they have slow convergence speeds and are difficult to respond quickly to network changes.

[0004] Although these existing methods provide improvements in some aspects, they still have many shortcomings. First, most methods cannot guarantee the global optimal load balancing effect. Second, although some advanced algorithms have good effects, they have high computational complexity and are difficult to apply in real time in large-scale networks. In addition, many methods are difficult to smoothly expand from small-scale networks to large-scale networks and lack good scalability. More importantly, these methods often lack rigorous mathematical models and theoretical guarantees, making it difficult to evaluate and predict the effect of load balancing. Finally, verifying the effect of new algorithms in actual large-scale networks is both expensive and time-consuming, and there is a lack of effective verification methods.

[0005] In view of the above background, the field of high-performance computing urgently needs a load balancing routing method that can be guaranteed in theory and practice. This method should be able to effectively improve network performance, enhance scalability, and be effectively verified. The ideal solution should be able to have low computational complexity while ensuring global optimality, and be able to smoothly expand from small-scale networks to large-scale networks. At the same time, it should also be based on a rigorous mathematical model, provide theoretical guarantees, and have feasible verification methods. Summary of the invention

[0006] Purpose of the invention: In view of the above-mentioned prior art, a load balancing routing method for a high-performance computing cluster is proposed to solve the congestion problem caused by unbalanced routing in the network communication of the high-performance computing cluster.

[0007] Technical solution: A load balancing routing method for a high-performance computing cluster, comprising:

[0008] S1: Decompose the large-scale network of the high-performance computing cluster into several small-scale sub-networks G1, G2, …, G n ;

[0009] S2: Solve the load balancing routing problem for each sub-network separately, so that each sub-network satisfies the link load balancing;

[0010] S3: Use Cartesian product to multiply small-scale sub-networks that meet link load balancing requirements and combine them into a large-scale network.

[0011] Furthermore, the S2 specifically includes:

[0012] First, for a given network topology, all shortest paths between any two nodes are enumerated;

[0013] Then, by solving the optimization problem, the optimal path is selected from multiple shortest paths to achieve link load balancing.

[0014] Furthermore, the method of enumerating all shortest paths between any two nodes includes the following steps:

[0015] Use the Floyd-Warshall algorithm or the Dijkstra algorithm to calculate the shortest distance between all pairs of nodes in the network;

[0016] For each pair of nodes (i, j), use a depth-first search or breadth-first search algorithm to find all paths whose length is equal to the shortest distance.

[0017] Furthermore, the objective function of the optimization problem is: Where L (i,j) is the total load of link i→j, N l is the total number of paths.

[0018] Furthermore, the constraints of the optimization problem include: a) the sum of the fixed load and the variable load is equal to the total load; b) the number of selected paths does not exceed the total number of shortest paths; wherein the fixed load is The variable load is R (i,j) represents the number of shortest paths from i to j, S (α,β) Indicates the selected path number, P (i,j),·It represents a matrix storing all the shortest paths from node i to node j. The subscript “·” represents the number of the shortest path.

[0019] Furthermore, the load balancing routing method is deployed on a high performance computing cluster, comprising the following steps:

[0020] a) Select network equipment that supports programmable routing;

[0021] b) Implement a central controller to calculate and issue load balancing routing strategies;

[0022] c) Regularly collect network status information and update routing strategies as needed;

[0023] d) Monitor network performance and compare it with traditional routing methods to verify the actual effect.

[0024] Furthermore, the method further includes the step of using a simulation tool to verify the load balancing routing method before deployment, specifically including:

[0025] a) Use simulation tools to build a virtual network environment and simulate high-performance computing clusters of different scales and topologies;

[0026] b) implementing the load balancing routing algorithm in a simulation environment;

[0027] c) Select typical high performance computing applications as benchmark programs;

[0028] d) running a benchmark test program using a traditional routing method and the load balancing routing method respectively;

[0029] e) Compare the performance of the two methods in terms of network throughput, communication delay, and load distribution indicators.

[0030] Beneficial effects: The present invention provides a new idea and method for network optimization of high-performance computing clusters, which can significantly improve network performance and resource utilization in large-scale computing environments.

[0031] 1. By solving the global optimization problem, we can achieve true link load balancing and avoid the imbalance problem caused by local optimization. Based on a strict mathematical model, we can provide a theoretical guarantee for the load balancing effect.

[0032] 2. By utilizing the characteristics of Cartesian product, the algorithm can be smoothly expanded from small-scale networks to large-scale networks, solving the problem that traditional methods are difficult to apply in large-scale networks.

[0033] 3. Through simulation verification, the risk of actual deployment is reduced and the credibility and practicality of the method are improved. DETAILED DESCRIPTION

[0034] The present invention will be further explained below.

[0035] A load balancing routing method for a high performance computing cluster, comprising:

[0036] S1: Decompose the large-scale network of the high-performance computing cluster into several small-scale sub-networks G1, G2, …, G n .

[0037] S2: Solve the load balancing routing problem for each sub-network separately so that each sub-network satisfies the link load balancing. The specific steps are as follows:

[0038] S201: For a given network topology, enumerate all shortest paths between any two nodes, specifically:

[0039] a) Use the Floyd-Warshall algorithm or the Dijkstra algorithm to calculate the shortest distance between all pairs of nodes in the network.

[0040] b) For each pair of nodes (i, j), use a depth-first search or breadth-first search algorithm to find all paths whose length is equal to the shortest distance.

[0041] c) Store all the shortest paths found in the matrix P (i,j),· In this case, it is a third-order tensor, (i, j) represents the path from node i to node j, and the subscript “·” represents the number of the shortest path.

[0042] S202: By solving the optimization problem, an optimal path is selected from multiple shortest paths to achieve sub-network link load balancing.

[0043] Among them, the objective function of the optimization problem is:

[0044]

[0045] The constraints of the optimization problem include: a) the sum of the fixed load and the variable load is equal to the total load; b) the number of selected paths does not exceed the total number of shortest paths; specifically expressed as follows:

[0046]

[0047] L (i,j) =F (i,j) +D (i,j)

[0048] S (α,β) ≤R (α,β)

[0049] Among them, L (i,j) is the total load of link i→j, N lis the total number of paths, F (i,j) is a fixed load, D (i,j) is a variable load, R (i,j) represents the number of shortest paths from i to j, S (α,β) Indicates the selected path number. For a fixed load, if there is only one shortest path from node i to node j, then there is only one path (R (i,j) =1) corresponds to the adjacency matrix P (i,j),1 By directly summing, we can get the fixed load between any two nodes. Similarly, if there are multiple paths (R (i,j) >1), the variable load can be obtained by summing up all adjacency matrices.

[0050] The present invention establishes a rigorous mathematical model to describe and solve the load balancing problem. The objective function of the model aims to minimize the variance of the link load, thereby achieving a balanced distribution of the load. The above objective function is a mixed nonlinear programming problem, which can be solved using the following method:

[0051] a) For small-scale networks, commercial solvers such as CPLEX or Gurobi can be used to solve the problem directly.

[0052] b) For large-scale networks, heuristic algorithms such as genetic algorithms or simulated annealing algorithms can be used to find approximate optimal solutions.

[0053] In a subnetwork, when there are multiple non-unique shortest paths between two points, the present invention performs path calculation to ensure that the number of paths on each physical link is as equal as possible, that is, the variance is minimized. This method effectively ensures that congestion will not occur on a certain link in most cases. At the same time, the present invention ensures that the path between the two points is the shortest path and keeps the load balance on each pair of physical links as much as possible.

[0054] S3: Using Cartesian Product The small-scale sub-networks that meet link load balancing requirements are multiplied and combined into a large-scale network.

[0055] For large-scale networks, if the above optimization problem is solved directly, the computational complexity is too high. The present invention decomposes the large-scale network of the high-performance computing cluster into several small-scale sub-networks. When each optimized sub-network satisfies the link load balancing, the combined large network also satisfies the link load balancing. Extending the link load balancing routing of the small-scale network to the large-scale network greatly improves the scalability of the algorithm, enabling it to be applied to larger-scale high-performance computing clusters. This method not only takes local optimization into account, but more importantly, realizes global load balancing.

[0056] To verify the performance of the above routing method, the following steps can be taken:

[0057] a) Use simulation tools such as SimGrid to build a virtual network environment and simulate high-performance computing clusters of different scales and topologies.

[0058] b) Implementing the load balancing routing algorithm in a simulation environment.

[0059] c) Select typical high-performance computing applications as benchmark programs, such as NPB (NAS ParallelBenchmarks).

[0060] d) Running benchmark test programs using the traditional routing method and the load balancing routing method respectively.

[0061] e) Compare the performance of the two methods in terms of network throughput, communication delay, and load distribution indicators.

[0062] The present invention uses a simulation tool to verify the performance of the proposed load balancing routing method, which provides an effective means for performance evaluation before actual deployment and reduces the cost and risk of direct verification in large-scale actual networks.

[0063] Based on the simulation verification, the above load balancing routing method is specifically deployed on a high-performance computing cluster, including the following steps:

[0064] a) Choose network equipment that supports programmable routing, such as switches that support SDN.

[0065] b) Implement a central controller to calculate and issue load balancing routing strategies.

[0066] c) Regularly collect network status information and update routing strategies as needed.

[0067] d) Monitor network performance and compare it with traditional routing methods to verify the actual effect.

[0068] Through the above steps, the load balancing routing method of the present invention can be implemented and its advantages can be brought into play in an actual high-performance computing environment to improve network performance and resource utilization.

[0069] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A load balancing routing method for a high performance computing cluster, characterized in that: include: S1: Decompose the large-scale network of the high-performance computing cluster into several small-scale sub-networks G1, G2, ..., G n ; S2: Solve the load balancing routing problem for each sub-network separately, so that each sub-network satisfies the link load balancing; S3: Use Cartesian product to multiply small-scale sub-networks that meet link load balancing requirements and combine them into a large-scale network.

2. The load balancing routing method for a high performance computing cluster according to claim 1, characterized in that: The S2 specifically includes: First, for a given network topology, all shortest paths between any two nodes are enumerated; Then, by solving the optimization problem, the optimal path is selected from multiple shortest paths to achieve link load balancing.

3. The load balancing routing method for a high performance computing cluster according to claim 2, characterized in that: The method of enumerating all shortest paths between any two nodes includes the following steps: Use the Floyd-Warshall algorithm or the Dijkstra algorithm to calculate the shortest distance between all pairs of nodes in the network; For each pair of nodes (i, j), use a depth-first search or breadth-first search algorithm to find all paths whose length is equal to the shortest distance.

4. The load balancing routing method for a high performance computing cluster according to claim 2, characterized in that: The objective function of the optimization problem is: Where L (i,j) is the total load of link i→j, N l is the total number of paths.

5. The load balancing routing method for a high performance computing cluster according to claim 4, characterized in that: The constraints of the optimization problem include: a) the sum of the fixed load and the variable load is equal to the total load; b) the number of selected paths does not exceed the total number of shortest paths; where the fixed load is F (i,j) =∑R (i,j)=1 P (i,j),1 , variable load is D (i,j) =∑ R(i,j)> 1P (i,j),S(α,β) , R (i,j) represents the number of shortest paths from i to j, S (α,β) Indicates the selected path number, P (i,j),· It represents a matrix storing all the shortest paths from node i to node j. The subscript "·" represents the number of the shortest path.

6. The load balancing routing method for a high performance computing cluster according to any one of claims 1 to 5, characterized in that: Deploying the load balancing routing method on a high performance computing cluster includes the following steps: a) Select network equipment that supports programmable routing; b) Implement a central controller to calculate and issue load balancing routing strategies; c) Regularly collect network status information and update routing strategies as needed; d) Monitor network performance and compare it with traditional routing methods to verify the actual effect.

7. The load balancing routing method for a high performance computing cluster according to claim 6, characterized in that: The method also includes the step of using a simulation tool to verify the load balancing routing method before deployment, specifically including: a) Use simulation tools to build a virtual network environment and simulate high-performance computing clusters of different scales and topologies; b) implementing the load balancing routing algorithm in a simulation environment; c) Select typical high performance computing applications as benchmark programs; d) running a benchmark test program using a traditional routing method and the load balancing routing method respectively; e) Compare the performance of the two methods in terms of network throughput, communication delay, and load distribution indicators.