LOAD BALANCING METHOD AND RELATED APPARATUS
The present disclosure relates to a load balancing method and related apparatus which introduce an in-network distributed coordinated load balancing (DCLB) scheme to cater to the new characteristics of DML traffic. In the load balancing method, a first switch receives an approval message from a coordinator node, where the approval message is used for indicating a suggested modification is approved; and the first switch transmits a requested modification message to the coordinator node, where the requested modification message is used for indicating a second switch to modify an allocated path according to the suggested modification, and the suggested modification is determined according to a local flow allocation table of the first switch. The load balancing method can alleviate the strain on a centralized node, and improve the scalability and performance of the system.
The present disclosure relates to the field of data transmission technologies, and in particular, to a load balancing method and related apparatus.
BACKGROUNDThe rise of big data technologies allows training sophisticated machine learning models on massive datasets. However, due to memory and computing power limitations, training such large models in a single unit is impractical. Distributed machine learning (DML) solves this problem by leveraging multiple computing resources to divide the workload, enabling efficient processing of extensive data. This approach concurrently analyzes smaller data groups, integrating outcomes from the different computing resources for a final output. Distributed machine learning aims to reduce time and cost in data processing while enhancing scalability, speed, and efficiency of machine learning algorithms.
One of the biggest challenges that face DML techniques is determining how the different computing resources or workers will share and synchronize their results. This process can create considerable performance bottlenecks if not handled properly. More specifically, the temporary slowdown of any worker node in a cluster of nodes will delay the calculation of other worker nodes, resulting in overall performance degradation.
In this regard, load balancing (LB) is foreseen to play a critical role. Historically, LB has been used in various data networks, including data center networks (DCNs), for multiple objectives including higher performance, improved scalability, robustness, and better energy-efficiency. LB achieves the aforementioned objectives by evenly assigning traffic flows among different paths to improve network utilization.
However, elephant (long duration and high throughput flows) flows, belonging to DML traffic, in data center networks have one or more of the following characteristics: big flow size, low entropy, low chance for flowlets formation, strong synchronization, or strong regularity, and some existing LB solutions did not take the aforementioned characteristics of the elephant flows into their consideration or some existing LB solutions may deem problematic with larger network topologies and are not scalable.
This background information is provided to reveal information believed by the applicant to be of possible relevance to the present disclosure. No admission is necessarily intended, nor should be construed, that any one of the preceding information constitutes prior art against the present disclosure.
SUMMARYIn a first aspect, according to an embodiment of the present disclosure, a load balancing is provided, the method is applied to a first switch, and the method includes: receiving an approval message from a coordinator node, where the approval message is used for indicating a suggested modification is approved; and transmitting a requested modification message to the coordinator node, where the requested modification message is used for indicating a second switch to modify an allocated path according to the suggested modification, and the suggested modification is determined according to a local flow allocation table of the first switch.
In this way, when receiving the requested modification message from the coordinator node, the second switch may modify the allocated path according to the suggested modification, the requested modification message is transmitted to the coordinator node and forwarded by the coordinator node to the second switch, and the requested modification message is used for indicating a second switch to modify an allocated path according to the suggested modification, and the suggested modification is determined according to a local flow allocation table of the first switch. Since the suggested modification is determined according to a local flow allocation table of the first switch, the load balancing is performed by the first switch, that is, the computing power is distributed among the first switch and the second switch, the scalability of the system is improved. Further, the operation of the first switch and the second switch is organized by the coordinator node, the load balancing is guaranteed to converge. Compared with a solution that maintaining a centralized table used for flows allocation (all flows in the network) at a centralized node and the flows allocation is performed by the centralized node in the related art, the proposed method can alleviate the strain on a centralized node, and improve the scalability and performance of the system.
In an implementation of the first aspect, the requested modification message includes the suggested modification, and the suggested modification includes an identification of a colliding flow. For a system with two spine switches, the suggested modification may only need to include the identification of a colliding flow. That is, when there are two spine switches in the system, after receiving the requested modification message with the identification of a colliding flow, the second switch may determine that an identification of the spine switch originally allocated to the colliding flow should be modified to another spine switch in the system.
In an implementation of the first aspect, the suggested modification further includes an identification of a suggest switch for the colliding flow. For a system with more than two spine switches, the suggested modification may include both the identification of a colliding flow and the identification of a suggest switch for the colliding flow. After receiving the requested modification message with the identification of a colliding flow, the second switch may determine that an identification of the spine switch originally allocated to the colliding flow should be modified to the suggest switch in the system.
Through the identification of a colliding flow and the identification of a suggest switch for the colliding flow indicated by the first switch through the requested modification message, the second switch modifies the allocated path according to the suggested modification, the first switch and the second switch can collectively implement the load balancing algorithm and resolve the flow collision.
In an implementation of the first aspect, the local flow allocation table includes at least two allocation tables. Instead of maintaining the big local flow allocation table at each first switch or at each second switch, at least two small allocation tables can be maintained at each first switch or at each second switch, the amount of memory required at the switches to implement the load balancing algorithm is minimized and the scalability of the system is further improved.
In an implementation of the first aspect, the at least two allocation tables includes a sending table and a receiving table, the sending table includes information indicating an allocated path when the first switch is a source switch, and the receiving table includes information indicating an allocated path when the first switch is a destination switch; and the requested modification message includes an update sending table message, the update sending table message is used for indicating the second switch to modify a local sending table of the second switch; or, the requested modification message includes an update receiving table message, the update receiving table message is used for indicating the second switch to modify a local receiving table of the second switch. There are a source switch and a destination switch for each flow in the local flow allocation table, the local flow allocation table can be split into a sending table and a receiving table, correspondingly, the requested modification message may include an update sending table message or an update receiving table message. In this implementation, the complexity of the solution is reduced, the amount of memory required at the switches to implement the load balancing algorithm is minimized, and the scalability of the system is further improved.
In an implementation of the first aspect, the method further includes: receiving a request message from the coordinator switch, where the request message is used for inquiring about an imbalance issue; identifying the imbalance issue according to a flow difference threshold; and transmitting a response message to the coordinator switch, where the response message is used for indicating the imbalance issue, and the response message includes the suggested modification. By the request message and the response message exchanged between the first switch and the second switch, the suggested modification can be transmitted to the coordinator switch by the first switch.
In an implementation of the first aspect, the colliding flow includes an elephant flow and the suggested modification is determined by utilizing a loop algorithm, the method further includes: detecting the elephant flow according to a threshold. Since there is large number of mice flows (small flows) at any given time, the share of each mice flow is very small so even with some imbalance of small flows; there will not be significant degradation in system throughput. However, even collision of small number of elephant flows could cause significant throughput degradation. Therefore, the load balancing method in this implementation is applied to the elephant flows, and stochastic, possibly flowlet-based, approaches is applied to the mice flows, this implementation choose to differentiate between mice and elephant flows and treat them differently. The load balancing method in this implementation is able to load balance the elephant flows which have low entropy and that are all launched simultaneously within a very short duration of time. Since these DML flows form a permutation (both shuffled and non-shuffled), the Looping algorithm provides an optimal allocation for them.
In an implementation of the first aspect, the method further includes: transmitting a notification message to the coordinator switch, where the notification message is used for notifying about the arrival of a new flow, and the notification message includes an identification of the new flow; and transmitting a done message to the coordinator switch, where the done message is used for indicating the imbalance issue is solved.
In a second aspect, according to an embodiment of the present disclosure, a load balancing method is provided, the method is applied to a coordinator switch, and the method includes: transmitting an approval message to a first switch, where the approval message is used for indicating a suggested modification is approved; and receiving a requested modification message from the first switch, where the requested modification message is used for indicating a second switch to modify an allocated path according to the suggested modification, and the suggested modification is determined according to a local flow allocation table of the first switch.
In this way, when receiving the requested modification message from the coordinator node, the second switch may modify the allocated path according to the suggested modification, the requested modification message is transmitted to the coordinator node and forwarded by the coordinator node to the second switch, and the requested modification message is used for indicating a second switch to modify an allocated path according to the suggested modification, and the suggested modification is determined according to a local flow allocation table of the first switch. Since the suggested modification is determined according to a local flow allocation table of the first switch, the load balancing is performed by the first switch, that is, the computing power is distributed among the first switch and the second switch, the scalability of the system is improved. Further, the operation of the first switch and the second switch is organized by the coordinator node; the load balancing is guaranteed to converge. Compared with a solution that maintaining a centralized table used for flows allocation (all flows in the network) at a centralized node and the flows allocation is performed by the centralized node in the related art, the proposed method can alleviate the strain on a centralized node, and improve the scalability and performance of the system.
In an implementation of the second aspect, the method further includes: transmitting a forwarded message to the second switch, where the forwarded message is used for indicating the second switch to modify the allocated path according to the suggested modification.
In an implementation of the second aspect, the requested modification message includes the suggested modification, and the suggested modification includes an identification of a colliding flow.
In an implementation of the second aspect, the suggested modification further includes an identification of a suggest switch for the colliding flow.
In an implementation of the second aspect, the local flow allocation table includes at least two allocation tables.
In an implementation of the second aspect, the at least two allocation tables includes a sending table and a receiving table, the sending table includes information indicating an allocated path when the first switch is a source switch, and the receiving table includes information indicating an allocated path when the first switch is a destination switch; and the requested modification message includes an update sending table message, the update sending table message is used for indicating the second switch to modify a local sending table of the second switch; or, the requested modification message includes an update receiving table message, the update receiving table message is used for indicating the second switch to modify a local receiving table of the second switch.
In an implementation of the second aspect, the method further includes: transmitting a request message to the first switch, where the request message is used for inquiring about an imbalance issue; and receiving a response message from the first switch, where the response message is used for indicating the imbalance issue, and the response message includes the suggested modification.
In an implementation of the second aspect, the response message further includes the number of a sent flow and the number of a received flow, the method further includes: determining whether there is a discrepancy between the number of the sent flow and the number of the received flow by the coordinator node; the method further includes: selecting the imbalance issue from a plurality of imbalance issues included in a plurality of response messages.
In an implementation of the second aspect, the colliding flow includes an elephant flow, and the suggested modification is determined by utilizing a loop algorithm.
In a third aspect, according to an embodiment of the present disclosure, a load balancing method is provided, the method may include: receiving a requested modification message from a coordinator node, where the requested modification message is used for indicating the second switch to modify an allocated path according to a suggested modification, and the suggested modification is determined according to a local flow allocation table of a first switch; and modifying the allocated path according to the suggested modification.
In this way, when receiving the requested modification message from the coordinator node, the second switch may modify the allocated path according to the suggested modification, the requested modification message is transmitted to the coordinator node and forwarded by the coordinator node to the second switch, and the requested modification message is used for indicating a second switch to modify an allocated path according to the suggested modification, and the suggested modification is determined according to a local flow allocation table of the first switch. Since the suggested modification is determined according to a local flow allocation table of the first switch, the load balancing is performed by the first switch, that is, the computing power is distributed among the first switch and the second switch, the scalability of the system is improved. Further, the operation of the first switch and the second switch is organized by the coordinator node; the load balancing is guaranteed to converge. Compared with a solution that maintaining a centralized table used for flows allocation (all flows in the network) at a centralized node and the flows allocation is performed by the centralized node in the related art, the proposed method can alleviate the strain on a centralized node, and improve the scalability and performance of the system.
In an implementation of the third aspect, the suggested modification includes an identification of a colliding flow; the modifying the allocated path according to the suggested modification includes: modifying an egress port of an allocated path of the colliding flow.
In an implementation of the third aspect, the suggested modification further includes an identification of a suggest switch for the colliding flow; the modifying the allocated path according to the suggested modification includes: modifying an egress port of an allocated path of the colliding flow based on the identification of a suggest switch for the colliding flow;
In an implementation of the third aspect, modifying an egress port of an allocated path of the colliding flow based on the identification of a suggest switch for the colliding flow includes: replacing an original egress port of the allocated path of the colliding flow with a suggest egress port corresponding to the suggest switch.
In an implementation of the third aspect, the local flow allocation table includes at least two allocation tables.
In an implementation of the third aspect, the at least two allocation tables includes a sending table and a receiving table, the sending table includes information indicating an allocated path when the first switch is a source switch, and the receiving table includes information indicating an allocated path when the first switch is a destination switch; and the requested modification message includes an update sending table message, the update sending table message is used for indicating the second switch to modify a local sending table of the second switch; or, the requested modification message includes an update receiving table message, the update receiving table message is used for indicating the second switch to modify a local receiving table of the second switch.
In an implementation of the third aspect, the colliding flow includes an elephant flow and the suggested modification is determined by utilizing a loop algorithm.
In a fourth aspect, according to an embodiment of the present disclosure, an apparatus is provided. The apparatus may include various modules configured to execute the method according to the first aspect or any implementations of the first aspect.
In a fifth aspect, according to an implementation of the present disclosure, another apparatus is provided. The apparatus may include various modules configured to execute the method according to the second aspect or any implementations of the second aspect.
In a sixth aspect, according to an implementation of the present disclosure, another apparatus is provided. The apparatus may include various modules configured to execute the method according to the third aspect or any implementations of the third aspect.
In a seventh aspect, according to an implementation of the present disclosure, an apparatus is provided. The apparatus may include at least one processor, where the at least one processor is configured to execute the method according to the first aspect or any implementations of the first aspect.
In an eighth aspect, according to an implementation of the present disclosure, another apparatus is provided. The apparatus may include at least one processor, where the at least one processor is configured to execute the method according to the second aspect or any implementations of the second aspect.
In a ninth aspect, according to an implementation of the present disclosure, an apparatus is provided. The apparatus may include at least one processor, where the at least one processor is configured to execute the method according to the first aspect or any implementations of the third aspect.
In a tenth aspect, according to an implementation of the present disclosure, a communication system is provided. The communication system may include an apparatus according to the fourth aspect or the seventh aspect, an apparatus according to the fifth aspect or the eighth aspect, and an apparatus according to the sixth aspect or the ninth aspect.
In an eleventh aspect, according to an implementation of the present disclosure, a computing device cluster is provided. The computing device cluster may include a processing circuitry for performing the method according to the first aspect or any implementations of the first aspect, the method according to the second aspect or any implementations of the second aspect, or the method according to the third aspect or any implementations of the third aspect.
In a twelfth aspect, according to an implementation of the present disclosure, a computer program product is provided. The computer program product may include computer-executable instructions which, when executed by a processor, cause the processor to execute the method according to the first aspect or any implementations of the first aspect, the method according to the second aspect or any implementations of the second aspect, or the method according to the third aspect or any implementations of the third aspect.
In a thirteenth aspect, according to an implementation of the present disclosure, a computer program is provided. The computer program may include computer-executable instructions which, when executed by a processor, cause the processor to execute the method according to the first aspect or any implementations of the first aspect, the method according to the second aspect or any implementations of the second aspect, or the method according to the third aspect or any implementations of the third aspect.
In a fourteenth aspect, according to an implementation of the present disclosure, a computer-readable storage medium is provided. The computer-readable storage medium may include computer-executable instructions which, when executed by a processor, cause the processor to execute the method according to the first aspect or any implementations of the first aspect, the method according to the second aspect or any implementations of the second aspect, or the method according to the third aspect or any implementations of the third aspect.
In a fifteenth aspect, according to an implementation of the present disclosure, a chip is provided. The chip may include an input/output (I/O) interface and a processor, where the processor is configured to call and run computer-executable instructions stored in a memory, to enable a device, in which the chip is present, to execute the method according to the first aspect or any implementations of the first aspect, the method according to the second aspect or any implementations of the second aspect, or the method according to the third aspect or any implementations of the third aspect.
The accompanying drawings are used to provide a further understanding of the present disclosure, constitute a part of the specification, and are used to explain the present disclosure together with the following specific embodiments, but should not be construed as limiting the present disclosure.
In the following description, reference is made to the accompanying figures, which form part of the present disclosure, and which show, by way of illustration, specific aspects of embodiments of the present disclosure or specific aspects in which embodiments of the present disclosure may be used. It is understood that embodiments of the present disclosure may be used in other aspects and include structural or logical changes not depicted in the figures. The following detailed description, therefore, is not to be taken in a limiting sense, and the scope of the present disclosure is defined by the appended claims.
Before describing the detail contents of the present disclosure, the following terms are explained.
Data Center Network (DCN): it is a network that consists of switches, routers, and other hardware components that work together to provide the connectivity and security needed to run applications and process data.
Load Balancing: in multipath networks, load balancing is a technique that refers to the distribution of data traffic across multiple paths or routes in a network to optimize resource utilization, maximize throughput, and improve overall performance.
Mice flows: they are short-lived data exchange that is generated by applications such as web search and MapReduce. They are often very sensitive to latency and have to obey to a deadline constraint.
Elephant flows: they are flows with bulk data transfer that are generated by applications such as data backup and virtual machine migration. They require large bandwidth in order to achieve an expected high throughput without a strict completion deadline.
Several LB mechanisms have been proposed in the related art. Some approaches split traffic at the switch level using flowlets, which are small bursts of packets within a flow that are separated by brief idle periods, to minimize packet re-ordering, while others assign flowlets to paths based on real-time congestion feedback from remote switches. These distributed mechanisms typically rely on the burstiness of traffic and make LB decisions when flowlets emerge, which can be challenging for non-bursty flows.
Centralized LB mechanisms may use dynamic flow scheduling to manage multi-stage switch topologies or maximize network throughput. These methods may collect flow information to compute paths and balance workloads dynamically. However, they often depend on heuristic algorithms that may not guarantee optimal flow allocation. Other LB solutions address data center uncertainties by detecting path failures and rerouting traffic using transport-level signals and active probing. However, such solutions may require modifications at the end-hosts, making them host-based.
Many neural network models have benefited from distributed machine learning frameworks, the flows in such deployments may have the following characteristics:
-
- 1. the flows are big (elephant flows): typical flow sizes are in the range of hundreds of MBs to few GBs;
- 2. low entropy of elephant flows: when compared with mice flows, there is a relatively small number of elephant flows between specific (source (src), destination (dst)) pairs. In other words, the number of elephant flows is low that have few flows per path. This causes low opportunity for stochastic load balancing techniques to distribute traffic efficiently;
- 3. low to no chance for flowlets formation: the gap between consecutive packets of the elephant flows does not change significantly. Therefore, the probability of flowlet formation for an elephant flow is low. Consequently, even if a better path is available, with a flowlet based LB scheme, the elephant flow will not be assigned a new path due to the absence of flowlet formation;
- 4. strong synchronization: all elephant flows start synchronously together within a very short duration of time. Hence, congestion-based LB schemes may end up allocating multiple flows simultaneously to the same uncongested path which will lead to them colliding. Therefore, they will need to be re-routed again to resolve the collision;
- 5. strong regularity: the elephant flows communication pattern exhibits a repetitive behavior, i.e. the same (src, dst) pairs communicate with each other over and over multiple times. Such property can be useful in the sense that it will not be necessary to re-run the LB mechanism again for a flow that appeared before.
The LB solutions in the related art did not take the aforementioned characteristics into their consideration. Hence, a new LB mechanism is needed.
In the present disclosure, an in-network distributed coordinated load balancing (DCLB) scheme to cater to the new characteristics of DML traffic is introduced. In the proposed DCLB scheme, all switch nodes collectively run the Looping algorithm, for optimally allocating the DML flows, by exchanging update messages with each other. However, and due to the distributed nature of the algorithm, two different switches may take corrective actions at the same time which may lead to another problem somewhere else. To guarantee the convergence of this distributed approach, a coordinator is needed to provide light weight coordination. In other words, the role of the coordinator is just to pass the update messages between different switches and to guarantee that only one switch is taking one action at a time. Compared to the centralized scheme in the related art, the proposed DCLB scheme saves memory resources. Moreover, the scalability for bigger topologies of the proposed DCLB scheme is shown in the simulation result, where it is able to provide comparable performance to the centralized scheme with a slight degradation.
For systems with big topologies, the flows in these systems are mostly elephant ones with low entropy that are all launched simultaneously within a very short duration of time and that form a permutation (both shuffled and non-shuffled). In order to provide a scalable in-network LB solution that can work with these systems with big topologies, the present disclosure provides an in-network distributed coordinated architecture that does not rely on a centralized node and that can perform load balancing for DML traffic using the Looping algorithm for elephant flows. This distributed coordinated architecture redistributes the computing power across multiple nodes (for example, top-of-rack (ToR) switches) and alleviates the strain on a centralized node. In order to guarantee the convergence of the proposed method, a coordinator node which organizes the ToR switches' operation is provided, the coordinator node restricts the number of action takers, as well as, the number of actions done during the operation of the scheme. This avoids any oscillations or infinite loops in the proposed method. Further, in order to minimize the amount of resources needed at network nodes, the proposed method proposes to replace the centralized table used for flows allocation (all flows in the network) at a centralized node in the related art with at least two smaller tables at the ToR switches (that carry the flows information relevant only to each ToR switch). Furthermore, in order to enable the network nodes to collectively run the LB algorithm with little to no guidance from another node, the proposed method provide an algorithm to define the sequence of actions that could be taken by the network nodes to collectively implement the Looping algorithm for LB.
In the present disclosure, an in-network distributed LB mechanism that satisfies the new requirements of distributed machine learning traffic is provided. The proposed LB scheme differentiates between mice and elephant flows. It is worth mentioning that, the penalty of inaccuracy of stochastic LB methods for mice flows and elephant flows are completely different. Since there is large number of small flows at any given time, the share of each mice flow is very small so even with some imbalance of small flows, there will not be significant degradation in system throughput. However, even collision of small number of elephant flows could cause significant throughput degradation. Therefore, the proposed LB scheme proposes to differentiate between mice and elephant flows and treat them differently as follows: deploying Stochastic, possibly flowlet-based, approaches for mice flows, and deploying deterministic flow-based path scheduling approaches for elephant flows. More specifically, the Looping algorithm is employed for the elephant flows. The Looping algorithm is a deterministic and centralized method that solves the allocation problem and is able to find an optimal allocation for elephant flows that maximizes system utilization and avoids collision between the flows. However, rather than relying on a centralized coordinator for running the Looping algorithm and maintaining a table for all flows assignments, called the coordinator allocation table, the proposed LB scheme follows a different approach that each switch maintains a portion of the coordinator allocation table and they all run the Looping algorithm collectively by exchanging update messages with each other. The update message, from one switch to another, instructs a target switch to change the allocated path for a flow to mitigate imbalances. However, due to the distributed nature of the algorithm, two different switches may take corrective actions at the same time to resolve an imbalance which may lead to another imbalance situation somewhere else. To guarantee the convergence of this distributed approach and to prevent the aforementioned situation from happening, a coordinator is needed to provide light weight coordination. In other words, the role of the coordinator is just to pass the update messages between different switches and to guarantee that only one switch is taking one action at a time.
At S101, the first switch receives an approval message from the coordinator node.
The approval message is used for indicating a suggested modification is approved by the coordinator node.
At S102, the coordinator node receives a requested modification message from the first switch.
The requested modification message is used for indicating a second switch to modify an allocated path according to the suggested modification, and the suggested modification is determined according to a local flow allocation table of the first switch. The local flow allocation table may be a flow allocation table locally stored in each first switch. The requested modification message may include the suggested modification.
It should be understood that the actual execution sequence of the steps in
At S103, the coordinator node transmits the requested modification message to the second switch. The requested modification message may include the suggested modification. Corresponding to S102, when the requested modification message is a response message, the requested modification message sent by the coordinator node to the second switch may be a forwarded message (e.g., a “forwarded poll response” message), and when the requested modification message is an updated message, the requested modification message sent by the coordinator node to the second switch may be an update sending table message or an update receiving table message.
At S104, the second switch modifies the allocated path according to the suggested modification.
In this embodiment, when receiving the requested modification message from the coordinator node, the second switch may modify the allocated path according to the suggested modification, the requested modification message is transmitted to the coordinator node and forwarded by the coordinator node to the second switch, and the requested modification message is used for indicating a second switch to modify an allocated path according to the suggested modification, and the suggested modification is determined according to a local flow allocation table of the first switch. Since the suggested modification is determined according to a local flow allocation table of the first switch, the load balancing is performed by the first switch, that is, the computing power is distributed among the first switch and the second switch, the scalability of the system is improved. Further, the operation of the first switch and the second switch is organized by the coordinator node; the load balancing is guaranteed to converge. Compared with a solution that maintaining a centralized table used for flows allocation (all flows in the network) at a centralized node and the flows allocation is performed by the centralized node in the related art, the proposed method can alleviate the strain on a centralized node, and improve the scalability and performance of the system.
In an implementation, the requested modification message includes the suggested modification, and the suggested modification includes an identification of a colliding flow. For a system with two spine switches, the suggested modification may only need to include the identification of a colliding flow. That is, when there are two spine switches in the system, after receiving the requested modification message with the identification of a colliding flow, the second switch may determine that an identification of the spine switch originally allocated to the colliding flow should be modified to another spine switch in the system. In this implementation, the requested modification message may include the identification of a colliding flow. S103 may specifically include the second switch modifies an egress port of an allocated path of the colliding flow.
In an implementation, the suggested modification further includes an identification of a suggest switch for the colliding flow. For a system with more than two spine switches, the suggested modification may include both the identification of a colliding flow and an identification of a suggest switch for the colliding flow. After receiving the requested modification message with the identification of a colliding flow, the second switch may determine that an identification of the spine switch originally allocated to the colliding flow should be modified to the suggest spine switch in the system. In this implementation, the requested modification message may include the identification of a colliding flow and the identification of a suggest switch for the colliding flow, S103 may specifically include the second switch modifies an egress port of an allocated path of the colliding flow based on the identification of a suggest switch for the colliding flow. Further, the modifying an egress port of an allocated path of the colliding flow based on the identification of a suggest switch for the colliding flow may include: replacing an original egress port of the allocated path of the colliding flow with a suggest egress port corresponding to the suggest switch.
Through the identification of a colliding flow and the identification of a suggest switch for the colliding flow indicated by the first switch through the requested modification message, the second switch modifies the allocated path according to the suggested modification, the first switch and the second switch can collectively implement the load balancing algorithm and resolve the flow collision.
In an implementation, the local flow allocation table includes at least two allocation tables. Instead of maintaining the big local flow allocation table at each first switch or at each second switch, at least two small allocation tables can be maintained at each first switch or at each second switch, the amount of memory required at the switches to implement the load balancing algorithm is minimized and the scalability of the system is further improved.
In an implementation, the at least two allocation tables includes a sending table and a receiving table, the sending table includes information indicating an allocated path when the first switch is a source switch, and the receiving table includes information indicating an allocated path when the first switch is a destination switch; and the requested modification message includes an update sending table message, the update sending table message is used for indicating the second switch to modify a local sending table of the second switch; or, the requested modification message includes an update receiving table message, the update receiving table message is used for indicating the second switch to modify a local receiving table of the second switch. There is a source switch and a destination switch for each flow in the local flow allocation table, the local flow allocation table can be divided into a sending table and a receiving table, correspondingly, the requested modification message may include an update sending table message or an update receiving table message. In this implementation, the complexity of the solution is reduced, the amount of memory required at the switches to implement the load balancing algorithm is minimized, and the scalability of the system is further improved. In some implementations, the information in the sending table at a src switch indicates, for a certain flow to a certain dst switch, which spine switch the flow is sent to, and the information in the receiving table at a dst switch indicates, for a certain flow from a certain src switch, which spine switch the flow is coming from.
In an implementation, the colliding flow includes an elephant flow and the suggested modification is determined by utilizing a loop algorithm, the method further includes: detecting the elephant flow according to a threshold. Since there is large number of mice flows (small flows) at any given time, the share of each mice flow is very small so even with some imbalance of small flows; there will not be significant degradation in system throughput. However, even collision of small number of elephant flows could cause significant throughput degradation. Therefore, the load balancing method in this implementation is applied to the elephant flows, and Stochastic, possibly flowlet-based, approaches is applied to the mice flows, this implementation choose to differentiate between mice and elephant flows and treat them differently. The load balancing method in this implementation is able to load balance the elephant flows which have low entropy and that are all launched simultaneously within a very short duration of time. Since these DML flows form a permutation (both shuffled and non-shuffled), the Looping algorithm provides an optimal allocation for them.
At S201, the first switch and/or the second switch detects the elephant flow according to a threshold.
At S202, the first switch and/or the second switch transmits a notification message (e.g., a “new flow” update message) to the coordinator node.
For example, for any flow “f”, a ToR switch maintains a counter to count the number of bytes sent so far. So long as flow “f” is small, it is forwarded using any stochastic LB scheme. Once flow “f” qualifies as an elephant flow, because its size became ≥some threshold “eleph_th”, the src ToR switch may send a notification message to the coordinator node to alert it about the arrival of a new elephant flow.
At S203, the coordinator node transmits a request message (e.g., a “poll request” message) to the first switch and/or the second switch. The request message is used for inquiring about an imbalance issue. In some cases, the coordinator node may broadcast the request message to all ToR switches in the system, and in some implementations, the coordinator node may transmit a request message to one or more ToR switches among all ToR switches in the system. When the notification message sent from the first switch and/or the second switch is received, after some waiting period, the coordinator node initiates the distributed LB operation by transmitting a request message to the first switch and/or the second switch.
At S204, the first switch and/or the second switch identifies an imbalance issue. There may be two types of imbalance issues: local imbalance and remote imbalance at the TOR switches. The imbalance issue may be detected based on a defined metric.
At S205, the first switch and/or the second switch transmits a response message (e.g., a “Poll response” message) to the coordinator node. The response message includes the suggested modification. In some cases, the response message further includes the number of a sent flow and the number of a received flow. Some of the responses indicate imbalance issues, while the other responses indicate no imbalance issues. In some cases, for ToR switches with imbalances, it carries the ID of the flow suffering from the imbalance and the suggested spine switch ID the flow should be forwarded through. For ToR switches with no imbalances, it carries nothing. In both cases, each ToR switch also reports the number of the currently sent and received flows.
At S206, the coordinator node determines whether there is a discrepancy between the number of the sent flow and the number of the received flow by the coordinator node. To make sure some steady state where all ToR switches have seen all the flows in the system (i.e., for a flow, its source ToR switch and its destination ToR switch have both seen it) is reached, the coordinator node checks the received responses (e.g., “Poll response” messages) from all TOR switches and compares the total number of sent and received flows reported by all ToR switches. If they are equal, i.e. there is no discrepancy between the total number of sent and received flows. If there are any discrepancies between the total numbers of sent and received flows reported by all ToR switches, the coordinator node decides that polling the switches for imbalances needs to be postponed.
At S207, the coordinator node selects the imbalance issue from a plurality of imbalance issues included in a plurality of response messages. The coordinator node may pick one of the imbalance issues reported by one of the ToR switches at random, or the coordinator node may pick one of the imbalances reported by one of the ToR switches according to the priorities of the ToR switches.
At S208, the coordinator node transmits an approval message (a “poll response approved” message) to the first switch when the coordinator node has selected the imbalance issue reported by the first switch (i.e., a reporting ToR switch). The approval message is used for indicating a suggested modification is approved. For example, the approval message is used for approving this imbalance issue reported by the first switch so that the reporting ToR can fix this entry in its Receiving table for a flow “f”.
At S209, the coordinator node transmits a forwarded message (e.g., a “Forwarded poll response” message) to the second switch. The forwarded message is used for indicating the second switch to modify the allocated path according to the suggested modification. The forwarded message includes the suggested modification, and the suggested modification includes an identification of a colliding flow and an identification of a suggest switch for the colliding flow.
At S210, the second switch modifies the allocated path according to the suggested modification.
At S211, the first switch and/or the second switch transmits a done message to the coordinator node. The done message is used for indicating the imbalance issue is solved. Once, no more issues exist, the first switch and/or the second switch transmits a “done” message to the coordinator node indicating that there are no more imbalance issues. After modifying the allocated path according to the suggested modification, if the second switch doesn't have any more imbalance issues, the second switch would send a “done message” in S211 followed by the coordinator node sending another round of request message (e.g., a “poll request” message) in S203. Otherwise, the second switch should send another “update message” to the coordinator node. The “done message” in S211 is only sent when a switch does not have any more imbalance issues.
In this implementation, the sequence of actions that could be taken by the network nodes (the first switch, the coordinator node, and the second switch) to collectively implement the Looping algorithm for LB is defined, the coordinator node may organize the operations of the first switch and the second switch. The coordinator node may restrict the number of action takers, as well as, the number of actions done during the operation of the proposed load balancing method, which avoids any oscillations or infinite loops in the distributed load balancing method.
In some implementations, the messages exchanged in
In some implementations, the proposed network-based DCLB framework can work with multipaths 2-tier leaf-spine data center networks with traffic that is a mixture of both mice and elephant flows. In some implementations, the DCLB mechanism is for elephant flows only.
In this implementation, ToR switches may maintain two forwarding tables, a long forwarding table for elephant flows and a short forwarding table for mice flows (note that long and short refer to the size of the flows and not to the table sizes). It should be noted that there may be only one forwarding table in some implementations. In
If the flow “f” has not met the criterion for classification as an elephant flow, the ToR switch moves on to decision S505 to check the short flow table. The short flow table is used for forwarding information related to mice flows, which are smaller, short-duration flows. The short flow table may also be part of the forwarding table. If an entry for flow “f” is found in the short flow table, the data flow is forwarded using the corresponding port, as indicated by S507.
If the flow “f” is not found in the short flow table, indicating that it is a new flow, the ToR switch proceeds to S506. Here, the ToR switch runs a stochastic load balancing (LB) scheme, such as ECMP or HULA, to determine the optimal port for forwarding the mice flow. After determining the port, the ToR switch adds an entry for flow “f” in the short flow table, ensuring that subsequent packets belonging to this flow are forwarded consistently through the same port.
The sequence of operations depicted in
However, it should be understood that the determination of whether a flow is classified as a mice flow or an elephant flow is optional. This classification may be unnecessary in scenarios where the flow type is predetermined, such as when all flows are known to be elephant flows. In such cases, the system can bypass the classification step and proceed directly with the appropriate load balancing and routing mechanisms designed for elephant flows.
For the new flow arrival process, based on step 1-step 4 of the new flow arrival process shown in
The main process can be explained by the following steps. It is assumed that the topology is a 2-tier Leaf Spine one. The main process can include the following steps. S601, the coordinator sets the “time” variable to the current system time.
S602, the coordinator checks 3 conditions: (time-arrival_time≥wait_time), (poll_on=true) and that (poll_sent=false). In the first condition, the “wait_time” is a time that depends on the network topology and is simply a time the coordinator has to wait to guarantee that the packets of the flow reported by the src ToR have already arrived at the dst ToR. In a 2-tier Leaf Spine topology, the “wait_time” can be set as twice the link delay between the ToR switches and the coordinator. The “arrival_time” is the last arrival time of a flow that has been reported to the coordinator. The second condition indicates that polling has been enabled at the coordinator because the traffic conditions have changed in the network and LB decisions may be needed. So, polling the ToR switches to inquire about possible imbalances is needed. The last condition indicates that no poll messages have been sent yet. If any of the conditions is not satisfied, the Coordinator directly goes back to S601. Otherwise, if all the conditions are satisfied, it still goes back to S601, but initiates S603 as well. Note that S601 and S602 should be running indefinitely (i.e. an infinite loop).
S603, the coordinator sends “Poll request” messages to all ToR switches inquiring about possible imbalances. Then the coordinator sets “poll_sent” flag to “true” to prevent from sending any more poll messages.
S604, the coordinator checks the received responses (“Poll response” messages) from all ToR switches and compares the total number of sent and received flows reported by all TOR switches. If they are equal, i.e. there is no discrepancy between the total number of sent and received flows, it goes to S606. Otherwise, it goes to S605.
S605, if there are any discrepancies between the total numbers of sent and received flows reported by all ToR switches, the coordinator decides that polling the switches for imbalances needs to be postponed. Hence, it sets “poll_sent” to “false” and “arrival_time” to the current time. This will cause the infinite loop in S601 and S602 to initiate another round of “Poll request” messages to be sent by the Coordinator only after a “wait_time” duration has elapsed. The point is that the coordinator needs to make sure that the network has reached some steady state condition where all leaf (ToR) switches have seen the same flows, i.e., for any flow “f”, its src and dst ToR have already seen it.
S606, if there are no discrepancies, the coordinator checks the “Poll response” messages received from all ToR switches and looks for any reported imbalances (more information about imbalances at the TOR switches will be discussed later). If there are reported imbalances, it goes to S608. Otherwise, it goes to S607.
S607, if there are no imbalances reported by any of the ToR switches, the coordinator determines that all flows are balanced. So, it sets “poll_on” to “false” and “polls_sent” to “false”.
S608, the coordinator picks one of the reported imbalances by one of the TOR switches (note that, a reported imbalance in a “Poll response” message sent by a ToR includes a colliding flow and a suggested fix, for example forwarding the flow through another spine switch for that flow to resolve the imbalance). It then sends a “Poll response approved” message to the reporting ToR switch. The objective is to inform the reporting ToR switch that its suggested fix for the colliding flow has been approved. Finally, it forwards the imbalance problem via a “Forwarded poll response” message to the target ToR switch. The target ToR switch could be figured out from the target server node which is directly connected to it.
S609, the coordinator keeps on receiving and forwarding the “Update Sending table” and “Update Receiving table” messages between the ToR switches. Those update messages carry information about a colliding flow and an alternate spine switch that the colliding flow should be forwarded to, to resolve a collision (imbalance problem).
S610, once any of the received messages by the coordinator from any of the TOR switches is a “Done” message (indicating that the reporting ToR switch has no more imbalances to report), the coordinator goes back to S603 and sends another round of “Poll request” messages. The coordinator needs to make sure that there no more imbalances remaining at any of the ToR switches. Otherwise, it goes back to S609.
It should be noted that there is a possibility that new additional flows may arrive during S609 (i.e. during the exchange of update messages between the TOR switches, where they are collectively running the Looping algorithm). However, any new flows that arrive are automatically added to the “Sending” and “Receiving” tables of the ToR switches (those 2 tables will be discussed later). Any imbalance, those new flows may cause, will be automatically handled by the frequent poll requests sent by the coordinator in S603. Changing paths of a flow may result into the out of order problem. However, it should be noted that the Looping algorithm is applied only to elephant flows that can tolerate a level of out of order as we have observed in the simulations. The gain of avoiding collision is much higher than the impact of out of order.
-
- 1. Flow f1: T1->S1->T2, Flow f2: T1->S2->T3, Flow f3: T4->S1->T3, Flow f4: T4->S2->T2;
- 2. Flow f5: T2->S1->T1, Flow f6: T3->S1->T1, Flow f7: T3->S2->T4, Flow f8: T2->S2->T4.
This allocation suffers from the following collisions. Flows f5 and f6 are colliding on the links between S1 and T1. Also, flows f7 and f8 are colliding on the links between S2 and T4.
A centralized node with the flows allocation table in the related art, running the Looping algorithm, can fix this collision by routing flow f6 through spine S2 and flow f7 through spine S1. The Looping algorithm guarantees no collision takes place by restricting a certain spine switch to appear only once in any row or column. However, the centralized node needs to maintain a flows allocation table for all flows in the network. The table grows bigger quickly for larger topologies and the centralized solution in the related art suffers from scalability issues.
By further inspection of the flows allocation table, each row shows flows that are originating from a certain src ToR. For example, the row of T2 has 2 entries:
-
- 1. (f5: S1) which is for flow f5 from src ToR T2 to dst ToR T1, routed through spine S1;
- 2. (f8: S2) for flow f8 from src ToR T2 to dst ToR T4, routed through spine S2.
Furthermore, each column shows flows that are destined to a certain dst ToR. For example, the column of dst ToR T3 has 2 entries:
-
- 1. (f2: S2) which is for flow f2 from src ToR T1 to dst ToR T3, routed via spine S2;
- 2. (f3: S1) which is for flow f3 from src ToR T4 to dst ToR T3, routed via spine S1.
To distribute the Looping algorithm logic among several nodes (instead of a centralized node), the following approach is proposed. Each ToR switch can maintain 2 tables: a “Sending table” and a “Receiving table”, that is, the big flow allocation table is replaced with two smaller ones.
The memory requirements for the centralized load balancing method and the load balancing method of the present disclosure are discussed in the following.
One of the main benefits of the proposed distributed approach is its ability to scale with bigger topologies, contrary to the centralized approach in the related art. For the centralized node in the related art to implement the Looping algorithm, a flows allocation table will be needed as was shown in
To get typical values for the amount of memory required to maintain the tables for the centralized solution in the related art and the proposed distributed solution, assuming AI work load, where there is only one flow per path. Assuming a flow ID will need 4 bytes (32 bits) to be stored and the spine switch ID will need 1 byte (8 bits) to be stored. For a 2-tier Leaf-Spine network, the parameter K is used to denote the port density (radix) of the switch. Each ToR switch has K/2 server nodes connected.
For both the centralized solution in the related art and the proposed distributed solution, each entry in the flows allocation table and the Sending and Receiving tables can carry up to K/2 number of flows between an scr ToR switch and a dst ToR switch (referred to in the formulas below by Num flows per ToR pair).
For the centralized solution in the related art, the following formula gives the amount of memory needed for the flows allocation table.
As for the proposed distributed approach, the following formula is used to calculate the amount of memory needed for the sending and receiving tables.
where 2 in the above formula is to account for the sending and the receiving tables.
Using the above 2 formulas, Table 1 gives the amount of memory required for both approaches.
From Table 1, the amount of memory savings resulting from employing the distributed approach is clear. From Table 1, the amount of memory needed for the centralized approach is O (K3). On the other hand, the amount of memory needed for the distributed approach is O (K2).
There are two types of imbalance: local imbalance and remote imbalance. The two types of imbalance can be identified from the two tables: “Local” and “Remote” imbalances. It should be noted that the terms “Local” and “Remote” refer to the place where the action can be taken to resolve the imbalance problem and not where the imbalance was detected.
The local imbalance can be identified from the sending table and happens when a src ToR is assigning multiple flows to the same egress port (i.e., towards the same spine switch) while leaving other egress ports unallocated or with fewer allocated flows. This local imbalance can be easily fixed locally by a src ToR by evenly distributing the flows among its egress ports. Some simple strategies for evenly distributing the flows among the switch's egress ports include, but are not restricted to:
-
- 1. Round robin approach, where the ToR switch maintains a counter for the next egress port to use. The counter gets incremented with the arrival of each new flow;
- 2. Assign each new flow to the egress port with the least number of flows (the least used egress port).
In some embodiments, it will be assumed that all ToR switches distribute their flows evenly among their egress ports and do not suffer from any local imbalances.
The remote imbalance, on the other hand, can be identified from the receiving table. It happens when a dst ToR switch is receiving multiple flows from the same ingress port (i.e., from the same spine switch) while other ingress ports (connected to other spines) are left empty or with fewer number of flows. This type of imbalance cannot be fixed locally and needs collaboration with the remote src ToR switch. More specifically, the dst ToR switch, upon detecting the imbalance from the receiving table, can send a request to the src ToR switch to change the allocation of the flow to resolve the issue. After receiving the request from the dst ToR switch, a src ToR switch can switch the sent flow out of a different egress port.
The previous discussion about the types of imbalance assumed artificial intelligence (AI) or DML workloads, where the number of flows is limited to one flow per path or in other words, each server node is only sending one flow. Hence, imbalance can be easily identified at a src ToR switch, when more than one flow is assigned to an egress port (via a certain spine switch), or at a dst ToR switch, when more than one flow is coming through an ingress port (via a certain spine switch). In a more general case with multiple number of flows per path, a more general metric to identify imbalance can be defined as follows: assume a src ToR switch keeps track of the number of transmitted flows for each egress port, or a dst ToR switch keeps track of the number of received flows for each ingress port. Let
denote the set of egress (or ingress) ports. Let Npi denote the number of flows sent (received) from an egress (ingress) port pi. Let the current maximum number of flows on a port be Npi,max and the current minimum number of flows on a port be Npj,min. The condition for imbalance can be defined as Npi,max−Npi,min>Nth, where Nth is the maximum allowable difference between the number of flows on 2 ports. For example, setting Nth=0 means that imbalance will seize to exist only when Npi,max=Npi,min, i.e. when the number of flows on all ports is equal.
The ToR switches can collectively resolve the flow collisions shown in
-
- 1) All TOR switches receive the “Poll request” messages from the coordinator inquiring about any imbalances.
- 2) All ToR switches inspect their receiving tables (it is assumed that none of the src ToR switches suffers from local imbalances, which is accomplished by evenly allocating the flows to the egress ports).
- 3) ToR switches T1 and T4 send “Poll response” messages to the coordinator informing it about detected imbalances. ToR switches T2 and T3, on the other hand, send “Poll response” messages reporting that there are no problems.
- 4) The format of the “Poll response” messages sent by the ToR switches T1 and T4 is as follows. T1 reports that the src ToR switch T3 should switch flow f6 to spine switch S2 (it can, alternatively, request that src ToR switch T2 switch flow f5 to spine switch S2). On the other hand, ToR switch T4 reports that src ToR switch T3 should switch flow f7 to spine switch S1. Both “Poll response” messages sent by the ToR switches T1 and T4 request to perform a change in the Sending tables of their respective src ToR switches.
- 5) Upon reception of the 2 reported problems in the “Poll response” messages from the 2 ToR switches T1 and T4, the coordinator only chooses one of them at random. Assume the coordinator chose the problem reported by T1. It sends dst ToR switch T1 a “Poll response approved” message stating that the request has been approved so that T1 can adjust the entry in its Receiving table for flow f6 to S2 (as shown in
FIG. 9A ). Then, the coordinator forwards the reported problem to src ToR switch T3 via a “Forwarded poll response” message. - 6) The src ToR switch T3 assigns flow f6 to spine S2 upon receiving the “Forwarded poll response” message (this message has the same effect of an “Update sending table” message) from dst ToR switch T1 (shown in
FIG. 9B . However, src ToR switch T3 is already sending flow f7 to spine S2. Hence, to avoid local imbalance, it changes flow f7 assignment to spine switch S1 and sends an “Update receiving table” message to dst ToR switch T4 (as shown inFIG. 9B ). - 7) The coordinator forwards the “Update receiving table” message to dst ToR switch T4.
8) Upon reception of the “Update receiving table” message, the dst ToR switch T4 changes flow f7 assignment to spine switch S1 (as shown in
It should be understood that the “Forwarded poll response” message, forwarded by the coordinator to a src ToR switch, which indicates an imbalance problem and calls for a modification in one of the entries in the Sending Table of the respective src ToR switch, has the same functionality as an “Update sending table” message. The only difference between the 2 messages is that the “Forwarded poll response” is the forwarded version of a “Poll response” message, sent in response to “Poll request” message.
Although the LB algorithm is collectively executed by the ToR switches, a coordinator is still needed to orchestrate the operation of the TOR switches that are collectively running the Looping algorithm, hence the name of the proposed solution can be referred to as distributed coordinated LB. This is because the following scenario is possible. Imagine the case when multiple dst ToR switches, with remote imbalances, simultaneously send requests to multiple src ToR switches to switch their respective flows to other egress ports. This can fix the reported problems but may create additional problems somewhere else (or the same dst ToR switches may end up with remote imbalances again due to the simultaneous change done by the src ToR switches) and the distributed approach may get stuck in a loop. Hence, a coordinator node is still needed in this approach, but not to solve the Looping algorithm. The role of the coordinator node is to provide some light weight coordination by allowing only one ToR switch to make a change at a time. This is crucial to guarantee the convergence of the distributed algorithm.
The flowchart in
At S1001, upon reception of “Poll response” messages (with or without imbalances reported) from all ToR switches and guaranteeing that there are no discrepancies between the total number of sent and received flows, the coordinator picks one of the imbalances reported by one of the ToR switches at random. Then, it sends a “Poll response approved” message (approving this imbalance report so that the reporting ToR switch can fix this entry in its Receiving table for a flow “f”) to the ToR switch reporting this imbalance (i.e. the dst TOR of flow “f”) and then sends a “Forwarded poll response” message (same function and purpose as an “Update sending table” message) to the src ToR switch (i.e. the src ToR switch of flow “f”).
At S1002, when the src ToR switch receives a “Forwarded poll response” or an “Update sending table” message, it changes the current egress port of flow “f” according to the message to a new egress port “p1”.
At S1003, the src ToR switch checks if this update will result in any local imbalance. If there is no local imbalance, it goes to S1004. Otherwise, a local imbalance may result as follows. For example, the new egress port “p1”, that the current flow “f1” has been moved to, may have already been used by another flow “f2”. Hence flow “f2” needs to be moved to another egress port “p2”. Hence, the src ToR switch will need to go to S1006.
At S1004, since the src ToR switch did not find any local imbalances after updating its Sending table, it sends a “Done” message to the coordinator indicating that it has no further actions to perform.
At S1005, upon reception of the “Done” message, the coordinator, starts another poll round by sending “Poll request” messages to all ToR switches to check for any imbalances.
At S1006, the src ToR switch finds a new egress port “p2” for flow “f2” to fix the resulting local imbalance.
At S1007, the src ToR switch needs to inform the dst ToR switch of flow “f2” about the update for the spine switch used by flow “f2”. Hence, the src ToR switch sends an “Update receiving table” message to the dst ToR switch of flow “f2” to update its receiving table.
At S1008, the coordinator forwards the received “Update receiving table” message to the dst ToR switch of flow “f2”.
At S1009, the dst ToR switch of flow “f2” adjusts its Receiving table according to the received “Update receiving table” message.
At S1010, after updating the Receiving table, the dst ToR switch may end up in one of three cases: a) no imbalance is observed in the receiving table. In this case the dst ToR switch goes to S1011; b) there is another flow “f3” coming through the same spine switch and, consequently, the same ingress port, as flow “f2”; c) Flow “f2” is not colliding with any other flow, but there are other flows, for example “f3” and “f4” that are colliding. For the later cases b) and c), the dst ToR switch will go to S1012. Examples for the three cases a), b), and c) are shown in
At S1011, the dst ToR switch sends a “Done” message to the coordinator indicating that no further actions need to be done by the dst ToR switch. Then goes to S1005.
At S1012, the dst ToR switch finds a new spine switch through which flow “f3” should be received.
At S1013, the dst ToR switch sends an “Update sending table” message to the src TOR switch of flow “f3”.
At S1014, the coordinator forwards the received “Update sending table” message to the src ToR switch of flow “f3”. Then goes to S1002.
An aging mechanism of the present disclosure is needed to determine when an elephant flow is finished. A flow is marked as finished if its sender does not send any packets for a predefined period of time. It should be noted that the connection may be alive but sender does not send packets. In this case, we still consider it as a finished elephant flow.
In the current implementation, a time threshold that is called Flowtimeout (FTO) is considered and perform the following steps at ToR switches:
-
- 1. If the ToR switch does not receive any packet for an elephant flow in the period equal to FTO (it periodically checks the condition for all live elephant flows), it considers the flow as “finished”;
- 2. The ToR switch then proceeds and removes the flow from its “Sending” table (if it is the src ToR switch) or the “Receiving” table (if it is the dst ToR switch).
A memory-based routing mechanism is applied in the load balancing method of the present disclosure. If a flow (from same src to the same dst) has been routed by the DCLB, the same decision can be used when a src ToR switch sees the same flow again. This memorization technique can minimize the number of exchanged messages in the network. For this, a src ToR switch needs to maintain a “Forwarding” table (separate from the “Sending” and “Receiving” tables) that remembers the flows allocation.
Table 2 summarizes all the messages exchanged between the switches in load balancing method of the present disclosure.
The following simulations is presented to assess the performance of the proposed distributed coordinated LB approach (will be simply referred to as “distributed”). Three aspects of the distributed LB approach's performance are assessed: a) its behavior in different test-cases vs the optimal and the centralized CLB approach in the related art; b) how it scales with big topologies; and c) the communication overhead due to the number of exchanged messages between the switches. In all topologies, link bandwidths are assumed to be 100 Gbps and link delays are 600 ns. In all experiments, the “wait_time” parameter is set to 2 μs (≥2×link delays) and the threshold “eleph_th”, to consider a flow as an elephant one, is set to 10 KB.
Performance for Different Test-CasesIn these experiments, the performance of the proposed distributed coordinated Looping-based LB scheme and the performance of the centralized Looping-based LB, i.e. the CLB, and the optimal solution, are compared. In the test-cases, “no-Shuffle” means that all server nodes under one ToR switch are communicating with all server nodes under another ToR switch and in order, i.e. the 1st server node under ToR switch T1 communicates with the 1st server node under ToR switch Tj and the 2nd server node under ToR switch T1 communicates with the 2nd server node under ToR switch Tj and so on. On the other hand, “Shuffle” means that any (src, dst) host pair communicate with each other. Assume a fat-tree network with K=16 (128 server nodes, 16 ToR switches, 8 Spine switches, and 8 server nodes per ToR switch).
Table 3 shows both the absolute bandwidth values in Gbps as well the % relative to the optimal solution. For the no shuffle testcases, the proposed distributed approach can easily achieve performance similar to the optimal solution in the related art because it uses round robin at the src ToR switch which is enough to balance the flows. The shuffle test-cases are the actual challenging ones. The proposed distributed approach still achieves a good performance relative to the centralized approach in the related art. The slight degradation in performance is due to the slower convergence of the proposed distributed approach. All ToR switches need to exchange update messages to resolve all flow collisions and achieve global load balancing. The centralized scheme, on the other hand, enjoys faster convergence due to the global knowledge of the centralized node.
Performance for Different TopologiesIn these experiments, the effect of bigger topologies on the distributed coordinated approach is assessed. As the network, and consequently the number of switches, gets bigger, the switches take longer time to resolve collisions and reach convergence. Four topologies with K=16, 32, 64, and 128 are studied. Table 4 summarizes the simulation results.
From Table 4, it is clear the effect of increasing the topology size on the distributed approach performance. As the topology gets bigger, the achieved throughput, relative to the optimal solution, decreases. This is owing to the increase in the number of switch nodes that need to communicate with each other to resolve collisions. The centralized solution, on the other hand, achieves almost the same performance due the global vision of the centralized node and its fast convergence.
Communication OverheadIn these experiments, the number of exchanged messages between the switch nodes in both the centralized approach in the related art and the proposed distributed LB approaches are observed. Recall that, in the centralized approach in the related art, 3 types of messages are exchanged between the ToR switches and the centralized node which are: 1) Request message (src ToR switch sends it to the centralized node to request a link assignment for a new elephant flow), 2) Response message (the centralized node sends it back to the src ToR switch for allocating the flow to a certain link), and 3) Remove message (src ToR switch sends it to the centralized node when the elephant flow finishes to have the centralized node remove it from its flows allocation table). Both the “tcooo3_allreduce_noshuffle_1pod_alexnet_217m” and “tc0003_allreduce_shuffle_1pod_alexnet_217m” testcases for 4 topology sizes with K=16, 32, 64, and 128 are studied. The results are summarized in Table 5.
For the centralized approach in the related art, the number of exchanged messages slightly increases from the no-shuffle to the shuffle test-cases, because, in all situations, a src ToR switch needs to communicate with the centralized node to get an allocation for the arriving elephant flow. The number of messages slightly increases for the shuffle test-cases due to the re-arrangements (centralized node needs to do revisions to an already allocated elephant flow to accommodate a new one).
For the distributed approach, the number of exchanged messages changes dramatically from the no-shuffle to the shuffle test-cases. In the no-shuffle test-cases, the round robin approach employed by the src ToR switches is able to achieve good load balancing and no flow collisions take place. When the coordinator sends a poll request to all ToR switches, none of them reports about any imbalances and no exchange of messages need to take place. This is not the case for the shuffle test-cases.
Overall, and mainly in the shuffle test-cases (the more general cases), the distributed approach leads to an increase in the number of exchanged messages in the network, when compared to the centralized approach in the related art. For K=16, 32, 64, and 128, the increase is 20%, 39%, 58%, and 74%, respectively.
In embodiments of the present disclosure, an in-network distributed coordinated architecture that does not rely on a centralized node and that can perform load balancing for DML traffic using the Looping algorithm for elephant flows, is presented, the proposed distributed coordinated LB scheme is scalable with large topologies, where the logic of running the Looping algorithm has been distributed among the ToR switches, with light weight coordination by a coordinator. This approach redistributes the computing power across multiple nodes (the ToR switches) and alleviates the strain on a centralized node. This benefit comes at the cost of a small degradation in performance. The presented scheme is able to load balance elephant flows which have low entropy and that are all launched simultaneously within a very short duration of time. Since these DML flows form a permutation (both shuffled and non-shuffled), the Looping algorithm provides an optimal allocation for them. Moreover, the scheme requires no changes at the host server nodes. The functionality of the coordinator node is precisely defined, where it restricts the number of action takers, as well as, the number of actions done during the operation of the scheme, The DCLB scheme is guaranteed to converge to a global balanced state for all the flows. In a proposed method, the flows allocation table, used by the centralized version of the Looping algorithm, is replaced with two tables: the Sending table and the Receiving table, the proposed DCLB scheme is scalable with large topologies and is able to minimize the amount of memory required at the switches to implement the Looping algorithm. An algorithm that specifies the sequence the ToR switches should follow to update their Sending and Receiving tables is proposed, the ToR switches are able to collectively implement the Looping algorithm and resolve all flow collisions without the need for a centralized node.
In an implementation, the requested modification message includes the suggested modification, and the suggested modification includes an identification of a colliding flow.
In an implementation, the suggested modification further includes an identification of a suggest switch for the colliding flow.
In an implementation, the local flow allocation table includes at least two allocation tables.
In an implementation, the at least two allocation tables includes a sending table and a receiving table, the sending table includes information indicating an allocated path when the first switch is a source switch, and the receiving table includes information indicating an allocated path when the first switch is a destination switch; and the requested modification message includes an update sending table message, the update sending table message is used for indicating the second switch to modify a local sending table of the second switch; or, the requested modification message includes an update receiving table message, the update receiving table message is used for indicating the second switch to modify a local receiving table of the second switch.
In an implementation, the receiving module 1201 is further configured to receive a request message from the coordinator node, where the request message is used for inquiring about an imbalance issue; the method further includes a processing module 1203, configured to identify the imbalance issue according to a flow difference threshold; and the transmitting module 1202 is further configured to transmit a response message to the coordinator node, where the response message is used for indicating the imbalance issue, and the response message includes the suggested modification.
In an implementation, the colliding flow includes an elephant flow and the suggested modification is determined by utilizing a loop algorithm, the processing module 1203 is further configured to detect the elephant flow according to a threshold.
In an implementation, the transmitting module 1202 is further configured to transmit a notification message to the coordinator node, where the notification message is used for notifying arrival of a new flow, and the notification message includes an identification of the new flow; and the transmitting module 1202 is further configured to transmit a done message to the coordinator node, where the done message is used for indicating the imbalance issue is solved.
The apparatus 1200 may be the first switch as described in the above method embodiments. It should be understood by a person skilled in the art that, the relevant description of the above modules in the embodiments of the present disclosure may be understood with reference to the relevant description of the method in the embodiments of the present disclosure.
In an implementation, the transmitting module 1301 is further configured to transmit a forwarded message to the second switch, where the forwarded message is used for indicating the second switch to modify the allocated path according to the suggested modification.
In an implementation, the requested modification message includes the suggested modification, and the suggested modification includes an identification of a colliding flow.
In an implementation, the suggested modification further includes an identification of a suggest switch for the colliding flow.
In an implementation, the local flow allocation table includes at least two allocation tables.
In an implementation, the at least two allocation tables includes a sending table and a receiving table, the sending table includes information indicating an allocated path when the first switch is a source switch, and the receiving table includes information indicating an allocated path when the first switch is a destination switch; and the requested modification message includes an update sending table message, the update sending table message is used for indicating the second switch to modify a local sending table of the second switch; or, the requested modification message includes an update receiving table message, the update receiving table message is used for indicating the second switch to modify a local receiving table of the second switch.
In an implementation, the transmitting module 1301 is further configured to transmit a request message to the first switch, where the request message is used for inquiring about an imbalance issue; and the receiving module 1302 is further configured to receive a response message from the first switch, where the response message is used for indicating the imbalance issue, and the response message includes the suggested modification.
In an implementation, the response message further includes the number of a sent flow and the number of a received flow, the apparatus further includes: a processing module 1303, configured to: determine whether there is a discrepancy between the number of the sent flow and the number of the received flow by the coordinator node; and select the imbalance issue from a plurality of imbalance issues included in a plurality of response messages.
In an implementation, the colliding flow includes an elephant flow, and the suggested modification is determined by utilizing a loop algorithm.
The apparatus 1300 may be the coordinator node as described in the above method embodiments. It should be understood by a person skilled in the art that, the relevant description of the above modules in the embodiments of the present disclosure may be understood with reference to the relevant description of the method in the embodiments of the present disclosure.
In an implementation, the suggested modification includes an identification of a colliding flow; the processing module 1402 is specifically configured to modify an egress port of an allocated path of the colliding flow.
In an implementation, the suggested modification further includes an identification of a suggest switch for the colliding flow; the processing module 1402 is specifically configured to modify an egress port of an allocated path of the colliding flow based on the identification of a suggest switch for the colliding flow.
In an implementation, the processing module 1402 is specifically configured to replace an original egress port of the allocated path of the colliding flow with a suggest egress port corresponding to the suggest switch.
In an implementation, the local flow allocation table includes at least two allocation tables.
In an implementation, the at least two allocation tables includes a sending table and a receiving table, the sending table includes information indicating an allocated path when the first switch is a source switch, and the receiving table includes information indicating an allocated path when the first switch is a destination switch; and the requested modification message includes an update sending table message, the update sending table message is used for indicating the second switch to modify a local sending table of the second switch; or, the requested modification message includes an update receiving table message, the update receiving table message is used for indicating the second switch to modify a local receiving table of the second switch.
In an implementation, the colliding flow includes an elephant flow and the suggested modification is determined by utilizing a loop algorithm.
The apparatus 1400 may be the second switch as described in the above method embodiments. It should be understood by a person skilled in the art that, the relevant description of the above modules in the embodiments of the present disclosure may be understood with reference to the relevant description of the method in the embodiments of the present disclosure.
An embodiment of the present disclosure provides an apparatus, the apparatus may include an interface circuit and one or more processors, configured to: receive an approval message from a coordinator node, where the approval message is used for indicating a suggested modification is approved; and transmit a requested modification message to the coordinator node, where the requested modification message is used for indicating a second switch to modify an allocated path according to the suggested modification, and the suggested modification is determined according to a local flow allocation table of the first switch.
An embodiment of the present disclosure provides an apparatus, the apparatus may include an interface circuit and one or more processors, configured to: transmit an approval message to a first switch, where the approval message is used for indicating a suggested modification is approved; and receive a requested modification message from the first switch, where the requested modification message is used for indicating a second switch to modify an allocated path according to the suggested modification, and the suggested modification is determined according to a local flow allocation table of the first switch.
An embodiment of the present disclosure provides an apparatus, the apparatus may include an interface circuit and one or more processors, configured to: receive a requested modification message from a coordinator node, where the requested modification message is used for indicating the second switch to modify an allocated path according to a suggested modification, and the suggested modification is determined according to a local flow allocation table of a first switch; and modify the allocated path according to the suggested modification.
It should be noted that the apparatus in the present disclosure may also be implemented as a device, or one or more components included in a device, such as, a processor or a chip. The device may be user equipment, a terminal, a network device, a network function, a network node, or another network element, which is not limited in the present disclosure.
An embodiment of the present disclosure provides a system, including: the apparatus executing any of the above methods.
An embodiment of the present disclosure provides a chip, including an input/output (I/O) interface and a processor, where the processor is configured to call and run a computer program stored in a memory, to enable a device installing with the chip to perform any of the above methods.
It should be noted that the memory in the systems and the methods described in this specification includes but is not limited to these memories and a memory of any other appropriate type.
An embodiment of the present disclosure provides a computer-readable medium carrying a program code which, when executed by a processor, any of the above methods is performed.
Optionally, the computer-readable medium may be non-transitory, and may be specifically a memory.
In some aspects of the present disclosure, there is provided a computing device cluster, including a processing circuitry for performing any of the above methods.
As shown in
In some possible implementations, some of the instructions for performing the method described in the above embodiments can also be separately held in the memory 1606 of the one or more computing devices 1600 in the cluster of computing devices. In other words, a combination of the one or more computing devices 1600 can jointly execute instructions for performing the method described in the above embodiments.
It is noted that the memories 1606 in the different computing devices 1600 in the cluster of computing devices can store different instructions for performing some of the functions of the computing devices 1600, respectively.
In some possible implementations, one or more computing devices in a cluster of computing devices can be connected via a network. Among other things, the network can be a wide area network or a local area network, etc.
The functions of computing device 1700A illustrated in
An embodiment of the present disclosure provides a computer program product storing instructions which, when executed, cause an apparatus to perform any of the above methods.
An embodiment of the present disclosure provides a computer program storing instructions which, when executed, cause an apparatus to perform any of the above methods.
Note that when the request or the response mentioned above includes multiple different contents for indicating multiple different pieces of information, the multiple contents can be indicated separately in multiple request/response messages or together in a request/response message.
Note that the network elements mentioned in the present disclosure are all logical network elements, which can be implemented as individual devices, or can be implemented as chips or modules that could be integrated into a certain device.
Although the present disclosure describes methods and processes with steps in a certain order, one or more steps of the methods and processes may be omitted or altered as appropriate. One or more steps may take place in an order other than that in which they are described, as appropriate.
In the present disclosure, the terms “a”, “an” and “one” are defined to mean “at least one”, that is, these terms do not exclude a plural number of items, unless stated otherwise.
In the present disclosure, terms such as “substantially”, “generally” and “about”, which modify a value, condition or characteristic of a feature of an example embodiment, should be understood to mean that the value, condition or characteristic is defined within tolerances that are acceptable for the proper operation of this example embodiment for its intended application.
In the present disclosure, unless stated otherwise, the terms “connected” and “coupled”, and derivatives and variants thereof, refer herein to any structural or functional connection or coupling, either direct or indirect, between two or more elements. For example, the connection or coupling between the elements can be acoustical, mechanical, optical, electrical, thermal, logical, or any combinations thereof.
In the present disclosure, expressions such as “match”, “matching” and “matched”, including variants and derivatives thereof, are intended to refer herein to a condition in which two or more elements are either the same or within some predetermined tolerance of each other. That is, these terms are meant to encompass not only “exactly” or “identically” matching the two elements but also “substantially”, “approximately” or “subjectively” matching the two or more elements, as well as providing a higher or best match among a plurality of matching possibilities.
In the present disclosure, the expression “based on” is intended to mean “based at least partly on”, that is, this expression can mean “based solely on” or “based partially on”, and so should not be interpreted in a limited manner. More particularly, the expression “based on” could also be understood as meaning “depending on”, “representative of”, “indicative of”, “associated with” or similar expressions.
In the present disclosure, the terms “system” and “network” may be used interchangeably in embodiments of this application. “At least one” means one or more, and “a plurality of” means two or more. The term “and/or” describes an association relationship of associated objects, and indicates that three relationships may exist. For example, A and/or B may indicate the following three cases: Only A exists, both A and B exist, and only B exists, where A and B may be singular or plural. The character “/” indicates an “or” relationship between associated objects. “At least one of the following items (pieces)” or a similar expression thereof indicates any combination of these items, including a single item (piece) or any combination of a plurality of items (pieces). For example, “at least one of A, B, or C” includes: only A; only B; only C; A and B; A and C; B and C; or A, B, and C, and “at least one of A, B, and C” may also be understood as including: only A; only B; only C; A and B; A and C; B and C; or A, B, and C. In addition, unless otherwise specified, ordinal numbers such as “first” and “second” in embodiments of this application are used to distinguish between a plurality of objects, and are not used to limit a sequence, a time sequence, priorities, or importance of the plurality of objects.
A person skilled in the art should understand that embodiments of this application may be provided as a method, an apparatus (or system), computer-readable storage medium, or a computer program product. Therefore, this application may use a form of a hardware-only embodiment, a software-only embodiment, or an embodiment with a combination of software and hardware. Moreover, this application may use a form of a computer program product that is implemented on one or more computer-usable storage media (including but not limited to a disk memory, an optical memory, and the like) that include computer-usable program code.
This application is described with reference to the flowcharts and/or block diagrams of the method, the device (system), and the computer program product according to this application. It should be understood that computer program instructions may be used to implement each process and/or each block in the flowcharts and/or the block diagrams and a combination of a process and/or a block in the flowcharts and/or the block diagrams. The computer program instructions may be provided for a general-purpose computer, a dedicated computer, an embedded processor, or a processor of another programmable data processing device to generate a machine, so that the instructions executed by the computer or the processor of another programmable data processing device generate an apparatus for implementing a specific function in one or more procedures in the flowcharts and/or in one or more blocks in the block diagrams.
The computer program instructions may alternatively be stored in a computer-readable memory that can indicate a computer or another programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate an artifact that includes an instruction apparatus. The instruction apparatus implements a specific function in one or more procedures in the flowcharts and/or in one or more blocks in the block diagrams.
The computer program instructions may alternatively be loaded onto a computer or another programmable data processing device, so that a series of operations and steps are performed on the computer or another programmable device, so that computer-implemented processing is generated. Therefore, the instructions executed on the computer or another programmable device provides steps for implementing a specific function in one or more procedures in the flowcharts and/or in one or more blocks in the block diagrams.
It is clear that a person skilled in the art can make various modifications and variations to this application without departing from the scope of this application. This application is intended to cover these modifications and variations of this application provided that they fall within the scope of protection defined by the following claims and their equivalent technologies.
Note that the expression “at least one of A or B”, as used herein, is interchangeable with the expression “A and/or B”. It refers to a list in which you may select A or B or both A and B. Similarly, “at least one of A, B, or C”, as used herein, is interchangeable with “A and/or B and/or C” or “A, B, and/or C”. It refers to a list in which you may select: A or B or C, or both A and B, or both A and C, or both B and C, or all of A, B and C. The same principle applies for longer lists having a same format.
Although the present disclosure is described, at least in part, in terms of methods, a person of ordinary skill in the art will understand that the present disclosure is also directed to the various components for performing at least some of the aspects and features of the described methods, be it by way of hardware components, software or any combination of the two. Accordingly, the technical solution of the present disclosure may be embodied in the form of a software product. A suitable software product may be stored in a pre-recorded storage device or other similar non-volatile or non-transitory computer readable medium, including DVDs, CD-ROMs, USB flash disk, a removable hard disk, or other storage media, for example. The software product includes instructions tangibly stored thereon that enable a processing device (e.g., a personal computer, a server, or a network device) to execute examples of the methods disclosed herein. The machine-executable instructions may be in the form of code sequences, configuration information, or other data, which, when executed, cause a machine (e.g., a processor or other processing device) to perform steps in a method according to examples of the present disclosure.
The present disclosure may be embodied in other specific forms without departing from the subject matter of the claims. The described example embodiments are to be considered in all respects as being only illustrative and not restrictive. Selected features from one or more of the above-described embodiments may be combined to create alternative embodiments not explicitly described, features suitable for such combinations being understood within the scope of this disclosure.
All values and sub-ranges within disclosed ranges are also disclosed. Also, although the systems, devices and processes disclosed and shown herein may include a specific number of elements/components, the systems, devices and assemblies could be modified to include additional or fewer of such elements/components. For example, although any of the elements/components disclosed may be referenced as being singular, the embodiments disclosed herein could be modified to include a plurality of such elements/components. The subject matter described herein intends to cover and embrace all suitable changes in technology.
Although embodiments have been described above with reference to the accompanying drawings, those of skill in the art will appreciate that variations and modifications may be made without departing from the scope thereof as defined by the appended claims.
It should be noted that different examples may be implemented separately or combined. Although a combination of features is shown in the illustrated embodiments, not all of them need to be combined to realize the benefits of various examples of the present disclosure. In other words, a system or method designed according to an embodiment of the present disclosure will not necessarily include all of the features shown in any one of the figures or all of the portions schematically shown in the figures. Moreover, selected features of one example embodiment may be combined with selected features of other example embodiments.
A person skilled in the art should understand that embodiments of this application may be provided as a method, an apparatus (or system), computer-readable storage medium, or a computer program product. Therefore, this application may use a form of a hardware-only embodiment, a software-only embodiment, or an embodiment with a combination of software and hardware. Moreover, this application may use a form of a computer program product that is implemented on one or more computer-usable storage media (including, but not limited to, a disk memory, an optical memory, and the like) that include computer-usable program code.
Although this disclosure has been described with reference to illustrative embodiments, the description is not intended to be construed in a limiting sense. Various modifications and combinations of the illustrative embodiments, as well as other examples of the disclosure, will be apparent to persons skilled in the art upon reference to the description. It is therefore intended that the appended claims encompass any such modifications or embodiments.
Claims
1. A load balancing method, applied to a first switch, wherein the method comprises:
- receiving an approval message from a coordinator node, wherein the approval message is used for indicating a suggested modification is approved; and
- transmitting a requested modification message to the coordinator node, wherein the requested modification message is used for indicating a second switch to modify an allocated path according to the suggested modification, and the suggested modification is determined according to a local flow allocation table of the first switch.
2. The method according to claim 1, wherein the requested modification message comprises the suggested modification, and the suggested modification comprises an identification of a colliding flow.
3. The method according to claim 2, wherein the suggested modification further comprises an identification of a suggest switch for the colliding flow.
4. The method according to claim 1, wherein the local flow allocation table comprises at least two allocation tables.
5. The method according to claim 4, wherein the at least two allocation tables comprises a sending table and a receiving table, the sending table comprises information indicating an allocated path when the first switch is a source switch, and the receiving table comprises information indicating an allocated path when the first switch is a destination switch; and
- the requested modification message comprises an update sending table message, the update sending table message is used for indicating the second switch to modify a local sending table of the second switch; or, the requested modification message comprises an update receiving table message, the update receiving table message is used for indicating the second switch to modify a local receiving table of the second switch.
6. The method according to claim 1, further comprising:
- receiving a request message from the coordinator node, wherein the request message is used for inquiring about an imbalance issue;
- identifying the imbalance issue according to a flow difference threshold; and
- transmitting a response message to the coordinator node, wherein the response message is used for indicating the imbalance issue, and the response message comprises the suggested modification.
7. The method according to claim 2, wherein the colliding flow comprises an elephant flow and the suggested modification is determined by utilizing a loop algorithm, the method further comprises:
- detecting the elephant flow according to a threshold.
8. The method according to claim 1, further comprising:
- transmitting a notification message to the coordinator node, wherein the notification message is used for notifying arrival of a new flow, and the notification message comprises an identification of the new flow; and
- transmitting a done message to the coordinator node, wherein the done message is used for indicating the imbalance issue is solved.
9. A load balancing method, applied to a coordinator node, wherein the method comprises:
- transmitting an approval message to a first switch, wherein the approval message is used for indicating a suggested modification is approved; and
- receiving a requested modification message from the first switch, wherein the requested modification message is used for indicating a second switch to modify an allocated path according to the suggested modification, and the suggested modification is determined according to a local flow allocation table of the first switch.
10. The method according to claim 9, further comprising:
- transmitting a forwarded message to the second switch, wherein the forwarded message is used for indicating the second switch to modify the allocated path according to the suggested modification.
11. The method according to claim 9, wherein the requested modification message comprises the suggested modification, and the suggested modification comprises an identification of a colliding flow.
12. The method according to claim 11, wherein the suggested modification further comprises an identification of a suggest switch for the colliding flow.
13. The method according to claim 9, wherein the local flow allocation table comprises at least two allocation tables.
14. The method according to claim 13, wherein the at least two allocation tables comprises a sending table and a receiving table, the sending table comprises information indicating an allocated path when the first switch is a source switch, and the receiving table comprises information indicating an allocated path when the first switch is a destination switch; and
- the requested modification message comprises an update sending table message, the update sending table message is used for indicating the second switch to modify a local sending table of the second switch; or, the requested modification message comprises an update receiving table message, the update receiving table message is used for indicating the second switch to modify a local receiving table of the second switch.
15. The method according to claim 9, further comprising:
- transmitting a request message to the first switch, wherein the request message is used for inquiring about an imbalance issue; and
- receiving a response message from the first switch, wherein the response message is used for indicating the imbalance issue, and the response message comprises the suggested modification.
16. The method according to claim 15, wherein the response message further comprises the number of a sent flow and the number of a received flow, the method further comprises:
- determining whether there is a discrepancy between the number of the sent flow and the number of the received flow by the coordinator node,
- the method further comprises:
- selecting the imbalance issue from a plurality of imbalance issues comprised in a plurality of response messages.
17. The method according to claim 11, wherein the colliding flow comprises an elephant flow, and the suggested modification is determined by utilizing a loop algorithm.
18. A load balancing method, applied to a second switch, wherein the method comprises:
- receiving a requested modification message from a coordinator node, wherein the requested modification message is used for indicating the second switch to modify an allocated path according to a suggested modification, and the suggested modification is determined according to a local flow allocation table of a first switch; and
- modifying the allocated path according to the suggested modification.
19. A load balancing device, comprising at least one processor coupled to a memory storing a set of instructions;
- wherein the at least one processor is configured to read the set of instructions in the memory and execute operations including:
- receiving an approval message from a coordinator node, wherein the approval message is used for indicating a suggested modification is approved; and
- transmitting a requested modification message to the coordinator node, wherein the requested modification message is used for indicating a second switch to modify an allocated path according to the suggested modification, and the suggested modification is determined according to a local flow allocation table of the first switch.
20. A load balancing device, comprising at least one processor coupled to a memory storing a set of instructions;
- wherein the at least one processor is configured to read the set of instructions in the memory and execute operations including:
- transmitting an approval message to a first switch, wherein the approval message is used for indicating a suggested modification is approved; and
- receiving a requested modification message from the first switch, wherein the requested modification message is used for indicating a second switch to modify an allocated path according to the suggested modification, and the suggested modification is determined according to a local flow allocation table of the first switch.
Type: Application
Filed: May 23, 2025
Publication Date: Nov 26, 2026
Inventors: Amr Adel Nasr Abdelnasser (Vancouver), Xingjun Chu (Ottawa)
Application Number: 19/217,939