Content of the invention
The present invention provides a kind of method of carrier equalisation, apparatus and system, for solving in prior art due to not synchronizedSkewness weighing apparatus in each carrier wave for the data service of rate, the network resource utilization leading to carrier wave is low, data traffic transmissionThe problem of slow problem.
For solving the problems referred to above of the prior art, the invention provides a kind of method of carrier equalisation, wherein, including:
Big speed equivalent user number in statistics each carrier wave described and little speed equivalent user number;
Obtain the first difference between the maxima and minima of big speed equivalent user number in all carrier waves, and obtainThe second difference between the maxima and minima of little speed equivalent user number in all carrier waves;
When described first difference is more than the first threshold value, between the maximum and minimum carrier wave of big speed equivalent user numberEquilibrium adjustment equivalent user number, and when described second difference is more than the second threshold value, maximum to little speed equivalent user numberJun Heng adjustment equivalent user number and minimum carrier wave between.
The present invention also provides a kind of device of carrier equalisation, wherein, including:
Statistical module, for counting big speed equivalent user number and little speed equivalent user number in each carrier wave described;
Acquisition module, for obtaining in all carrier waves first between the maxima and minima of big speed equivalent user numberDifference, and obtain the second difference between the maxima and minima of little speed equivalent user number in all carrier waves;
Balance module, for when described first difference is more than the first threshold value, big speed equivalent user number maximum withEquilibrium adjustment equivalent user number between minimum carrier wave, and when described second difference is more than the second threshold value, to little speedJun Heng adjustment equivalent user number between maximum with the minimum carrier wave of equivalent user number.
The invention provides a kind of system of carrier equalisation, including:The device of any one above-mentioned carrier equalisation.
The beneficial effect of the embodiment that the present invention provides:
In the embodiment that the present invention provides, when the first difference is more than the first threshold value, in big speed equivalent user numberJun Heng adjustment equivalent user number between maximum with minimum carrier wave, when the second difference is more than the second threshold value, in little speed etc.Jun Heng adjustment equivalent user number between maximum with the minimum carrier wave of effectiveness amount, so that big speed ratio data service and little speed dataDistributing equilibrium in each carrier wave for the business, thus improve the utilization rate of the Internet resources of carrier wave it is ensured that various data serviceTransmission is fast unobstructed, improves the experience of user.
Specific embodiment
Embodiments of the invention are described below in detail, the example of described embodiment is shown in the drawings, wherein from start to finishThe element that same or similar label represents same or similar element or has same or like function.Below with reference to attachedThe embodiment of figure description is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Fig. 1 is the flow chart of the method first embodiment of carrier equalisation of the present invention.As shown in figure 1, the present embodiment carrier wave is equalThe method of weighing apparatus includes job step specific as follows:
Step 101, big speed equivalent user number and the little speed equivalent user number counting in each carrier wave.
In this step, the big speed equivalent user number in each carrier wave and little speed equivalent user number are counted first.?In practical application, the data service in carrier wave includes single PS data service and many PS data service, either using single PS dataThe user of business, or the user using many PS data service, can only a natural user at last;And provide in the present inventionIn each embodiment, for 1 natural user using single PS data service, its equivalent user number is 1, for using many PS numberAccording to the natural user of business, its equivalent user number is equal with the quantity of the data service of this natural user, for example, using 3PS numberAccording to the natural user of business, its equivalent user number is 3.
In this step, count the big speed ratio data service in each carrier wave and little speed ratio data service, then countIn each carrier wave carry big speed ratio data service big speed equivalent user number, and count in each carrier wave carry littleThe little speed equivalent user number of speed ratio data service, subsequently into step 102.
The first difference between the maxima and minima of big speed equivalent user number in step 102, acquisition carrier wave, andObtain the second difference between the maxima and minima of little speed equivalent user number in carrier wave.
In this step, compare the quantity of big speed equivalent user in each carrier wave, obtain big speed equivalent user in carrier waveThe maxima and minima of number, then calculates the difference between the maxima and minima of big speed equivalent user number;Meanwhile,Compare the quantity of big speed equivalent user in each carrier wave, obtain the maximum of big speed equivalent user number and minimum in carrier waveValue, then calculates the difference between the maxima and minima of little speed equivalent user number.Obtain the first difference and second poorAfter value, enter step 103.
Step 103, when the first difference is more than the first threshold value, in the carrier wave that big speed equivalent user number is maximum with minimumBetween equilibrium adjustment equivalent user number, and when the second difference is more than the second threshold value, maximum in little speed equivalent user numberJun Heng adjustment equivalent user number and minimum carrier wave between.
In this step, setting the first threshold value and the second threshold value, when the first difference is more than the first threshold value, markBig speed equivalent user is unbalanced, so needing Jun Heng adjustment etc. between maximum with the minimum carrier wave of big speed equivalent user numberEffectiveness amount, the part equivalent user equilibrium in the maximum carrier wave of big speed equivalent user number is adjusted to the effectiveness such as big speedIn the minimum carrier wave of amount, so that the big speed equivalent user number in each carrier wave is kept in balance, both make full use of the net of carrier waveNetwork resource, can ensure that the quickly unobstructed of data service again.In the same manner, when the first difference is more than the first threshold value, identify little speedEquivalent user is unbalanced, so needing Jun Heng adjustment equivalent user between maximum with the minimum carrier wave of little speed equivalent user numberNumber, the part equivalent user equilibrium in the maximum carrier wave of big speed equivalent user number is adjusted to big speed equivalent user numberIn little carrier wave, so that the little speed equivalent user number in each carrier wave is kept in balance, both make full use of the Internet resources of carrier wave,Can ensure that the quickly unobstructed of data service again.
In the present embodiment, when the first difference is more than the first threshold value, maximum and minimum in big speed equivalent user numberCarrier wave between equilibrium adjustment equivalent user number, the second difference be more than the second threshold value when, in little speed equivalent user numberJun Heng adjustment equivalent user number between big with minimum carrier wave, so that big speed ratio data service and little speed ratio data service are at eachDistributing equilibrium in carrier wave, thus improve the utilization rate of the Internet resources of carrier wave it is ensured that the transmission UltraDialUp of various data serviceFreely, improve the experience of user.
Fig. 2 is the flow chart of the method second embodiment of carrier equalisation of the present invention.As shown in Fig. 2 the present embodiment carrier wave is equalThe method of weighing apparatus includes job step specific as follows:
Step 201, detect the speed of data service in each carrier wave.
In this step, preset the rate threshold value of data service in carrier wave first, carrier wave can be H carrier wave.SoDetect the speed of data service in each carrier wave afterwards, obtain the speed of data service in each carrier wave in detection after, by speedThe data service that rate is more than scheduled rate threshold value is set as big rate business, and speed is less than or equal to scheduled rate threshold valueData service be set as little rate business, subsequently into step 202.
Step 202, big speed equivalent user number and the little speed equivalent user number counting in each carrier wave.
In this step, the big speed equivalent user number in each carrier wave and little speed equivalent user number are counted, for 1Using the natural user of single PS data service, its equivalent user number is 1, for the natural user using many PS data service, itsEquivalent user number is equal with the quantity of the data service of this natural user.
In the present embodiment, the big speed ratio data service in each carrier wave and little speed data industry can periodically be countedBusiness, for example the when long period every 30s is counted.Count the big speed of the big speed ratio data service carrying in each carrier waveEquivalent user number, and count the little speed equivalent user number of the little speed ratio data service carrying in each carrier wave, Ran HoujinEnter step 203.
The first difference between the maxima and minima of big speed equivalent user number in step 203, acquisition carrier wave, andObtain the second difference between the maxima and minima of little speed equivalent user number in carrier wave.
In this step, compare the quantity of big speed equivalent user in each carrier wave, obtain big speed equivalent user in carrier waveThe maxima and minima of number, then calculates the difference between the maxima and minima of big speed equivalent user number;Meanwhile,Compare the quantity of big speed equivalent user in each carrier wave, obtain the maximum of big speed equivalent user number and minimum in carrier waveValue, then calculates the difference between the maxima and minima of little speed equivalent user number.Obtain the first difference and second poorAfter value, enter step 204.
Step 204, when the first difference is more than the first threshold value, in the carrier wave that big speed equivalent user number is maximum with minimumBetween equilibrium adjustment equivalent user number, and when the second difference is more than the second threshold value, maximum in little speed equivalent user numberJun Heng adjustment equivalent user number and minimum carrier wave between.
In the present embodiment, the first threshold value and the second threshold value can all be set as 5 it is also possible to by the first threshold value andTwo threshold values are respectively provided with different numerical value, such as be 5 by the first threshold settings, the second threshold settings are 3 etc..At thisIn step when the first difference is more than the first threshold value, identify big speed equivalent user unbalanced, so needing in big speed etc.Jun Heng adjustment equivalent user number between maximum with the minimum carrier wave of effectiveness amount, by the carrier wave that big speed equivalent user number is maximumIn the equilibrium of part equivalent user be adjusted in the minimum carrier wave of big speed equivalent user number, so that the big speed in each carrier waveEquivalent user number is kept in balance, and has both made full use of the Internet resources of carrier wave, can ensure that the quickly unobstructed of data service again.In the same manner,When the first difference is more than the first threshold value, identify little speed equivalent user unbalanced, so needing in little speed equivalent userJun Heng adjustment equivalent user number between maximum with the minimum carrier wave of number, by the portion in the maximum carrier wave of big speed equivalent user numberEffect of grading user equilibrium is adjusted in the minimum carrier wave of big speed equivalent user number, so that the effectiveness such as little speed in each carrier waveAmount is kept in balance, and has both made full use of the Internet resources of carrier wave, can ensure that the quickly unobstructed of data service again.
In actual applications, between the maximum and minimum carrier wave of equivalent user number, by adjusting minimal number of use naturallyFamily adjusts come the equilibrium to carry out equivalent user, can reduce the number of the natural user of adjustment during equilibrium adjustment as far as possibleAmount.For example, the maximum carrier wave of equivalent user number is carrier wave A, and the minimum carrier wave of equivalent user number is carrier wave B, need from carrier wave A toAnother carrier wave B equilibrium 5 equivalent user of adjustment, have the natural user of 5 PS data services of 1 use, then only in this carrier wave AAdjust this natural user and transfer to carrier wave B from carrier wave A, so it is only necessary to the natural user of adjustment 1 just can realize;AsNot using the natural user of 5 PS data services in fruit carrier wave A, then need to look for the natural use of 5 equivalent user of an inclusionFamily is combined, and can continue to look for the combination forming using the natural user of 4 PS data services and the natural user of forms data business,Or look for the combination of the natural user using 3 PS data services and the natural user using 2 PS data services, if foundThe combination of the natural user of above-mentioned any one just can realize equivalent user it is possible to realize the natural user of only adjustment 2Equilibrium;If not finding the combination including 2 natural users in carrier wave A, need to continually look for including 3 natural users'Combination, the combination of this 3 natural users only needs to including 5 equivalent user, by that analogy.
Further, between maximum with the minimum carrier wave of big speed equivalent user number Jun Heng adjustment equivalent user number itAfterwards, so that the difference between equivalent user number in two carrier waves is less than the first threshold value, preferably after equilibrium adjustmentEquivalent user number in two carrier waves is equal.Between maximum with the minimum carrier wave of little speed equivalent user number, Jun Heng adjustment is equivalentAfter number of users, so that the difference between the equivalent user number in two carrier waves is less than the second threshold value, preferably equilibrium is adjustedThe equivalent user number in two carrier waves after whole is equal.
In the present embodiment, detect the speed of data service in each carrier wave, the big speed counting in each carrier wave is equivalentNumber of users and little speed equivalent user number, when the first difference is more than the first threshold value, big speed equivalent user number maximum withEquilibrium adjustment equivalent user number between minimum carrier wave, when the second difference is more than the second threshold value, in little speed equivalent userJun Heng adjustment equivalent user number between maximum with the minimum carrier wave of number, so that big speed ratio data service and little speed ratio data service existDistributing equilibrium in each carrier wave, thus improve the utilization rate of the Internet resources of carrier wave it is ensured that the transmission of various data service is fastPrompt unobstructed, improve the experience of user.
Fig. 3 is the structural representation of the device first embodiment of carrier equalisation of the present invention.As shown in figure 3, the present embodiment carriesDevice includes ripple in a balanced way:Statistical module 301, acquisition module 302 and balance module 303, wherein, statistical module 301 is used for unitingCount the big speed equivalent user number in each carrier wave and little speed equivalent user number;Acquisition module 302 is used for obtaining all carrier wavesIn big speed equivalent user number maxima and minima between the first difference, and it is equivalent to obtain little speed in all carrier wavesThe second difference between the maxima and minima of number of users;Balance module 303 is used for being more than the first threshold value in the first differenceWhen, Jun Heng adjustment equivalent user number between maximum with the minimum carrier wave of big speed equivalent user number, and big in the second differenceWhen the second threshold value, Jun Heng adjustment equivalent user number between the carrier wave maximum with minimum to little speed equivalent user number.
In the present embodiment, statistical module big speed equivalent user number and little speed equivalent user number, acquisition module obtainsFirst difference and the second difference, when the first difference is more than the first threshold value, balance module is maximum in big speed equivalent user numberJun Heng adjustment equivalent user number and minimum carrier wave between, when the second difference is more than the second threshold value, balance module is in little speedJun Heng adjustment equivalent user number between maximum with the minimum carrier wave of rate equivalent user number, so that big speed ratio data service and little speedDistributing equilibrium in each carrier wave for the data service, thus improve the utilization rate of the Internet resources of carrier wave it is ensured that various data industryThe transmission of business is fast unobstructed, improves the experience of user.
Fig. 4 is the structural representation of the device second embodiment of carrier equalisation of the present invention.As shown in figure 4, the present embodiment carriesDevice also includes ripple in a balanced way:Detection module 304 and setting module 305.Wherein, detection module 304 is used for detecting each carrier waveThe speed of middle data service, the data service that setting module 305 is used for for speed being more than scheduled rate threshold value is set as big speedRate business, the data service that speed is less than or equal to scheduled rate threshold value is set as little rate business.
Further, statistical module 301 is additionally operable to count the equivalent user number of the natural user of single PS data service and is1, the equivalent user number of the natural user of many PS data service is counted the number of the data service for described natural user.EquilibriumModule 303 is additionally operable to carry out the equilibrium adjustment of equivalent user by adjusting minimal number of natural user.Balance module 303 is also usedAfter Jun Heng adjustment equivalent user number between the carrier wave maximum with minimum in big speed equivalent user number, so that in two carrier wavesEquivalent user number between difference be less than the first threshold value;Between the maximum and minimum carrier wave of little speed equivalent user number allAfter weighing apparatus adjustment equivalent user number, so that the difference between the equivalent user number in two carrier waves is less than the second threshold value.
In the present embodiment, detect the speed of data service in each carrier wave by detection module, united by statistical moduleCount the big speed equivalent user number in each carrier wave and little speed equivalent user number, when the first difference is more than the first threshold value,Balance module Jun Heng adjustment equivalent user number between maximum with the minimum carrier wave of big speed equivalent user number is big in the second differenceWhen the second threshold value, balance module Jun Heng adjustment equivalent user between maximum with the minimum carrier wave of little speed equivalent user numberNumber, so that the big speed ratio data service and little speed ratio data service distributing equilibrium in each carrier wave, thus improving the net of carrier waveThe utilization rate of network resource, it is ensured that the transmission of various data service is fast unobstructed, improves the experience of user.
The present invention also provides a kind of system of carrier equalisation, including the device of the carrier equalisation shown in Fig. 3 or Fig. 4,Wherein, the device of carrier equalisation to introduce technical scheme with the structure shown in Fig. 3.The device of carrier equalisation includes:Statistical module301st, acquisition module 302 and balance module 303, wherein, statistical module 301 is used for counting the effectiveness such as the big speed in each carrier waveAmount and little speed equivalent user number;Acquisition module 302 is used for obtaining the maximum of big speed equivalent user number in all carrier wavesIn the first difference and minima between, and all carrier waves of acquisition between the maxima and minima of little speed equivalent user numberThe second difference;Balance module 303 is used for when the first difference is more than the first threshold value, big speed equivalent user number maximum withEquilibrium adjustment equivalent user number between minimum carrier wave, and when the second difference is more than the second threshold value, equivalent to little speedJun Heng adjustment equivalent user number between maximum with the minimum carrier wave of number of users.
In the present embodiment, the system of carrier equalisation passes through the effectiveness such as statistical module big speed equivalent user number and little speedAmount, acquisition module obtains the first difference and the second difference, and when the first difference is more than the first threshold value, balance module is in speed greatlyBetween maximum with the minimum carrier wave of rate equivalent user number, Jun Heng adjustment equivalent user number, is more than the second threshold value in the second differenceWhen, balance module Jun Heng adjustment equivalent user number between maximum with the minimum carrier wave of little speed equivalent user number, so that speed greatlyThe rate data service and little speed ratio data service distributing equilibrium in each carrier wave, thus improve the utilization of the Internet resources of carrier waveRate, it is ensured that the transmission of various data service is fast unobstructed, improves the experience of user.
Those skilled in the art are appreciated that to realize all or part step that above-described embodiment method carriesSuddenly the program that can be by completes come the hardware to instruct correlation, and described program can be stored in a kind of computer-readable storage mediumIn matter, this program upon execution, including one or a combination set of the step of embodiment of the method.
Additionally, can be integrated in a processing module in each functional unit in each embodiment of the present invention it is also possible toIt is that unit is individually physically present it is also possible to two or more units are integrated in a module.Above-mentioned integrated mouldBlock both can be to be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.Described integrated module is such asFruit using in the form of software function module realize and as independent production marketing or use when it is also possible to be stored in a computerIn read/write memory medium.
Storage medium mentioned above can be read only memory, disk or CD etc..
The above is only some embodiments of the present invention it is noted that ordinary skill people for the artFor member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also shouldIt is considered as protection scope of the present invention.