CN109661005B - Load sharing adjustment method and device of local access controller - Google Patents

Load sharing adjustment method and device of local access controller Download PDF

Info

Publication number
CN109661005B
CN109661005B CN201910126783.0A CN201910126783A CN109661005B CN 109661005 B CN109661005 B CN 109661005B CN 201910126783 A CN201910126783 A CN 201910126783A CN 109661005 B CN109661005 B CN 109661005B
Authority
CN
China
Prior art keywords
local
value
traffic
load
traffic load
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910126783.0A
Other languages
Chinese (zh)
Other versions
CN109661005A (en
Inventor
曲翠芳
李大鲲
王宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201910126783.0A priority Critical patent/CN109661005B/en
Publication of CN109661005A publication Critical patent/CN109661005A/en
Application granted granted Critical
Publication of CN109661005B publication Critical patent/CN109661005B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides a load sharing adjustment method and device for a local access controller, wherein a head office AC can calculate a flow load value of each local AC based on acquired traffic information of a service port of each local AC, the difference value of the flow load values is more than the flow load imbalance of two local ACs with a first preset threshold, at the moment, the access adjustment is dynamically carried out on an AP accessed to the local AC with a larger flow load value, the AP accessed to the AC with a larger flow load value is shared to the AC with a smaller flow load value, and the purpose of balancing the load flow on the two local ACs is achieved.

Description

Load sharing adjustment method and device of local access controller
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method and an apparatus for load sharing adjustment of a local access controller.
Background
With the advent of the mobile internet era, Wireless data traffic has increased explosively, and operators increasingly rely on Wireless Local Area Networks (WLANs) to carry such Wireless data traffic. Conventional WLANs usually employ a networking architecture of an Access Controller (AC) + a wireless Access Point (AP). The AP under the networking architecture is a thin AP, and is only used to receive and transmit data traffic, and the AC is required to manage, debug, and control the AP. However, as the scale of the WLAN is larger and larger, the number of APs to be managed by one AC is increased, so that the link bandwidth between the AC and the AP is set to be larger and larger, and problems of slow user authentication, low roaming performance, and the like are likely to occur.
In order to solve the above problem, a hierarchical AC networking architecture is proposed, as shown in fig. 1, the hierarchical AC networking architecture mainly consists of a headquarters AC (central AC), a local AC (local AC), and an AP, the headquarters AC is responsible for the management of the whole WLAN, and the local AC is responsible for the access of the AP and forwarding data traffic. The network architecture of the layered AC provides a mechanism combining centralized management and distributed control, and the maintainability and the expandability of the WLAN are improved on the basis of ensuring the performance.
For a local AC, an AP usually accesses the local AC in a load sharing manner, however, in some special scenarios, for example, if one floor of an office building of a company is a public area, there are more terminal devices accessing the local AC in the first floor through the corresponding AP, and if the second floor is a lead office area, there are fewer terminal devices accessing the local AC in the second floor through the corresponding AP, which results in unbalanced load flow on different local ACs, and is not favorable for healthy operation of the entire network.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for load sharing adjustment of a local access controller, so as to achieve load traffic balancing on a plurality of local ACs. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a load sharing adjustment method for a local access controller, where the method is applied to a headquarters AC in a hierarchical AC networking architecture, and multiple local ACs access to the headquarters AC, and the method includes:
acquiring service port flow information of each local AC in the plurality of local ACs;
calculating a traffic load value of each local AC according to the traffic information of the service port of each local AC and a quantity value which is preset for each local AC and used for representing forwarding capacity;
extracting a first traffic load value of a first local AC and a second traffic load value of a second local AC from the traffic load values of the plurality of local ACs, wherein the difference value between the first traffic load value and the second traffic load value is greater than a first preset threshold value;
and determining the larger value of the first traffic load value and the second traffic load value, and performing access adjustment on an Access Point (AP) accessed by a local AC corresponding to the larger value.
In a second aspect, an embodiment of the present invention provides a method for adjusting load sharing of a local access controller, where the method is applied to a first local AC in a hierarchical AC networking architecture, where the first local AC accesses a headquarters AC in the hierarchical AC networking architecture, and the method includes:
receiving an AP disconnection message sent by the headquarter AC;
counting a load flow value of an access point AP accessed to the first local AC;
and according to the load flow values, disconnecting the target AP from the master AC, and reporting the attribute identification of the target AP to the master AC, wherein the target AP is the AP with the sum of the load flow values larger than a first preset threshold value.
In a third aspect, an embodiment of the present invention provides a load sharing adjustment apparatus for a local access controller, where the apparatus is applied to a headquarters AC in a hierarchical AC networking architecture, and multiple local ACs access to the headquarters AC, and the apparatus includes:
an obtaining module, configured to obtain traffic information of a service port of each local AC in the multiple local ACs;
a calculating module, configured to calculate a traffic load value of each local AC according to the traffic information of each local AC and a quantity value preset for each local AC and used for representing forwarding capacity;
an extracting module, configured to extract a first traffic load value of a first local AC and a second traffic load value of a second local AC from traffic load values of the plurality of local ACs, where a difference between the first traffic load value and the second traffic load value is greater than a first preset threshold;
and the adjusting module is used for determining the larger value of the first flow load value and the second flow load value and performing access adjustment on an Access Point (AP) accessed by the local AC corresponding to the larger value.
In a fourth aspect, an embodiment of the present invention provides a load sharing adjustment apparatus for a local access controller, which is applied to a first local AC in a hierarchical AC networking architecture, where the first local AC accesses a headquarters AC in the hierarchical AC networking architecture, and the apparatus includes:
a receiving module, configured to receive an AP disconnection message sent by the headquarters AC;
the statistical module is used for counting the load flow value of an access point AP accessed to the first local AC;
and the disconnection module is used for disconnecting the connection with the target AP according to the load flow value and reporting the attribute identification of the target AP to the headquarter AC, wherein the target AP is the AP with the sum of the load flow values larger than a first preset threshold value.
In a fifth aspect, an embodiment of the present invention provides a headquarters AC comprising a processor and a machine-readable storage medium storing machine executable instructions executable by said processor, said processor being caused by said machine executable instructions to: the method steps of the first aspect of the embodiments of the present invention are implemented.
In a sixth aspect, embodiments of the present invention provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the method steps of the first aspect of the embodiments of the present invention are implemented.
In a seventh aspect, an embodiment of the present invention provides a local AC, including a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the method steps according to the second aspect of the embodiment of the present invention are implemented.
In an eighth aspect, embodiments of the present invention provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the method steps according to the second aspect of the embodiment of the present invention are implemented.
Therefore, by applying the load sharing adjustment method and apparatus of the local access controller provided by the present invention, the head office AC obtains traffic port traffic information of each local AC in the plurality of local ACs, calculates a traffic load value of each local AC according to the traffic port traffic information of each local AC and a quantity value preset for each local AC and used for representing forwarding capacity, extracts a first traffic load value of the first local AC and a second traffic load value of the second local AC from the traffic load values of the plurality of local ACs, determines a larger value of the first traffic load value and the second traffic load value, and performs access adjustment on an AP to which the local AC corresponding to the larger value is accessed. Because the head office AC can calculate the traffic load value of each local AC based on the acquired traffic information of the traffic port of each local AC, and the traffic load of two local ACs whose traffic load values have a difference value larger than the first preset threshold value is unbalanced, at this time, the access adjustment is dynamically performed on the AP accessed to the local AC with a larger traffic load value, and the AP accessed to the AC with a larger traffic load value is shared to the AC with a smaller traffic load value, thereby achieving the purpose of balancing the load traffic on the two local ACs.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a networking architecture for a layered AC of the prior art;
fig. 2 is a schematic flowchart of a load sharing adjustment method applied to a local access controller of a head office AC according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a load sharing adjustment method applied to a local access controller of a local AC according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for load sharing adjustment of a local access controller according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a load sharing adjustment apparatus of a local access controller applied to a headquarters AC according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a load sharing adjustment apparatus of a local access controller applied to a local AC according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a headquarters AC according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a local AC according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to achieve load flow balancing on different local ACs, embodiments of the present invention provide a load sharing adjustment method and apparatus for a local access controller, a headquarters AC, a local AC, and a machine-readable storage medium. Next, a method for adjusting load sharing of a local access controller according to an embodiment of the present invention is described first.
The load sharing adjustment method of the local access controller provided by the embodiment of the invention is applied to the networking architecture of the layered AC shown in figure 1, and is mainly realized by a headquarter AC in the networking architecture. Therefore, first, a method for load sharing adjustment of a local access controller according to an embodiment of the present invention is described with a headquarters AC as an execution subject.
As shown in fig. 2, a method for load sharing adjustment of a local access controller according to an embodiment of the present invention is applied to a headquarters AC in a hierarchical AC networking architecture, where a plurality of local ACs access the headquarters AC, and the method may include the following steps.
S201, obtaining the service port flow information of each local AC in a plurality of local ACs.
In a hierarchical AC networking architecture, a terminal device is accessed to an AP, the AP is accessed to a local AC, the local AC is accessed to a headquarter AC, the terminal device accessed to the AP generates corresponding flow information when accessing a network, the local AC can directly detect the service port flow information of an AP port accessed to the local AC, and the headquarter AC can obtain the respective service port flow information from each local AC.
In the embodiment of the present invention, the traffic information of the traffic port may be numerical information related to data traffic, such as an average traffic value of the traffic port in a preset time period, and a total traffic value of the traffic port in the preset time period. Because of the influence of the network environment, the traffic value of the service port may be suddenly changed at a certain time, and therefore, in order to ensure the accuracy of the traffic information of the service port, the head office AC generally acquires the traffic average value of the service port of each of the plurality of local ACs in a preset time period.
The traffic average value of the service port of each local AC in the preset time period may be that each local AC directly reports to the head office AC, or that each local AC reports the traffic value of the service port at each time according to a preset interval, and the head office AC calculates the traffic average value of the service port of each local AC in the preset time period based on the received traffic value of the service port at each time.
Optionally, S201 may specifically include: collecting a service port flow value reported by each local AC in a plurality of local ACs respectively according to a preset interval; and respectively calculating the traffic average value of the service port of each local AC in a preset time period according to the traffic value of each service port reported by each local AC.
In order to reduce the data processing pressure of the local AC, the local AC may directly report the traffic flow value detected at the current time to the head office AC at intervals of a certain time (e.g., 5m, 10m, etc.), and the head office AC calculates the traffic flow average value of each local AC in a preset time period. For each local AC, the average traffic of the traffic port is: and the head office AC acquires the result obtained by dividing the sum of the traffic values of the service ports reported by the local AC within a preset time period by the duration of the preset time period.
S202, calculating a traffic load value of each local AC according to the traffic information of each local AC and the quantity value preset for each local AC and used for representing the forwarding capacity.
Considering that there may be a difference between the device models of the local ACs, and the forwarding processing capabilities of the local ACs of different device models are different, and the headquarters AC records the device model of each accessed local AC, a corresponding quantity value for representing the forwarding capacity may be preset on the headquarters AC for each local AC, and corresponds to the device model. The stronger the processing and forwarding capacity of the local AC is, the larger the set quantity value is, and after the equipment model of the local AC is read, the quantity value of the local AC can be correspondingly read.
And if the quantity value indicates that the forwarding capacity of the local AC is high or low, dividing the traffic information of the service port of the local AC by the quantity value of the local AC to obtain the traffic load value of the local AC.
Optionally, S202 may specifically be: and respectively dividing the traffic average value of the service port of each local AC by a quantity value which is preset for each local AC and is used for expressing the forwarding capacity to obtain a traffic load value of each local AC.
The smaller the traffic load value, the lighter the traffic load of the local AC. For example, the average value of traffic of the service port of the local AC1 in 1 hour is 1Gbps, the set level of the local AC forwarding capacity is low (the magnitude value is 20Gbps), and finally the traffic load value of the local AC1 is 1/20; the average value of the traffic of the service port of the local AC2 in 1 hour is 4Gbps, the set level of the forwarding capacity of the local AC is high-level (the quantity value is 100Gbps), and finally the traffic load value of the local AC2 is 1/25. Comparing the two results, the local AC1 being larger, indicates that the traffic load of the local AC1 is heavier.
S203, extracting a first traffic load value of the first local AC and a second traffic load value of the second local AC from the traffic load values of the plurality of local ACs, where a difference between the first traffic load value and the second traffic load value is greater than a first preset threshold.
In the embodiment of the present invention, the number of local ACs connected to the headquarters AC may be 2 or more, and if load traffic balancing adjustment is performed every two local ACs, the traffic load values of the two local ACs (the first traffic load value of the first local AC and the second traffic load value of the second local AC) are extracted from all the connected local ACs, and a difference between the first traffic load value and the second traffic load value is greater than a first preset threshold, which indicates that the load traffic of the first local AC and the second local AC is unbalanced and needs to be adjusted.
Optionally, S203 may specifically be: the maximum traffic load value and the minimum traffic load value are extracted from the traffic load values of the local ACs.
If the number of local ACs accessing the headquarters AC is multiple, since the difference between the maximum traffic load value and the minimum traffic load value is the largest, the two traffic load values are preferentially extracted, and the load traffic is adjusted for the corresponding two local ACs.
And S204, determining the larger value of the first flow load value and the second flow load value, and performing access adjustment on the AP accessed by the local AC corresponding to the larger value.
Because the difference between the first traffic load value and the second traffic load value is greater than the first preset threshold, it is indicated that the load traffic of the first local AC and the second local AC is unbalanced, and adjustment is required. The adjustment of the load flow of the local AC by the head office AC may be realized by issuing a corresponding message to the local AC corresponding to the larger value of the flow load value.
Optionally, S204 may specifically include:
determining the smaller value of the first flow load value and the second flow load value, and acquiring address information of a local AC corresponding to the smaller value;
sending an AP disconnection message to a local AC corresponding to a larger value so as to disconnect the local AC corresponding to the larger value from the target AP, and reporting a first attribute identifier of the target AP to a headquarter AC;
receiving an access request message sent by an AP to be accessed, wherein the access request message comprises a second attribute identifier of the AP to be accessed;
and when the second attribute identification is matched with the first attribute identification, sending an access response message to the AP to be accessed, wherein the access response message comprises the address information, so that the AP to be accessed accesses the local AC corresponding to a smaller value according to the access address information.
After extracting the first traffic load value of the first local AC and the second traffic load value of the second local AC, the head AC may first send an AP disconnection message to the local AC corresponding to the larger value of the first traffic load value and the second traffic load value, and after receiving the AP disconnection message, the local AC corresponding to the larger value needs to disconnect some APs.
Specifically, the local AC corresponding to the larger value may count load flow values of all the APs to be accessed, may adjust the target AP with a concentrated flow, disconnect the target AP, and report the attribute identifier of the target AP to the head office AC, and when receiving the access request packet of the target AP, the head office AC knows that the local AC corresponding to the larger value disconnects the target AP. Therefore, when feeding back the Access response message to the disconnected target AP, the head office AC may send an Access response message carrying address information of the local AC corresponding to a smaller value to the target AP, that is, notify the target AP to Access the local AC corresponding to the smaller value, the target AP then sends a discovery request to the local AC corresponding to the smaller value And establishes a Control And configuration Protocol (english: Control And Provisioning of Wireless Access Points Protocol Specification, abbreviated as capwap) tunnel of the Wireless Access point, so as to adjust the target AP from the local AC corresponding to the Access value to the local AC corresponding to the larger Access value, thereby achieving load flow balancing of different local ACs.
By applying the embodiment of the invention, the head office AC acquires the traffic information of the traffic of each local AC in the local ACs, calculates the traffic load value of each local AC according to the traffic information of each local AC and the quantity value which is preset for each local AC and used for representing the forwarding capacity, extracts the first traffic load value of the first local AC and the second traffic load value of the second local AC from the traffic load values of the local ACs, determines the larger value of the first traffic load value and the second traffic load value, and performs access adjustment on the AP accessed by the local AC corresponding to the larger value, wherein the difference between the first traffic load value and the second traffic load value is larger than the first preset threshold. Because the head office AC can calculate the traffic load value of each local AC based on the acquired traffic information of the traffic port of each local AC, and the traffic load of two local ACs whose traffic load values have a difference value larger than the first preset threshold value is unbalanced, at this time, the access adjustment is dynamically performed on the AP accessed to the local AC with a larger traffic load value, and the AP accessed to the AC with a larger traffic load value is shared to the AC with a smaller traffic load value, thereby achieving the purpose of balancing the load traffic on the two local ACs.
As shown in fig. 3, an embodiment of the present invention provides a load sharing adjustment method for a local access controller, which is applied to a first local AC in a hierarchical AC networking architecture, where the first local AC accesses a head office AC in the hierarchical AC networking architecture, and the method may include the following steps.
S301, receives an AP off message sent by the head office AC.
For the first local AC, after receiving the AP disconnection message sent by the head office AC, the first local AC needs to disconnect the target AP.
Optionally, the hierarchical AC networking architecture may further include a second local AC, where the second local AC and the first local AC are connected to the same head office AC, and a difference between a second traffic load value of the second local AC and a first traffic load value of the first local AC is greater than a second preset threshold; the AP disconnect message may include a difference of the first traffic load value and the second traffic load value.
Accordingly, the first local AC may further perform: half of the difference included in the AP off message is set to a first preset threshold.
The local AC may extract the difference from the received AP disconnect message, and based on the difference, may set a first preset threshold, typically half the difference. Of course, the first preset threshold may also be set according to the needs of the user, based on how much the load traffic of the two local ACs needs to be balanced.
S302, counting the load flow value of the AP accessed to the first local AC.
S303, according to the load flow value, disconnecting the target AP, and reporting the attribute identification of the target AP to the headquarter AC, wherein the target AP is the AP with the sum of the load flow values larger than a first preset threshold value.
The local AC counts load flow values of the accessed APs, a target AP is determined based on a statistical result, the target AP is an AP with concentrated flow, the APs need to be adjusted, according to the setting of the first preset threshold, as long as the sum of the load flow values of the APs is larger than a first preset threshold (usually, half of a difference value between a first flow load value of the first local AC and a second flow load value of the second local AC), the APs are considered as the target AP with concentrated flow, the first local AC reports an attribute identifier of the target AP to the head office AC, so that whether the AP subjected to an access request after being identified by the head office AC is a disconnected target AP or not is notified to access other local ACs.
Optionally, the step of disconnecting the target AP according to the load flow value may specifically include:
sorting the load flow values;
selecting the maximum value in the load flow values according to the sorting result, and judging whether the maximum value is greater than a first preset threshold value;
if so, disconnecting the target AP corresponding to the maximum value;
if not, selecting a second largest value in the load flow values, accumulating the largest value and the second largest value, and judging whether the accumulated result is larger than a first preset threshold value;
and when the accumulation result is larger than a first preset threshold, disconnecting each target AP corresponding to the maximum value and the second maximum value, and when the accumulation result is not larger than the first preset threshold, repeatedly executing the process of selecting the load flow value and judging whether the accumulation result is larger than the first preset threshold or not until all the load flow values in the sequencing result are traversed and ended.
The load flow of each AP accessed to the local AC is different in size, and the AP with large load flow should be preferentially shared to other local ACs, so that the load flow can be sequenced, whether the maximum value is greater than a first preset threshold value or not is judged firstly, if the maximum value is greater than the first preset threshold value, the connection of a target AP corresponding to the maximum value is disconnected, if the maximum value is not greater than the first preset threshold value, a second maximum value needs to be continuously extracted, the maximum value and the second maximum value are accumulated, whether the accumulation result is greater than the first preset threshold value or not is judged, if the accumulation result is greater than the first preset threshold value, the connection of the target AP corresponding to the maximum value and the second maximum value is disconnected, the second maximum value is continuously extracted, the accumulation and the judgment are repeatedly carried out, and the accumulation is stopped until the accumulation result is greater than the first preset threshold value, and the connection of the target APs corresponding to all the maximum values and the second maximum values is disconnected.
It should be noted that the embodiment shown in fig. 2 and the embodiment shown in fig. 3 are two independent embodiments, and therefore, the first preset threshold in the embodiment shown in fig. 2 and the first preset threshold in the embodiment shown in fig. 3 are actually two different thresholds, and the second preset threshold in the embodiment shown in fig. 3 is actually the same threshold as the first preset threshold in the embodiment shown in fig. 2.
For convenience of understanding, the following describes a method for load sharing adjustment of a local access controller according to an embodiment of the present invention from an overall execution process of a head office AC, a local AC, and an AP, and as shown in fig. 4, the method may include the following steps:
and S1, the headquarter AC collects the traffic flow value of each local AC according to a preset interval, and calculates the average traffic flow value of each local AC in a preset time period.
Each local AC reports the traffic flow value of the service port to the headquarters AC at preset intervals, the headquarters AC collects the traffic flow values, and the average value of the traffic flow of the service port in the time period is calculated in each preset time period.
And S2, calculating the flow load value of each local AC by the headquarters AC according to a formula.
The formula mentioned here is: and L is A/R, wherein L is the traffic load value of the local AC, A is the traffic average value of the traffic of the local AC in a preset time period, and R is the forwarding capacity identification value preset for the local AC.
S3, the head office AC extracts a first traffic load value of the first local AC and a second traffic load value of the second local AC from the traffic load values of the plurality of local ACs.
The difference between the first flow load value and the second flow load value is greater than a first preset threshold. For two local ACs whose difference is less than or equal to the first preset threshold, no load traffic adjustment is required for them.
S4, the head office AC determines the larger value of the first traffic load value and the second traffic load value, and sends an AP disconnection message to the local AC corresponding to the larger value, where the AP disconnection message includes a difference value between the first traffic load value and the second traffic load value.
And S5, after the local AC corresponding to the larger value receives the AP disconnection message, counting the load flow value of the AP accessed to the local AC.
And S6, sorting the load flow value by the local AC corresponding to the larger value.
And S7, selecting the maximum value in the load flow values by the local AC corresponding to the larger value according to the sorting result, and judging whether the maximum value is larger than a second preset threshold value, if so, executing S8, otherwise, executing S9.
S8, the target AP corresponding to the maximum value is disconnected.
S9, selecting the next largest value of the flow load values, and accumulating the largest value and the next largest value.
And S10, judging whether the accumulation result is larger than a second preset threshold value, if so, executing S11, otherwise, returning to execute S9.
S11, the connection of each target AP corresponding to the maximum value and the next maximum value is disconnected.
Wherein the second preset threshold is half of the difference included in the AP disconnection message.
And S12, the disconnected target AP sends the access request message to the headquarters AC again.
And S13, the headquarter AC sends an access response message carrying the address information of the local AC corresponding to the smaller value of the first traffic load value and the second traffic load value to the target AP.
And S14, the target AP sends a discovery request to the local AC corresponding to the smaller value and establishes a capwap tunnel based on the received address information, and the target AP accesses the local AC corresponding to the smaller value.
In order to avoid network oscillation caused by frequent adjustment, the above steps may be performed periodically, and the period may be set according to the requirement of the user.
The headquarter AC periodically collects the traffic information of the service port of each local AC, extracts the traffic load values of the two local ACs with unbalanced traffic loads through a certain algorithm, and dynamically adjusts the target AP to be accessed to the local AC with lighter traffic loads, so that the purpose of balancing the traffic of the two local ACs is achieved. And meanwhile, the unified management function of the headquarter AC is fully embodied, and the headquarter AC has the capability of reasonably adjusting the networking.
Corresponding to the foregoing method embodiment, an embodiment of the present invention provides a load sharing adjustment apparatus for a local access controller, as shown in fig. 5, where the apparatus is applied to a headquarters AC in a hierarchical AC networking architecture, and a plurality of local ACs access the headquarters AC, and the apparatus may include:
an obtaining module 510, configured to obtain traffic information of a service port of each local AC in the multiple local ACs;
a calculating module 520, configured to calculate a traffic load value of each local AC according to the traffic information of each local AC and a quantity value preset for each local AC and used for representing forwarding capacity;
an extracting module 530, configured to extract a first traffic load value of a first local AC and a second traffic load value of a second local AC from traffic load values of the plurality of local ACs, where a difference between the first traffic load value and the second traffic load value is greater than a first preset threshold;
an adjusting module 540, configured to determine a larger value of the first traffic load value and the second traffic load value, and perform access adjustment on an access point AP accessed by a local AC corresponding to the larger value.
Optionally, the obtaining module 510 may be specifically configured to:
collecting a service port flow value reported by each local AC in the plurality of local ACs respectively according to a preset interval;
respectively calculating the traffic average value of the traffic of each local AC in a preset time period according to the traffic value of the traffic of each local AC reported by each local AC;
the calculating module 520 may specifically be configured to:
and dividing the average value of the traffic of the service port of each local AC by a quantity value which is preset for each local AC and used for representing the forwarding capacity to obtain a traffic load value of each local AC.
Optionally, the adjusting module 540 may be specifically configured to:
determining the smaller value of the first traffic load value and the second traffic load value, and acquiring address information of a local AC corresponding to the smaller value;
sending an AP disconnection message to the local AC corresponding to the larger value so as to disconnect the local AC corresponding to the larger value from the target AP, and reporting a first attribute identifier of the target AP to the headquarter AC;
receiving an access request message sent by an AP to be accessed, wherein the access request message comprises a second attribute identifier of the AP to be accessed;
and when the second attribute identification is matched with the first attribute identification, sending an access response message to the AP to be accessed, wherein the access response message comprises the address information, so that the AP to be accessed is accessed to the local AC corresponding to the smaller value according to the address information.
An embodiment of the present invention further provides a load sharing adjustment apparatus for a local access controller, as shown in fig. 6, which is applied to a first local AC in a hierarchical AC networking architecture, where the first local AC is accessed to a head office AC in the hierarchical AC networking architecture, and the apparatus may include:
a receiving module 610, configured to receive an AP disconnection message sent by the head office AC;
a statistic module 620, configured to count a load flow value of an access point AP accessing the first local AC;
a disconnecting module 630, configured to disconnect the connection with the target AP according to the load flow value, and report the attribute identifier of the target AP to the headquarters AC, where the target AP is an AP whose sum of the load flow values is greater than a first preset threshold.
Optionally, the hierarchical AC networking architecture further includes a second local AC, the second local AC and the first local AC are connected to the same head office AC, and a difference between a second traffic load value of the second local AC and a first traffic load value of the first local AC is greater than a second preset threshold;
the AP disconnect message may include the difference value;
the apparatus may further include:
and the setting module is used for setting half of the difference value as a first preset threshold value.
Optionally, the disconnection module 630 may be specifically configured to:
sorting the load flow values;
selecting the maximum value in the load flow values according to the sorting result, and judging whether the maximum value is greater than the first preset threshold value;
if so, disconnecting the target AP corresponding to the maximum value;
if not, selecting a second largest value in the load flow values, accumulating the maximum value and the second largest value, and judging whether the accumulated result is greater than the first preset threshold value;
and when the accumulation result is greater than the first preset threshold, disconnecting each target AP corresponding to the maximum value and the second maximum value, and when the accumulation result is not greater than the first preset threshold, repeatedly executing the process of selecting the load flow value and judging whether the accumulation result is greater than the first preset threshold until all the load flow values in the sequencing result are traversed and ended.
By applying the embodiment of the invention, the head office AC acquires the traffic information of the traffic of each local AC in the local ACs, calculates the traffic load value of each local AC according to the traffic information of each local AC and the quantity value which is preset for each local AC and used for representing the forwarding capacity, extracts the first traffic load value of the first local AC and the second traffic load value of the second local AC from the traffic load values of the local ACs, determines the larger value of the first traffic load value and the second traffic load value, and performs access adjustment on the AP accessed by the local AC corresponding to the larger value, wherein the difference between the first traffic load value and the second traffic load value is larger than the first preset threshold. Because the head office AC can calculate the traffic load value of each local AC based on the acquired traffic information of the traffic port of each local AC, and the traffic load of two local ACs whose traffic load values have a difference value larger than the first preset threshold value is unbalanced, at this time, the access adjustment is dynamically performed on the AP accessed to the local AC with a larger traffic load value, and the AP accessed to the AC with a larger traffic load value is shared to the AC with a smaller traffic load value, thereby achieving the purpose of balancing the load traffic on the two local ACs.
An embodiment of the present invention further provides a headquarters AC, as shown in fig. 7, including a processor 701 and a machine-readable storage medium 702, where the machine-readable storage medium 702 stores machine-executable instructions capable of being executed by the processor 701, and the processor 701 is caused by the machine-executable instructions to: the load sharing adjustment method applied to the local access controller of the headquarter AC provided by the embodiment of the invention is realized.
An embodiment of the present invention further provides a local AC, as shown in fig. 8, including a processor 801 and a machine-readable storage medium 802, where the machine-readable storage medium 802 stores machine-executable instructions capable of being executed by the processor 801, and the processor 801 is caused by the machine-executable instructions to: the load sharing adjustment method applied to the local access controller of the local AC provided by the embodiment of the invention is realized.
The machine-readable storage medium may include a Random Access Memory (RAM) or a Non-volatile Memory (NVM), such as at least one disk Memory. Alternatively, the machine-readable storage medium may be at least one storage device located remotely from the switch chip.
The Processor may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also 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.
In the embodiment of the present invention, the processor 701 is caused by machine executable instructions to implement, by reading machine executable instructions stored in the machine readable storage medium 702 and the processor 801 is caused by machine executable instructions stored in the machine readable storage medium 802, the following steps are implemented: the method comprises the steps that a headquarter AC acquires service port flow information of each local AC in a plurality of local ACs, calculates a flow load value of each local AC according to the service port flow information of each local AC and a quantity value which is preset for each local AC and used for representing forwarding capacity, extracts a first flow load value of a first local AC and a second flow load value of a second local AC from the flow load values of the local ACs, determines a larger value of the first flow load value and the second flow load value, and performs access adjustment on an AP accessed by the local AC corresponding to the larger value, wherein the difference value of the first flow load value and the second flow load value is larger than a first preset threshold value. Because the head office AC can calculate the traffic load value of each local AC based on the acquired traffic information of the traffic port of each local AC, and the traffic load of two local ACs whose traffic load values have a difference value larger than the first preset threshold value is unbalanced, at this time, the access adjustment is dynamically performed on the AP accessed to the local AC with a larger traffic load value, and the AP accessed to the AC with a larger traffic load value is shared to the AC with a smaller traffic load value, thereby achieving the purpose of balancing the load traffic on the two local ACs.
Additionally, embodiments of the present invention also provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the load sharing adjustment method applied to the local access controller of the headquarter AC provided by the embodiment of the invention is realized.
Embodiments of the present invention also provide another machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the load sharing adjustment method applied to the local access controller of the local AC provided by the embodiment of the invention is realized.
In this embodiment of the present invention, when running, a machine-readable storage medium executes a machine-executable instruction of the method for load sharing adjustment of a local access controller provided in the embodiment of the present invention, so that: the method comprises the steps that a headquarter AC acquires service port flow information of each local AC in a plurality of local ACs, calculates a flow load value of each local AC according to the service port flow information of each local AC and a quantity value which is preset for each local AC and used for representing forwarding capacity, extracts a first flow load value of a first local AC and a second flow load value of a second local AC from the flow load values of the local ACs, determines a larger value of the first flow load value and the second flow load value, and performs access adjustment on an AP accessed by the local AC corresponding to the larger value, wherein the difference value of the first flow load value and the second flow load value is larger than a first preset threshold value. Because the head office AC can calculate the traffic load value of each local AC based on the acquired traffic information of the traffic port of each local AC, and the traffic load of two local ACs whose traffic load values have a difference value larger than the first preset threshold value is unbalanced, at this time, the access adjustment is dynamically performed on the AP accessed to the local AC with a larger traffic load value, and the AP accessed to the AC with a larger traffic load value is shared to the AC with a smaller traffic load value, thereby achieving the purpose of balancing the load traffic on the two local ACs.
For the headquarter AC, the local AC and the machine-readable storage medium embodiment, since the contents of the related methods are basically similar to the foregoing method embodiments, the description is relatively simple, and the relevant points can be referred to the partial description of the method embodiments.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the device, headquarters AC, local AC and machine readable storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A load sharing adjustment method of a local access controller is applied to a headquarters AC in a hierarchical AC networking architecture, and a plurality of local ACs access the headquarters AC, the method comprising:
acquiring service port flow information of each local AC in the plurality of local ACs;
calculating a traffic load value of each local AC according to the traffic information of the service port of each local AC and a quantity value which is preset for each local AC and used for representing forwarding capacity;
extracting a first traffic load value of a first local AC and a second traffic load value of a second local AC from the traffic load values of the plurality of local ACs, wherein the difference value between the first traffic load value and the second traffic load value is greater than a first preset threshold value;
determining the larger value of the first flow load value and the second flow load value, and performing access adjustment on an Access Point (AP) accessed by a local AC corresponding to the larger value;
the performing access adjustment on the wireless access point AP accessed by the local AC corresponding to the larger value includes: determining the smaller value of the first traffic load value and the second traffic load value, and acquiring address information of a local AC corresponding to the smaller value;
sending an AP disconnection message to the local AC corresponding to the larger value so as to disconnect the local AC corresponding to the larger value from the target AP, and reporting a first attribute identifier of the target AP to the headquarter AC;
receiving an access request message sent by an AP to be accessed, wherein the access request message comprises a second attribute identifier of the AP to be accessed;
and when the second attribute identification is matched with the first attribute identification, sending an access response message to the AP to be accessed, wherein the access response message comprises the address information, so that the AP to be accessed is accessed to the local AC corresponding to the smaller value according to the address information.
2. The method of claim 1, wherein the obtaining traffic port flow information for each of the plurality of local ACs comprises:
collecting a service port flow value reported by each local AC in the plurality of local ACs respectively according to a preset interval;
respectively calculating the traffic average value of the traffic of each local AC in a preset time period according to the traffic value of the traffic of each local AC reported by each local AC;
the calculating a traffic load value of each local AC according to the traffic information of the service port of each local AC and a quantity value preset for each local AC and used for representing forwarding capacity includes:
and dividing the average value of the traffic of the service port of each local AC by a quantity value which is preset for each local AC and used for representing the forwarding capacity to obtain a traffic load value of each local AC.
3. A load sharing adjustment method of a local access controller is applied to a first local AC in a hierarchical AC networking architecture, wherein the first local AC accesses a headquarters AC in the hierarchical AC networking architecture, and the method comprises the following steps:
receiving an AP disconnection message sent by the headquarters AC, wherein the AP disconnection message is sent to a local AC corresponding to a larger value after the headquarters AC determines the smaller value of the first traffic load value and the second traffic load value;
counting a load flow value of an access point AP accessed to the first local AC;
and according to the load flow values, disconnecting the target AP from the master AC, and reporting the attribute identification of the target AP to the master AC, wherein the target AP is the AP with the sum of the load flow values larger than a first preset threshold value.
4. The method according to claim 3, wherein the hierarchical AC networking architecture further comprises a second local AC, the second local AC and the first local AC are connected to the same headquarters AC, and a difference between a second traffic load value of the second local AC and a first traffic load value of the first local AC is greater than a second preset threshold;
the AP disconnect message comprises the difference value;
before disconnecting the connection with the target AP according to the load flow value, the method further comprises:
and setting half of the difference value as a first preset threshold value.
5. The method of claim 3 or 4, wherein said disconnecting from the target AP according to the load flow value comprises:
sorting the load flow values;
selecting the maximum value in the load flow values according to the sorting result, and judging whether the maximum value is greater than the first preset threshold value;
if so, disconnecting the target AP corresponding to the maximum value;
if not, selecting a second largest value in the load flow values, accumulating the maximum value and the second largest value, and judging whether the accumulated result is greater than the first preset threshold value;
and when the accumulation result is greater than the first preset threshold, disconnecting each target AP corresponding to the maximum value and the second maximum value, and when the accumulation result is not greater than the first preset threshold, repeatedly executing the process of selecting the load flow value and judging whether the accumulation result is greater than the first preset threshold until all the load flow values in the sequencing result are traversed and ended.
6. A load sharing adjustment apparatus of a local access controller, which is applied to a headquarters AC in a hierarchical AC networking architecture, a plurality of local ACs access to the headquarters AC, the apparatus comprising:
an obtaining module, configured to obtain traffic information of a service port of each local AC in the multiple local ACs;
a calculating module, configured to calculate a traffic load value of each local AC according to the traffic information of each local AC and a quantity value preset for each local AC and used for representing forwarding capacity;
an extracting module, configured to extract a first traffic load value of a first local AC and a second traffic load value of a second local AC from traffic load values of the plurality of local ACs, where a difference between the first traffic load value and the second traffic load value is greater than a first preset threshold;
an adjusting module, configured to determine a larger value of the first traffic load value and the second traffic load value, and perform access adjustment on an access point AP to which a local AC corresponding to the larger value is accessed;
the adjusting module is specifically configured to:
determining the smaller value of the first traffic load value and the second traffic load value, and acquiring address information of a local AC corresponding to the smaller value;
sending an AP disconnection message to the local AC corresponding to the larger value so as to disconnect the local AC corresponding to the larger value from the target AP, and reporting a first attribute identifier of the target AP to the headquarter AC;
receiving an access request message sent by an AP to be accessed, wherein the access request message comprises a second attribute identifier of the AP to be accessed;
and when the second attribute identification is matched with the first attribute identification, sending an access response message to the AP to be accessed, wherein the access response message comprises the address information, so that the AP to be accessed is accessed to the local AC corresponding to the smaller value according to the address information.
7. The apparatus of claim 6, wherein the obtaining module is specifically configured to:
collecting a service port flow value reported by each local AC in the plurality of local ACs respectively according to a preset interval;
respectively calculating the traffic average value of the traffic of each local AC in a preset time period according to the traffic value of the traffic of each local AC reported by each local AC;
the calculation module is specifically configured to:
and dividing the average value of the traffic of the service port of each local AC by a quantity value which is preset for each local AC and used for representing the forwarding capacity to obtain a traffic load value of each local AC.
8. A load sharing adjustment apparatus of a local access controller, applied to a first local AC in a hierarchical AC networking architecture, the first local AC accessing a head office AC in the hierarchical AC networking architecture, the apparatus comprising:
a receiving module, configured to receive an AP disconnection message sent by the headquarters AC, where the AP disconnection message is sent to a local AC corresponding to a larger value after determining, for the headquarters AC, a smaller value of a first traffic load value and a second traffic load value;
the statistical module is used for counting the load flow value of an access point AP accessed to the first local AC;
and the disconnection module is used for disconnecting the connection with the target AP according to the load flow value and reporting the attribute identification of the target AP to the headquarter AC, wherein the target AP is the AP with the sum of the load flow values larger than a first preset threshold value.
9. The apparatus according to claim 8, wherein the hierarchical AC networking architecture further includes a second local AC, the second local AC and the first local AC are connected to a same head office AC, and a difference between a second traffic load value of the second local AC and a first traffic load value of the first local AC is greater than a second preset threshold;
the AP disconnect message comprises the difference value;
the device further comprises:
and the setting module is used for setting half of the difference value as a first preset threshold value.
10. The device according to claim 8 or 9, wherein the disconnection module is specifically configured to:
sorting the load flow values;
selecting the maximum value in the load flow values according to the sorting result, and judging whether the maximum value is greater than the first preset threshold value;
if so, disconnecting the target AP corresponding to the maximum value;
if not, selecting a second largest value in the load flow values, accumulating the maximum value and the second largest value, and judging whether the accumulated result is greater than the first preset threshold value;
and when the accumulation result is greater than the first preset threshold, disconnecting each target AP corresponding to the maximum value and the second maximum value, and when the accumulation result is not greater than the first preset threshold, repeatedly executing the process of selecting the load flow value and judging whether the accumulation result is greater than the first preset threshold until all the load flow values in the sequencing result are traversed and ended.
CN201910126783.0A 2019-02-20 2019-02-20 Load sharing adjustment method and device of local access controller Active CN109661005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910126783.0A CN109661005B (en) 2019-02-20 2019-02-20 Load sharing adjustment method and device of local access controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910126783.0A CN109661005B (en) 2019-02-20 2019-02-20 Load sharing adjustment method and device of local access controller

Publications (2)

Publication Number Publication Date
CN109661005A CN109661005A (en) 2019-04-19
CN109661005B true CN109661005B (en) 2022-04-22

Family

ID=66123445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910126783.0A Active CN109661005B (en) 2019-02-20 2019-02-20 Load sharing adjustment method and device of local access controller

Country Status (1)

Country Link
CN (1) CN109661005B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110418394B (en) * 2019-07-26 2021-09-10 新华三技术有限公司成都分公司 AP management method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387539A (en) * 2011-10-31 2012-03-21 福建三元达通讯股份有限公司 Implement method and system for cluster management and load balancing of WLAN system
CN105357717A (en) * 2014-08-22 2016-02-24 中国移动通信集团公司 Method for adjusting load balance between AC, access point and access controller
CN105578527A (en) * 2015-12-11 2016-05-11 迈普通信技术股份有限公司 Method, device and system for achieving cloud AC load balancing
CN105592502A (en) * 2015-07-10 2016-05-18 杭州华三通信技术有限公司 Load balancing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272353B (en) * 2008-05-21 2010-12-22 杭州华三通信技术有限公司 Wireless load balancing method and access controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387539A (en) * 2011-10-31 2012-03-21 福建三元达通讯股份有限公司 Implement method and system for cluster management and load balancing of WLAN system
CN105357717A (en) * 2014-08-22 2016-02-24 中国移动通信集团公司 Method for adjusting load balance between AC, access point and access controller
CN105592502A (en) * 2015-07-10 2016-05-18 杭州华三通信技术有限公司 Load balancing method and device
CN105578527A (en) * 2015-12-11 2016-05-11 迈普通信技术股份有限公司 Method, device and system for achieving cloud AC load balancing

Also Published As

Publication number Publication date
CN109661005A (en) 2019-04-19

Similar Documents

Publication Publication Date Title
US9801010B2 (en) ZIGBEE network-based data transmission method, apparatus, and system
US11716654B2 (en) Systems and methods for hybrid management of an in-premises network
KR101786041B1 (en) Load balancing in a wireless network with multiple access points
US10362506B2 (en) Communication aggregation system, control device, processing load control method and non-transitory computer readable medium storing program
CN104285459A (en) Control node and communication control method
WO2014019469A1 (en) Network coordination method and device
CN102802202A (en) Terminal station accessing method, equipment and system
CN113364682B (en) Data transmission method and device, storage medium and electronic device
US10257759B2 (en) Load balancing among wireless access points
US20220182864A1 (en) Detection Method, Apparatus, and System
CN112671813B (en) Server determination method, device, equipment and storage medium
CN109921925A (en) A kind of dial testing method and device
CA3234895A1 (en) Network capacity optimization method, apparatus, and system
CN109661005B (en) Load sharing adjustment method and device of local access controller
WO2014022995A1 (en) Method and device for managing shared network
CN108847999B (en) Equipment network connectivity detection method, device, terminal equipment and storage medium
JP6531755B2 (en) Network control method and system
CN112533215A (en) Wireless access point grouping and optimizing method, equipment and computer storage medium
CN112600720B (en) Method and apparatus for limiting bandwidth group, electronic device, and storage medium
CN105939280A (en) Flow scheduling method and device
CN108882296A (en) A kind of method and device handling message
CN104507120B (en) A kind of load balancing method between cells and device
CN109246760B (en) Wireless local area network load balancing method based on power control, wireless access device and wireless access equipment
CN110391923A (en) The method and the network equipment of multicast message processing
CN115118473B (en) Data processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant