A multi-band load balancing method, device, network equipment and computer program product

By acquiring the total traffic and client traffic of multiple frequency bands of the target AP and calculating the average traffic, load balancing between frequency bands is achieved, solving the problem of frequency band imbalance in traditional WLAN management and improving communication performance and user experience.

CN119946722BActive Publication Date: 2025-12-16SHENZHEN ZHONGZHOU COMMUNICATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411994144.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-12-16
Estimated Expiration
2044-12-30

AI Technical Summary

Technical Problem

In traditional WLAN management, a single access point (AP) cannot achieve load balancing, resulting in some frequency bands being overloaded while others are idle, reducing network efficiency and user experience.

Method used

By acquiring the total traffic and client traffic across multiple frequency bands of the target AP, calculating the average traffic, load balancing between frequency bands is achieved, and client connection frequency bands are switched to achieve load balancing.

Benefits of technology

It improved the communication performance and quality of the target AP, optimized network resource allocation, and enhanced network stability and throughput.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119946722B_ABST
    Figure CN119946722B_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of communication load balancing, and provides a multi-frequency band load balancing method, device, network equipment and computer program product, comprising: acquiring total flow of each target frequency band in multiple target frequency bands of a target AP; acquiring total flow and average flow of all connected clients on a first target frequency band in the multiple target frequency bands; completing load balancing of the first target frequency band based on the total flow and the average flow of all connected clients on the first target frequency band; acquiring total flow and average flow of all connected clients on a second target frequency band in the multiple target frequency bands; and completing load balancing of the second target frequency band based on the total flow and the average flow of all connected clients on the second target frequency band. The method provided by the application can realize load balancing of multiple frequency bands of the target AP, and improve communication performance and communication quality of the target AP.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of communication load balancing, and particularly relates to a multi-band load balancing method and device, network equipment and a computer program product. BACKGROUND

[0002] With the vigorous development of Internet of Things technology, there is a general demand for multi-STA (Station) access in users' homes. In this scenario, a single AP needs to handle network connection and data transmission of multiple devices at the same time, which puts extremely high requirements on the performance and stability of the AP. Under the traditional WLAN management mode, a single AP cannot implement load balancing strategy, which leads to the situation that some frequency bands may be overloaded at some moments, while other frequency bands may be in an idle state, which undoubtedly reduces the overall efficiency of the network and user experience. Therefore, on the basis of cost saving, how to implement a dual-frequency load balancing strategy in a single AP to meet the growing network needs of users has become an important problem to be solved in the current WLAN technical field. By introducing the intra-band load balancing technology, we can more intelligently allocate network resources, improve the stability and throughput of the network, and provide better network services for users. SUMMARY

[0003] Therefore, the embodiments of the present application provide a multi-band load balancing method, device, network equipment and computer program product to realize load balancing among multiple frequency bands and improve communication performance and communication quality.

[0004] The first aspect of the embodiments of the present application provides a multi-band load balancing method, comprising:

[0005] Respectively acquiring total traffic of each target frequency band in multiple target frequency bands of a target AP;

[0006] Acquiring total traffic and average traffic of all clients connected on a first target frequency band in the multiple target frequency bands;

[0007] Completing load balancing of the first target frequency band based on the total traffic and average traffic of all clients connected on the first target frequency band;

[0008] Acquiring total traffic and average traffic of all clients connected on a second target frequency band in the multiple target frequency bands;

[0009] Completing load balancing of the second target frequency band based on the total traffic and average traffic of all clients connected on the second target frequency band.

[0010] In an implementation form of the first aspect, the load balancing of the first target frequency band is completed based on a total traffic and an average traffic of all clients connected on the first target frequency band, comprising:

[0011] In a case that the total traffic of the first target frequency band minus the total traffic of all clients connected on the first target frequency band is greater than a preset traffic threshold of the first target frequency band, an average value of the traffic of all clients connected on the first target frequency band is calculated.

[0012] For each target client of all clients connected on the first target frequency band, if the traffic of the target client is greater than the average value of the traffic of all clients connected on the first target frequency band, the connection frequency band of the target client is switched to the second target frequency band of the target AP.

[0013] In an implementation form of the first aspect, the load balancing of the second target frequency band is completed based on a total traffic and an average traffic of all clients connected on the second target frequency band, comprising:

[0014] In a case that the total traffic of the second target frequency band minus the total traffic of all clients connected on the second target frequency band is greater than a preset traffic threshold of the second target frequency band, an average value of the traffic of all clients connected on the second target frequency band is calculated.

[0015] For each target multi-frequency client of all clients connected on the second target frequency band, if the traffic of the target multi-frequency client is greater than the average value of the traffic of all clients connected on the second target frequency band, the connection frequency band of the target multi-frequency client is switched to the first target frequency band of the target AP.

[0016] In an implementation form of the first aspect, the method further comprises:

[0017] allocating different load priorities to clients connected to the AP;

[0018] In a case that the load priority of the client is higher than a preset priority, a frequency band switching operation on the client in the load balancing process is cancelled.

[0019] In an implementation form of the first aspect, the method further comprises:

[0020] detecting a connection request of a terminal device, the connection request comprising a target AP to which the terminal device requests to connect and frequency band support information of the terminal device;

[0021] In a case where the connection request of the terminal device is detected and the frequency band support information of the terminal device comprises the first target frequency band and the second target frequency band, the quantity of all clients connected on the target AP is acquired;

[0022] In a case where the connection request of the terminal device is detected and the frequency band support information of the terminal device comprises the first target frequency band and the second target frequency band, the quantity of all clients connected on the target AP is acquired;

[0023] In a case where the connection request of the terminal device is detected and the frequency band support information of the terminal device comprises the first target frequency band and the second target frequency band, the quantity of all clients connected on the target AP is acquired;

[0024] In a case where the connection request of the terminal device is detected and the frequency band support information of the terminal device comprises the first target frequency band and the second target frequency band, the quantity of all clients connected on the target AP is acquired;

[0025] In a case where the connection request of the terminal device is detected and the frequency band support information of the terminal device comprises the first target frequency band and the second target frequency band, the quantity of all clients connected on the target AP is acquired;

[0026] In a case where the connection request of the terminal device is detected and the frequency band support information of the terminal device comprises the first target frequency band and the second target frequency band, the quantity of all clients connected on the target AP is acquired;

[0027] In a case where the connection request of the terminal device is detected and the frequency band support information of the terminal device comprises the first target frequency band and the second target frequency band, the quantity of all clients connected on the target AP is acquired;

[0028] In a case where the connection request of the terminal device is detected and the frequency band support information of the terminal device comprises the first target frequency band and the second target frequency band, the quantity of all clients connected on the target AP is acquired;

[0029] In a case where the connection request of the terminal device is detected and the frequency band support information of the terminal device comprises the first target frequency band and the second target frequency band, the quantity of all clients connected on the target AP is acquired;

[0030] In a case where the connection request of the terminal device is detected and the frequency band support information of the terminal device comprises the first target frequency band and the second target frequency band, the quantity of all clients connected on the target AP is acquired;

[0031] In a case where the connection request of the terminal device is detected and the frequency band support information of the terminal device comprises the first target frequency band and the second target frequency band, the quantity of all clients connected on the target AP is acquired;

[0032] In a case where the connection request of the terminal device is detected and the frequency band support information of the terminal device comprises the first target frequency band and the second target frequency band, the quantity of all clients connected on the target AP is acquired;

[0033] The second aspect of the embodiment of the present application provides a multi-band load balancing device, comprising:

[0034] A frequency band module is configured to acquire total traffic of each target frequency band in a plurality of target frequency bands of a target AP.

[0035] A client data acquisition module is configured to acquire total traffic and average traffic of all clients connected on a first target frequency band in the plurality of target frequency bands and acquire total traffic and average traffic of all clients connected on a second target frequency band in the plurality of target frequency bands.

[0036] A first load balancing module is configured to complete load balancing of the first target frequency band based on the total traffic and the average traffic of all clients connected on the first target frequency band.

[0037] A second load balancing module is configured to complete load balancing of the second target frequency band based on the total traffic and the average traffic of all clients connected on the second target frequency band.

[0038] The third aspect of the embodiment of the present application provides a network device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the multi-band load balancing method according to the first aspect when executing the computer program.

[0039] The fourth aspect of the embodiment of the present application provides a computer program product, comprising a computer program, wherein the computer program is executable to implement the multi-band load balancing method according to the first aspect.

[0040] The first aspect of the embodiment of the present application has the following beneficial effects: total traffic of each target frequency band in a plurality of target frequency bands of a target AP is acquired; then total traffic and average traffic of all clients connected on a first target frequency band in the plurality of target frequency bands are acquired; load balancing of the first target frequency band is completed based on the total traffic and the average traffic of all clients connected on the first target frequency band; total traffic and average traffic of all clients connected on a second target frequency band in the plurality of target frequency bands are acquired; load balancing of the second target frequency band is completed based on the total traffic and the average traffic of all clients connected on the second target frequency band, thereby realizing load balancing of a plurality of frequency bands of the target AP and improving communication performance and communication quality of the target AP.

[0041] It can be understood that the beneficial effects of the second aspect to the fourth aspect can be referred to the related description in the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description only some of the embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.

[0043] Figure 1 is an implementation flow diagram of a multi-band load balancing method provided by an embodiment of the present application;

[0044] Figure 2 is an implementation flow diagram of a multi-band load balancing method provided by an embodiment of the present application;

[0045] Figure 3 is a schematic diagram of a multi-band load balancing device provided by an embodiment of the present application;

[0046] Figure 4 is a schematic diagram of a network device provided by an embodiment of the present application;

[0047] Figure 5 is a schematic diagram of a computer program product provided by an embodiment of the present application. DETAILED DESCRIPTION

[0048] In the following description, for the purpose of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

[0049] It should be understood that, when used in the present application specification and the appended claims, the term "comprising" indicates the presence of described features, whole, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, whole, steps, operations, elements, components and / or sets thereof.

[0050] It should also be understood that the term "and / or" used in the present application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0051] As used in the specification and the appended claims, the term "if' can be interpreted as meaning "when" or "once" or "in response to a determination" or "in response to detecting" depending on the context. Similarly, the phrase "if it is determined" or "if [a described condition or event] is detected" can be interpreted as meaning "once it is determined" or "in response to a determination" or "once [a described condition or event] is detected" or "in response to detecting [a described condition or event]" depending on the context.

[0052] In addition, in the description of the present application and the appended claims, the terms "first", "second", "third", etc. are used only to distinguish descriptions, and cannot be understood as indicating or implying relative importance.

[0053] In the present application, the reference "one embodiment" or "some embodiments" and the like means that the specific features, structures or characteristics described in connection with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in further some embodiments" and the like appearing in different places in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "include", "contain", "have" and their variants mean "include but not limited to", unless otherwise specifically emphasized.

[0054] The embodiments of the present application provide a multi-band load balancing method for realizing load balancing of multiple target frequency bands of a target AP (Wireless Access Point, wireless network access point), improving the communication performance and communication quality of the target AP. The multi-band load balancing method provided by the present application, by respectively acquiring the total flow of each target frequency band in the multiple target frequency bands of the target AP; then acquiring the total flow and average flow of all clients connected on the first target frequency band in the multiple target frequency bands; completing the load balancing of the first target frequency band based on the total flow and average flow of all clients connected on the first target frequency band; acquiring the total flow and average flow of all clients connected on the second target frequency band in the multiple target frequency bands; completing the load balancing of the second target frequency band based on the total flow and average flow of all clients connected on the second target frequency band, realizing the load balancing of the multiple frequency bands of the target AP, improving the communication performance and communication quality of the target AP.

[0055] The multi-band load balancing method provided by the embodiments of the present application can be applied to network devices such as routers with APs, mobile phones, tablet computers, vehicle-mounted devices, notebook computers, ultra-mobile personal computers (UMPC), and the like. The embodiments of the present application do not limit the specific type of network devices.

[0056] As shown in Figure 1 The embodiments of the present application provide a multi-band load balancing method, which includes the following steps:

[0057] In step S11, the total flow of each target frequency band in the plurality of target frequency bands of the target AP is obtained respectively.

[0058] In application, the target frequency bands include 2G, 5G and 6G. The total flow of the target frequency band is the actual bandwidth of the communication interface of the target frequency band, which is smaller than the maximum supported bandwidth of the communication interface of the target frequency band and is determined by the actual environment.

[0059] In step S12, the total flow and the average flow of all clients connected on the first target frequency band in the plurality of target frequency bands are obtained.

[0060] In step S13, the load balancing of the first target frequency band is completed based on the total flow and the average flow of all clients connected on the first target frequency band.

[0061] In application, the total flow and the average flow of all clients connected on the first target frequency band meet the preset load balancing condition of the first target frequency band, and the load balancing is performed; otherwise, the existing communication connection state is maintained.

[0062] In step S14, the total flow and the average flow of all clients connected on the second target frequency band in the plurality of target frequency bands are obtained.

[0063] In application, after the load balancing of the first target frequency band is completed, the total flow and the average flow of all clients connected on the second target frequency band are obtained, so that the latest total flow and average flow of all clients connected on the second target frequency band are obtained along with the load balancing of the first target frequency band.

[0064] In step S15, the load balancing of the second target frequency band is completed based on the total flow and the average flow of all clients connected on the second target frequency band.

[0065] In the application, the total traffic and the average traffic of all clients connected on the second target frequency band meet the preset load balancing condition of the second target frequency band, and the load balancing is performed; in the case that the total traffic and the average traffic of all clients connected on the first target frequency band do not meet the preset load balancing condition of the first target frequency band, the existing communication connection state is maintained.

[0066] In the application, the target frequency band includes 2G, 5G and 6G, the first target frequency band is 5G, and the second target frequency band is 2G. According to different use scenarios, the first target frequency band and the second target frequency band can be configured. For example, in an indoor scenario (such as a bedroom or a living room), the first target frequency band is set to 5G, and the second target frequency band is set to 2G; in an outdoor scenario, the first target frequency band is set to 2G, and the second target frequency band is set to 5G.

[0067] In one embodiment, the step S13, based on the total traffic and the average traffic of all clients connected on the first target frequency band, completes the load balancing of the first target frequency band, comprising:

[0068] Step S131, in the case that the total traffic of the first target frequency band minus the total traffic of all clients connected on the first target frequency band is greater than the preset traffic threshold of the first target frequency band, the average traffic of all clients connected on the first target frequency band is calculated.

[0069] In the application, the total traffic of the first target frequency band minus the total traffic of all clients connected on the first target frequency band is greater than the preset traffic threshold of the first target frequency band, and the load balancing of the first target frequency band is triggered. The average traffic of all clients connected on the first target frequency band = the total traffic of all clients connected on the first target frequency band ÷ the number of all clients connected on the first target frequency band; the total traffic of all clients connected on the first target frequency band is obtained by adding the traffic of each client connected on the target frequency band.

[0070] Step S132, for each target client in all clients connected on the first target frequency band, if the traffic of the target client is greater than the average traffic of all clients connected on the first target frequency band, the connection frequency band of the target client is switched to the second target frequency band of the target AP.

[0071] In the application, the traffic of the target client is greater than the average traffic of all clients connected on the first target frequency band, which means that the load of the target client on the first target frequency band is greater than the average level of the load of all clients on the first target frequency band.

[0072] In an application, for each target client in all clients connected on the first target frequency band, if the traffic of the target client is in the top pre-set number (e.g. top three) of all clients connected on the first target frequency band, the connection frequency band of the target client is switched to the second target frequency band of the target AP.

[0073] In an application, the connection frequency band of the target client is switched to the second target frequency band of the target AP according to the communication protocol (802.11k / v / r protocol) supported by the target client device, and the priority is 802.11v>802.11r>802.11k when all the three protocols are supported.

[0074] In an embodiment, the step S15, the load balancing of the second target frequency band is completed based on the total traffic and the average traffic of all clients connected on the second target frequency band, including:

[0075] Step S151, in the case that the total traffic of the second target frequency band minus the total traffic of all clients connected on the second target frequency band is greater than the pre-set traffic threshold of the second target frequency band, the average value of the traffic of all clients connected on the second target frequency band is calculated.

[0076] In an application, the total traffic of the second target frequency band minus the total traffic of all clients connected on the second target frequency band is greater than the pre-set traffic threshold of the second target frequency band, and the load balancing of the second target frequency band is triggered. The average value of the traffic of all clients connected on the second target frequency band = the total traffic of all clients connected on the second target frequency band ÷ the number of all clients connected on the second target frequency band; the total traffic of all clients connected on the second target frequency band is obtained by adding the traffic of each client in all clients connected on the second target frequency band.

[0077] Step S152, for each target multi-frequency client in all clients connected on the second target frequency band, if the traffic of the target multi-frequency client is greater than the average value of the traffic of all clients connected on the second target frequency band, the connection frequency band of the target multi-frequency client is switched to the first target frequency band of the target AP. In an application, if the traffic of the target client is greater than the average value of the traffic of all clients connected on the second target frequency band, it means that the load brought by the target client to the second target frequency band is greater than the average level of the load brought by all clients on the second target frequency band to the second target frequency band.

[0078] In an application, for each target client in all clients connected on the second target frequency band, if the traffic of the target client is in the top pre-set number (e.g. top three) of all clients connected on the second target frequency band, the connection frequency band of the target client is switched to the second target frequency band of the target AP.

[0079] In an embodiment, the method further comprises:

[0080] Step S161, different load priorities are assigned to clients connected to the AP.

[0081] Step S162, if the load priority of the client is higher than a pre-set priority, the frequency band switching operation of the client in the load balancing process is cancelled.

[0082] In an application, different load priorities of clients on target frequency bands are assigned to clients according to the communication requirements of the clients, and the communication requirements include communication rate priority and communication distance priority. For example, in the case that the first target frequency band is 5G and the second target frequency band is 2G, the communication type of a television is communication rate priority, and the communication type of a robot is communication distance priority. The load priority of the television on the first target frequency band > the first pre-set priority of the first target frequency band > the load priority of the robot on the first target frequency band; the load priority of the robot on the first target frequency band > the first pre-set priority of the first target frequency band > the load priority of the television on the first target frequency band.

[0083] As shown in FIG. 1, Figure 2 In an embodiment, the method further comprises:

[0084] Step S171, a connection request of a terminal device is detected, and the connection request includes a target AP requested to be connected by the terminal device and frequency band support information of the terminal device.

[0085] In an application, when a terminal device connects to a target AP for the first time, a connection request is sent.

[0086] Step S172, if the connection request of the terminal device is detected and the frequency band support information of the terminal device includes the first target frequency band and the second target frequency band, the number of all clients connected on the target AP is obtained.

[0087] In an application, a device such as a mobile phone or a computer supports multiple frequency bands.

[0088] Step S173, if the number of all clients connected on the target AP is less than a total client threshold of the target AP, the number of all clients connected on the first target frequency band of the target AP is obtained.

[0089] In application, the total client threshold of the target AP is the maximum number of clients supported by the target AP to connect, which is the sum of the maximum number of clients supported by each target frequency band in the target AP to connect. If the number of all clients connected on the target AP is not less than the total client threshold of the target AP, it means that the target AP no longer supports access to new devices.

[0090] In step S174, if the number of all clients connected on the first target frequency band is less than the first client threshold of the first target frequency band, the terminal device is connected to the first target frequency band as a client.

[0091] In step S175, if the number of all clients connected on the first target frequency band is not less than the first client threshold of the first target frequency band, the number of all clients connected on the second target frequency band of the target AP is obtained.

[0092] In step S176, if the number of all clients connected on the second target frequency band is less than the second client threshold of the second target frequency band, the terminal device is connected to the second target frequency band as a client.

[0093] In application, the terminal device initially connected to the target AP is preferentially connected to the first target frequency band of the target AP. When the number of clients connected on the first target frequency band reaches the first client threshold, the terminal device is connected to the second target frequency band.

[0094] In one embodiment, the method further comprises:

[0095] In step S181, in the case that the connection request of the terminal device is detected and the frequency band support information of the terminal device only includes the second target frequency band, the number of all clients connected on the second target frequency band is obtained.

[0096] In application, some older models of terminal devices only support one target frequency band, for example, only support the second target frequency band, and therefore need to be connected to the second target frequency band.

[0097] In step S182, if the number of all clients connected on the second target frequency band is less than the second client threshold of the second target frequency band, the terminal device is connected to the second target frequency band as a client.

[0098] In step S183, if the number of all clients connected on the second target frequency band is not less than the second client threshold of the second target frequency band, a connectable AP is selected for the terminal device based on inter-AP load balancing.

[0099] In the application, for a terminal device only supporting the second target frequency band, if the number of clients connected to the target AP on the second target frequency band of the target AP reaches the second client threshold, the AP with the minimum load in the other APs and the minimum load on the second target frequency band can be selected as the connectable AP for the terminal device.

[0100] In one embodiment, the method further comprises:

[0101] In step S191, if the number of all clients connected to the target AP is not less than the total client threshold of the target AP, a substitute AP is selected for the terminal device based on inter-AP load balancing.

[0102] In the application, if the number of all clients connected to the target AP reaches the total client threshold of the target AP, it means that all target frequency bands of the target AP have reached the maximum number of supported connected clients, and the AP with the minimum load in the other APs is selected as the substitute AP for the terminal device.

[0103] In step S192, based on the frequency band support information of the terminal device, the terminal device is accessed to the optimal target frequency band in the multiple target frequency bands of the substitute AP as a client.

[0104] In the application, based on the frequency band support information of the terminal device, the terminal device is accessed to the optimal target frequency band in the multiple target frequency bands of the substitute AP as a client, which can be performed according to the steps S11 to S15.

[0105] It should be understood that the size of the serial number of each step in the above embodiments does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0106] The embodiments of the present application also provide a multi-frequency band load balancing device for executing the steps in the above multi-frequency band load balancing method embodiments. The multi-frequency band load balancing device can be a virtual device (Virtual Appliance) in a network device, run by a processor of a first network device, or can be the network device itself.

[0107] As shown in Figure 3 The multi-frequency band load balancing device 300 provided by the embodiments of the present application comprises:

[0108] The frequency band module 301 is configured to acquire the total traffic of each target frequency band in the multiple target frequency bands of the target AP, respectively.

[0109] The client data acquisition module 302 is configured to acquire total traffic and average traffic of all clients connected to a first target frequency band in the plurality of target frequency bands and acquire total traffic and average traffic of all clients connected to a second target frequency band in the plurality of target frequency bands.

[0110] The first load balancing module 303 is configured to complete load balancing of the first target frequency band based on the total traffic and the average traffic of all clients connected to the first target frequency band.

[0111] The second load balancing module 304 is configured to complete load balancing of the second target frequency band based on the total traffic and the average traffic of all clients connected to the second target frequency band. In applications, each module in the data storage device can be a software program module, can be realized by different logical circuits integrated in a processor, or can be realized by a plurality of distributed processors.

[0112] In one embodiment, the first load balancing module 303 is configured to:

[0113] In a case where the total traffic of the first target frequency band minus the total traffic of all clients connected to the first target frequency band is greater than a preset traffic threshold of the first target frequency band, the average traffic of all clients connected to the first target frequency band is calculated.

[0114] For each target client in all clients connected to the first target frequency band, if the traffic of the target client is greater than the average traffic of all clients connected to the first target frequency band, the connection frequency band of the target client is switched to the second target frequency band of the target AP.

[0115] In one embodiment, the second load balancing module 304 is configured to:

[0116] In a case where the total traffic of the second target frequency band minus the total traffic of all clients connected to the second target frequency band is greater than a preset traffic threshold of the second target frequency band, the average traffic of all clients connected to the second target frequency band is calculated.

[0117] For each target multi-frequency client in all clients connected to the second target frequency band, if the traffic of the target multi-frequency client is greater than the average traffic of all clients connected to the second target frequency band, the connection frequency band of the target multi-frequency client is switched to the first target frequency band of the target AP.

[0118] In one embodiment, the multi-frequency band load balancing device 300 further comprises a first stabilization module 305, configured to:

[0119] allocating different load priorities to clients connected to the AP;

[0120] canceling the band switching operation on the client in the load balancing process if the load priority of the client is higher than a preset priority.

[0121] In one embodiment, the multi-band load balancing device 300 further comprises a connection balancing module 306, configured to:

[0122] detect a connection request of a terminal device, the connection request comprising a target AP requested to be connected by the terminal device and band support information of the terminal device;

[0123] if the connection request of the terminal device is detected and the band support information of the terminal device comprises a first target band and a second target band, obtain the number of all clients connected to the target AP;

[0124] if the number of all clients connected to the target AP is less than a total client threshold of the target AP, obtain the number of all clients connected to the first target band of the target AP;

[0125] if the number of all clients connected to the first target band is less than a first client threshold of the first target band, access the first target band as a client for the terminal device;

[0126] if the number of all clients connected to the first target band is not less than the first client threshold of the first target band, obtain the number of all clients connected to the second target band of the target AP;

[0127] if the number of all clients connected to the second target band is less than a second client threshold of the second target band, access the second target band as a client for the terminal device.

[0128] In one embodiment, the connection balancing module 306 is further configured to:

[0129] if the connection request of the terminal device is detected and the band support information of the terminal device comprises only the second target band, obtain the number of all clients connected to the second target band;

[0130] if the number of all clients connected to the second target band is less than the second client threshold of the second target band, access the second target band as a client for the terminal device;

[0131] If the number of all clients connected on the second target frequency band is not less than a second client threshold of the second target frequency band, the terminal device is selected an AP connectable based on inter-AP load balancing.

[0132] In one embodiment, the connection balancing module 306 is further configured to:

[0133] If the number of all clients connected on the target AP is not less than a total client threshold of the target AP, the terminal device is selected a substitute AP based on inter-AP load balancing.

[0134] Based on the frequency band support information of the terminal device, the terminal device is accessed to an optimal target frequency band of the substitute AP as a client.

[0135] In an application, each module in the multi-frequency band load balancing apparatus can be a software program module, can be realized by different logical circuits integrated in a processor, or can be realized by multiple distributed processors.

[0136] Figure 4 A structural schematic diagram of a network device according to an embodiment of the present application is provided. As shown in the figure, the network device 4 of this embodiment includes at least one processor 40 (only one processor is shown in the figure), a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, wherein the processor 40 implements the steps in any of the above multi-frequency band load balancing method embodiments when executing the computer program 42. Figure 4 Figure 4 The network device can include, but is not limited to, the processor 40 and the memory 41. Those skilled in the art can understand that the network device 4 is only an example and does not constitute a limitation on the network device 4, and can include more or fewer components than those shown in the figure, or combine certain components or different components, for example, can also include an input / output device, a network access device, etc.

[0137] The network device can include, but is not limited to, the processor 40 and the memory 41. Those skilled in the art can understand that the network device 4 is only an example and does not constitute a limitation on the network device 4, and can include more or fewer components than those shown in the figure, or combine certain components or different components, for example, can also include an input / output device, a network access device, etc. Figure 4 The network device 4 is only an example and does not constitute a limitation on the network device 4, and can include more or fewer components than those shown in the figure, or combine certain components or different components, for example, can also include an input / output device, a network access device, etc.

[0138] ​The processor 40 can be a central processing unit (CPU), and can also be other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0139] The memory 41 can be an internal storage unit of the network device 4 in some embodiments, such as a hard disk or a memory of the network device 4. The memory 41 can also be an external storage device of the network device 4 in other embodiments, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the memory 41 can include both the internal storage unit and the external storage device of the network device 4. The memory 41 is used to store an operating system, an application program, a boot loader, data, and other programs, such as program codes of the computer program, etc. The memory 41 can also be used to temporarily store data that has been output or will be output.

[0140] In applications, the network device further includes a power management module, and the power management device can receive input of a battery and / or a charger to supply power to the processor, the memory, the communication module, etc.

[0141] In the application, the network device further comprises a communication module, which can provide a communication solution of the application on the network device, including Wireless Local Area Networks (WLAN) (such as Wi-Fi network), Bluetooth, Zigbee, mobile communication network, Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared technology (IR) and the like. The communication module can be one or more devices integrated with at least one communication processing module. The communication module can include an antenna, which can have only one array element or be an antenna array including a plurality of array elements. The communication module can receive electromagnetic waves through the antenna, frequency modulate and filter the electromagnetic wave signals, and send the processed signals to the processor. The communication module can also receive signals to be sent from the processor, frequency modulate and amplify them, and convert them into electromagnetic wave radiation through the antenna.

[0142] It should be noted that the above Figure 4 does not constitute a limitation on the structure of the network device 4, and can include more or fewer components than shown, or combine certain components, or different components, for example, the network device 01 can also include a display screen, an indicator light, a motor, a control (such as a button), a gyroscope sensor, an acceleration sensor, etc.

[0143] It should be noted that the information interaction, execution process, etc. between the above devices / units, since based on the same concept as the method embodiments of the present application, the specific functions and the technical effects brought about, specific reference can be made to the method embodiments part, and here will not be repeated.

[0144] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of functional units and modules is exemplified, and in actual application, the above functions can be completed by different functional units and modules according to needs, i.e. the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit, and the integrated unit can be realized in the form of hardware or software. In addition, the specific names of each functional unit and module are only for easy distinction, and do not limit the protection scope of the present application. The specific working process of the units and modules in the above system can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

[0145] The embodiment of the present application further provides a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to realize the steps in each of the above-mentioned method embodiments.

[0146] The embodiment of the present application provides a computer program product 5. The computer program product 5 comprises a computer program 50. The computer program 50 is executed to realize the above-mentioned multi-band load balancing method embodiment.

[0147] The integrated unit, if realized in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the embodiment of the present application realizes all or part of the processes in the above-mentioned method embodiments, which can be completed by instructing related hardware through a computer program. The computer program can be stored in a computer readable storage medium. The computer program is executed by a processor to realize the steps in each of the above-mentioned method embodiments. The computer program includes computer program code. The computer program code can be in the form of source code, object code, executable files or some intermediate forms. The computer readable medium at least includes any entity or device capable of carrying the computer program code to the device / terminal equipment, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunications signal and a software distribution medium. For example, a U disk, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, the computer readable medium cannot be an electrical carrier signal and a telecommunications signal.

[0148] In the above-mentioned embodiments, the description of each embodiment has its own focus. The parts not described or recorded in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0149] Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0150] In the embodiments provided by the present application, it should be understood that the disclosed network device and method can be implemented in other manners. For example, the embodiments of the network device described above are merely schematic, and the division of the modules or units is merely a logical function division, and there can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between the units can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or in other forms.

[0151] The units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.

[0152] The above-described embodiments are merely used to illustrate the technical solutions of the present application, but not limit the present application; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: the technical solutions recorded in the foregoing embodiments can still be modified, or some technical features can be replaced by equivalent replacements; and these modifications or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. A multi-band load balancing method, characterized in that, include: Obtain the total traffic of each target frequency band in the multiple target frequency bands of the target AP; Obtain the total traffic and average traffic of all clients connected to the first target frequency band among the multiple target frequency bands; Load balancing of the first target frequency band is achieved based on the total traffic and average traffic of all clients connected to the first target frequency band. Obtain the total traffic and average traffic of all clients connected to the second target frequency band among the multiple target frequency bands; Load balancing of the second target frequency band is achieved based on the total and average traffic of all clients connected to the second target frequency band. The process of load balancing the first target frequency band based on the total and average traffic of all clients connected to the first target frequency band includes: If the total traffic of the first target frequency band minus the total traffic of all clients connected to the first target frequency band is greater than the preset traffic threshold of the first target frequency band, calculate the average traffic of all clients connected to the first target frequency band. For each target client among all clients connected to the first target frequency band, if the traffic of the target client is greater than the average traffic of all clients connected to the first target frequency band, then the connection frequency band of the target client is switched to the second target frequency band of the target AP according to the communication protocol supported by the target client device. The load balancing of the second target frequency band based on the total traffic and average traffic of all clients connected on the second target frequency band includes: If the total traffic of the second target frequency band minus the total traffic of all clients connected to the second target frequency band is greater than the preset traffic threshold of the second target frequency band, calculate the average traffic of all clients connected to the second target frequency band. For each target multi-frequency client among all clients connected to the second target frequency band, if the traffic of the target multi-frequency client is greater than the average traffic of all clients connected to the second target frequency band, then the connection frequency band of the target multi-frequency client is switched to the first target frequency band of the target AP according to the communication protocol supported by the target client device. When the target client device supports communication protocols including 802.11v, 802.11r, and 802.11k, the priority of each communication protocol is 802.11v > 802.11r > 802.11k; The method further includes: Based on the client's communication requirements, the AP-connected clients are assigned different load priorities on various target frequency bands, including communication rate priority and communication distance priority. If the load priority of the client is higher than the preset priority, cancel the frequency band switching operation for the client during the load balancing process.

2. The multi-band load balancing method as described in claim 1, characterized in that, The method further includes: Detect the connection request of the terminal device, the connection request including the target AP that the terminal device requests to connect to and the frequency band support information of the terminal device; If a connection request from a terminal device is detected and the frequency band support information of the terminal device includes a first target frequency band and a second target frequency band, the number of all clients connected to the target AP is obtained. If the total number of clients connected to the target AP is less than the total number of clients of the target AP, then obtain the total number of clients connected to the first target frequency band of the target AP; If the total number of all clients connected to the first target frequency band is less than the first client threshold of the first target frequency band, then the terminal device will be connected to the first target frequency band as a client. If the number of all clients connected on the first target frequency band is not less than the first client threshold of the first target frequency band, then obtain the number of all clients connected on the second target frequency band of the target AP; If the total number of all clients connected to the second target frequency band is less than the second client threshold of the second target frequency band, then the terminal device will be connected to the second target frequency band as a client.

3. The multi-band load balancing method as described in claim 2, characterized in that, The method further includes: If a connection request from a terminal device is detected and the frequency band support information of the terminal device only includes the second target frequency band, obtain the number of all clients connected on the second target frequency band. If the total number of all clients connected to the second target frequency band is less than the second client threshold of the second target frequency band, then the terminal device will be connected to the second target frequency band as a client. If the number of all clients connected on the second target frequency band is not less than the second client threshold of the second target frequency band, then an AP that can be connected to is selected for the terminal device based on the inter-AP load balancing.

4. The multi-band load balancing method as described in claim 3, characterized in that, The method further includes: If the total number of clients connected to the target AP is not less than the total client threshold of the target AP, an alternative AP is selected for the terminal device based on inter-AP load balancing. Based on the frequency band support information of the terminal device, the terminal device is used as a client to access the optimal target frequency band among the multiple target frequency bands of the alternative AP.

5. A multi-band load balancing device, characterized in that, include: The frequency band module is used to obtain the total traffic of each target frequency band in the multiple target frequency bands of the target AP; The client data acquisition module is used to acquire the total traffic and average traffic of all clients connected on the first target frequency band among the multiple target frequency bands, and to acquire the total traffic and average traffic of all clients connected on the second target frequency band among the multiple target frequency bands; The first load balancing module is used to perform load balancing of the first target frequency band based on the total traffic and average traffic of all clients connected to the first target frequency band. The process of load balancing the first target frequency band based on the total and average traffic of all clients connected to the first target frequency band includes: If the total traffic of the first target frequency band minus the total traffic of all clients connected to the first target frequency band is greater than the preset traffic threshold of the first target frequency band, calculate the average traffic of all clients connected to the first target frequency band. For each target client among all clients connected to the first target frequency band, if the traffic of the target client is greater than the average traffic of all clients connected to the first target frequency band, then the connection frequency band of the target client is switched to the second target frequency band of the target AP according to the communication protocol supported by the target client device. The second load balancing module is used to perform load balancing of the second target frequency band based on the total traffic and average traffic of all clients connected to the second target frequency band; the process of performing load balancing of the second target frequency band based on the total traffic and average traffic of all clients connected to the second target frequency band includes: If the total traffic of the second target frequency band minus the total traffic of all clients connected to the second target frequency band is greater than the preset traffic threshold of the second target frequency band, calculate the average traffic of all clients connected to the second target frequency band. For each target multi-frequency client among all clients connected to the second target frequency band, if the traffic of the target multi-frequency client is greater than the average traffic of all clients connected to the second target frequency band, then the connection frequency band of the target multi-frequency client is switched to the first target frequency band of the target AP according to the communication protocol supported by the target client device; when the communication protocols supported by the target client device simultaneously include 802.11v, 802.11r and 802.11k, the priority of each communication protocol is 802.11v > 802.11r > 802.11k; The first stabilization module is used to assign different load priorities to clients connected to the AP according to their communication needs, including communication rate priority and communication distance priority; if the load priority of a client is higher than the preset priority, the frequency band switching operation for the client during the load balancing process is canceled.

6. A network device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 4.

7. A computer program product, characterized in that, Includes a computer program, which, when executed, causes the multi-band load balancing method as described in any one of claims 1 to 4 to be implemented.

Citation Information

Patent Citations

  • Load balancing method and device, storage medium and electronic device

    CN116437394A

  • Local area network load alarm method and device and computer readable storage medium

    CN116633822A