Method and system for reducing load of wireless controller
Technical Field
The present invention relates to the field of communications, and in particular, to a method and system for reducing a load of a wireless controller.
Background
A wireless local area network (i.e., WLAN) refers to a group of computers and related devices interconnected using IEEE802.11 wireless technology. The wireless local area network is a computer local area network using a wireless channel as a transmission medium, is an important supplement and extension of a wired networking mode, gradually becomes a vital component in a computer network, and is widely applied to the field requiring movable data processing or incapable of physical transmission medium wiring.
A wireless controller (AC), a network device, is responsible for managing wireless Access Points (APs) in a wireless network in a certain area. The main functions include: and issuing configuration, modifying configuration, radio frequency intelligent management, user access control and the like to different APs.
The device is developed from a wireless network, is different from an original wireless network which is an autonomous and single management mode, and often needs a plurality of APs to work cooperatively when a large area of wireless coverage is needed in a certain area, and a mode of individually configuring the APs becomes a bottleneck of workload, so that a wireless controller is derived. The current wireless controller has been developed greatly, integrates a plurality of functions such as a three-layer switch and an authentication system, and becomes a necessary device for operators and enterprises to deploy wireless local area networks.
The wireless Access Point (AP) is equivalent to a bridge connected with a network and a wireless network, and mainly functions to connect various wireless network clients together and then access the wireless network to the ethernet.
In a wireless networking, one AC can control thousands of APs, each AP can interact with the AC, and when the number of users is large, the AP can send a large amount of messages to the AC, including user on-line and off-line information and authentication information, so that the AC exceeds the load in a user peak period, loses the control on the AP, and seriously influences the user experience.
The prior art solves the peak value problem, intelligently improves the AC processing capacity, and increases the hardware cost.
Patent publication No. CN103763676A provides a method and apparatus for communication between an AP and an AC. Wherein, the method comprises the following steps: the AC receives a command input by a user and identification information of an AP corresponding to the command through an extended command interface; the AC packs the command in a command prompt cell in a character string form; and the AC sends the encapsulated command prompt information element to the AP according to the identification information of the AP corresponding to the command. The invention does not need to develop an operation program corresponding to the command on the AC, can complete the instruction of the user by operating the command through the corresponding AP, reduces the AC development cost after the AP is expanded, further shortens the development period, and has stronger practicability. But this approach can lose control of the wireless access point during peak hours due to excess load.
Disclosure of Invention
The present invention is directed to a method and system for reducing the load of a wireless controller, so as to solve the problem that the wireless controller loses control over a wireless access point due to the load exceeding during a peak period.
In order to achieve the purpose, the invention adopts the technical scheme that:
a method of mitigating wireless controller loading, comprising the steps of:
s1, judging whether the load of the wireless controller exceeds a preset maximum load threshold value, if so, selecting a preset wireless access point to enter a false escape mode;
and S2, if the load of the wireless controller does not exceed the preset maximum load threshold, detecting whether a wireless access point is set to enter a false escape mode, and if not, continuously detecting whether the load of the wireless controller exceeds the preset maximum load threshold.
Further, the method also comprises the following steps:
s3, if the wireless access point is set to enter the false escape mode, detecting whether the load of the wireless controller is lower than a preset load recovery threshold value, and if so, recovering the wireless access point set with the false escape mode from the false escape mode.
Further, the step S3 includes the steps of:
if the load of the wireless controller is not detected to be lower than the preset load recovery threshold value, continuously detecting whether the load of the wireless controller is lower than the preset load recovery threshold value.
Further, the wireless access point entering the false escape mode closes the authentication function of the wireless controller and only keeps the heartbeat message with the wireless controller.
Further, the method also comprises the following steps:
and detecting the preset maximum load threshold value.
A system for mitigating wireless controller loading, comprising:
the judging module is used for judging whether the load of the wireless controller exceeds a preset maximum load threshold value or not, and if so, selecting a preset wireless access point to enter a false escape mode;
and the continuous detection module is used for detecting whether a wireless access point is set to enter a false escape mode or not if the load of the wireless controller does not exceed a preset maximum load threshold value, and continuously detecting whether the load of the wireless controller exceeds the preset maximum load threshold value or not if the load of the wireless controller does not exceed the preset maximum load threshold value.
Further, still include:
and the recovery module is used for detecting whether the load of the wireless controller is lower than a preset load recovery threshold value if the wireless access point enters the false escape mode, and recovering the wireless access point with the false escape mode from the false escape mode if the load of the wireless controller is lower than the preset load recovery threshold value.
Further, the recovery module is further configured to, if it is not detected that the load of the wireless controller is lower than a preset load recovery threshold, continue to detect whether the load of the wireless controller is lower than the preset load recovery threshold.
Further, the false escape mode means that the wireless access point closes an authentication function of the wireless controller and only heartbeat messages are reserved between the wireless access point and the wireless controller.
Further, still include:
and the detection module is used for detecting the set preset maximum load threshold value.
Compared with the traditional technology, the invention has the following advantages:
under the condition of not increasing the hardware cost of the wireless controller, the invention reduces the load of the wireless controller and ensures that the wireless access points are not lost by making part of the wireless access points enter the false escape mode in the user peak period.
Drawings
Fig. 1 is a flowchart of a method for reducing load of a wireless controller according to an embodiment;
FIG. 2 is a diagram of a system for reducing the load on a wireless controller according to an embodiment;
fig. 3 is a flowchart of a method for alleviating the load of a wireless controller according to the second embodiment;
fig. 4 is a system configuration diagram for reducing the load of the wireless controller according to the second embodiment;
fig. 5 is a flowchart of a method for alleviating the load of a wireless controller according to a third embodiment;
fig. 6 is a system configuration diagram for reducing the load of the wireless controller according to the third embodiment.
Detailed Description
The following are specific embodiments of the present invention and are further described with reference to the drawings, but the present invention is not limited to these embodiments.
Example one
The embodiment provides a method for reducing load of a wireless controller, as shown in fig. 1, comprising the steps of:
s11, judging whether the load of the wireless controller exceeds a preset maximum load threshold value, if so, selecting a preset wireless access point to enter a false escape mode;
s12: if the load of the wireless controller does not exceed the preset maximum load threshold, detecting whether a wireless access point is set to enter a false escape mode, and if not, continuously detecting whether the load of the wireless controller exceeds the preset maximum load threshold.
The wireless access point, referred to as AP for short, is a wireless switch for a wireless network and is also the core of the wireless network. The wireless access system is equivalent to a bridge connected with a wire network and a wireless network, and mainly has the function of connecting all wireless network clients together to realize wireless access of multiple users in a large range.
The wireless controller is called AC for short, and is a wireless lan access control device, and is responsible for aggregating data from different wireless access points and accessing the data to the internet, and simultaneously completing control functions of configuration management of the wireless access point device, authentication and management of wireless users, broadband access, security, and the like. The wireless controller has strong management and control functions, and can construct an individualized and specialized solution.
The control signaling and user service data are transmitted between the lightweight wireless access point and the wireless controller through a tunnel.
The centralized control AC + AP architecture has the greatest advantage of simplified management. The network management platform of the WLAN equipment can indirectly manage the light-weight wireless access point AP only by centrally managing the wireless controller AC, so that the pressure of a background (such as the network management platform) is greatly reduced.
However, one wireless controller AC controls thousands of wireless access points AP, and when there are a large number, the wireless access points AP may send a large number of messages to the wireless controller AC, including user on-line and off-line information and authentication information, which causes the wireless controller AC to exceed the load during a peak period, and lose control over the wireless access points AP, thereby seriously affecting user experience.
In the embodiment, by setting the maximum load threshold of the wireless controller AC, in a user peak period, when the wireless controller AC exceeds the preset maximum load threshold, the wireless controller AC enters a pseudo escape mode, so that the number of messages sent by the wireless access point AP to the wireless controller AC is reduced, and the load of the wireless controller AC is reduced.
In this embodiment, the wireless access point AP entering the false escape mode closes the authentication function of the wireless controller and only retains the heartbeat packet with the wireless controller.
Specifically, if the wireless access point AP enters the false escape mode, only a heartbeat message exists between the wireless access point AP and the wireless controller AC. And the user authentication function is closed, and the user internet access service is not influenced. But the number of messages of the wireless controller AC reported by the wireless access point AP is reduced to a certain extent, the load pressure of the AC is relieved, and the hardware cost is not increased.
The heartbeat message is used for monitoring the running state of the machine network memory. The heartbeat message once sends character string information to indicate the running state of the network memory, and the character string information is sent in a UDP broadcast or unicast mode. The sending mode and sending interval of the heartbeat message can be set by a user on a control interface of the network memory.
In this embodiment, in step S11, it is determined whether the load of the wireless controller exceeds a preset maximum load threshold, and if so, the preset wireless access point is selected to enter the false escape mode.
Specifically, a maximum load threshold is set at the wireless controller AC, and during a user peak, if the wireless controller AC exceeds the preset maximum load threshold, the wireless controller AC will select the preset wireless access point AP to enter the false escape mode.
The preset wireless access point AP refers to a part of wireless access points AP. The part of the wireless access points AP enters a false escape mode.
The wireless access point AP entering the false escape mode closes the authentication function of the wireless controller AC, ensures that the user internet service is not influenced, and keeps heartbeat messages with the wireless controller AC and the wireless access points AP, thereby reducing the number of messages sent by the wireless access points AP to the wireless controller AC and reducing the load of the wireless controller AC.
In this embodiment, in step S12, if the load of the wireless controller does not exceed the preset maximum load threshold, it is detected whether a wireless access point has set that the wireless access point enters the false escape mode, and if not, it is continuously detected whether the load of the wireless controller exceeds the preset maximum load threshold.
Specifically, if the load of the wireless controller AC does not exceed the preset maximum load threshold, there are two situations:
1. the wireless controller AC is always in a normal working state;
2. and partial wireless access points AP enter a false escape state.
And detecting whether the wireless access point AP is set to enter a false escape mode, and if not, continuously detecting whether the load of the wireless controller AC exceeds a preset maximum load threshold.
The load information of the wireless controller AC can be monitored in real time, regulation and control can be performed in time, and the situation that the control of the wireless access point AP is lost due to overlarge load is avoided.
The present embodiment also provides a system for reducing load of a wireless controller, as shown in fig. 2, including:
the judging module 21 is configured to judge whether a load of the wireless controller exceeds a preset maximum load threshold, and if so, select a preset wireless access point to enter a false escape mode;
and a continuous detection module 22, configured to detect whether a wireless access point has set that the wireless access point enters a false escape mode if the load of the wireless controller does not exceed the preset maximum load threshold, and if not, continuously monitor whether the load of the wireless controller exceeds the preset maximum load threshold.
In this embodiment, the false escape mode refers to that the wireless access point closes the authentication function of the wireless controller and only the heartbeat message is reserved between the wireless access point and the wireless controller.
In this embodiment, the determining module 21 is specifically configured to set a maximum load threshold at the wireless controller AC, and during a user peak, if the wireless controller AC exceeds the preset maximum load threshold, the wireless controller AC selects the preset wireless access point AP to enter the false escape mode.
The preset wireless access point AP refers to a part of wireless access points AP. The part of the wireless access points AP enters a false escape mode.
The wireless access point AP entering the false escape mode closes the authentication function of the wireless controller AC, so that the user internet service is not affected, and the wireless controller AC and the wireless access points AP keep heartbeat messages, thereby reducing the number of messages sent by the wireless access point AP to the wireless controller AC and reducing the load of the wireless controller AC.
In this embodiment, the continuous detection module 22 is specifically configured to detect whether there is a wireless access point AP that has set to enter the false escape mode, and if not, continue to detect whether the load of the wireless controller AC exceeds a preset maximum load threshold. Load information of the wireless controller AC is detected in real time, regulation and control can be performed in time, control over the wireless access point AP due to overlarge load is avoided, and user experience is improved.
Example two
The embodiment provides a method for reducing the load of a wireless controller, as shown in fig. 3, comprising the steps of:
s31: detecting a preset maximum load threshold value;
s32: judging whether the load of the wireless controller exceeds a preset maximum load threshold value or not, if so, selecting a preset wireless access point to enter a false escape mode;
s33: if the load of the wireless controller does not exceed the preset maximum load threshold, detecting whether a wireless access point is set to enter a false escape mode, and if not, continuously detecting whether the load of the wireless controller exceeds the preset maximum load threshold.
The present embodiment is different from the first embodiment in that step S31 is further included.
Specifically, before determining the load condition of the wireless controller AC, a preset maximum load threshold is detected. If the load is larger than the preset maximum load threshold, the wireless controller AC cannot work normally, or even cannot control the wireless access point AP, which affects the use of the user.
Therefore, when the load of the wireless controller AC exceeds the preset maximum load threshold, the preset wireless access point AP is selected to enter the false escape mode, that is, only the heartbeat message is reserved between the wireless controller AC and the preset wireless access point AP. The load stress of the wireless controller AC is relieved.
The present embodiment also provides a system for reducing load of a wireless controller, as shown in fig. 4, including:
a detection module 41, configured to detect a preset maximum load threshold;
the judging module 42 is configured to judge whether a load of the wireless controller exceeds a preset maximum load threshold, and if so, select a preset wireless access point to enter a false escape mode;
and a continuous detection module 43, configured to detect whether a wireless access point has set that the wireless access point enters a false escape mode if the load of the wireless controller does not exceed the preset maximum load threshold, and if not, continuously monitor whether the load of the wireless controller exceeds the preset maximum load threshold.
The difference from the first embodiment is that a detection module 41 is further included.
The detecting module 41 is specifically configured to detect a preset maximum load threshold before determining a load condition of the wireless controller AC.
If the load of the current wireless controller AC is detected to be larger than the preset maximum load threshold value, the wireless controller AC cannot work normally, and therefore when the load of the wireless controller AC exceeds the preset maximum load threshold value, the preset wireless access point AP is selected to enter a false escape mode. The load pressure of the wireless controller AC is reduced, and the wireless controller AC is prevented from losing control over the wireless access point AP.
EXAMPLE III
The embodiment provides a method for reducing the load of a wireless controller, as shown in fig. 5, comprising the steps of:
s51: detecting a preset maximum load threshold value;
s52: judging whether the load of the wireless controller exceeds a preset maximum load threshold value or not, if so, selecting a preset wireless access point to enter a false escape mode;
s53: if the load of the wireless controller does not exceed the preset maximum load threshold, detecting whether a wireless access point is set to enter a false escape mode, and if not, continuously detecting whether the load of the wireless controller exceeds the preset maximum load threshold;
s54: if the wireless access point is set to enter the false escape mode, detecting whether the load of the wireless controller is lower than a preset load recovery threshold value, and if so, recovering the wireless access point with the false escape mode from the false escape mode;
s55: and if the load of the wireless controller is not detected to be lower than the preset load recovery threshold, continuously detecting whether the load of the wireless controller is lower than the preset load recovery threshold.
The difference between the present embodiment and the first and second embodiments is that the present embodiment further includes step S54 and step S55.
After the user peak period, if the wireless controller AC is detected to be lower than a preset load recovery threshold value, the wireless controller AC can control the wireless access point AP in the false escape mode to recover to the normal working mode.
If the load of the wireless controller AC does not exceed the preset maximum load threshold, there are two situations:
1. the wireless controller AC is always in a normal working state;
2. and partial wireless access points AP enter a false escape state.
And if the wireless controller AC is always in a normal working state, continuously detecting whether the load of the wireless controller AC exceeds a preset maximum load threshold value.
In the present embodiment, steps S54 and S55 are directed to the second case.
And for the condition that part of the wireless access points AP are set to enter the false escape mode, firstly detecting whether the load of the wireless controller AC is lower than a preset load recovery threshold value, and if so, controlling the wireless access points AP of the false escape mode to recover the normal working mode by the wireless controller AC.
Wherein the preset load recovery threshold is also determined according to user settings. The normal operation mode refers to restoring the authentication function of the wireless controller AC.
If the load of the wireless controller AC is not lower than the preset load recovery threshold, the normal working mode cannot be recovered, and whether the load of the wireless controller is lower than the preset load recovery threshold is continuously detected.
The present embodiment further provides a system for establishing a load of each wireless controller, as shown in fig. 6, including:
a detection module 51, configured to detect a preset maximum load threshold;
the judging module 52 is configured to judge whether a load of the wireless controller exceeds a preset maximum load threshold, and if so, select a preset wireless access point to enter a false escape mode;
a continuous detection module 53, configured to detect whether a wireless access point has set that the wireless access point enters a false escape mode if the load of the wireless controller does not exceed a preset maximum load threshold, and if not, continuously monitor whether the load of the wireless controller exceeds the preset maximum load threshold;
a recovery module 54, configured to detect whether a load of the wireless controller is lower than a preset load recovery threshold if a wireless access point enters a false escape mode after being set, and if so, recover the wireless access point with the false escape mode from the false escape mode; otherwise, continuously detecting whether the load of the wireless controller is lower than a preset load recovery threshold value.
The difference from the first and second embodiments is that a recovery module 54 is further included.
The recovery module 54 is configured to, after the user peak period elapses, if it is detected that the wireless controller AC is lower than the preset load recovery threshold, control the wireless access point AP in the false escape mode to recover the normal operating mode by the wireless controller AC.
The method is specifically used for detecting whether the load of the wireless controller AC is lower than a preset load recovery threshold value or not, and if so, the wireless controller AC controls the wireless access point AP in the false escape mode to recover the normal working mode. If the load of the wireless controller AC is not lower than the preset load recovery threshold, the normal working mode cannot be recovered, and whether the load of the wireless controller is lower than the preset load recovery threshold is continuously detected.
The specific embodiments described herein are merely illustrative of the spirit of the invention. Various modifications or additions may be made to the described embodiments or alternatives may be employed by those skilled in the art without departing from the spirit or ambit of the invention as defined in the appended claims.