Load-balancing method and device based on wired mouth and the wireless mouths of WDS
Technical field
Wired mouth and wireless distribution system are based on the present invention relates to communication technical field, more particularly to one kind
(Wireless Distribution System, WDS) is wireless, and mouth does the method and device of load balancing.
Background technology
In existing wireless network topology, the wireless router that is connected with interchanger (Wireless Access Point,
AP) network coverage can be extended by WDS wireless bridgings.In general WDS is built upon between two wireless aps, wherein one
Wireless aps serve as relay wireless signals equipment to reach the purpose of wireless network coverage extension.As shown in figure 1, being existing skill
The network topology structure schematic diagram of a kind of interchanger that art is provided and master/slave AP.Main AP10 and secondary AP20 by Ethernet with
Interchanger 30 is connected, and WDS bridge joints are set up between main AP10 and secondary AP20, and the extended wireless network coverage is realized by secondary AP20.
Inventor realize it is of the invention during find, at least there are following problems in prior art:As secondary AP20 and master
After WDS connections are established between AP10, if secondary AP20 is effective by wired port transmission that Ethernet is connected with interchanger 30
In the case of, secondary AP20 just has wired mouth and WDS two upstream egress of wireless mouth, and the two upstream egress can be loaded
It is balanced.If we carry out load balancing to the two upstream egress, there is so one problem, wired mouthful of bandwidth is stable and misses
Code check is very low, and the Bandwidth Dynamic of the wireless mouths of WDS changes, and is frequently subjected to the influence of the bit error rate, it is difficult to obtain the wireless mouths of WDS
Effective bandwidth.Therefore, how rational load balancing is carried out to the two upstream egress and there is problem.
The content of the invention
In sum, the embodiment of the present invention provides a kind of load-balancing method and dress based on wired mouth and the wireless mouths of WDS
Put, realize the reasonable pay(useful) load equilibrium of the wired mouth of wireless aps and the wireless mouths of WDS.
In a first aspect, the embodiment of the present invention provides a kind of load-balancing method based on wired mouth and the wireless mouths of WDS, application
In wireless aps, including:Obtain current SNR, current RSSI and the current connection speed of the wireless mouths of the WDS;Assess the WDS
The currently active bandwidth of wireless mouth;Compare the remaining bandwidth of wired mouth and the wireless mouths of the WDS;Wherein, wired mouth
Remaining bandwidth equal to actual bandwidth subtract it is currently practical used bandwidth, the remaining bandwidth of the wireless mouths of WDS is equal to described
The currently active bandwidth is subtracted and currently practical has used bandwidth;And, selection tape remaining roomy described wired mouth or the WDS
Wireless mouth carries out data transmission.
Further, the currently active bandwidth of the assessment wireless mouths of WDS includes:The wireless mouths of WDS it is current
Effective bandwidth=current connection speed * Score, wherein, the computational methods of Score are as follows:Score=(a*SNR '/SNRmax+
B*RSSI '/RSSImax) * channel utilizations, wherein, SNR is the current signal of the wireless mouths of the WDS;According to SNRmax
The maximum signal to noise ratio of the empirically determined wireless mouths of the WDS;SNR '=Min (SNR, SNRmax), that is, take the current SNR and institute
State SNRmax minimum values between the two;RSSI is that the current received signal strength of the wireless mouths of the WDS is indicated;RSSImax is
The maximum received signal strength of the empirically determined wireless mouths of the WDS is indicated;RSSI '=Min (RSSI, RSSImax), i.e.,
Take minimum values of the current RSSI with the RSSImax between the two;SNR and RSSI that a and b are respectively rule of thumb set
Weighted value, a+b=1.0;Channel utilization is percentage parameter, and scope is between [0,1].
Further, the assessment wireless mouths of WDS it is the currently active with it is a width of including:The wireless mouths of WDS work as
Preceding effective bandwidth=current connection speed * Score, wherein, the computational methods of Score are as follows:Score=(a*SNR '/SNRmax
+ b*RSSI '/RSSImax) * channel utilization * c, wherein, SNR is the current signal of the wireless mouths of the WDS;SNRmax is root
According to the maximum signal to noise ratio of the empirically determined wireless mouths of the WDS;SNR '=Min (SNR, SNRmax), that is, take the current SNR with
SNRmax minimum values between the two;RSSI is that the current received signal strength of the wireless mouths of the WDS is indicated;RSSImax
It is to be indicated according to the maximum received signal strength of the empirically determined wireless mouths of the WDS;RSSI '=Min (RSSI, RSSImax),
Take minimum values of the current RSSI with the RSSImax between the two;SNR that a and b are respectively rule of thumb set and
The weighted value of RSSI, a+b=1.0;Channel utilization is percentage parameter, and scope is between [0,1];With wireless aps according to c
The weighted value of how much settings of the terminal quantity of connection, scope is between [0,1].
Second aspect, the embodiment of the present invention provides a kind of load balancing apparatus based on wired mouth and the wireless mouths of WDS, bag
Include:Acquiring unit, current SNR, current RSSI and current connection speed for obtaining the wireless mouths of the WDS;WDS assessments are single
Unit, the currently active bandwidth for assessing the wireless mouths of the WDS;Comparing unit, for compare wired mouth and the WDS without
The remaining bandwidth of line mouthful;Wherein, described wired mouthful of remaining bandwidth is subtracted equal to actual bandwidth and currently practical has used bandwidth, institute
State the remaining bandwidth of the wireless mouths of WDS and subtracted equal to the currently active bandwidth and currently practical use bandwidth;And, selection is single
Unit, described wired mouth or the wireless mouths of the WDS for selecting tape remaining roomy carry out data transmission.
Further, the WDS assessment units, the currently active bandwidth for assessing the wireless mouths of the WDS, including:Institute
The currently active bandwidth=current connection speed * the Score of the wireless mouths of WDS are stated, wherein, the computational methods of Score are as follows:Score
=(a*SNR '/SNRmax+b*RSSI '/RSSImax) * channel utilizations, wherein, SNR is the current letter of the wireless mouths of the WDS
Make an uproar ratio;SNRmax is the maximum signal to noise ratio according to the empirically determined wireless mouths of the WDS;SNR '=Min (SNR, SNRmax), i.e.,
Take current SNR minimum value with the SNRmax between the two;RSSI is that the current Received Signal of the wireless mouths of the WDS is strong
Degree is indicated;RSSImax is to be indicated according to the maximum received signal strength of the empirically determined wireless mouths of the WDS;RSSI '=Min
(RSSI, RSSImax), that is, take minimum values of the current RSSI with the RSSImax between the two;A and b are respectively according to warp
Test the weighted value of the SNR and RSSI of setting, a+b=1.0;Channel utilization is percentage parameter, and scope is between [0,1].
Further, the WDS assessment units, the currently active bandwidth for assessing the wireless mouths of the WDS, including:Institute
The currently active bandwidth=current connection speed * the Score of the wireless mouths of WDS are stated, wherein, the computational methods of Score are as follows:Score
=(a*SNR '/SNRmax+b*RSSI '/RSSImax) * channel utilization * c, wherein, SNR is the current of the wireless mouths of the WDS
Signal to noise ratio;SNRmax is the maximum signal to noise ratio according to the empirically determined wireless mouths of the WDS;SNR '=Min (SNR, SNRmax),
Take current SNR minimum value with the SNRmax between the two;RSSI is the current Received Signal of the wireless mouths of the WDS
Intensity is indicated;RSSImax is to be indicated according to the maximum received signal strength of the empirically determined wireless mouths of the WDS;RSSI '=
Min (RSSI, RSSImax), that is, take minimum values of the current RSSI with the RSSImax between the two;A and b are respectively root
The SNR and the weighted value of RSSI set according to experience, a+b=1.0;Channel utilization be percentage parameter, scope [0,1] it
Between;The weighted value of how much settings of the terminal quantity being connected with wireless aps according to c, scope is between [0,1].
The load-balancing method method based on wired mouth and the wireless mouths of WDS for providing according to embodiments of the present invention, fully examines
Consider the influence of signal to noise ratio and signal receiving strength to the actual bandwidth of the wireless mouths of WDS, rationally evaluating the current of the wireless mouths of WDS has
Effect bandwidth, then, by relatively wired mouthful of remaining bandwidth and the remaining bandwidth of the wireless mouths of WDS, transmission rate is fast goes out for selection
Oral instructions transmission of data, so as to rationally and effectively realize the load balancing of the wired mouth of wireless aps and the wireless mouths of WDS.
Brief description of the drawings
In order to illustrate more clearly of scheme of the invention or of the prior art, below will be to embodiment or description of the prior art
Needed for the accompanying drawing to be used make one and simple introduce, it should be apparent that, drawings in the following description are some realities of the invention
Example is applied, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to these accompanying drawings
Obtain other accompanying drawings.A kind of method and device that load balancing is done based on wired mouth and wireless mouth
A kind of interchanger and master/slave wireless router (Wireless Access that Fig. 1 is provided by prior art
Point, AP) network topology structure schematic diagram;
A kind of method stream that load balancing is done based on wired mouth and the wireless mouths of WDS that Fig. 2 is provided by the embodiment of the present invention
Journey schematic diagram;
A kind of interchanger that Fig. 3 is provided by the embodiment of the present invention, master/slave wireless aps and wireless terminal (Station,
STA network topology schematic diagram);
A kind of device group that load balancing is done based on wired mouth and the wireless mouths of WDS that Fig. 4 is provided by the embodiment of the present invention
Into structural representation.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention.Obviously, described embodiment is only
A part of embodiment of the present invention, rather than whole embodiments, gives presently preferred embodiments of the present invention in accompanying drawing.The present invention can
Realized with many different forms, however it is not limited to embodiment described herein, on the contrary, providing the mesh of these embodiments
Be make to the understanding of the disclosure more it is thorough comprehensively.Based on the embodiment in the present invention, the common skill in this area
The every other embodiment that art personnel are obtained under the premise of creative work is not made, belongs to the model of present invention protection
Enclose.
Unless otherwise defined, all of technologies and scientific terms used here by the article with belong to technical field of the invention
The implication that technical staff is generally understood that is identical.The term for being used in the description of the invention herein is intended merely to description tool
The purpose of the embodiment of body, it is not intended that in the limitation present invention.In description and claims of this specification and above-mentioned accompanying drawing
Term " first ", " second " etc. be for distinguishing different objects, rather than for describing particular order.Additionally, term " bag
Include " and " having " and their any deformations, it is intended that covering is non-exclusive to be included.For example contain series of steps or list
The process of unit, method, system, product or equipment are not limited to the step of having listed or unit, but alternatively also include not
The step of listing or unit, or alternatively also include for these processes, method, product or other intrinsic steps of equipment or
Unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can be wrapped in conjunction with the embodiments
Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
Embodiment one
A kind of load-balancing method based on wired mouth and the wireless mouths of WDS provided in an embodiment of the present invention, is applied to wireless
Router (Wireless Access Point, AP).Refering to the network of the interchanger 30 shown in Fig. 1 and main AP10 and secondary AP20
Topological structure schematic diagram.After WDS established between secondary AP20 and main AP10 connecting, if secondary AP20 and interchanger 30 by with
Net very much connection wired port transmission it is effective in the case of, secondary AP20 just has wired mouth and WDS two upstream egress of wireless mouth,
The two upstream egress can carry out load balancing.For above-mentioned situation, the present embodiment offer is a kind of to realize the wired of wireless aps
The method of mouth and the wireless mouth load balancing of WDS, as shown in Figure 2.
Step S1001:Obtain the current signal (Signal Noise Ratio, SNR) of the wireless mouths of WDS, current reception
Signal intensity indicates (Receive Signal Strength Indicator, RSSI) and current connection speed.
In the present embodiment, based on the network topology architecture shown in Fig. 1, secondary AP20 obtain the current SNR of the wireless mouths of its WDS,
Current RSSI and current connection speed.
Step S1002:Assess the currently active bandwidth of the wireless mouths of the WDS.
The currently active bandwidth of WDS is wireless mouth=current connection speed * Score, wherein, the computational methods of Score are as follows:
Score=(a*SNR '/SNRmax+b*RSSI '/RSSImax) * channel utilizations, wherein, SNR is the wireless mouths of WDS
Current signal;SNRmax is the maximum signal to noise ratio according to the empirically determined wireless mouths of WDS;SNR '=Min (SNR,
SNRmax), that is, current SNR and SNRmax minimum values between the two are taken.RSSI is the current received signal strength of the wireless mouths of WDS
Indicate;RSSImax is to be indicated according to the maximum received signal strength of the empirically determined wireless mouths of WDS;RSSI '=Min (RSSI,
RSSImax), that is, current RSSI and RSSImax minimum values between the two are taken.In addition, what a and b were respectively rule of thumb set
The weighted value of SNR and RSSI is, it is necessary to meet a+b=1.0.Channel utilization is percentage parameter, and scope is between [0,1].
The current SNR of the wireless mouths of WDS of the wireless aps used for above-mentioned needs, current RSSI and current connection speed,
User can set some cycles collection, and average value processing is done within the cycle, and calculate Score according to this.
Step S1003:Compare the remaining bandwidth of wired mouth and the wireless mouths of the WDS;Wherein, wired mouthful remaining bandwidth etc.
In actual bandwidth subtract it is currently practical used bandwidth, the remaining bandwidth of WDS is wireless mouth is subtracted equal to the currently active bandwidth
It is currently practical to have used bandwidth.
The currently practical of wired mouthful of secondary AP20 has used the bandwidth can be obtained according to measurement, wired mouthful remaining bandwidth etc.
Subtracted in actual bandwidth and currently practical used bandwidth;WDS is wireless, and the currently practical of mouth can be obtained using bandwidth according to measurement
, the currently active bandwidth that the remaining bandwidth of WDS is wireless mouth is equal to the wireless mouths of WDS obtained according to step S1002 assessments is subtracted
It is currently practical to have used bandwidth.
Step S1004:The roomy wired mouth of selection tape remaining or the wireless mouths of WDS carry out data transmission.
The roomy wired mouth of secondary AP20 selections tape remaining or the wireless mouths of WDS carry out transmitting uplink data.
Using the above-mentioned load-balancing method based on wired mouth and the wireless mouths of WDS, lifted with reference to actual measurement and assessment data
Under for example:The wired mouthful of actual bandwidth of secondary AP20 is 100M, currently practical to have used with a width of 50M;The bandwidth meeting of WDS is wireless mouth
Influenceed by signal to noise ratio, signal receiving strength etc., the value of the Score for calculating is for the actual bandwidth of the wireless mouths of 0.6, WDS
150M, then, WDS is wireless mouth it is the currently active with a width of 150M*0.6=90M, WDS is wireless, and the current of mouth has been used with a width of
10M.Now, wired mouthful of remaining bandwidth is 100M-50M=50M, and the remaining bandwidth of WDS is wireless mouth is 90M-10M=80M, is had
The remaining bandwidth of line mouthful is more than the remaining bandwidth of the wireless mouths of WDS, and the secondary AP20 selection wireless mouths of WDS carry out data transmission.
The load-balancing method method based on wired mouth and the wireless mouths of WDS for providing according to embodiments of the present invention, fully examines
Consider the influence of signal to noise ratio and signal receiving strength to the actual bandwidth of the wireless mouths of WDS, rationally evaluating the current of the wireless mouths of WDS has
Effect bandwidth, then, by relatively wired mouthful of remaining bandwidth and the remaining bandwidth of the wireless mouths of WDS, transmission rate is fast goes out for selection
Oral instructions transmission of data, so as to rationally and effectively realize the load balancing of the wired mouth of wireless aps and the wireless mouths of WDS.
Embodiment two
Based on embodiment one, as the alternative of the embodiment of the present invention, in the currently active bandwidth of the assessment wireless mouths of WDS
When, further consider influence of terminal (Station, the STA) quantity being connected with main AP10 to Wireless Data Transmission.Such as Fig. 3 institutes
Show, the network of a kind of interchanger, master/slave wireless aps and wireless terminal (Station, STA) that are provided by the embodiment of the present invention
Topological schematic diagram, some STA40 are connected with main AP10.Because the WDS bridge joints set up between main AP10 and secondary AP20 may be used also
The shared bandwidth of some STA40 that can and be connected with main AP10, the STA40 of connection is more, more easily causes and hits bag, influences data
Transmission.Therefore, the terminal connection quantity further according to main AP sets coefficient c, for example, when the connection number of STA40 is 10, being
Number c=0.8;When the connection number of STA is 20, coefficient c=0.6.
In the present embodiment, the currently active bandwidth of the wireless mouths of WDS is assessed, is adopted with the following method:
The currently active bandwidth of WDS is wireless mouth=current connection speed * Score, wherein, the computational methods of Score are as follows:
Score=(a*SNR '/SNRmax+b*RSSI '/RSSImax) * channel utilization * c, wherein, SNR is that WDS is wireless
The current signal of mouth;SNRmax is the maximum signal to noise ratio according to the empirically determined wireless mouths of WDS;SNR '=Min (SNR,
SNRmax), that is, current SNR and SNRmax minimum values between the two are taken.RSSI is the current received signal strength of the wireless mouths of WDS
Indicate;RSSImax is to be indicated according to the maximum received signal strength of the empirically determined wireless mouths of WDS;RSSI '=Min (RSSI,
RSSImax), that is, current RSSI and RSSImax minimum values between the two are taken.In addition, what a and b were respectively rule of thumb set
The weighted value of SNR and RSSI is, it is necessary to meet a+b=1.0.Channel utilization is percentage parameter, and scope is between [0,1].This
Outward, the weighted value of how much settings of the terminal quantity being connected with main AP according to coefficient c, the quantity of terminal is more, and weighted value is got over
Low, scope is between [0,1].
Other steps, it is identical with the step described in embodiment one, will not be repeated here.
The load-balancing method based on wired mouth and the wireless mouths of WDS for providing according to embodiments of the present invention, based on experience value,
The influence of signal to noise ratio and signal receiving strength to the actual bandwidth of the wireless mouths of WDS is taken into full account, is also further contemplated and main AP
The influence of STA quantity is connected, the currently active bandwidth of the wireless mouths of WDS is rationally evaluated, then, by relatively wired mouthful of residue
The remaining bandwidth of bandwidth and the wireless mouths of WDS, the fast outlet delivery data of selection transmission rate, so as to rationally and effectively realize wireless
The load balancing of the wired mouths of AP and the wireless mouths of WDS.
Embodiment three
The embodiment of the present invention provides a kind of load balancing apparatus based on wired mouth and the wireless mouths of WDS, knot as shown in Figure 4
Structure block diagram, described device include acquiring unit 202, WDS assessment units 204, comparing unit 206 and select unit 208, below it is right
Each unit is described in detail, wherein:
Acquiring unit 202, for obtain the wireless mouths of WDS current signal (Signal Noise Ratio, SNR), when
Preceding received signal strength indicator (Receive Signal Strength Indicator, RSSI) and current connection speed.
WDS assessment units 204, the currently active bandwidth for assessing the wireless mouths of the WDS.
The currently active bandwidth of WDS is wireless mouth=current connection speed * Score, wherein, the computational methods of Score are as follows:
Score=(a*SNR '/SNRmax+b*RSSI '/RSSImax) * channel utilizations, wherein, SNR is the wireless mouths of WDS
Current signal;SNRmax is the maximum signal to noise ratio according to the empirically determined wireless mouths of WDS;SNR '=Min (SNR,
SNRmax), that is, current SNR and SNRmax minimum values between the two are taken.RSSI is the current received signal strength of the wireless mouths of WDS
Indicate;RSSImax is to be indicated according to the maximum received signal strength of the empirically determined wireless mouths of WDS;RSSI '=Min (RSSI,
RSSImax), that is, current RSSI and RSSImax minimum values between the two are taken.In addition, what a and b were respectively rule of thumb set
The weighted value of SNR and RSSI is, it is necessary to meet a+b=1.0.Channel utilization is percentage parameter, and scope is between [0,1].
The current SNR of the wireless mouths of WDS of the wireless aps used for above-mentioned needs, current RSSI and current connection speed,
User can set some cycles collection, and average value processing is done within the cycle, and calculate Score according to this.
It is preferred that in the case of the bandwidth sharing that the quantity of STA for considering to be connected with main AP is bridged to WDS, further
Inlet coefficient c, the weighted value of how much settings of the terminal quantity being connected with main AP according to coefficient c, the quantity of terminal is more, power
Weight values are lower, and scope is between [0,1].Now, Score=(a*SNR '/SNRmax+b*RSSI '/RSSImax) * channel usages
Rate * c.
Comparing unit 206, the remaining bandwidth for comparing wired mouth and the wireless mouths of the WDS;Wherein, wired mouthful of residue
Bandwidth equal to actual bandwidth subtract it is currently practical used bandwidth, the remaining bandwidth of WDS is wireless mouth is equal to the currently active band
Width is subtracted and currently practical has used bandwidth.
Select unit 208, the wireless mouth of wired mouth or WDS for selecting tape remaining roomy carries out data transmission.
The load balancing apparatus based on wired mouth and the wireless mouths of WDS for providing according to embodiments of the present invention, based on experience value,
The influence of signal to noise ratio and signal receiving strength to the actual bandwidth of the wireless mouths of WDS is taken into full account, the wireless mouths of WDS are rationally evaluated
The currently active bandwidth, then, by relatively wired mouthful of remaining bandwidth and the remaining bandwidth of the wireless mouths of WDS, selects transmission quality
Outlet delivery data high, so as to rationally and effectively realize the load balancing of the wired mouth of wireless aps and the wireless mouths of WDS.
In above-described embodiment provided by the present invention, it should be understood that disclosed apparatus and method, can be by it
Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the module, only
Only a kind of division of logic function, can there is other dividing mode when actually realizing, for example, multiple module or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.
The module that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as module
The part for showing can be or may not be physical module, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of module therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
Embodiments of the invention are these are only, the scope of the claims of the invention is not intended to limit, although with reference to the foregoing embodiments
The present invention is described in detail, for those skilled in the art comes, it still can be to foregoing each specific reality
Apply the technical scheme described in mode to modify, or equivalence replacement is carried out to which part technical characteristic.It is every to utilize this
The equivalent structure that description of the invention and accompanying drawing content are done, is directly or indirectly used in other related technical fields, similarly
Within scope of patent protection of the present invention.