MLAG environment flow load balancing method, equipment and medium

By building a link aggregation group in the MLAG environment and performing traffic statistics and control, the large flow balance load problem of the same Mac and IP is solved, and the load balancing between the devices is achieved and the system performance is improved.

CN119383138APending Publication Date: 2025-01-28INSPUR NETWORK TECH (SHANDONG) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411501505.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

The load sharing method of link aggregation in the existing MLAG environment can only share loads for incremental packets such as mac and ip, and cannot effectively solve the problem of large traffic balancing loads with the same mac and ip.

Method used

By setting up a link aggregation group in the MLAG environment, the statistics of the in -direction flow information of the downward device use the HASH flow distribution algorithm to control the flow to the first forwarding device and/or the second forwarding equipment, and statistically produce the direction flow information to determine whether If the flow is uneven, if so, use the adjustment port to use the bandwidth to perform the flow load balancing adjustment.

Benefits of technology

A balanced load of a large flow of the same Mac and IP in the MAC environment is achieved, avoiding uneven pressure between devices, and improving the overall performance and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119383138A_ABST
    Figure CN119383138A_ABST
Patent Text Reader

Abstract

The invention discloses an MLAG environment flow load balancing method, equipment and a medium, belongs to the technical field of MLAG environment flow control, and is used for solving the problem that a load sharing method for configuring link convergence on uplink and downlink equipment at present can only carry out load sharing on incremental messages such as mac, ip and the like and cannot solve large-flow load balancing of the same mac and the same ip. The method comprises the following steps: establishing an MLAG link aggregation group; performing flow statistics on the downlink device in an incoming direction to obtain first flow information; according to the first traffic information, controlling the traffic to move to the first forwarding device and / or the second forwarding device, and respectively counting second traffic information moving to the first forwarding device and third traffic information moving to the second forwarding device; and according to the second flow information and the third flow information, whether a flow imbalance condition occurs is judged, and if yes, flow load balance adjustment is carried out on the two forwarding devices by adjusting the bandwidth used by the port.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of MLAG environment traffic control, and in particular to a MLAG environment traffic load balancing method, device and medium. Background Art

[0002] In the MLAG environment, the link aggregation group consisting of the master device and the slave device is connected to the upstream and downstream devices respectively to forward traffic. For the master device and the slave device, only the ports existing on the device are visible, while for the upstream and downstream devices, the link aggregation group consisting of the master device and the slave device is a whole.

[0003] When traffic enters the MLAG group from the downlink, the traffic trend is generally controlled by a hash algorithm, which cannot be controlled manually. The same traffic may enter the master device this time and the slave device the next time, or it may go to both sides to share the load.

[0004] In actual use, due to the diversity of messages, the traffic controlled by the hash algorithm may eventually go to the same device, or most of the traffic goes to one device, and only a small part of the traffic goes to another device. In this case, the pressure on the device forwarding most of the traffic will increase dramatically, while the other device is idle. The current load balancing method of configuring link aggregation on upstream and downstream devices can only load balance incremental messages such as MAC and IP, and cannot solve the problem of load balancing of large traffic with the same MAC and IP. Summary of the invention

[0005] The embodiments of the present invention provide a method, device and medium for load balancing traffic in an MLAG environment, which are used to solve the following technical problems: The current load sharing method for configuring link aggregation on upstream and downstream devices can only load share incremental messages such as mac and ip, and cannot solve the problem of load balancing large traffic with the same mac and ip.

[0006] The embodiment of the present invention adopts the following technical solution:

[0007] On the one hand, an embodiment of the present invention provides a method for load balancing traffic in an MLAG environment, the method comprising: establishing an MLAG link aggregation group; the MLAG link aggregation group comprises at least a first forwarding device, a second forwarding device, a downlink device, and an uplink device;

[0008] Performing traffic statistics in an inbound direction on the downlink device to obtain first traffic information;

[0009] According to the first flow information, control the flow to the first forwarding device and / or the second forwarding device, and respectively count the second flow information to the first forwarding device and the third flow information to the second forwarding device;

[0010] According to the second flow information and the third flow information, it is determined whether flow imbalance occurs. If so, flow load balancing adjustment is performed on the two forwarding devices by adjusting the bandwidth used by the ports.

[0011] In a feasible implementation, building an MLAG link aggregation group specifically includes:

[0012] Connecting the uplink device to the output ports of the first forwarding device and the second forwarding device respectively to obtain a first transmission link and a second transmission link;

[0013] Configuring the first transmission link and the second transmission link into a first aggregation group;

[0014] Adding output ports of the first forwarding device and the second forwarding device to a first aggregation group;

[0015] Connecting the downlink device to the input ports of the first forwarding device and the second forwarding device respectively to obtain a third transmission link and a fourth transmission link;

[0016] configuring the third transmission link and the fourth transmission link into a second aggregation group;

[0017] Adding input ports of the first forwarding device and the second forwarding device to a second aggregation group;

[0018] The first aggregation group and the second aggregation group are added to the MLAG group to obtain the MLAG link aggregation group.

[0019] In a feasible implementation manner, performing traffic statistics in the inbound direction of the downlink device to obtain first traffic information specifically includes:

[0020] When traffic enters a downstream device, traffic statistics in the inbound direction are performed on the input port of the downstream device to obtain first traffic information; wherein the first traffic information at least includes: the traffic rate and the number of traffic passing through the input port of the downstream device per unit time.

[0021] In a feasible implementation manner, according to the first traffic information, controlling the traffic to go to the first forwarding device and / or the second forwarding device specifically includes:

[0022] The first traffic information is split and calculated by a hash traffic distribution algorithm to control the traffic entering the downlink device to go to the first forwarding device through the third transmission link and / or to go to the second forwarding device through the fourth transmission link.

[0023] In a feasible implementation manner, the second flow information going to the first forwarding device and the third flow information going to the second forwarding device are counted separately, specifically including:

[0024] Determine a first output port at which the downlink device is connected to the first forwarding device, and a second output port at which the downlink device is connected to the second forwarding device;

[0025] The second flow information of the first output port in the outgoing direction and the third flow information of the second output port in the outgoing direction are respectively counted; wherein the second flow information at least includes the flow rate and the number of flows passing through the first output port per unit time, and the third flow information at least includes the flow rate and the number of flows passing through the second output port per unit time.

[0026] In a feasible implementation manner, judging whether a flow imbalance occurs according to the second flow information and the third flow information specifically includes:

[0027] Calculating the flow rate multiple relationship and the flow number multiple relationship between the first output port and the second output port in unit time;

[0028] If the traffic rate multiple relationship exceeds the preset multiple, or the traffic number multiple relationship exceeds the preset multiple, continue to check whether the bandwidth occupied by the traffic rate of the port with higher traffic speed or traffic number exceeds the preset threshold. If so, it is determined that traffic imbalance has occurred.

[0029] In a feasible implementation manner, judging whether a flow imbalance occurs according to the second flow information and the third flow information specifically includes:

[0030] If only one of the first output port and the second output port has traffic statistics within a unit time, it is checked whether the bandwidth occupied by the traffic rate of the port exceeds a preset threshold. If so, it is determined that traffic imbalance occurs.

[0031] In a feasible implementation, traffic load balancing adjustment is performed on two forwarding devices by adjusting the port usage bandwidth, specifically including:

[0032] If traffic imbalance occurs, the bandwidth of the output port with a higher traffic rate or traffic volume among the two output ports of the downstream device is limited to a preset percentage of the actual port bandwidth to perform traffic transfer and balance adjustment.

[0033] On the other hand, an embodiment of the present invention also provides an MLAG environment traffic load balancing device, the device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor so that the at least one processor can execute the MLAG environment traffic load balancing method.

[0034] Finally, an embodiment of the present invention also provides a storage medium, which is a non-volatile computer-readable storage medium, and the non-volatile computer-readable storage medium stores at least one program, each of which includes instructions, and when the instructions are executed by a terminal, the terminal executes the MLAG environment traffic load balancing method.

[0035] Compared with the prior art, the MLAG environment traffic load balancing method, device and medium provided by the embodiment of the present invention have the following beneficial effects:

[0036] The present invention can be directly used in an already constructed MLAG environment without changing the current environment topo. The expected effect can be achieved by simply adding relevant verification points and adding port bandwidth adjustment.

[0037] This application adds physical links to aggregation groups, aggregation groups to corresponding MLAG links, and by adding port traffic statistics and related configurations on upstream and downstream devices, traffic load balancing can be achieved without affecting the operation of the MLAG environment. The more traffic is forwarded, the more obvious the operating pressure of the MLAG environment is reduced. In addition, the preset multiple values, bandwidth occupation thresholds, bandwidth adjustment percentages and other parameters provided in this application can be configured and adjusted according to the actual use environment, which is highly flexible. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0039] Figure 1 A flow chart of a method for load balancing traffic in an MLAG environment provided by an embodiment of the present invention;

[0040] Figure 2 A schematic diagram of the architecture of an MLAG link aggregation group provided by an embodiment of the present invention;

[0041] Figure 3A schematic diagram of the structure of a MLAG environment traffic load balancing device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0043] The embodiment of the present invention provides a method for load balancing traffic in an MLAG environment, such as Figure 1 As shown, the MLAG environment traffic load balancing method specifically includes steps S101-S104:

[0044] S101: Establish an MLAG link aggregation group. The MLAG link aggregation group includes at least a first forwarding device, a second forwarding device, a downlink device, and an uplink device.

[0045] Specifically, the uplink device is connected to the output ports of the first forwarding device and the second forwarding device respectively to obtain the first transmission link and the second transmission link. The first transmission link and the second transmission link are configured as a first aggregation group. The output ports of the first forwarding device and the second forwarding device are added to the first aggregation group.

[0046] Connect the downlink device to the input ports of the first forwarding device and the second forwarding device respectively to obtain a third transmission link and a fourth transmission link. Configure the third transmission link and the fourth transmission link as a second aggregation group. Add the input ports of the first forwarding device and the second forwarding device to the second aggregation group.

[0047] Furthermore, the first aggregation group and the second aggregation group are added to the MLAG group to obtain the MLAG link aggregation group.

[0048] As a feasible implementation method, Figure 2 A schematic diagram of the architecture of an MLAG link aggregation group provided by an embodiment of the present invention is shown in FIG. Figure 2As shown, the first forwarding device S1 and the second forwarding device S2 build an MLAG environment, where the S1 device is the master device and the S2 device is the slave device. The link connecting the upstream device S4 to the master device and the slave device is configured as the first aggregation group Agg 1. The link connecting the downstream device S4 to the master device and the slave device is configured as the second aggregation group Agg 2, including the first output port s4p1 and the second output port s4p2 (only a single port is listed in the example here, and the use of multiple ports is similar). On the master device and the slave device, add the input ports s1p1 and s2p1 to the second aggregation group Agg2 respectively, and add Agg 2 to the MLAG group. The connection link between the upstream device S3 and the master device and the slave device is configured in the same way.

[0049] S102: Perform traffic statistics in the inbound direction of the downstream device to obtain first traffic information.

[0050] Specifically, when traffic enters a downstream device, traffic statistics in the inbound direction are performed on an input port of the downstream device to obtain first traffic information; wherein the first traffic information includes at least: a traffic rate and a number of traffic flows passing through the input port of the downstream device per unit time.

[0051] As a feasible implementation method, Figure 2 As shown in the figure, when traffic enters the downstream device S4 from the direction of TP2, the traffic statistics of the input port s4p3 of the downstream device S4 are performed in the inbound direction to obtain the traffic rate and the number of traffic passing through the input port s4p3 per unit time. The number of traffic here can be understood as how many times the traffic passes through the input port s4p3 per unit time.

[0052] S103: Control the traffic to go to the first forwarding device and / or the second forwarding device according to the first traffic information, and count the second traffic information going to the first forwarding device and the third traffic information going to the second forwarding device.

[0053] Specifically, the first traffic information is split and calculated through the hash traffic distribution algorithm to control the traffic entering the downlink device to go to the first forwarding device through the third transmission link and / or to go to the second forwarding device through the fourth transmission link.

[0054] Furthermore, a first output port at which the downstream device is connected to the first forwarding device and a second output port at which the downstream device is connected to the second forwarding device are determined.

[0055] Furthermore, the second flow information of the first output port in the outgoing direction and the third flow information of the second output port in the outgoing direction are counted respectively; wherein the second flow information includes at least the flow rate and the number of flows passing through the first output port per unit time, and the third flow information includes at least the flow rate and the number of flows passing through the second output port per unit time.

[0056] As a feasible implementation method, Figure 2 As shown, the traffic is distributed from the downstream S4 to the master device and / or the slave device according to the default hash algorithm, and the traffic rate and the number of traffic forwarded per unit time by the first output port s4p1 and the second output port s4p2 in the outgoing direction are counted respectively.

[0057] S104. Determine whether traffic imbalance occurs based on the second traffic information and the third traffic information. If so, adjust the traffic load balancing of the two forwarding devices by adjusting the port bandwidth.

[0058] Specifically, the flow rate multiple relationship and the flow number multiple relationship of the first output port and the second output port in unit time are calculated. If the flow rate multiple relationship exceeds the preset multiple, or the flow number multiple relationship exceeds the preset multiple, then continue to check whether the bandwidth occupied by the flow rate of the port with higher flow speed or flow number exceeds the preset threshold, and if so, it is determined that flow imbalance occurs.

[0059] If only one of the first output port and the second output port has traffic statistics within a unit time, it is checked whether the bandwidth occupied by the traffic rate of the port exceeds a preset threshold. If so, it is determined that traffic imbalance occurs.

[0060] Furthermore, if there is a traffic imbalance, the bandwidth of the output port with a higher traffic rate or traffic volume among the two output ports of the downstream device is limited to a preset percentage of the actual port bandwidth to perform traffic transfer and balance adjustment. If there is no traffic imbalance, the status quo is maintained for traffic forwarding.

[0061] In one embodiment, Figure 2 As shown, if the multiples of the forwarding traffic rates and the multiples of the traffic numbers of ports s4p1 and s4p2 within a unit time are both less than two times, the status quo is maintained for traffic forwarding.

[0062] If the traffic rate forwarded by the s4p1 port per unit time is twice or more than the traffic rate forwarded by the s4p2 port per unit time, or the number of traffic forwarded by the s4p1 port per unit time is twice or more than the number of traffic forwarded by the s4p2 port per unit time, check whether the traffic rate of the s4p1 port accounts for more than 80% of the port bandwidth. If so, limit the bandwidth used by the s4p1 port to 50% of the actual port bandwidth, so as to transfer part of the traffic to the s4p2 port for load balancing. If it does not exceed 80%, maintain the status quo and forward traffic.

[0063] If only one of the s4p1 and s4p2 ports has traffic rate and number statistics within a unit of time, for example, only s4p1 has the statistics function, then check whether the rate of the traffic forwarded by the s4p1 port accounts for more than 80% of the port bandwidth. If it exceeds 80%, limit the bandwidth used by the port to 50% of the actual port bandwidth and transfer part of the traffic to the s4p2 port. If it does not exceed 80%, maintain the status quo and forward the traffic.

[0064] It should be noted that the above specific data are for illustration only and are not intended to limit the scope of application of the present invention. Technicians can flexibly adjust the above values ​​according to actual conditions.

[0065] In addition, the embodiment of the present invention also provides a MLAG environment traffic load balancing device, such as Figure 3 As shown in the figure, the MLAG environment traffic load balancing equipment specifically includes:

[0066] at least one processor; and a memory in communication with the at least one processor; wherein,

[0067] The memory stores instructions executable by at least one processor to enable the at least one processor to perform:

[0068] Building an MLAG link aggregation group; the MLAG link aggregation group includes at least a first forwarding device, a second forwarding device, a downlink device, and an uplink device;

[0069] Performing traffic statistics in an inbound direction on the downlink device to obtain first traffic information;

[0070] According to the first flow information, control the flow to the first forwarding device and / or the second forwarding device, and respectively count the second flow information to the first forwarding device and the third flow information to the second forwarding device;

[0071] According to the second flow information and the third flow information, it is determined whether flow imbalance occurs. If so, flow load balancing adjustment is performed on the two forwarding devices by adjusting the bandwidth used by the ports.

[0072] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0073] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification may be in the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of this specification may be in the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0074] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0075] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0076] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0077] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0078] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0079] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0080] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0081] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0082] Each embodiment of the present invention is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0083] The above describes specific embodiments of the present invention. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0084] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for load balancing traffic in an MLAG environment, characterized in that: The method comprises: Building an MLAG link aggregation group; the MLAG link aggregation group includes at least a first forwarding device, a second forwarding device, a downlink device, and an uplink device; Performing traffic statistics in an inbound direction on the downlink device to obtain first traffic information; According to the first flow information, control the flow to the first forwarding device and / or the second forwarding device, and respectively count the second flow information to the first forwarding device and the third flow information to the second forwarding device; According to the second flow information and the third flow information, it is determined whether flow imbalance occurs. If so, flow load balancing adjustment is performed on the two forwarding devices by adjusting the bandwidth used by the ports.

2. The method for load balancing traffic in an MLAG environment according to claim 1, characterized in that: Building an MLAG link aggregation group includes: Connecting the uplink device to the output ports of the first forwarding device and the second forwarding device respectively to obtain a first transmission link and a second transmission link; Configuring the first transmission link and the second transmission link into a first aggregation group; Adding output ports of the first forwarding device and the second forwarding device to a first aggregation group; Connecting the downlink device to the input ports of the first forwarding device and the second forwarding device respectively to obtain a third transmission link and a fourth transmission link; configuring the third transmission link and the fourth transmission link into a second aggregation group; Adding input ports of the first forwarding device and the second forwarding device to a second aggregation group; The first aggregation group and the second aggregation group are added to the MLAG group to obtain the MLAG link aggregation group.

3. The method for load balancing traffic in an MLAG environment according to claim 1, characterized in that: Performing traffic statistics in the inbound direction of the downlink device to obtain first traffic information specifically includes: When traffic enters a downstream device, traffic statistics in the inbound direction are performed on the input port of the downstream device to obtain first traffic information; wherein the first traffic information at least includes: the traffic rate and the number of traffic passing through the input port of the downstream device per unit time.

4. The method for load balancing traffic in an MLAG environment according to claim 1, characterized in that: Controlling the traffic to go to the first forwarding device and / or the second forwarding device according to the first traffic information specifically includes: The first traffic information is split and calculated by a hash traffic distribution algorithm to control the traffic entering the downlink device to go to the first forwarding device through the third transmission link and / or to go to the second forwarding device through the fourth transmission link.

5. The method for load balancing traffic in an MLAG environment according to claim 1, characterized in that: The second flow information heading to the first forwarding device and the third flow information heading to the second forwarding device are counted respectively, specifically including: Determine a first output port at which the downlink device is connected to the first forwarding device, and a second output port at which the downlink device is connected to the second forwarding device; The second flow information of the first output port in the outgoing direction and the third flow information of the second output port in the outgoing direction are respectively counted; wherein the second flow information at least includes the flow rate and the number of flows passing through the first output port per unit time, and the third flow information at least includes the flow rate and the number of flows passing through the second output port per unit time.

6. The method for load balancing traffic in an MLAG environment according to claim 5, characterized in that: Judging whether a traffic imbalance occurs according to the second traffic information and the third traffic information specifically includes: Calculating the flow rate multiple relationship and the flow number multiple relationship between the first output port and the second output port in unit time; If the traffic rate multiple relationship exceeds the preset multiple, or the traffic number multiple relationship exceeds the preset multiple, continue to check whether the bandwidth occupied by the traffic rate of the port with higher traffic speed or traffic number exceeds the preset threshold. If so, it is determined that traffic imbalance has occurred.

7. The method for load balancing traffic in an MLAG environment according to claim 6, characterized in that: Judging whether a traffic imbalance occurs according to the second traffic information and the third traffic information, specifically includes: If only one of the first output port and the second output port has traffic statistics within a unit time, it is checked whether the bandwidth occupied by the traffic rate of the port exceeds a preset threshold. If so, it is determined that traffic imbalance occurs.

8. The method for load balancing traffic in an MLAG environment according to claim 5, characterized in that: By adjusting the port bandwidth, the traffic load balancing adjustment is performed on the two forwarding devices, including: If traffic imbalance occurs, the bandwidth of the output port with a higher traffic rate or traffic volume among the two output ports of the downstream device is limited to a preset percentage of the actual port bandwidth to perform traffic transfer and balance adjustment.

9. A MLAG environment traffic load balancing device, characterized in that: The device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, so that the at least one processor can execute a MLAG environment traffic load balancing method according to any one of claims 1-9.

10. A storage medium, characterized in that: The storage medium is a non-volatile computer-readable storage medium, and the non-volatile computer-readable storage medium stores at least one program, each of which includes instructions, and when the instructions are executed by the terminal, the terminal executes a MLAG environment traffic load balancing method according to any one of claims 1-8.

Citation Information

Patent Citations

  • Method and device for adjusting link bandwidth

    CN102158391A

  • Network equipment load balancing method and device based on CLOS architecture

    CN111030938A

  • Link aggregation load balancing method and device and storage medium

    CN114006861A

  • Message interaction method and device in MLAG environment and medium

    CN116886592A

  • Intelligent group traffic balancing method and device and storage medium

    CN117221233A