Load balancing method based on link aggregation
By introducing traffic inlet modules, load perception modules, load balancing modules and control management modules into link aggregation, the problem of insufficient real-time monitoring and flexibility caused by static load allocation in traditional link aggregation methods is solved, and the problem of insufficient real-time monitoring and flexibility caused by static load allocation in traditional link aggregation methods is realized. Dynamic management and optimization of network traffic are improved, and network performance and efficiency are improved.
Patent Information
- Application Number
- CN202411446948.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-02-14
AI Technical Summary
Traditional link aggregation methods adopt static load allocation, lack real-time monitoring and flexibility, making it difficult to adjust load balancing strategies according to specific business needs or traffic patterns, resulting in problems such as bandwidth fluctuations, increased latency or increased packet loss rate.
A load balancing method based on link aggregation is proposed, including traffic inlet module, load sensing module, load balancing module and control management module. These modules work together to achieve dynamic management and optimization of network traffic through packet capture, link status monitoring, weighted polling algorithms and real-time configuration functions.
Through intelligent traffic allocation strategies, network performance is optimized, network traffic is effectively managed and allocated, ensuring that the traffic of key applications is prioritized, avoiding single link overload, and improving the overall throughput and efficiency of the network.
Smart Images

Figure CN119449722A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method based on load balancing in link aggregation. Background Art
[0002] With the explosive growth of Internet services, the management and optimization of network traffic has become particularly important. Link aggregation technology allows multiple physical links to be bundled together and used as a logical link to increase throughput and provide redundancy, thereby improving network reliability and performance. However, traditional link aggregation methods have some limitations and challenges in load balancing.
[0003] Traditional link aggregation solutions usually use static load distribution and cannot adjust the load in the link according to the changes in real-time network and link conditions, resulting in a lack of real-time monitoring and analysis of link status, and an inability to respond promptly to changes in network conditions, bandwidth fluctuations, increased latency, or increased packet loss rates. Therefore, in order to be able to regulate the load in link aggregation, monitor the link status in multiple dimensions, dynamically adjust the weight according to the real-time link status, optimize traffic distribution, and ensure that key applications and high-priority traffic are given priority, a method based on load balancing in link aggregation is proposed. Summary of the invention
[0004] The purpose of the present invention is to provide a method based on load balancing in link aggregation to solve the problem proposed in the above background technology that traditional link aggregation adopts static load distribution, lacks real-time monitoring, is not flexible enough in configuration and management, and makes it difficult for network administrators to adjust load balancing strategies according to specific business needs or traffic patterns, resulting in a lack of real-time monitoring and analysis of link status, and an inability to respond to changes in network conditions in a timely manner, bandwidth fluctuations, increased delays or increased packet loss rates.
[0005] To achieve the above-mentioned purpose, the present invention provides the following technical solutions: a method for load balancing based on link aggregation, comprising a traffic inlet module, the traffic inlet module is used to receive and preliminarily process network traffic; a load sensing module, the load sensing module is used to collect and analyze link status information; a load balancing module, the load balancing module is used to reasonably distribute traffic based on load sensing results; a control management module, the control management module is used to provide system management and configuration functions; wherein the traffic inlet module, the load sensing module, the load balancing module and the control management module cooperate with each other to jointly complete the load balancing task based on link aggregation;
[0006] As a further preferred embodiment of the technical solution: the traffic inlet module includes a data packet capturer, a parser and a classifier, the data packet capturer is used to capture data packets entering the network, the parser is used to parse data packet header information, and the classifier classifies the data packets into corresponding traffic categories according to the parsed information, and the traffic inlet module establishes communication with the load sensing module to share necessary data packet information for load sensing;
[0007] As a further preferred embodiment of the present technical solution: the load sensing module includes a link status collector, a link status database and a link status analyzer. The link status collector is responsible for continuously monitoring the status of each link, such as bandwidth utilization, delay, packet loss rate, etc., and storing such information in the link status database. The link status analyzer analyzes the current load of each link based on the information in the database. There is data exchange between the load sensing module and the load balancing module to ensure that the load balancing decision is based on the latest link status information.
[0008] As a further preferred embodiment of the present technical solution: the load sensing module includes a link status collector, a link status database and a link status analyzer. The link status collector is responsible for continuously monitoring the status of each link, such as bandwidth utilization, delay, packet loss rate, etc., and storing such information in the link status database. The link status analyzer analyzes the current load of each link based on the information in the database. There is data exchange between the load sensing module and the load balancing module to ensure that the load balancing decision is based on the latest link status information.
[0009] As a further preferred embodiment of the present technical solution: the control management module includes a user interface and an API interface, the user interface provides a graphical operation interface, so that users can intuitively manage and configure the system, and the API interface allows third-party applications to call system functions in a programmatic manner, and the control management module also communicates directly with the load balancing module to achieve real-time update of the load balancing strategy;
[0010] As a further preferred embodiment of the present technical solution: the load balancing module uses a weighted round-robin algorithm WRR to distribute traffic, and the algorithm adjusts the weight according to the current bandwidth utilization of the link to optimize traffic distribution;
[0011] As a further preferred embodiment of the present technical solution: the load sensing module can dynamically adjust the monitoring frequency, and when the link status changes, the monitoring frequency can be automatically increased to timely reflect the change of the link status;
[0012] As a further preferred embodiment of the technical solution: the traffic inlet module can pre-set the priority according to the data packet type, so that the traffic of key applications is processed preferentially;
[0013] As a further preferred embodiment of the present technical solution: the control management module supports a historical data query function, through which a user can view the state change trend of a link in the past period of time;
[0014] As a further preferred embodiment of the present technical solution: the load balancing module supports session-based persistent connection allocation, ensuring that requests from the same source IP address can be subsequently allocated to the same link.
[0015] Compared with the prior art, the present invention has the following beneficial effects:
[0016] 1. The present invention optimizes network performance through intelligent traffic distribution strategy. Specifically, the method includes four main components: traffic entry module, load sensing module, load balancing module and control management module. These modules work together to achieve effective management and distribution of network traffic.
[0017] 2. The traffic inlet module captures the data packets entering the network through the packet capturer, and classifies the data packets using the parser and classifier, so that different types of traffic can be identified and preliminarily processed. Such processing makes the subsequent load perception more accurate and ensures that the traffic of key applications can be processed first;
[0018] 3. In addition, the load sensing module can continuously monitor the status information of each link, such as bandwidth utilization, delay and packet loss rate, and store this information in the link status database; through the link status analyzer, the current load of each link can be understood in real time to ensure that the load balancing decision is always based on the latest link status information; the load sensing module can also dynamically adjust the monitoring frequency according to the change of link status to timely reflect the change of link status;
[0019] 4. The load balancing module uses a weighted round-robin algorithm (WRR) for traffic distribution. This algorithm can adjust the weight according to the current bandwidth utilization of the link, thereby optimizing traffic distribution, avoiding overload of a single link, and improving the overall throughput and efficiency of the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 The present invention is a structural schematic diagram of a method for load balancing in link aggregation. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0022] Example
[0023] See also Figure 1 As shown, the present invention provides a technical solution: a method for load balancing based on link aggregation, characterized in that: it includes: a traffic inlet module, the traffic inlet module is used to receive and preliminarily process network traffic; a load sensing module, the load sensing module is used to collect and analyze link status information; a load balancing module, the load balancing module is used to reasonably distribute traffic based on load sensing results; a control management module, the control management module is used to provide system management and configuration functions; wherein, the traffic inlet module, the load sensing module, the load balancing module and the control management module cooperate with each other to jointly complete the load balancing task based on link aggregation.
[0024] In this embodiment, specifically: the traffic inlet module includes a data packet capturer, a parser and a classifier. The data packet capturer is used to capture data packets entering the network, the parser is used to parse the data packet header information, and the classifier classifies the data packets into corresponding traffic categories according to the parsed information. The traffic inlet module establishes communication with the load sensing module to share the necessary data packet information for load sensing. The traffic inlet module first captures all data packets entering the network by the data packet capturer. Then, the parser reads the header information of each data packet, including but not limited to the source IP address, the destination IP address, the protocol type, etc. Finally, the classifier classifies the data packets into different traffic categories according to this information, such as HTTP traffic, video streaming, etc. The traffic inlet module establishes communication with the load sensing module to share the key information of the data packet for subsequent load sensing processing. Through the preliminary processing of the traffic inlet module, different types of traffic can be effectively identified, and accurate data can be provided to the load sensing module, so as to better perform subsequent traffic management.
[0025] In this embodiment, specifically: the load sensing module includes a link status collector, a link status database and a link status analyzer. The link status collector is responsible for continuously monitoring the status of each link, such as bandwidth utilization, delay, packet loss rate, etc., and storing this information in the link status database. The link status analyzer analyzes the current load of each link based on the information in the database. There is data exchange between the load sensing module and the load balancing module to ensure that the load balancing decision is based on the latest link status information. The core of the load sensing module is to monitor the status of the link in real time, including indicators such as bandwidth utilization, delay, packet loss rate, etc., and store these data in the link status database. The link status analyzer regularly analyzes these data to obtain the current load of each link, thereby providing a basis for load balancing decisions.
[0026] In this embodiment, specifically: the load sensing module includes a link status collector, a link status database and a link status analyzer. The link status collector is responsible for continuously monitoring the status of each link, such as bandwidth utilization, delay, packet loss rate, etc., and storing this information in the link status database. The link status analyzer analyzes the current load status of each link based on the information in the database. There is data exchange between the load sensing module and the load balancing module to ensure that the load balancing decision is based on the latest link status information.
[0027] In this embodiment, specifically: the control management module includes a user interface and an API interface. The user interface provides a graphical operation interface so that users can intuitively manage and configure the system. The API interface allows third-party applications to call system functions in a programmatic manner. The control management module also communicates directly with the load balancing module to achieve real-time updates of the load balancing strategy. The control management module enables users to conveniently manage and configure the system by providing a user interface and an API interface. At the same time, it can also communicate with the load balancing module to allow instant updates of the load balancing strategy, thereby quickly responding to changes in the network environment. Users can intuitively set system parameters such as traffic priority, load balancing strategy, etc. through the user interface. Through the API interface, developers can write scripts or applications to automate management tasks, such as updating load balancing rules at regular intervals.
[0028] In this embodiment, specifically: the load balancing module adopts the weighted polling algorithm WRR to distribute traffic. The algorithm adjusts the weight according to the current bandwidth utilization of the link to optimize the traffic distribution. The load balancing module adopts the weighted polling algorithm WRR to dynamically adjust the traffic distribution weight according to the current bandwidth utilization of the link to ensure that the traffic is reasonably distributed to each link, thereby avoiding overload of a single link.
[0029] In this embodiment, specifically: the load sensing module can dynamically adjust the monitoring frequency. When the link status changes, the monitoring frequency can be automatically increased to promptly reflect the change in the link status. When the link status changes significantly, the load sensing module can automatically increase the monitoring frequency to collect data more frequently to ensure that load balancing decisions are based on the latest and most accurate information.
[0030] In this embodiment, specifically: the traffic inlet module can pre-set the priority according to the data packet type, so that the traffic of key applications is given priority, and the traffic inlet module can identify the data packets of key applications according to the preset priority strategy and give priority to them. This usually involves a pre-defined priority list or rule set, which defines which types of data packets should be given priority.
[0031] In this embodiment, specifically: the control management module supports a historical data query function, through which a user can view the state change trend of a link in the past period of time.
[0032] In this embodiment, specifically: the load balancing module supports session-based persistent connection allocation, ensuring that requests from the same source IP address can be subsequently allocated to the same link.
[0033] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for load balancing in link aggregation, characterized in that: include: A traffic inlet module, the traffic inlet module is used to receive and preliminarily process network traffic; A load sensing module, the load sensing module is used to collect and analyze link status information; A load balancing module, which is used to reasonably distribute traffic based on load sensing results; A control management module, which is used to provide system management and configuration functions; Among them, the traffic entry module, load sensing module, load balancing module and control management module cooperate with each other to complete the load balancing task based on link aggregation.
2. The method for load balancing in link aggregation according to claim 1, characterized in that: The traffic inlet module includes a data packet capturer, a parser and a classifier. The data packet capturer is used to capture data packets entering the network, the parser is used to parse the data packet header information, and the classifier classifies the data packets into corresponding traffic categories based on the parsed information. Communication is established between the traffic inlet module and the load sensing module to share necessary data packet information for load sensing.
3. The method for load balancing in link aggregation according to claim 2, characterized in that: The load sensing module includes a link status collector, a link status database and a link status analyzer. The link status collector is responsible for continuously monitoring the status of each link, such as bandwidth utilization, delay, packet loss rate, etc., and storing this information in the link status database. The link status analyzer analyzes the current load status of each link based on the information in the database. There is data exchange between the load sensing module and the load balancing module to ensure that the load balancing decision is based on the latest link status information.
4. The method for load balancing in link aggregation according to claim 3, characterized in that: The load sensing module includes a link status collector, a link status database and a link status analyzer. The link status collector is responsible for continuously monitoring the status of each link, such as bandwidth utilization, delay, packet loss rate, etc., and storing this information in the link status database. The link status analyzer analyzes the current load status of each link based on the information in the database. There is data exchange between the load sensing module and the load balancing module to ensure that the load balancing decision is based on the latest link status information.
5. The method for load balancing in link aggregation according to claim 4, characterized in that: The control management module includes a user interface and an API interface. The user interface provides a graphical operation interface, allowing users to intuitively manage and configure the system. The API interface allows third-party applications to call system functions in a programmatic manner. The control management module also communicates directly with the load balancing module to achieve real-time updates of the load balancing strategy.
6. The method for load balancing in link aggregation according to claim 5, characterized in that: The load balancing module uses a weighted round-robin algorithm WRR to distribute traffic. The algorithm adjusts the weight according to the current bandwidth utilization of the link to optimize traffic distribution.
7. The method for load balancing in link aggregation according to claim 6, characterized in that: The load sensing module can dynamically adjust the monitoring frequency, and when the link status changes, it can automatically increase the monitoring frequency to timely reflect the change in the link status.
8. The method for load balancing in link aggregation according to claim 7, characterized in that: The traffic inlet module can pre-set the priority according to the data packet type, so that the traffic of key applications is given priority.
9. The method for load balancing in link aggregation according to claim 8, characterized in that: The control management module supports a historical data query function, through which the user can view the status change trend of the link over a period of time.
10. The method for load balancing in link aggregation according to claim 9, characterized in that: The load balancing module supports session-based persistent connection allocation, ensuring that requests from the same source IP address can be subsequently allocated to the same link.