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

By load balancing between multiple frequency bands of the target AP, the problem that a single AP cannot achieve load balancing under the traditional WLAN management method is solved, and the overall efficiency and user experience of the network are improved.

CN119946722AActive Publication Date: 2025-05-06SHENZHEN ZHONGZHOU COMMUNICATION TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Under the traditional WLAN management method, a single AP cannot implement a load balancing strategy, resulting in some frequency bands being overloaded while others being idle, reducing the overall efficiency and user experience of the network.

Method used

Load balancing between multiple target bands is achieved by obtaining the total traffic of multiple target bands of the target AP and load balancing based on the total traffic and average traffic of the clients connected on each band. The specific method includes calculating the average value of the traffic when the total traffic in a certain frequency band exceeds the preset threshold, and performing band switching on clients whose traffic exceeds the average.

Benefits of technology

The load balancing of multiple frequency bands of the target AP is achieved, communication performance and communication quality are improved, network stability and throughput are improved, and better network services are provided to users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119946722A_ABST
    Figure CN119946722A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of communication load balancing, and provides a multi-band load balancing method and device, network equipment and a computer program product, and the method comprises the steps: respectively obtaining the total flow of each target band in a plurality of target bands of a target AP; obtaining the total flow and the average flow of all clients connected to a first target frequency band in the plurality of target frequency bands; load balancing of the first target frequency band is completed based on the total flow and the average flow of all the clients connected to the first target frequency band; obtaining the total flow and the average flow of all clients connected to a second target frequency band in the plurality of target frequency bands; and completing load balancing of the second target frequency band based on the total flow and the average flow of all the clients connected to the second target frequency band. According to the method provided by the invention, load balancing of multiple frequency bands of the target AP can be realized, and the communication performance and the communication quality of the target AP are improved.
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 in particular, relates to a multi-band load balancing method, apparatus, network equipment and computer program product. Background Art

[0002] With the vigorous development of IoT technology, users' homes have generally required multi-STA (Station) access. In this scenario, a single AP needs to handle the network connection and data transmission of multiple devices at the same time, which places extremely high demands on the performance and stability of the AP. Under the traditional WLAN management method, a single AP cannot implement a load balancing strategy, resulting in some frequency bands being overloaded at certain times, while other frequency bands may be idle, which undoubtedly reduces the overall efficiency of the network and user experience. Therefore, on the basis of cost saving, how to implement a dual-band load balancing strategy within a single AP to meet the growing network needs of users has become an important issue that needs to be urgently resolved in the current WLAN technology field. By introducing intra-band load balancing technology, we can allocate network resources more intelligently, improve network stability and throughput, and provide users with better network services. Summary of the invention

[0003] In view of this, the embodiments of the present application provide a multi-band load balancing method, apparatus, network device and computer program product to achieve load balancing between multiple frequency bands and improve communication performance and communication quality.

[0004] A first aspect of an embodiment of the present application provides a multi-band load balancing method, including:

[0005] Obtain the total traffic of each target frequency band in multiple target frequency bands of the target AP respectively;

[0006] Obtaining the total flow and average flow of all clients connected to a first target frequency band among the multiple target frequency bands;

[0007] Complete 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;

[0008] Obtaining the total flow and average flow of all clients connected to the second target frequency band among the multiple target frequency bands;

[0009] Load balancing of the second target frequency band is completed based on the total traffic and average traffic of all clients connected to the second target frequency band.

[0010] In an implementation of the first aspect, the completing 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 includes:

[0011] When 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, calculating the average traffic of all clients connected to the first target frequency band;

[0012] For each target client among 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.

[0013] In an implementation of the first aspect, the completing 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:

[0014] When 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, calculating the average traffic of all clients connected to the second target frequency band;

[0015] For each target multi-frequency client among all clients connected on the second target frequency band, if the traffic of the target multi-frequency client is greater than the average 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 of the first aspect, the method further includes:

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

[0018] When the load priority of the client is higher than the preset priority, the frequency band switching operation on the client during the load balancing process is canceled.

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

[0020] Detecting a connection request of a terminal device, the connection request including a target AP that the terminal device requests to connect to and frequency band support information of the terminal device;

[0021] When a connection request of 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, obtaining the number of all clients connected to the target AP;

[0022] If the number of all clients connected to the target AP is less than the total client threshold of the target AP, obtaining the number of all clients connected to the first target frequency band of the target AP;

[0023] If the number of all clients connected to the first target frequency band is less than the first client threshold of the first target frequency band, accessing the first target frequency band as a client to the terminal device;

[0024] If the number of all clients connected to the first target frequency band is not less than the first client threshold of the first target frequency band, obtaining the number of all clients connected to the second target frequency band of the target AP;

[0025] If the number of all clients connected to 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.

[0026] In an implementation of the first aspect, the method further includes:

[0027] When a connection request of a terminal device is detected and the frequency band support information of the terminal device only includes a second target frequency band, obtaining the number of all clients connected to the second target frequency band;

[0028] If the number of all clients connected to the second target frequency band is less than the second client threshold of the second target frequency band, accessing the second target frequency band as a client to the terminal device;

[0029] If the number of all clients connected to 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 load balancing between APs.

[0030] In an implementation of the first aspect, the method further includes:

[0031] If the number of all clients connected to the target AP is not less than the total client threshold of the target AP, selecting an alternative AP for the terminal device based on inter-AP load balancing;

[0032] Based on the frequency band support information of the terminal device, the terminal device is connected as a client to the optimal target frequency band among the multiple target frequency bands of the replacement AP.

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

[0034] The frequency band module is used to obtain the total flow of each target frequency band of multiple target frequency bands of the target AP;

[0035] A client data acquisition module, used to acquire the total flow and average flow of all clients connected to a first target frequency band among the multiple target frequency bands and to acquire the total flow and average flow of all clients connected to a second target frequency band among the multiple target frequency bands;

[0036] A first load balancing module, configured to complete 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;

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

[0038] A third aspect of an embodiment of the present application provides a network device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the multi-band load balancing method described in the first aspect are implemented.

[0039] A fourth aspect of the embodiments of the present application provides a computer program product, including a computer program, which, when executed, enables the multi-band load balancing method described in the first aspect to be implemented.

[0040] The beneficial effect of the first aspect of the embodiment of the present application is: by respectively obtaining the total flow of each target frequency band of the target AP; then obtaining the total flow and average flow of all clients connected to the first target frequency band among 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 to the first target frequency band; obtaining the total flow and average flow of all clients connected to the second target frequency band among 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 to the second target frequency band, load balancing of multiple frequency bands of the target AP is achieved, and the communication performance and communication quality of the target AP are improved.

[0041] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0043] Figure 1 It is a schematic diagram of the implementation process of a multi-band load balancing method provided in an embodiment of the present application;

[0044] Figure 2 It is a schematic diagram of the implementation process of a multi-band load balancing method provided in an embodiment of the present application;

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

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

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

[0048] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

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

[0050] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

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

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

[0053] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0054] The embodiment of the present application provides a multi-band load balancing method for realizing load balancing of multiple target frequency bands of a target AP (Wireless Access Point) to improve the communication performance and communication quality of the target AP. The multi-band load balancing method provided in the present application obtains the total flow of each target frequency band of the target AP in multiple target frequency bands respectively; then obtains the total flow and average flow of all clients connected to the first target frequency band in the multiple target frequency bands; completes the load balancing of the first target frequency band based on the total flow and average flow of all clients connected to the first target frequency band; obtains the total flow and average flow of all clients connected to the second target frequency band in the multiple target frequency bands; completes the load balancing of the second target frequency band based on the total flow and average flow of all clients connected to the second target frequency band, thereby realizing load balancing of multiple frequency bands of the target AP and improving the communication performance and communication quality of the target AP.

[0055] The multi-band load balancing method provided in the embodiment of the present application can be applied to network devices such as routers with AP, mobile phones, tablet computers, vehicle-mounted devices, laptop computers, ultra-mobile personal computers (UMPC), etc. The embodiment of the present application does not impose any restrictions on the specific types of network devices.

[0056] like Figure 1 As shown, the embodiment of the present application provides a multi-band load balancing method, including:

[0057] Step S11, respectively obtaining the total flow of each target frequency band of multiple target frequency bands of the target AP.

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

[0059] Step S12: Obtain the total flow and average flow of all clients connected to the first target frequency band among the multiple target frequency bands.

[0060] Step S13: completing 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.

[0061] In the application, load balancing is performed when the total traffic and average traffic of all clients connected on the first target frequency band respectively meet the preset load balancing conditions of the first target frequency band; when the total traffic and average traffic of all clients connected on the first target frequency band do not meet the preset load balancing conditions of the first target frequency band, the existing communication connection state is maintained.

[0062] Step S14, obtaining the total flow and average flow of all clients connected to the second target frequency band among the multiple target frequency bands.

[0063] In the application, after completing the load balancing of the first target frequency band, the total traffic and average traffic of all clients connected to the second target frequency band are obtained, so as to obtain the latest total traffic and average traffic of all clients connected to the second target frequency band as the load of the first target frequency band is balanced.

[0064] Step S15: completing 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.

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

[0066] In the application, the target frequency bands include 2G, 5G and 6G, the first target frequency band is 5G, and the second target frequency band is 2G. The first target frequency band and the second target frequency band can be configured according to different usage scenarios. For example, in indoor scenarios (such as bedrooms or living rooms), the first target frequency band is set to 5G and the second target frequency band is set to 2G; in outdoor scenarios, 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, completing the 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, includes:

[0068] Step S131, when 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, calculate the average traffic of all clients connected to the first target frequency band.

[0069] In the application, 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, load balancing of the first target frequency band is triggered. The average traffic of all clients connected to the first target frequency band = the total traffic of all clients connected to the first target frequency band ÷ the number of all clients connected to the first target frequency band; the total traffic of all clients connected to the first target frequency band is obtained by adding the traffic of each client among all clients connected to a target frequency band.

[0070] Step S132: for each target client among 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, switch the connection frequency band of the target client to the second target frequency band of the target AP.

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

[0072] In the application, for each target client among all clients connected on the first target frequency band, if the traffic of the target client is in the first preset number of bits (for example, the first 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 the 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. When all three protocols are supported, the priority is 802.11v>802.11r>802.11k.

[0074] In one embodiment, the step S15, completing the 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:

[0075] Step S151, when 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.

[0076] In the application, 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, load balancing of the second target frequency band is triggered. The average traffic of all clients connected to the second target frequency band = the total traffic of all clients connected to the second target frequency band ÷ the number of all clients connected to the second target frequency band; the total traffic of all clients connected to the second target frequency band is obtained by adding the traffic of each client among all clients connected to the two target frequency bands.

[0077] Step S152: 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, 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 traffic of all clients connected to 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 the application, for each target client among all clients connected on the second target frequency band, if the traffic of the target client is in the first preset number of bits (for example, the first 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 one embodiment, the method further comprises:

[0080] Step S161: assigning different load priorities to clients connected to the AP.

[0081] Step S162, when the load priority of the client is higher than the preset priority, cancel the frequency band switching operation for the client in the load balancing process.

[0082] In the application, different load priorities of the client in the target frequency band are assigned to the client according to the communication requirements of the client, and the communication requirements include communication rate priority and communication distance priority. For example, when the first target frequency band is 5G and the second target frequency band is 2G, the communication type of the TV is communication rate priority, and the communication type of the sweeping robot is communication distance priority. The load priority of the TV in the first target frequency band is greater than the first preset priority of the first target frequency band and the load priority of the sweeping robot in the first target frequency band; the load priority of the sweeping robot in the first target frequency band is greater than the first preset priority of the first target frequency band and the load priority of the TV in the first target frequency band.

[0083] like Figure 2 As shown, in one embodiment, the method further includes:

[0084] Step S171, detecting a connection request of a terminal device, wherein the connection request includes a target AP to which the terminal device requests to connect and frequency band support information of the terminal device.

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

[0086] Step S172: when a connection request of 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.

[0087] In applications, devices such as mobile phones and computers support multiple frequency bands.

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

[0089] In the application, the total client threshold of the target AP is the maximum number of clients supported by the target AP, which is the sum of the maximum number of clients supported by each target frequency band in multiple target frequency bands of the target AP. If the number of all clients connected to 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] Step S174: if the number of all clients connected to 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] Step S175: If the number of all clients connected to 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 to the second target frequency band of the target AP is obtained.

[0092] Step S176: If the number of all clients connected to 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 the application, a terminal device that is connected to a target AP for the first time is preferentially connected to the first target frequency band of the target AP. When the number of clients connected to the first target frequency band has reached the first client threshold, the terminal device is connected to the second target frequency band.

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

[0095] Step S181: when a connection request of a terminal device is detected and the frequency band support information of the terminal device only includes a second target frequency band, the number of all clients connected to the second target frequency band is obtained.

[0096] In applications, some older 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] Step S182: If the number of all clients connected to 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] Step S183: If the number of all clients connected to 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 terminal devices that only support the second target frequency band, if the number of clients connected to the second target frequency band of the target AP has reached the second client threshold, an AP to which the terminal device can connect can be selected from other APs based on load balancing between APs. For example, an AP with the smallest AP load and the smallest load on the second target frequency band can be selected from other APs for the terminal device.

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

[0101] 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, select an alternative AP 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 clients supported for connection, and the terminal device selects an AP with an AP load from other APs as a replacement AP.

[0103] Step S192: Based on the frequency band support information of the terminal device, the terminal device is connected as a client to the optimal target frequency band among the multiple target frequency bands of the replacement AP.

[0104] In an application, based on the frequency band support information of the terminal device, accessing the terminal device as a client to the optimal target frequency band among multiple target frequency bands of the replacement AP can be performed according to the above steps S11 to S15.

[0105] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0106] The embodiment of the present application also provides a multi-band load balancing device for executing the steps in the multi-band load balancing method embodiment. The multi-band load balancing device can be a virtual device in a network device, which is run by a processor of a first network device, or it can be the network device itself.

[0107] like Figure 3 As shown, the multi-band load balancing device 300 provided in the embodiment of the present application includes:

[0108] The frequency band module 301 is used to obtain the total flow of each target frequency band of multiple target frequency bands of the target AP respectively;

[0109] The client data acquisition module 302 is used to obtain the total flow and average flow of all clients connected to the first target frequency band among the multiple target frequency bands and to obtain the total flow and average flow of all clients connected to the second target frequency band among the multiple target frequency bands;

[0110] A first load balancing module 303, configured to complete 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;

[0111] The second load balancing module 304 is used to complete the load balancing of the second target frequency band based on the total flow and average flow of all clients connected to the second target frequency band. In application, each module in the data storage device can be a software program module, or can be implemented by different logic circuits integrated in a processor, or can be implemented by multiple distributed processors.

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

[0113] When 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, calculating the average traffic of all clients connected to the first target frequency band;

[0114] For each target client among 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.

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

[0116] When 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, calculating the average traffic of all clients connected to the second target frequency band;

[0117] For each target multi-frequency client among all clients connected on the second target frequency band, if the traffic of the target multi-frequency client is greater than the average 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.

[0118] In one embodiment, the multi-band load balancing device 300 further includes a first stabilization module 305, which is used to:

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

[0120] When the load priority of the client is higher than the preset priority, the frequency band switching operation on the client during the load balancing process is canceled.

[0121] In one embodiment, the multi-band load balancing device 300 further includes a connection balancing module 306, which is used to:

[0122] Detecting a connection request of a terminal device, the connection request including a target AP that the terminal device requests to connect to and frequency band support information of the terminal device;

[0123] When a connection request of 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, obtaining 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 the total client threshold of the target AP, obtaining the number of all clients connected to the first target frequency band of the target AP;

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

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

[0127] If the number of all clients connected to 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.

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

[0129] When a connection request of a terminal device is detected and the frequency band support information of the terminal device only includes a second target frequency band, obtaining the number of all clients connected to the second target frequency band;

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

[0131] If the number of all clients connected to 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 load balancing between APs.

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

[0133] If the number of all clients connected to the target AP is not less than the total client threshold of the target AP, selecting an alternative AP for the terminal device based on inter-AP load balancing;

[0134] Based on the frequency band support information of the terminal device, the terminal device is connected as a client to the optimal target frequency band among the multiple target frequency bands of the replacement AP.

[0135] In applications, each module in the multi-band load balancing device may be a software program module, or may be implemented by different logic circuits integrated in a processor, or may be implemented by multiple distributed processors.

[0136] Figure 4 This is a schematic diagram of the structure of a network device provided in an embodiment of the present application. Figure 4 As shown, the network device 4 of this embodiment includes: at least one processor 40 ( Figure 4 Only one is shown in the figure) a processor, a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, and when the processor 40 executes the computer program 42, the steps in any of the above-mentioned multi-band load balancing method embodiments are implemented.

[0137] The network device may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4 It is only an example of the network device 4 and does not constitute a limitation on the network device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0138] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

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

[0140] In applications, the network device also includes a power management module, and the power management device can receive input from a battery and / or a charger to power a processor, a memory, a communication module, and the like.

[0141] In the application, the network device also includes a communication module, which can provide communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth, Zigbee, mobile communication networks, global navigation satellite systems (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the network device. The communication module can be one or more devices integrating at least one communication processing module. The communication module may include an antenna, which may have only one array element or an antenna array including multiple 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 the signal to be sent from the processor, frequency modulate and amplify it, and convert it into electromagnetic waves for radiation through the antenna.

[0142] It should be noted that the above Figure 4 It does not constitute a limitation on the structure of the network device 4, and may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the network device 01 may also have a display screen, indicator lights, a motor, controls (such as buttons), a gyroscope sensor, an acceleration sensor, etc.

[0143] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0144] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0145] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0146] An embodiment of the present application provides a computer program product 5. When the computer program product 5 includes a computer program 50, when the computer program 50 is executed, the above-mentioned multi-band load balancing method embodiment is implemented.

[0147] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0148] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0149] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0150] In the embodiments provided in the present application, it should be understood that the disclosed network devices and methods can be implemented in other ways. For example, the network device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0151] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0152] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all 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 multiple target frequency bands of the target AP respectively; Obtaining the total flow and average flow of all clients connected to a first target frequency band among the multiple target frequency bands; Complete 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; Obtaining the total flow and average flow 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 completed based on the total traffic and average traffic of all clients connected to the second target frequency band.

2. The multi-band load balancing method according to claim 1, characterized in that: The completing 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 includes: When 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, calculating the average traffic of all clients connected to the first target frequency band; For each target client among 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.

3. The multi-band load balancing method according to claim 2, characterized in that: The completing 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: When 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, calculating the average traffic of all clients connected to the second target frequency band; For each target multi-frequency client among all clients connected on the second target frequency band, if the traffic of the target multi-frequency client is greater than the average 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.

4. The multi-band load balancing method according to claim 1, characterized in that: The method further comprises: Allocating different load priorities to clients connected to the AP; When the load priority of the client is higher than the preset priority, the frequency band switching operation on the client during the load balancing process is canceled.

5. The multi-band load balancing method according to any one of claims 1 to 4, characterized in that: The method further comprises: Detecting a connection request of a terminal device, the connection request including a target AP that the terminal device requests to connect to and frequency band support information of the terminal device; When a connection request of 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, obtaining the number of all clients connected to the target AP; If the number of all clients connected to the target AP is less than the total client threshold of the target AP, obtaining the number of all clients connected to the first target frequency band of the target AP; If the number of all clients connected to the first target frequency band is less than the first client threshold of the first target frequency band, accessing the first target frequency band as a client to the terminal device; If the number of all clients connected to the first target frequency band is not less than the first client threshold of the first target frequency band, obtaining the number of all clients connected to the second target frequency band of the target AP; If the number of all clients connected to 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.

6. The multi-band load balancing method according to claim 5, characterized in that: The method further comprises: When a connection request of a terminal device is detected and the frequency band support information of the terminal device only includes a second target frequency band, obtaining the number of all clients connected to the second target frequency band; If the number of all clients connected to the second target frequency band is less than the second client threshold of the second target frequency band, accessing the second target frequency band as a client to the terminal device; If the number of all clients connected to 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 load balancing between APs.

7. The multi-band load balancing method according to claim 6, characterized in that: The method further comprises: If the number of all clients connected to the target AP is not less than the total client threshold of the target AP, selecting an alternative AP 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 connected as a client to the optimal target frequency band among the multiple target frequency bands of the replacement AP.

8. A multi-band load balancing device, characterized in that: include: The frequency band module is used to obtain the total flow of each target frequency band of multiple target frequency bands of the target AP; A client data acquisition module, used to acquire the total flow and average flow of all clients connected to a first target frequency band among the multiple target frequency bands and to acquire the total flow and average flow of all clients connected to a second target frequency band among the multiple target frequency bands; A first load balancing module, configured to complete 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 second load balancing module is used to complete the load balancing of the second target frequency band based on the total flow and average flow of all clients connected to the second target frequency band.

9. 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, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer program product, characterized in that It comprises a computer program, which enables the multi-band load balancing method as claimed in any one of claims 1 to 7 to be implemented when the computer program is executed.

Citation Information

Patent Citations

  • Load balancing method and device, storage medium and network equipment

    CN112911643A

  • Method and system for dynamic frequency selection channel switching in wireless network

    CN114466425A

  • 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

  • Load balancing method, device and equipment

    CN116916387A