The load-balancing method of WLAN (wireless local area network)Technical field
The present invention relates to the wireless local area network (WLAN) system in the communications field, relate in particular to the implementation method of load balancing in the WLAN (wireless local area network).
Background technology
WLAN (WLAN (wireless local area network)) is meant that the employing wireless communication technology is interconnected with computer equipment, and formation can the mutual communication and the network system that realizes resource-sharing.In the wlan network environment, an expansion service group system is by one or more basic service sets, and the compartment system formation that connects these basic service sets, and each basic service sets comprises a wireless access point device.The expansion service group is distinguished by ESSID (expansion service group identifier), and WAP (wireless access point) is distinguished by BSSID (basic service set identification number).Terminal is obtained expansion service group and basic service sets information in the WLAN environment of living in by scanning channel, and selects to add a suitable basic service sets.Load balancing among the WLAN is exactly the wireless local area network (WLAN) system that access service is provided for multiple portable terminal by a plurality of access points, each access point member utilizes the network information to carry out terminal management, allow or the access of refusal portable terminal, reach and evenly bear offered load, make full use of the network existing resource, reduce a kind of strategy of network congestion purpose.
802.11 the physical layer that standard is an IEEE802.11 WLAN standard working group to be formulated and media interviews control (MAC) consensus standard are convenient to WLAN (wireless local area network) and radio equipment manufacturer and are set up mutual operation network equipment.Physical layer has defined the signal characteristic and the modulation of transfer of data.Media interviews controls (MAC) layer can be considered by a series of finishing such as the service of information exchange, power control, associate management, management by synchronization and process management to be formed.
How regulation does not carry out load balance process in current WLAN standard, and how load-balancing information carries out in network alternately.The distribution of expansion service group internal burden is free and uncontrolled, only depends on the signal strength signal intensity of the WAP (wireless access point) that mobile site receives.In standard, stipulate, when portable terminal moves to the edge of the WAP (wireless access point) of current connection, signal strength weakening, terminal will scan other WAP (wireless access point) in the expansion service group, produces to switch, and is connected on the new WAP (wireless access point).Fig. 1 is the structural representation of WLAN (wireless local area network) expansion service group, and as shown in Figure 1, one has two WAP (wireless access point): WAP (wireless access point) 1 and WAP (wireless access point) 2.The terminal of each access point and its management is formed basic service sets, and an expansion service group is formed in two each and every one basic service sets collaborative works.The oval dotted line of basic service sets is represented the coverage of WAP (wireless access point) among the figure.The coverage of two basic service sets has certain overlapping.Terminal 1, terminal 2 are the terminals that move in the expansion service group, and the upper layer application business is moved on terminal.Be in the terminal in the overlapping region, can scan the signal of a plurality of WAP (wireless access point) simultaneously.Be exactly to insert WAP (wireless access point) according to the signal strength signal intensity that scans in the current wireless local area network standard, portable terminal always selects to insert the strongest WAP (wireless access point) of signal strength signal intensity, and this just increases the load of this WAP (wireless access point) undoubtedly.Use the method for stipulating in the current wireless local area network standard can cause following problem:
1, switch the imbalance that causes expansion service group internal burden, network stabilization is poor, and utilization rate of network resource is low.In case mobile scanning terminal is better than the WAP (wireless access point) of current connection to signal strength signal intensity, portable terminal will be decided in its sole discretion, begins to switch to the Target Wireless access point from current WAP (wireless access point).Terminal is not also known the load state of Target Wireless access point, does not know what degree is the burden of switching back Target Wireless access point can not be increased to yet.Along with the variation of environment in the WLAN (wireless local area network) and the increase of terminal quantity, the WAP (wireless access point) that signal is strong can attract the switching of more portable terminal, cause the sudden change and the imbalance of expansion service group internal burden, reduce stability of network, the wireless network resource in the expansion service group can not be fully utilized.
2, current WLAN (wireless local area network) handover mechanism can reduce the tolerance of network, is prone to congested.The basic service sets of load saturation can appear in the network that does not carry out load balancing.Because signal strength signal intensity is only depended in the switching of portable terminal, if there is a terminal to switch to a WAP (wireless access point) that load is saturated according to signal strength signal intensity, will cause this WAP (wireless access point) congested, the business of all terminals of this WAP (wireless access point) service is interrupted, and reduces the tolerance of network.
3, the portable terminal handover success rate is low, the having a big risk of switching.On the one hand, when scanning stronger WAP (wireless access point) of signal strength signal intensity and decision switching, can terminal does not also know to switch successful, do not know that also can the Target Wireless access point provide required resource of terminal and service quality, switching has unsuccessful risk, and the result of switching can not guarantee.On the other hand, insert along with other-end switches, the load of the basic service sets at terminal place increases the weight of, and terminal can not be avoided the load summit of the basic service sets at current place, in case the load saturation of WAP (wireless access point), the business of terminal just has the danger of interruption.
Summary of the invention
Purpose of the present invention is exactly to overcome the shortcoming that the terminal in the extended service set in the prior art is blindly switched, and proposes a kind of load-balancing method that improves the WLAN (wireless local area network) of network stabilization and tolerance, raising portable terminal handover success rate.
A kind of load-balancing method of WLAN (wireless local area network) comprises the following steps:
The first step: WAP (wireless access point) is calculated and to the load information of this WAP (wireless access point) of terminal broadcast transmission of its administration;
Second step: terminal receives the load information of WAP (wireless access point) broadcast transmission;
The 3rd step: terminal is carried out the load estimation of this WAP (wireless access point) according to the load information that receives;
The 4th step: if above-mentioned load estimation result does not exceed the load capacity of this WAP (wireless access point), then terminal keeps existing connection, repeats for the 3rd step;
The 5th step: otherwise terminal scans, and inquires about the signal quality of alternative WAP (wireless access point) and the index that characterizes load information;
The 6th step:, then be better than selecting one the alternative access point of current wireless access point and switch connection from index if the index of alternative access point is better than current wireless access point index;
The 7th step: carried out for the 3rd step otherwise return again.
The method that the present invention proposes to terminal periodic broadcasting load information, allows the load variations trend of predictably terminal imagination WAP (wireless access point) by WAP (wireless access point), the switching behavior of decision terminal.This method has following advantage:
1, because the load information of WAP (wireless access point) is correlated with in time, terminal can dope the variation tendency of WAP (wireless access point).According to the load variations trend of WAP (wireless access point), terminal can determine to switch on other the WAP (wireless access point) or keep current connection, has reduced the blindness of switching.When the load of WAP (wireless access point) did not have the peak of burst, terminal can be kept current connection, avoids the switching that causes because of signal strength signal intensity.The purpose of switching on the network is stronger, improves stability of network.
2, because terminal can dope the load variations trend of the WAP (wireless access point) of current connection, just can before arriving, load summit make change action in advance, and reduce and switch the risk of bringing, avoid the decreased performance and the service disconnection that occur because of load summit.
Description of drawings
Fig. 1 is the structural representation of WLAN (wireless local area network) expansion service group;
Fig. 2 is the flow chart that the present invention proposes a specific embodiment of method.
Embodiment
Radio local network environment of the present invention comprises two WAP (wireless access point) and two terminals at least.Two WAP (wireless access point) are formed an expansion service group, for two terminals provide access service.Below in conjunction with accompanying drawing and instantiation the present invention is described in further details.
In conjunction with Fig. 2, a specific implementation method of the present invention comprises the following steps:
1, WAP (wireless access point) is calculated instant load balancing index and the statistics load balancing index of oneself.Instant load balancing index comprises at least: the terminal number that WAP (wireless access point) connects, the flow of WAP (wireless access point).Statistics load balancing index comprises at least: the maximum connection of WAP (wireless access point) website number, WAP (wireless access point) maximum stream flow level, on average requirement of the QoS of all connecting terminals.
2, WAP (wireless access point) is periodically broadcasted instant load balancing index and statistics load balancing index on its working channel.Instant load balancing index realizes that by expansion Beacon frame broadcast cycle is identical with the Beacon frame.Statistics load balancing index realizes that by the new management frames of structure broadcast cycle is greater than the Beacon frame period.
3, all terminals of this WAP (wireless access point) administration receive instant load balancing index and add up the load balancing index and these two achievement datas are carried out caching process.Wherein instant load balancing index is preserved 30 data at least, is ending with up-to-date data promptly, preserves its continuous 30 data before, and statistics load balancing index is preserved up-to-date data at least.
4, this moment, terminal was in stable connection status.Terminal can periodically be carried out the load horizontal forecast of WAP (wireless access point) under this state, draw the load variations trend of current wireless access point.The cycle of predictably terminal imagination is identical with the transmission cycle of statistics load balancing index.Prediction algorithm can the selection index exponential smoothing, time series method, regression analysis method, a kind of in the ripe prediction algorithms such as linear AR method.
5, terminal is according to regularly the load trend of the WAP (wireless access point) of prediction and the up-to-date statistics load balancing index that receives compare analysis.If prediction load balancing index is smaller or equal to statistics load balancing index, then terminal is thought the in good condition of present WAP (wireless access point), keeps current connection, re-executes previous step; Otherwise terminal thinks that current WAP (wireless access point) can load summit occur in future, and perhaps variation has taken place the business need of terminal, requires to switch access point to improve performance.
6, terminal begins background scans, can obtain under the network environment signal quality of other WAP (wireless access point) and instant load balancing index in the expansion service group in the process of scanning.
7, terminal is carried out corresponding judgment, and other WAP (wireless access point) in the environment are better than the WAP (wireless access point) of current connection.In this terminal factor aspect passing judgment on two: the contrast of the contrast of signal strength signal intensity and load balancing index.If the current wireless access point is better than other WAP (wireless access point) of scanning, then change step 4.Otherwise, change step 8.
8, from the WAP (wireless access point) of background scans, select optimum one.Evaluation factor has two: signal strength signal intensity and load balancing index.After finishing, selection changes step 9.
9, terminal begins to switch connection to the Target Wireless access point.