Method and system for realizing load balancing in data center network
By using INT to detect packets and load information tables in the data center network, the switch allocates traffic according to the load value, solves the problems of link congestion and bandwidth utilization, achieves load balancing and dynamic adaptability, and improves network performance.
Patent Information
- Application Number
- CN202410900950.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-08
AI Technical Summary
Load balancing methods in existing data center networks have problems such as link congestion, underutilization of bandwidth and consumption of additional probe bandwidth, and are difficult to adapt to dynamic network conditions.
INT detection packets are used to broadcast periodically. The switch collects path load information, allocates traffic according to the load value, adjusts the frequency of sending detection packets, and realizes proportional multi-path forwarding of business traffic.
It effectively avoids optimal path congestion, improves link utilization, reduces probe bandwidth consumption, and adapts to dynamic network changes.
Smart Images

Figure CN118748657A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of network communications, and in particular relates to a method and system for implementing load balancing in a data center network. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] As the core infrastructure of cloud computing, data centers (DCs) should effectively utilize network bandwidth to provide huge throughput and high-quality traffic transmission. Spine-leaf is the most common network topology in data centers, which includes three layers: spine, leaf, and edge (ToR), providing multiple transmission paths for end-to-end. Traffic in data centers is highly dynamic and bursty, and load imbalance is prone to occur, leading to network congestion and link redundancy. Load balancing mechanism is a way to solve the problem of network congestion. Load balancing distributes traffic to different paths according to established rules, fully improving network bandwidth utilization and reducing the possibility of link congestion. It is an important means to ensure the quality of traffic transmission in data centers.
[0004] The load balancing method in the existing technology has the following limitations:
[0005] (1) Without considering link congestion, allocating multiple long flows to the same path will cause the link to be quickly congested, reducing network transmission performance.
[0006] (2) Routing decisions are only made on the ToR switches, or hop by hop, without considering the load on the remaining paths. This makes it difficult to maximize the use of available bandwidth.
[0007] (3) The probe-based method will cause additional probe bandwidth consumption and cannot adapt to dynamic network conditions. Summary of the invention
[0008] In order to solve the above problems, the present invention proposes a method and system for implementing load balancing in a data center network. The present invention effectively distributes traffic to different paths in proportion to the load degree, avoiding congestion of the optimal path and reducing the additional bandwidth occupied by the probe.
[0009] According to some embodiments, a first solution of the present invention provides a method for implementing load balancing in a data center network, using the following technical solution:
[0010] A method for implementing load balancing in a data center network, comprising:
[0011] Step 1: The edge switch constructs an INT detection packet and periodically broadcasts the INT detection packet to the remaining non-edge switches, using the INT detection packet to obtain the load information of the remaining non-edge switches on the path;
[0012] Step 2: Whenever the non-edge switch receives an INT detection data packet, the non-edge switch parses the INT detection data packet and updates the corresponding path and the load value corresponding to the path in the load information table;
[0013] Step 3: After the service data packet arrives at the switch, the packet cluster detection is first performed. For a new packet cluster, the switch searches for the path with the same destination edge switch as the data in the load information table, and checks the register storing the data packet forwarding amount at the corresponding port. According to the load ratio of different paths, the forwarding port is selected for the service traffic.
[0014] Step 4: The edge switch periodically sends the load level to the controller, and the controller calculates the average load level and feeds back the frequency of sending the detection data packet to the edge switch based on the calculation result.
[0015] Furthermore, in step 1, the edge switch periodically broadcasts INT detection data packets to other non-edge switches to obtain all reachable paths, specifically:
[0016] Step 1-1, the edge switch constructs an INT detection data packet. The structure of the INT detection data packet includes an Ethernet layer, an IP layer, and a custom telemetry layer. The telemetry layer includes an 8-bit switch ID, an 8-bit ingress and egress port number, and an 8-bit load value.
[0017] In step 1-2, the edge switch sends an INT detection packet to the upper leaf switch, and then the switches in the network broadcast forward the INT detection packet until it reaches another edge switch. The specific forwarding rules are as follows:
[0018] For edge switches, as a starting point, INT probe packets will be generated and sent to all connected leaf switches; as an endpoint, INT probe packets will be stopped from being forwarded;
[0019] For a leaf switch, when an INT probe packet is received from a spine switch, it will be forwarded to the lower-layer edge switch; when an INT probe packet is received from an edge switch, it will be forwarded to all connected switches except the ingress port;
[0020] For a spine switch, when an INT probe packet is received, it will forward it to all connected leaf switches except the ingress port;
[0021] Step 1-3, repeat steps 1-1 and 1-2 at a given frequency, and go to step 2 every time the switch receives an INT detection packet.
[0022] Further, the load value is obtained by calculating the local link bandwidth utilization by the switch through the EWMA method, and then mapping the link bandwidth utilization into the load value according to the rules of the mapping table;
[0023] The load value determines the amount of traffic that a link can carry. The higher the load value, the more traffic will be forwarded to the path.
[0024] Furthermore, the load information table stores all reachable paths from the current switch to any other edge switch, and the load values corresponding to the paths.
[0025] Furthermore, in step 2, the non-edge switch parses the data of the INT detection data packet and updates the corresponding path and the load value corresponding to the path in the load information table, specifically:
[0026] Step 2-1: The non-edge switch parses the Ethernet layer and IP layer in the data packet to obtain the target edge switch, parses the content of the telemetry layer, and obtains the path and load value of the INT detection data packet;
[0027] Step 2-2: Update the corresponding entry in the load information table according to the parsed INT detection data packet path and load value. If the path does not exist in the table, write the path and the corresponding load value; if the path exists in the table, proceed to step 2-3;
[0028] Step 2-3: After mapping the locally calculated link utilization into a load value, the switch compares it with the value carried in the INT detection packet, then writes the smaller value into the corresponding entry of the load information table, updates the value carried in the detection packet to the minimum value, and updates the corresponding forwarding quantity N in the flowlet-count table;
[0029] Step 2-4: The switch forwards the updated INT detection data packet according to the rules of step 1-2.
[0030] Furthermore, the flowlet-count table uses the paths from this port to different edge switches as indexes to store the load values of the paths;
[0031] The switch regards the load value of the path as the amount of flowlets that should be forwarded on this port when the service traffic is selected on the forwarding path, which is called the amount to be forwarded N, and the amount of flowlets actually forwarded by the port, which is called the actual forwarding amount n.
[0032] When making subsequent routing decisions, the proportional multi-path forwarding of service traffic is achieved through the ratio of the load degree values of different ports.
[0033] Further, in step 3, the specific process is as follows:
[0034] Step 3-1: When the switch receives a service data packet, first perform a flowlet detection. If the flowlet entry to which the service data packet belongs is retrieved, forward the service data packet to the same port as the previous service data packet. If the corresponding entry is not retrieved, create a new entry in the flowlet register and proceed to step 3-2;
[0035] Step 3-2: The switch parses the destination address of the service data packet, and then retrieves all reachable paths and the corresponding port numbers in the load information table;
[0036] Step 3-3: The switch compares the expected forwarding quantity N and the actual forwarding quantity n in the flowlet-count tables of different ports, forwards the data packet to the first port where n < N, and updates n in the flowlet-count table;
[0037] Step 3-4: When n ≥ N for all ports, set all n in the flowlet-count table to zero and forward the data packet to the first port.
[0038] Further, the flowlet detection is specifically as follows:
[0039] When a service data packet arrives, first calculate the hash of the five-tuple of the service data packet, and retrieve the flowlet-id register according to the calculation result. If there is no corresponding record in the flowlet-id register, the data packet belongs to a new flowlet;
[0040] If a corresponding record is queried, calculate Δ by subtracting the time stamp of the previous data packet in the time-stamp register from the current time, and compare Δ with the pre-set flowlet time threshold δ. If Δ > δ, the data packet belongs to a new flowlet, otherwise it belongs to the corresponding flowlet in the flowlet-id register;
[0041] Among them, the flowlet-id register stores the ids of the flowlets that have been forwarded; the time-stamp register stores the arrival time of the last data packet of different flowlets indexed by the id of the flowlet.
[0042] Further, step 4 includes the following steps:
[0043] Step 4-1: The edge switch regularly uploads the local link utilization to the controller. The controller calculates the average network load level, calculates the frequency of the edge switch's detection data packet transmission based on the load level, and feeds the result back to the edge switch. The specific calculation formula is as follows:
[0044]
[0045] Among them, T probe is the time interval between sending two detection packets, σ is the average load level, and θ is a constant.
[0046] According to some embodiments, a second solution of the present invention provides a system for implementing load balancing in a data center network, which adopts the following technical solution:
[0047] A system for implementing load balancing in a data center network, comprising:
[0048] Probe packet construction module: The edge switch constructs an INT probe packet and periodically broadcasts the INT probe packet to other non-edge switches, using the INT probe packet to obtain the load information of other non-edge switches on the path;
[0049] Detection packet processing module: Whenever a non-edge switch receives an INT detection packet, the non-edge switch parses the INT detection packet and updates the corresponding path and the load value corresponding to the path in the load information table;
[0050] Routing decision module: After the service data packet arrives at the switch, the packet cluster detection is first performed. For a new packet cluster, the switch searches the load information table for the target edge switch with the same path as the data, and checks the register storing the packet forwarding amount at the corresponding port. According to the load ratio of different paths, the forwarding port is selected for the service traffic;
[0051] Probe frequency adjustment module: The edge switch periodically sends the load level to the controller, and the controller calculates the average load level and feeds back the frequency of sending the probe data packet to the edge switch based on the calculation result.
[0052] Compared with the prior art, the present invention has the following beneficial effects:
[0053] The present invention constructs INT detection data packets and broadcasts them in the network to collect all the reachable paths of other edge switches and the load levels corresponding to the paths for the switch. We map the link bandwidth utilization, which reflects the load level, into a load level value, so that the switch can forward traffic in proportion to the load level. The switch distributes the service traffic to different paths according to the load level value, improves the link utilization, and avoids congestion of the best link. We reduce the extra bandwidth consumption by adjusting the sending frequency of the detection data packets. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0055] Figure 1 A flow chart of a method for implementing load balancing in a data center network provided by an embodiment of the present invention;
[0056] Figure 2 The format of the INT detection data packet in the embodiment of the present invention;
[0057] Figure 3 A flowchart of processing a detection data packet in an embodiment of the present invention;
[0058] Figure 4 The figure is a flow chart of processing a service data packet in an embodiment of the present invention. DETAILED DESCRIPTION
[0059] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0060] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0061] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0062] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0063] Embodiment 1
[0064] like Figure 1 As shown, this embodiment provides a method for implementing load balancing in a data center network. In this embodiment, the method includes the following steps:
[0065] (1) Sending INT probes: The edge switch periodically broadcasts INT probes to collect load information of switches on the path. Here, INT probes are INT detection packets.
[0066] (2) Update the load information table: Each switch in the network maintains a load information table that stores all reachable paths from this switch to other edge switches and the load weight of the path;
[0067] (3) Routing decision: The switch forwards traffic to different paths in proportion to the load weights of different paths in the load information table and makes routing decisions;
[0068] (4) Probe frequency adjustment: The controller feeds back the probe sending frequency to the edge switch based on the overall network load. The controller dynamically adjusts the probe sending rate based on the load balance of different paths.
[0069] Specifically, the method comprises the following steps:
[0070] Step 1: The edge switch constructs an INT detection packet and periodically broadcasts the INT detection packet to the remaining non-edge switches, using the INT detection packet to obtain the load information of the remaining non-edge switches on the path;
[0071] Step 2: Whenever the non-edge switch receives an INT detection data packet, the non-edge switch parses the INT detection data packet and updates the corresponding path and the load value corresponding to the path in the load information table;
[0072] Step 3: After the service data packet arrives at the switch, the packet cluster detection is first performed. For a new packet cluster, the switch searches for the path with the same destination edge switch as the data in the load information table, and checks the register storing the data packet forwarding amount at the corresponding port. According to the load ratio of different paths, the forwarding port is selected for the service traffic.
[0073] Step 4: The edge switch periodically sends the load level to the controller, and the controller calculates the average load level and feeds back the frequency of sending the detection data packet to the edge switch based on the calculation result.
[0074] Step 1 includes the following steps:
[0075] Step 1-1, the edge switch constructs a detection data packet. The structure of the detection data packet includes an Ethernet layer, an IP layer, and a custom telemetry layer, including an 8-bit switch ID, an 8-bit ingress and egress port number, and an 8-bit load level value.
[0076] Step 1-2: The edge switch sends a detection data packet to the upper leaf switch, and then the switches in the network broadcast forward the detection data packet until it reaches another edge switch. The specific forwarding rules are:
[0077] For edge switches, they are either the end point or the start point of the probe packets. As a start point, they will generate and send the probe packets to all connected leaf switches. As an end point, they stop forwarding the probe packets.
[0078] For leaf switches, when they receive a probe packet from a spine switch, they will forward it to the lower layer edge switches. When they receive a probe from an edge switch, they will forward it to all connected switches except the ingress port.
[0079] For spine switches, when they receive a probe packet, they will forward it to all connected leaf switches except the ingress port.
[0080] Step 1-3, repeat steps 1-1 and 1-2 at a given frequency, and go to step 2-1 every time the switch receives a detection data packet.
[0081] Load degree value: The present invention designs a load degree value (LD) to facilitate the switch to distribute traffic. The switch first needs to calculate the link bandwidth utilization. The present invention uses the exponentially weighted moving average (EWMA) method to calculate the link bandwidth utilization, such as the formula:
[0082] μ m =α×(packet size +μ m-1 )-Δt×μ m-1 (1);
[0084] Among them, packet size is the packet size, α is a constant related to the network round-trip time (RTT), Δt is the time interval since the last packet, and μ m is the link bandwidth utilization of the mth data packet, that is, the link bandwidth utilization of the current data packet, μ m-1 is the link bandwidth utilization of the m-1th data packet, that is, the link bandwidth utilization of the previous data packet.
[0085] The switch maps the link bandwidth utilization into a load degree that facilitates routing decisions. Values below 25% are mapped to 5, and values above 90% are mapped to 0. The specific mapping relationship is shown in Table 1. The load degree value determines the amount of link-carrying traffic. The higher the load degree value, the more traffic will be forwarded to the path.
[0086] Table 1 Mapping relationship between link utilization and load value
[0087] Link bandwidth utilization 0~20% 20~50% 50~70% 70~90% Otherwise Load value 5 3 2 1 0
[0088] Load information table: All switches in the network maintain a load information table, which stores all reachable paths from the switch to any other switch and the load value corresponding to the path, as shown in Table 2.
[0089] Table 2 Load information table maintained by the switch
[0090] Destination edge switch path Load value ToR2 T1_3→L1_2→T2 4 ToR2 T1_4→L2_2→T2 4 … … … ToR8 T1_3→L1_3→S1_4→L7_2→T8 5 ToR8 T1_3→L1_4→S2_4→L7_2→T8 5 ToR8 T1_4→L2_3→S3_4→L8_2→T8 1 ToR8 T1_4→L2_4→S4_4→L8_2→T8 1
[0091] Step 2 includes the following steps:
[0092] Step 2-1: After receiving the detection data packet, the switch first parses the Ethernet layer and IP layer in the data packet to obtain the target edge switch, and then parses the content of the telemetry layer, including the path passed by the detection data packet and the load value.
[0093] Step 2-2: Update the corresponding entry in the load information table according to the parsed detection data packet path and load value. If the path does not exist in the table, write the path and the corresponding load value; if the path exists in the table, proceed to step 2-3.
[0094] Step 2-3: After the switch maps the locally calculated link utilization into a load value, it compares it with the value carried in the detection data packet, then writes the smaller value into the corresponding entry in the load information table, and updates the value carried in the detection data packet to the minimum value, and at the same time updates the corresponding forwarding amount N in the flowlet-count table.
[0095] Step 2-4: The switch forwards the updated detection data packet according to the rules of step 1-2.
[0096] Flowlet-count table: The switch maintains a flowlet-count table for a port. This table is indexed by the paths from this port to different edge switches and stores the load degree values of the paths. The switch regards the load degree value as the amount of flowlets that the service traffic should be forwarded through this port when selecting the forwarding path, which we call the amount N to be forwarded, and the actual amount n of flowlets forwarded through this port. When making subsequent routing decisions, the proportional multi-path forwarding of service traffic can be achieved through the ratio of the load degree values of different ports.
[0097] Step 3 includes the following:
[0098] Step 3-1: When the switch receives a service data packet, it first performs flowlet detection. If the flowlet entry to which the data packet belongs is retrieved, the data packet is forwarded to the same port as the previous data packet. If the corresponding entry is not retrieved, a new entry is created in the flowlet register and Step 3-2 is entered.
[0099] Step 3-2: The switch parses the destination address of the data packet and then retrieves all reachable paths and their corresponding port numbers in the load information table.
[0100] Step 3-3: The switch compares the amount N to be forwarded and the actual amount n in the flowlet-count tables of different ports, forwards the data packet to the first port where n < N, and updates n in the flowlet-count table.
[0101] Step 3-4: When n ≥ N for all ports, set all n in the flowlet-count table to zero and forward the data packet to the first port (sorted by port number).
[0102] The routing decision algorithm is shown in Table 3 below:
[0103] Table 3 Routing Decision Algorithm
[0104]
[0105]
[0106] Flowlet detection method: use a flowlet-id register and a time-stamp register. The flowlet-id register stores the id of the flowlet that has been forwarded, and the time-stamp register uses the flowlet id as an index to store the arrival time of the last data packet of different flowlets. When a new data packet arrives, first perform a hash calculation on the five-tuple of the packet (source IP address, destination IP address, source port, destination port, transport layer protocol). If there is no corresponding record in the flowlet-id register, the data packet belongs to a new flowlet. If the corresponding record is found, Δ is obtained by subtracting the timestamp of the previous data packet in the time-stamp register from the current time, and compared with the pre-set flowlet time threshold δ. If Δ>δ, the data packet belongs to the new flowlet, otherwise it belongs to the corresponding flowlet in the flowlet-id register.
[0107] Step 4 includes the following steps:
[0108] Step 4-1: The edge switch regularly uploads the local link utilization to the controller. The controller calculates the average network load level, calculates the frequency of the edge switch's detection data packet transmission based on the load level, and feeds the result back to the edge switch. The specific calculation formula is as follows:
[0109]
[0110] Symbol explanation: T probe is the time interval between sending two detection packets, σ is the average load level, and θ is a constant.
[0111] Detection packet frequency: In real network scenarios, T probe If T probe If the detection threshold is smaller than the flowlet, load balancing decisions will be made too frequently, which will cause serious packet disorder and affect transmission quality.
[0112] The present invention uses load values and load information tables. Link bandwidth utilization is mapped into load values to achieve proportional traffic distribution. The load value is the result of link bandwidth utilization mapping. Specifically, the switch calculates the local bandwidth utilization through the EWMA method, and then maps the bandwidth utilization into the load value according to the rules of the mapping table. For example, when the bandwidth utilization is 0-20%, the load value of the link is 5. When making routing decisions, the higher the load value, the more traffic will be forwarded to the path. The load information table stores the reachable paths from this switch to all other edge switches, as well as the load values of the paths. The load information table is the core basis for routing decisions.
[0113] Embodiment 2
[0114] This embodiment provides a system for implementing load balancing in a data center network, including:
[0115] Probe packet construction module: The edge switch constructs an INT probe packet and periodically broadcasts the INT probe packet to other non-edge switches, using the INT probe packet to obtain the load information of other non-edge switches on the path;
[0116] Detection packet processing module: Whenever a non-edge switch receives an INT detection packet, the non-edge switch parses the INT detection packet and updates the corresponding path and the load value corresponding to the path in the load information table;
[0117] Routing decision module: After the service data packet arrives at the switch, the packet cluster detection is first performed. For a new packet cluster, the switch searches the load information table for the target edge switch with the same path as the data, and checks the register storing the packet forwarding amount at the corresponding port. According to the load ratio of different paths, the forwarding port is selected for the service traffic;
[0118] Probe frequency adjustment module: The edge switch periodically sends the load level to the controller, and the controller calculates the average load level and feeds back the frequency of sending the probe data packet to the edge switch based on the calculation result.
[0119] Probe packet construction module: All edge switches in the network construct probe packets. To reduce bandwidth consumption, the header of the probe packet only includes the basic Ethernet layer and IP layer, as well as a custom telemetry layer. The telemetry layer consists of multiple sets of switch IDs, ingress and egress port numbers, and load values. The edge switch sends probe packets to the upper leaf switches at a fixed frequency. The switches in the network will broadcast the probe packets to achieve full network telemetry coverage.
[0120] Probe packet processing module: When the switch receives a probe packet, the probe packet carries the path information and the load value on the path. The switch first parses the probe packet to obtain the path information carried, then needs to calculate the link bandwidth utilization of the local port, and then map the bandwidth utilization of the corresponding port into the load value. The switch compares the load carried in the probe packet with the locally calculated load. If the former is greater, the locally calculated load value is written into the probe packet and the load value of the corresponding path in the load information table is updated; if the latter is greater, the load information table is updated to the value carried by the probe packet, so as to ensure that the switch maintains the load value of the highest load part in the path.
[0121] Routing decision module: After receiving a service data packet, the switch first calculates the hash of the five-tuple (source IP address, destination IP address, source port number, destination port number, protocol type), and retrieves the flowlet-id register. If there is no corresponding record, the data packet belongs to a new flowlet, and the switch creates a new entry for the data packet in the flowlet-id register. If there is a corresponding record, we retrieve the timestamp of the corresponding entry from the time-stamp register, subtract the timestamp from the local time, and compare the result with the flowlet time threshold δ. If it is greater than δ, it belongs to a new flowlet; if it is less than δ, the data packet belongs to the corresponding flowlet. For data packets belonging to an existing flowlet, the switch forwards them to the same port as the previous data packet of its flowlet. For data packets belonging to a new flowlet, the present invention uses a flow-count table to implement path selection. This table stores the expected forwarding volume N and the actual forwarding volume n of the path, where N is equal to the load degree value corresponding to the path. The switch needs to retrieve the load information table according to the destination edge switch of the data packet, obtain all reachable paths and the corresponding ports of the paths, and then calculate n and N in the flowlet-count tables of different ports in ascending order of port numbers. If n≥N for a certain port, continue to calculate the next port; if n<N, select this path as the forwarding path of the data packet. Whenever the switch completes a path selection, it also updates n in the flowlet-count table. When n≥N for all ports, set all n to zero and select the first path.
[0122] Probe frequency adjustment module: Sending probe data packets will consume a certain amount of network bandwidth. When the network load is relatively balanced and light, there is also a high transmission quality without the intervention of a load balancing mechanism. On the contrary, load balancing is required to ensure high-quality transmission. The present invention reduces the additional bandwidth consumption by adjusting the sending frequency. The edge switch periodically uploads the local bandwidth utilization rate to the controller. The controller calculates the standard deviation between different bandwidth utilization rates, then adjusts the sending frequency of the probe based on the calculation result, and feeds the result back to the edge switch.
[0123] The examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the content disclosed in the first embodiment above. It should be noted that the above modules can be executed in a computer system such as a set of computer executable instructions as part of the system.
[0124] In the above embodiments, the descriptions of each embodiment have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0125] The proposed system can be implemented in other ways. For example, the system embodiment described above is only illustrative, and the division of the modules is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed.
[0126] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0127] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.
Claims
1. A method for implementing load balancing in a data center network, characterized in that: include: Step 1: The edge switch constructs an INT detection packet and periodically broadcasts the INT detection packet to the remaining non-edge switches, using the INT detection packet to obtain the load information of the remaining non-edge switches on the path; Step 2: Whenever the non-edge switch receives an INT detection data packet, the non-edge switch parses the INT detection data packet and updates the corresponding path and the load value corresponding to the path in the load information table; Step 3: After the service data packet arrives at the switch, the packet cluster detection is first performed. For a new packet cluster, the switch searches for the path with the same destination edge switch as the data in the load information table, and checks the register storing the data packet forwarding amount at the corresponding port. According to the load ratio of different paths, the forwarding port is selected for the service traffic. Step 4: The edge switch periodically sends the load level to the controller, and the controller calculates the average load level and feeds back the frequency of sending the detection data packet to the edge switch based on the calculation result.
2. A method for implementing load balancing in a data center network according to claim 1, characterized in that: In step 1, the edge switch periodically broadcasts INT detection data packets to other non-edge switches to obtain all reachable paths, specifically: Step 1-1, the edge switch constructs an INT detection data packet. The structure of the INT detection data packet includes an Ethernet layer, an IP layer, and a custom telemetry layer. The telemetry layer includes an 8-bit switch ID, an 8-bit ingress and egress port number, and an 8-bit load value. In step 1-2, the edge switch sends an INT detection packet to the upper leaf switch, and then the switches in the network broadcast forward the INT detection packet until it reaches another edge switch. The specific forwarding rules are as follows: For edge switches, as a starting point, INT probe packets will be generated and sent to all connected leaf switches; as an endpoint, INT probe packets will be stopped from being forwarded; For a leaf switch, when an INT probe packet is received from a spine switch, it will be forwarded to the lower-layer edge switch; when an INT probe packet is received from an edge switch, it will be forwarded to all connected switches except the ingress port; For a spine switch, when an INT probe packet is received, it will forward it to all connected leaf switches except the ingress port; Step 1-3, repeat steps 1-1 and 1-2 at a given frequency, and go to step 2 every time the switch receives an INT detection packet.
3. A method for implementing load balancing in a data center network as claimed in claim 2, characterized in that: The load value is calculated by the switch using the EWMA method to calculate the local link bandwidth utilization, and then the link bandwidth utilization is mapped into the load value according to the rules of the mapping table; The load value determines the amount of traffic that a link can carry. The higher the load value, the more traffic will be forwarded to the path.
4. The method for implementing load balancing in a data center network according to claim 1, characterized in that: The load information table stores all reachable paths from the current switch to any other edge switch, and the load values corresponding to the paths.
5. The method for implementing load balancing in a data center network according to claim 1, characterized in that: In step 2, the non-edge switch parses the data of the INT detection data packet and updates the corresponding path and the load value corresponding to the path in the load information table, specifically: Step 2-1: The non-edge switch parses the Ethernet layer and IP layer in the data packet to obtain the target edge switch, parses the content of the telemetry layer, and obtains the path through which the INT probe packet passes and the load degree value; Step 2-2: According to the parsed INT probe packet path and load degree value, update the corresponding entry in the load information table. If there is no such path in the table, write the path and the corresponding load degree value; if there is such a path in the table, go to Step 2-3; Step 2-3: After the switch maps the locally calculated link utilization rate to a load degree value, compare it with the value carried in the INT probe packet, then write the smaller value into the corresponding entry of the load information table, update the value carried in the probe packet to the minimum value, and at the same time update the corresponding forwarding volume N in the flowlet-count table; Step 2-4: The switch forwards the updated INT probe packet according to the rules in Step 1-2.
6. A method for implementing load balancing in a data center network as claimed in claim 5, characterized in that: The flowlet-count table uses the path from this port to different edge switches as an index to store the load degree value of the path; The switch regards the load degree value of this path as the flowlet volume that the service traffic should be forwarded at this port when selecting the forwarding path, which is called the forwarding volume N, and the actual flowlet volume forwarded at this port, which is called the actual forwarding volume n; In subsequent routing decisions, through the ratio of the load degree values of different ports, realize the proportional multi-path forwarding of service traffic.
7. The method for implementing load balancing in a data center network according to claim 1, characterized in that: In Step 3, the specific process is as follows: Step 3-1: When the switch receives a service data packet, first perform flowlet detection. If the flowlet entry to which the service data packet belongs is retrieved, forward the service data packet to the same port as the previous service data packet. If the corresponding entry is not retrieved, create a new entry in the flowlet register and go to Step 3-2; Step 3-2: The switch parses the destination address of the service data packet, and then retrieves all reachable paths and corresponding port numbers in the load information table; Step 3-3: The switch compares the forwarding volume N and the actual forwarding volume n in the flowlet-count table of different ports, forwards the data packet to the first port where n < N, and updates n in the flowlet-count table; Step 3-4: When n ≥ N for all ports, reset all n in the flowlet-count table to zero and forward the data packet to the first port.
8. A method for implementing load balancing in a data center network as claimed in claim 7, characterized in that: The flowlet detection is specifically as follows: When the service data packet arrives, first calculate the hash of the five-tuple of the service data packet, and retrieve the flowlet-id register according to the calculation result. If there is no corresponding record in the flowlet-id register, the data packet belongs to a new flowlet; If the corresponding record is found, Δ is obtained by subtracting the timestamp of the previous data packet in the time-stamp register from the current time, and then compared with the pre-set flowlet time threshold δ. If Δ>δ, the data packet belongs to the new flowlet, otherwise it belongs to the corresponding flowlet in the flowlet-id register; The flowlet-id register stores the id of the flowlet that has been forwarded; the time-stamp register uses the flowlet id as an index to store the arrival time of the last data packet of different flowlets.
9. The method for implementing load balancing in a data center network according to claim 1, characterized in that: The step 4 comprises the following steps: Step 4-1: The edge switch regularly uploads the local link utilization to the controller. The controller calculates the average network load level, calculates the frequency of the edge switch's detection data packet transmission based on the load level, and feeds the result back to the edge switch. The specific calculation formula is as follows: Among them, T probe is the time interval between sending two detection packets, σ is the average load level, and θ is a constant.
10. A system for implementing load balancing in a data center network, characterized in that: include: Probe packet construction module: The edge switch constructs an INT probe packet and periodically broadcasts the INT probe packet to other non-edge switches, using the INT probe packet to obtain the load information of other non-edge switches on the path; Detection packet processing module: Whenever a non-edge switch receives an INT detection packet, the non-edge switch parses the INT detection packet and updates the corresponding path and the load value corresponding to the path in the load information table; Routing decision module: After the service data packet arrives at the switch, the packet cluster detection is first performed. For a new packet cluster, the switch searches the load information table for the target edge switch with the same path as the data, and checks the register storing the packet forwarding amount at the corresponding port. According to the load ratio of different paths, the forwarding port is selected for the service traffic; Probe frequency adjustment module: The edge switch periodically sends the load level to the controller, and the controller calculates the average load level and feeds back the frequency of sending the probe data packet to the edge switch based on the calculation result.
Citation Information
Cited By
Switch intelligent scheduling management system, method and device and storage medium
CN121193676A
Path planning method and system for cross-host set communication of data center network
CN121567634A
