CN105306385A - Method and device for controlling downlink network bandwidth - Google Patents

Method and device for controlling downlink network bandwidth Download PDF

Info

Publication number
CN105306385A
CN105306385A CN201410373802.7A CN201410373802A CN105306385A CN 105306385 A CN105306385 A CN 105306385A CN 201410373802 A CN201410373802 A CN 201410373802A CN 105306385 A CN105306385 A CN 105306385A
Authority
CN
China
Prior art keywords
user
current
network bandwidth
bandwidth
preset time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410373802.7A
Other languages
Chinese (zh)
Other versions
CN105306385B (en
Inventor
孙子荀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410373802.7A priority Critical patent/CN105306385B/en
Publication of CN105306385A publication Critical patent/CN105306385A/en
Application granted granted Critical
Publication of CN105306385B publication Critical patent/CN105306385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for controlling a downlink network bandwidth, and belongs to the technical field of the Internet. The method comprises the following steps: judging whether a current total bandwidth of the whole network is larger than a preset threshold; if the current total bandwidth of the whole network is larger than the preset threshold, obtaining a total downlink data size of each user within a current preset time period; ordering the total downlink data size of each user within the current preset time period, and determining a former referential number of users with larger total downlink data sizes within the current preset time period; and decreasing the downlink network bandwidth of each user in the former referential number of users. According to the method disclosed by the invention, the former referential number of users with larger total downlink data sizes within the current preset time period is determined, and the downlink network bandwidth of each user in the former referential number of users is decreased. Since the downlink network bandwidth of each user can be controlled in real time, the downlink network bandwidth can be evenly allocated, and each user has good downloading experience. Therefore, the control effect of the downlink network bandwidth is better.

Description

The control method of downlink network bandwidth and device
Technical field
The present invention relates to Internet technical field, particularly a kind of control method of downlink network bandwidth and device.
Background technology
Along with the fast development of present Internet technology, the people of web download service is used to get more and more.Wherein, user, when using web download service, can take certain downlink network bandwidth.The downlink network bandwidth obtained due to user is larger, and user's downloading experience is better, and downlink network bandwidth is limited, therefore, how to control to be the key improving user's downloading experience to downlink network bandwidth.
Providing a kind of control method of downlink network bandwidth in correlation technique, in the method, is each user's allocation of downlink network bandwidth according to the bandwidth condition of user, and is maintained the downlink network bandwidth that each user distributes.Wherein, the user that bandwidth condition is good can be assigned to larger downlink network bandwidth, and the user of bandwidth condition difference can be assigned to less downlink network bandwidth.
Realizing in process of the present invention, inventor finds that said method at least exists following problem:
During due to the row network bandwidth under control, the user that bandwidth condition is good can get larger downlink network bandwidth, and the user of bandwidth condition difference can get less downlink network bandwidth, thus the user's downloading experience making bandwidth condition bad is poor.Therefore, the control effects of downlink network bandwidth is not good.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of control method and device of downlink network bandwidth.Described technical scheme is as follows:
On the one hand, provide a kind of control method of downlink network bandwidth, described method comprises:
Judge whether the current total bandwidth of the whole network is greater than predetermined threshold value;
If the current total bandwidth of the whole network is greater than predetermined threshold value, then obtain total downlink data amount of each user in the current preset time period;
Total downlink data amount of user each in the current preset time period is sorted, determines the front reference quantity user that in the current preset time period, total downlink data amount is larger;
Reduce the described front downlink network bandwidth with reference to each user in a quantity user.
On the other hand, provide a kind of control device of downlink network bandwidth, described device comprises:
First judge module, for judging whether the current total bandwidth of the whole network is greater than predetermined threshold value;
First acquisition module, for when the current total bandwidth of the whole network is greater than predetermined threshold value, obtains total downlink data amount of each user in the current preset time period;
First order module, for sorting to total downlink data amount of user each in the current preset time period;
First determination module, for determining in the current preset time period total downlink data amount before larger with reference to a quantity user;
First reduces module, for reducing the described front downlink network bandwidth with reference to each user in a quantity user.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
After judging that the current total bandwidth of the whole network is greater than predetermined threshold value, to go forward side by side line ordering by obtaining total downlink data amount of each user in the current preset time period, with reference to the downlink network bandwidth of each user in a quantity user before reducing, thus in real time the downlink network bandwidth of each user is controlled, be embodied as the user equilibrium ground allocation of downlink network bandwidth of different bandwidth condition, make each user can have good downloading experience.Therefore, the control effects of downlink network bandwidth is better.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the control method of a kind of downlink network bandwidth according to an exemplary embodiment;
Fig. 2 is the flow chart of the control method of a kind of downlink network bandwidth according to another exemplary embodiment;
Fig. 3 is the structural representation of the control device of a kind of downlink network bandwidth according to another exemplary embodiment;
Fig. 4 is the structural representation of the control device of a kind of downlink network bandwidth according to another exemplary embodiment;
Fig. 5 is the structural representation of the control device of a kind of downlink network bandwidth according to another exemplary embodiment;
Fig. 6 is the structural representation of the control device of a kind of downlink network bandwidth according to another exemplary embodiment;
Fig. 7 is the block diagram of the control device of a kind of downlink network bandwidth according to another exemplary embodiment.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Due in correlation technique under control the row network bandwidth time, be each user's allocation of downlink network bandwidth according to the bandwidth condition of user.Wherein, the user that bandwidth condition is good can get larger downlink network bandwidth, and the user of bandwidth condition difference can get less downlink network bandwidth, thus the user's downloading experience making bandwidth condition bad is poor.Therefore, the control effects of downlink network bandwidth is not good.
In order to prevent above-mentioned situation, improving the control effects of downlink network bandwidth, embodiments providing a kind of control method of downlink network bandwidth.See Fig. 1, the method flow that the present embodiment provides comprises:
101: judge whether the current total bandwidth of the whole network is greater than predetermined threshold value;
102: if the current total bandwidth of the whole network is greater than predetermined threshold value, then obtain total downlink data amount of each user in the current preset time period;
103: total downlink data amount of user each in the current preset time period is sorted, determine the front reference quantity user that in the current preset time period, total downlink data amount is larger;
104: with reference to the downlink network bandwidth of each user in a quantity user before reducing.
As a kind of embodiment, with reference to after the downlink network bandwidth of each user in a quantity user before reducing, also comprise:
Judge whether the current total bandwidth of the whole network is greater than predetermined threshold value;
If the current total bandwidth of the whole network is greater than predetermined threshold value, then obtain total downlink data amount of each user in the current preset time period;
Total downlink data amount of user each in the current preset time period is sorted, and the value of change reference quantity, be greater than the front value with reference to quantity of change with reference to the value of quantity after change;
Determine the reference quantity user after the front change that in the current preset time period, total downlink data amount is larger;
The downlink network bandwidth of each user of downlink network bandwidth was not reduced before in a reference quantity user before reducing after change.
As a kind of embodiment, after judging whether the current total bandwidth of the whole network is greater than predetermined threshold value, also comprise:
If the current total bandwidth of the whole network is less than predetermined threshold value, then detect currently whether there is the user having reduced downlink network bandwidth;
If current existence has reduced the user of downlink network bandwidth, then recover the current downlink network bandwidth having reduced a predetermined quantity user in the user of downlink network bandwidth, predetermined quantity has been less than current reference quantity.
As a kind of embodiment, the method also comprises:
Obtain the history Download Info of the user using login account in a period of time, history Download Info at least comprises the downloading task information of Internet protocol IP address when user logs in and user;
Judge whether each user is validated user according to the history Download Info of each user;
Disabled user is stopped to continue to use downlink network bandwidth.
As a kind of embodiment, judge whether each user is validated user, comprising according to the history Download Info of each user:
Judge whether the IP address continually varying number of times in Preset Time interval when each user logs in exceedes preset times, and judge whether the task number that each user downloads in preset time period exceedes predetermined number;
If the continually varying number of times in Preset Time interval of IP address when user logs in exceedes preset times, and the task number that user downloads in preset time period exceedes predetermined number, then determine that user is disabled user.
The method that the embodiment of the present invention provides, after judging that the current total bandwidth of the whole network is greater than predetermined threshold value, to go forward side by side line ordering by obtaining total downlink data amount of each user in the current preset time period, with reference to the downlink network bandwidth of each user in a quantity user before reducing, thus in real time the downlink network bandwidth of each user is controlled, be embodied as the user equilibrium ground allocation of downlink network bandwidth of different bandwidth condition, make each user can have good downloading experience.Therefore, the control effects of downlink network bandwidth is better.
Embodiments provide a kind of control method of downlink network bandwidth, in conjunction with the content in above-described embodiment, the method that the present embodiment provides is illustrated.See Fig. 2, the method flow that the present embodiment provides comprises:
201: judge whether the current total bandwidth of the whole network is greater than predetermined threshold value, if the current total bandwidth of the whole network is greater than predetermined threshold value, then perform step 202, if the current total bandwidth of the whole network is less than predetermined threshold value, then perform step 205;
The present embodiment to judging that the mode whether current total bandwidth of the whole network is greater than predetermined threshold value does concrete restriction, does not include but not limited to: the current total bandwidth determining the whole network; The current total bandwidth of the whole network and predetermined threshold value are compared, thus determines whether the current total bandwidth of the whole network is greater than predetermined threshold value.
About the mode of current total bandwidth determining the whole network, the present embodiment does not do concrete restriction, includes but not limited to: the downlink network bandwidth determining each user's current time; The downlink network bandwidth of each user's current time is superposed, using the current total bandwidth of stack result as the whole network.In addition, predetermined threshold value can set according to demand, and as predetermined threshold value being set as the half of the whole network total bandwidth available, the present embodiment does not do concrete restriction to this.
Such as, the whole network total bandwidth available is 1000M (million), and predetermined threshold value is the half 500M of the whole network total bandwidth available.If after the downlink network bandwidth determining each user's current time, the current total bandwidth downlink network bandwidth of each user's current time being carried out superposing obtained the whole network is 400M, then determine that the current total bandwidth 400M of the whole network is less than predetermined threshold value 500M.
It should be noted that, judge that the opportunity whether current total bandwidth of the whole network is greater than predetermined threshold value can be selected according to demand, the present embodiment does not do concrete restriction to this.Such as, using 5 minutes as determination frequency, within every 5 minutes, just judge whether the current total bandwidth an of the whole network is greater than predetermined threshold value.
In addition, when judging that the current total bandwidth of the whole network equals predetermined threshold value just, then this situation can be processed according to mode when being less than predetermined threshold value, namely perform step 205, the present embodiment does not do concrete restriction to this.
202: the total downlink data amount obtaining each user in the current preset time period;
The present embodiment does not do concrete restriction to the mode of the total downlink data amount obtaining each user in the current preset time period, includes but not limited to: the downlink network bandwidth determining each each moment of user in the current preset time period; The downlink network bandwidth in each moment of user each in the current preset time period is superposed, using the total downlink data amount of each stack result as each user in the current preset time period.
Such as, be 10 minutes for preset time period, can determine the downlink network bandwidth in each second of each user in 10 minutes, as a certain second, the downlink network bandwidth of user is 10KB.The downlink network bandwidth in each user each second in 10 minutes is superposed, total downlink data amount of each user in 10 minutes can be determined, if the total downlink data amount of a certain user in 10 minutes is 100M.
Wherein, the current preset time period can be the time period before or after current time, and the present embodiment does not do concrete restriction to this.Such as, be 10 minutes for the length of preset time period, if current time is that 10:00 is whole, then the current preset time period is then 9:50 to 10:00, or also can be 9:40 to 9:50.In addition, the length of current preset time period also can set according to demand, and the present embodiment does not do concrete restriction to this.
Alternatively, for the ease of obtaining total downlink data amount of each user in the current preset time period, can total downlink data amount of each user in real time record window periods.When needing the total downlink data amount obtaining each user in the current preset time period at every turn, directly can obtain from the relative recording of window periods, the present embodiment does not do concrete restriction to this.Wherein, the length of window periods is greater than preset time period.
Such as, be 30 minutes with the length of window periods, the length of preset time period is 10 minutes is example, total downlink data amount of each user in the real time record current window time period in advance.Such as, if current time is 10:00, then record total downlink data amount of each user in 9:30 to 10:00.If current time is 10:01, then record total downlink data amount of each user in 9:31 to 10:01.
When needing the total downlink data amount obtaining each user in the current preset time period, then obtain from total downlink data amount of each user in the current window time period of real time record.Such as, if current time is 10:00, then have recorded total downlink data amount of each user in 9:30 to 10:00 in advance.Length due to preset time period is 10 minutes, and therefore, the current preset time period can be 9:50 to 10:00, or can also be 9:40 to 9:50 etc.Thus total downlink data amount of each user in the current preset time period can be obtained from record.
203: total downlink data amount of user each in the current preset time period is sorted, determine the front reference quantity user that in the current preset time period, total downlink data amount is larger;
Concrete restriction is done with reference to the mode of a quantity user before the present embodiment is not larger to the total downlink data amount in the current preset time period determined, include but not limited to: total downlink data amount of user each in the current preset time period is sorted from big to small, using before after sequence with reference to the quantity user user that total downlink data amount is larger within the current preset time period.
Such as, be 2 with the number with reference to quantity, total number of user is 5, and the current preset time period is 10 minutes is example.If in 10 minutes total downlink data amount of 5 users sort after result be: 20M, 15M, 10M, 5M and 1M.Owing to being 2 with reference to the number of quantity, therefore, can using the user of total downlink data amount corresponding to 20M and 15M as the larger user of total downlink data amount in 10 minutes.
Wherein, mode during sequence can also adopt mode from small to large, and the present embodiment does not do concrete restriction to this.In addition, the value with reference to quantity can be determined according to total number of users, and the present embodiment does not do concrete restriction to this.Such as, if total number of users is 20, then can 25% ratio get value with reference to quantity, the value namely with reference to quantity can be (20*25%)=5.
204: with reference to the downlink network bandwidth of each user in a quantity user before reducing;
The present embodiment does not do concrete restriction with reference to the mode of the downlink network bandwidth of each user in a quantity user before reducing, and includes but not limited to: with reference to the downlink network bandwidth of each user in a quantity user before reducing according to certain amplitude.Wherein, the range value of reduction can set according to demand, and each user reduces range value can be identical, also can be different, and the present embodiment does not do concrete restriction to this.
Such as, for range value for 10%.If the downlink network bandwidth of a certain user is 100KB/s (kilobytes/per second) in a front reference quantity user, then according to after the amplitude reduction downlink network bandwidth of 10%, the downlink network bandwidth of this user is 90KB/s.
It should be noted that, after reducing the front downlink network bandwidth with reference to each user in a quantity user, when again judging whether the current total bandwidth of the whole network is greater than predetermined threshold value, the current total bandwidth that also may there will be the whole network is greater than the situation of predetermined threshold value, i.e. the effect acquired by process of above-mentioned reduction downlink network bandwidth not obvious.For this situation, the present embodiment additionally provides the method reducing downlink network bandwidth further, and the method includes but not limited to: the total downlink data amount obtaining each user in the current preset time period; Total downlink data amount of user each in the current preset time period is sorted, and the value of change reference quantity, be greater than the front value with reference to quantity of change with reference to the value of quantity after change; Determine the reference quantity user after the front change that in the current preset time period, total downlink data amount is larger; The downlink network bandwidth of each user of downlink network bandwidth was not reduced before in a reference quantity user before reducing after change.
Wherein, the specific implementation process of the method with reference to the method step in above-mentioned steps 201 to 204, can repeat no more herein.It should be noted that, because this have changed the value of reference quantity, and be greater than the front value with reference to quantity of change with reference to the value of quantity after change.Therefore, this control procedure can reduce the downlink network bandwidth of more users, thus the current total bandwidth of the whole network can be allowed to be reduced to predetermined threshold value as early as possible, to ensure that the load of the whole network can not be too high.Such as, the value with reference to quantity during first time decline downlink network bandwidth is 10, then the value when second time decline downlink network bandwidth with reference to quantity changes to 15, thus can reduce the downlink network bandwidth of more users when second time decline downlink network bandwidth.
In addition, owing to reducing the user of downlink network bandwidth before may existing in the reference quantity user after front change, in order to balancedly reduce downlink network bandwidth, do not reduce the downlink network bandwidth of each user of downlink network bandwidth before in a reference quantity user before this control procedure can reduce after change, the present embodiment does not do concrete restriction to this.
It should be noted that, owing to reducing downlink network bandwidth further, the current total bandwidth of the whole network still may be greater than predetermined threshold value, namely reduces the effect acquired by process of downlink network bandwidth or and not obvious.Now, can continue the downlink network bandwidth reducing user with reference to said method process further, until the current total bandwidth of the whole network is less than predetermined threshold value, the present embodiment does not do concrete restriction to this.
In addition, each fall corresponding to process reducing downlink network bandwidth can be identical, also can be different, and the present embodiment does not do concrete restriction to this.Such as, each fall corresponding to process reducing downlink network bandwidth can be 10%, or each fall corresponding to process reducing downlink network bandwidth can increase progressively gradually, and if first time is 10%, second time is 15% etc.Value with reference to quantity during each reduction downlink network bandwidth also can be changed according to demand, and the present embodiment is also not specifically limited this.Such as, the value with reference to quantity during each reduction downlink network bandwidth increases gradually, is reduced to predetermined threshold value as early as possible to make the current total bandwidth of the whole network.
By above-mentioned steps 201 to 204, namely complete the process reducing downlink network bandwidth.During owing to controlling downlink network bandwidth, except reducing downlink network bandwidth, alternatively, also can have other control procedure, particular content can with reference to subsequent step.
205: detect currently whether there is the user having reduced downlink network bandwidth;
Known according to above-mentioned steps 201 to 204, after judging whether the current total bandwidth of the whole network is greater than predetermined threshold value, if the current total bandwidth of the whole network is less than predetermined threshold value, may be then the result of above-mentioned reduction downlink network bandwidth, namely may there is the user having reduced downlink network bandwidth in current all users.Based on above-mentioned principle, about the current mode that whether there is the user having reduced downlink network bandwidth of detection, the present embodiment does not do concrete restriction to this, includes but not limited to: the user in advance for reducing downlink network bandwidth arranges a mark; Detect each user and whether have the mark pre-set, will the user of the mark pre-set be had as the user reducing downlink network bandwidth.
Wherein, can in above-mentioned steps 201 to 204, after the downlink network bandwidth reducing user, for the user reducing downlink network bandwidth arranges a mark, the present embodiment does not do concrete restriction to this.In addition, for the ease of the downlink network bandwidth of follow-up recovery user, can each reduce the downlink network bandwidth of user time, also can carry out record to the result that user reduces downlink network bandwidth, the present embodiment does not do concrete restriction to this yet.
206: if current existence has reduced the user of downlink network bandwidth, then recover the current downlink network bandwidth having reduced a predetermined quantity user in the user of downlink network bandwidth, predetermined quantity is less than current reference quantity.
The present embodiment does not do concrete restriction to recovering the current mode having reduced downlink network bandwidth in the user of downlink network bandwidth before a predetermined quantity user, includes but not limited to: the downlink network bandwidth of relative recording to a predetermined quantity user reducing downlink network bandwidth according to user is recovered.
Such as, if the relative recording that certain user reduces downlink network bandwidth is the amplitude declined first time is 10%, the amplitude that second time declines is 20%.And the current downlink network bandwidth of this user is 100KB, then the downlink network bandwidth of this user can be returned to the level before the second decline downlink network bandwidth, namely return to the level of (100KB/0.8)=125KB.Or can also return to the initial level before first time decline downlink network bandwidth, namely return to the level of (125KB/0.9)=140KB, the present embodiment does not do concrete restriction to this.
It should be noted that, if after this process recovering downlink network bandwidth terminates, the current total bandwidth of the whole network is still less than predetermined threshold value, and currently also there is the user having reduced downlink network bandwidth, then can continue the downlink network bandwidth recovering user according to the method described above, until the current total bandwidth of the whole network press close to but lower than predetermined threshold value till, the present embodiment does not do concrete restriction to this.Wherein, each number of users recovering downlink network bandwidth is predetermined quantity, and predetermined quantity is less than current reference quantity.Such as, if current reference quantity is 10, then predetermined quantity can be the half of current reference quantity, and namely predetermined quantity can be 5.Downlink network bandwidth due to all users of disposable recovery may cause the current total bandwidth of the whole network to be increased sharply, and again occurs that the current total bandwidth of the whole network is greater than the situation of predetermined threshold value.Therefore, the current total bandwidth of the whole network can be allowed to go up to predetermined threshold value at leisure by the downlink network bandwidth of each recovered part user, thus be convenient to follow-up continuation downlink network bandwidth is controlled.
Alternatively, because above-mentioned steps 201 to 206 controls in real time downlink network bandwidth, and in a practical situation, also may there is following problem: user have purchased relevant acceleration service in advance, and before each download, all first logging in the account having bought the service of acceleration, by using the service of acceleration to expand downlink network bandwidth, thus downloading data being accelerated.And some user illegally may disclose the account oneself bought and accelerated to serve, make other user not buying the service of acceleration that this account also can be used to enjoy the service of acceleration, cause the burden of downlink network bandwidth, correlation bandwidth cost increases.
In order to solve the problem, the present embodiment additionally provides a kind of method of non real-time control downlink network bandwidth, the method includes but not limited to: the history Download Info obtaining the user using login account in a period of time, history Download Info at least comprises the downloading task information of IP (InternetProtocol, Internet protocol) address when user logs in and user; Judge whether each user is validated user according to the history Download Info of each user; Disabled user is stopped to continue to use downlink network bandwidth.
Wherein, server can use the Download Info of login account to carry out record to each user in advance at every turn, thus can obtain in a period of time the history Download Info of the user using login account from record.In addition, the length of time period can be one week, also can be two weeks, and the present embodiment does not do concrete restriction to the length of time period.
About judging that according to the history Download Info of each user whether each user is the mode of validated user, the present embodiment does not do concrete restriction to this, include but not limited to: judge whether the IP address continually varying number of times in Preset Time interval when each user logs in exceedes preset times, and judge whether the task number that each user downloads in preset time period exceedes predetermined number; If the continually varying number of times in preset time period of IP address when user logs in exceedes preset times, and the task number that user downloads in preset time period exceedes predetermined number, then determine that user is disabled user.Wherein, predetermined number and preset times can set according to demand, and the present embodiment does not do concrete restriction to this.
Such as, be 5 times with preset times, predetermined number is 5, and Preset Time length of an interval degree is 2 days is example.If IP address when certain user uses identical account to log in has changed more than 5 times in 2 days, and in 2 days, the task number of download every day all more than 5, is then determined that this account is illegal account, is used the user of this account for disabled user.
After determining disabled user, when certain user uses illegal account to log in, can judge that this user is as disabled user, thus this user can be stopped to continue to use downlink network bandwidth downloading data.Certainly, except above-mentioned restriction strategy, other restriction strategy can also be adopted, as forbidden, this user reuses the service of acceleration, or arrange a time period, forbid that this user continues to use downlink network bandwidth etc. within this time period, the present embodiment does not do concrete restriction to this.
It should be noted that, often go out at ordinary times due to user may be there is, cause IP address often to change, and often download at ordinary times, cause the more situation of downloading task every day.Therefore, when judging disabled user, the user of mentioned kind may have been judged by accident into disabled user, and having performed restriction strategy.For this situation, user can initiate complaint by the mode of complaint, server according to complaint after actual conditions done analyzing further, if not to be the situation of disabled user true for this user, then can remove the restriction strategy to this user, the present embodiment does not do concrete restriction to this.
The method that the embodiment of the present invention provides, after judging that the current total bandwidth of the whole network is greater than predetermined threshold value, to go forward side by side line ordering by obtaining total downlink data amount of each user in the current preset time period, with reference to the downlink network bandwidth of each user in a quantity user before reducing, thus in real time the downlink network bandwidth of each user is controlled, be embodied as the user equilibrium ground allocation of downlink network bandwidth of different bandwidth condition, make each user can have good downloading experience.Therefore, the control effects of downlink network bandwidth is better.
Embodiments provide a kind of control device of downlink network bandwidth, the control method of downlink network bandwidth of this device for performing above-described embodiment and providing.See Fig. 3, this device comprises:
First judge module 301, for judging whether the current total bandwidth of the whole network is greater than predetermined threshold value;
First acquisition module 302, for when the current total bandwidth of the whole network is greater than predetermined threshold value, obtains total downlink data amount of each user in the current preset time period;
First order module 303, for sorting to total downlink data amount of user each in the current preset time period;
First determination module 304, for determining in the current preset time period total downlink data amount before larger with reference to a quantity user;
First reduces module 305, for reducing the front downlink network bandwidth with reference to each user in a quantity user.
As a kind of embodiment, see Fig. 4, this device also comprises:
Second judge module 306, for judging whether the current total bandwidth of the whole network is greater than predetermined threshold value;
Second acquisition module 307, for when the current total bandwidth of the whole network is greater than predetermined threshold value, then obtains total downlink data amount of each user in the current preset time period;
Second order module 308, for sorting to total downlink data amount of user each in the current preset time period;
Change module 309, for changing the value of reference quantity, is greater than the front value with reference to quantity of change with reference to the value of quantity after change;
Second determination module 310, for determine total downlink data amount in the current preset time period larger before a reference quantity user after change;
Second reduces module 311, for reducing the downlink network bandwidth not reducing each user of downlink network bandwidth in the reference quantity user after front change before.
As a kind of embodiment, see Fig. 5, this device also comprises:
Detection module 312, for when the current total bandwidth of the whole network is less than predetermined threshold value, detects currently whether there is the user having reduced downlink network bandwidth;
Recover module 313, for when current existence has reduced the user of downlink network bandwidth, recover the current downlink network bandwidth having reduced a predetermined quantity user in the user of downlink network bandwidth, predetermined quantity has been less than current reference quantity.
As a kind of embodiment, see Fig. 6, this device also comprises:
3rd acquisition module 314, for obtaining in a period of time the history Download Info of the user using login account, history Download Info at least comprises the downloading task information of Internet protocol IP address when user logs in and user;
3rd judge module 315, for judging according to the history Download Info of each user whether each user is validated user;
Stopping modular 316, continues for stopping disabled user using downlink network bandwidth.
As a kind of embodiment, 3rd judge module 315, whether the IP address continually varying number of times in Preset Time interval during for judging that each user logs in exceedes preset times, and judges whether the task number that each user downloads in preset time period exceedes predetermined number; If the continually varying number of times in Preset Time interval of IP address when user logs in exceedes preset times, and the task number that user downloads in preset time period exceedes predetermined number, then determine that user is disabled user.
The device that the embodiment of the present invention provides, after judging that the current total bandwidth of the whole network is greater than predetermined threshold value, to go forward side by side line ordering by obtaining total downlink data amount of each user in the current preset time period, with reference to the downlink network bandwidth of each user in a quantity user before reducing, thus in real time the downlink network bandwidth of each user is controlled, be embodied as the user equilibrium ground allocation of downlink network bandwidth of different bandwidth condition, make each user can have good downloading experience.Therefore, the control effects of downlink network bandwidth is better.
Fig. 7 is the block diagram of the control device 1900 of a kind of downlink network bandwidth according to an exemplary embodiment.Such as, device 1900 may be provided in a server.With reference to Fig. 7, device 1900 comprises processing components 1922, and it comprises one or more processor further, and the memory resource representated by memory 1932, can such as, by the instruction of the execution of processing components 1922, application program for storing.The application program stored in memory 1932 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1922 is configured to perform instruction, to perform the control method of the downlink network bandwidth that above-described embodiment provides.
Device 1900 can also comprise the power management that a power supply module 1926 is configured to final controlling element 1900, and a wired or wireless network interface 1950 is configured to device 1900 to be connected to network, and input and output (I/O) interface 1958.Device 1900 can operate the operating system based on being stored in memory 1932, such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM or similar.
It should be noted that: the control device of the downlink network bandwidth that above-described embodiment provides under control the row network bandwidth time, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the control device of the downlink network bandwidth that above-described embodiment provides and the control method embodiment of downlink network bandwidth belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a control method for downlink network bandwidth, is characterized in that, described method comprises:
Judge whether the current total bandwidth of the whole network is greater than predetermined threshold value;
If the current total bandwidth of the whole network is greater than predetermined threshold value, then obtain total downlink data amount of each user in the current preset time period;
Total downlink data amount of user each in the current preset time period is sorted, determines the front reference quantity user that in the current preset time period, total downlink data amount is larger;
Reduce the described front downlink network bandwidth with reference to each user in a quantity user.
2. method according to claim 1, is characterized in that, with reference to after the downlink network bandwidth of each user in a quantity user before described reduction is described, also comprises:
Judge whether the current total bandwidth of the whole network is greater than described predetermined threshold value;
If the current total bandwidth of the whole network is greater than described predetermined threshold value, then obtain total downlink data amount of each user in the current preset time period;
Total downlink data amount of user each in the current preset time period is sorted, and changes the value of described reference quantity, after change, be greater than the front value with reference to quantity of change with reference to the value of quantity;
Determine the reference quantity user after the front change that in the current preset time period, total downlink data amount is larger;
The downlink network bandwidth of each user of downlink network bandwidth was not reduced before reducing in the reference quantity user after described front change.
3. method according to claim 1 and 2, is characterized in that, described judge whether the current total bandwidth of the whole network is greater than predetermined threshold value after, also comprise:
If the current total bandwidth of the whole network is less than described predetermined threshold value, then detect currently whether there is the user having reduced downlink network bandwidth;
If current existence has reduced the user of downlink network bandwidth, then recover the current downlink network bandwidth having reduced a predetermined quantity user in the user of downlink network bandwidth, described predetermined quantity has been less than current reference quantity.
4. method according to claim 1, is characterized in that, described method also comprises:
Obtain the history Download Info of the user using login account in a period of time, described history Download Info at least comprises the downloading task information of Internet protocol IP address when user logs in and user;
Judge whether each user is validated user according to the history Download Info of each user;
Disabled user is stopped to continue to use downlink network bandwidth.
5. method according to claim 4, is characterized in that, the described history Download Info according to each user judges whether each user is validated user, comprising:
Judge whether the IP address continually varying number of times in Preset Time interval when each user logs in exceedes preset times, and judge whether the task number that each user downloads in preset time period exceedes predetermined number;
If the continually varying number of times in Preset Time interval of IP address when user logs in exceedes preset times, and the task number that user downloads in preset time period exceedes predetermined number, then determine that described user is disabled user.
6. a control device for downlink network bandwidth, is characterized in that, described device comprises:
First judge module, for judging whether the current total bandwidth of the whole network is greater than predetermined threshold value;
First acquisition module, for when the current total bandwidth of the whole network is greater than predetermined threshold value, obtains total downlink data amount of each user in the current preset time period;
First order module, for sorting to total downlink data amount of user each in the current preset time period;
First determination module, for determining in the current preset time period total downlink data amount before larger with reference to a quantity user;
First reduces module, for reducing the described front downlink network bandwidth with reference to each user in a quantity user.
7. device according to claim 6, is characterized in that, described device, also comprises:
Second judge module, for judging whether the current total bandwidth of the whole network is greater than described predetermined threshold value;
Second acquisition module, for when the current total bandwidth of the whole network is greater than described predetermined threshold value, then obtains total downlink data amount of each user in the current preset time period;
Second order module, for sorting to total downlink data amount of user each in the current preset time period;
Change module, for changing the value of described reference quantity, is greater than the front value with reference to quantity of change with reference to the value of quantity after change;
Second determination module, for determine total downlink data amount in the current preset time period larger before a reference quantity user after change;
Second reduces module, for reducing the downlink network bandwidth not reducing each user of downlink network bandwidth in the reference quantity user after described front change before.
8. the device according to claim 6 or 7, is characterized in that, described device, also comprises:
Detection module, for when the current total bandwidth of the whole network is less than described predetermined threshold value, detects currently whether there is the user having reduced downlink network bandwidth;
Recover module, for when current existence has reduced the user of downlink network bandwidth, recover the current downlink network bandwidth having reduced a predetermined quantity user in the user of downlink network bandwidth, described predetermined quantity has been less than current reference quantity.
9. device according to claim 6, is characterized in that, described device also comprises:
3rd acquisition module, for obtaining in a period of time the history Download Info of the user using login account, described history Download Info at least comprises the downloading task information of Internet protocol IP address when user logs in and user;
3rd judge module, for judging according to the history Download Info of each user whether each user is validated user;
Stopping modular, continues for stopping disabled user using downlink network bandwidth.
10. device according to claim 9, it is characterized in that, described 3rd judge module, whether the IP address continually varying number of times in Preset Time interval during for judging that each user logs in exceedes preset times, and judges whether the task number that each user downloads in preset time period exceedes predetermined number; If the continually varying number of times in Preset Time interval of IP address when user logs in exceedes preset times, and the task number that user downloads in preset time period exceedes predetermined number, then determine that described user is disabled user.
CN201410373802.7A 2014-07-31 2014-07-31 The control method and device of downlink network bandwidth Active CN105306385B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410373802.7A CN105306385B (en) 2014-07-31 2014-07-31 The control method and device of downlink network bandwidth

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410373802.7A CN105306385B (en) 2014-07-31 2014-07-31 The control method and device of downlink network bandwidth

Publications (2)

Publication Number Publication Date
CN105306385A true CN105306385A (en) 2016-02-03
CN105306385B CN105306385B (en) 2019-09-10

Family

ID=55203151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410373802.7A Active CN105306385B (en) 2014-07-31 2014-07-31 The control method and device of downlink network bandwidth

Country Status (1)

Country Link
CN (1) CN105306385B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161286A (en) * 2016-06-27 2016-11-23 北京小米移动软件有限公司 Download control method and routing device
CN109995668A (en) * 2018-01-02 2019-07-09 中国移动通信有限公司研究院 Flow control methods and device, storage medium
CN112187538A (en) * 2020-09-24 2021-01-05 北京自如信息科技有限公司 Starting method and device for router quality of service function and electronic equipment
CN112910715A (en) * 2021-03-08 2021-06-04 中国人民解放军军事科学院战争研究院 Network bandwidth management method and device
CN113747102A (en) * 2021-08-31 2021-12-03 百果园技术(新加坡)有限公司 Video call processing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232449A (en) * 2008-02-27 2008-07-30 福建星网锐捷网络有限公司 Method and apparatus for distributing bandwidth
CN101374284A (en) * 2007-08-20 2009-02-25 中兴通讯股份有限公司 Method for distributing bandwidth for relaying station by base station
CN103024908A (en) * 2011-09-23 2013-04-03 普天信息技术研究院有限公司 Method for self-adaptive adjustment on symbol occupation amount of PDCCH (Physical Downlink Control Channel)
CN103813392A (en) * 2012-11-15 2014-05-21 华为技术有限公司 Bandwidth adjusting method, device and system
US20140169163A1 (en) * 2012-12-13 2014-06-19 General Electric Company Systems and methods for communication channel capacity change detection

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977401A (en) * 2010-10-27 2011-02-16 中兴通讯股份有限公司 User terminal random access method and system
CN103002534B (en) * 2012-12-18 2015-01-07 华中科技大学 Cross-layer optimization based method for selecting access point for long term evolution (LET)-wireless local area network (WLAN) heterogeneous wireless network
CN103401808B (en) * 2013-07-04 2016-09-28 中国船舶重工集团公司第七二二研究所 High performance network over coax bandwidth allocation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101374284A (en) * 2007-08-20 2009-02-25 中兴通讯股份有限公司 Method for distributing bandwidth for relaying station by base station
CN101232449A (en) * 2008-02-27 2008-07-30 福建星网锐捷网络有限公司 Method and apparatus for distributing bandwidth
CN103024908A (en) * 2011-09-23 2013-04-03 普天信息技术研究院有限公司 Method for self-adaptive adjustment on symbol occupation amount of PDCCH (Physical Downlink Control Channel)
CN103813392A (en) * 2012-11-15 2014-05-21 华为技术有限公司 Bandwidth adjusting method, device and system
US20140169163A1 (en) * 2012-12-13 2014-06-19 General Electric Company Systems and methods for communication channel capacity change detection

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161286A (en) * 2016-06-27 2016-11-23 北京小米移动软件有限公司 Download control method and routing device
CN106161286B (en) * 2016-06-27 2019-11-15 北京小米移动软件有限公司 Download control method and routing device
CN109995668A (en) * 2018-01-02 2019-07-09 中国移动通信有限公司研究院 Flow control methods and device, storage medium
CN109995668B (en) * 2018-01-02 2022-10-21 中国移动通信有限公司研究院 Flow control method and device and storage medium
CN112187538A (en) * 2020-09-24 2021-01-05 北京自如信息科技有限公司 Starting method and device for router quality of service function and electronic equipment
CN112910715A (en) * 2021-03-08 2021-06-04 中国人民解放军军事科学院战争研究院 Network bandwidth management method and device
CN113747102A (en) * 2021-08-31 2021-12-03 百果园技术(新加坡)有限公司 Video call processing method, device, equipment and storage medium
WO2023029994A1 (en) * 2021-08-31 2023-03-09 百果园技术(新加坡)有限公司 Video call processing method and apparatus, device and storage medium
CN113747102B (en) * 2021-08-31 2024-04-26 百果园技术(新加坡)有限公司 Video call processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN105306385B (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN105306385A (en) Method and device for controlling downlink network bandwidth
CN102843341B (en) Data transmitting method and device and data receiving method and device
CN104301404B (en) A kind of method and device of the adjustment operation system resource based on virtual machine
CN104021034B (en) Task processing method and system
CN105005521A (en) Test method and apparatus
CN107835515A (en) A kind of method for distributing bandwidth resources and base station
CN103929366A (en) Flow control method and device and equipment
CN109039959B (en) SDN rule consistency judgment method and related device
CN104168606A (en) Network speed control method of mobile terminal
CN106936683B (en) A kind of method and device for realizing tunnel configuration
CN106502840A (en) A kind of data back up method, apparatus and system
CN106547683A (en) A kind of redundant code detection method and device
CN102857547B (en) The method and apparatus of distributed caching
CN107589990A (en) A kind of method and system of the data communication based on thread pool
CN105792247B (en) data pushing method and device
CN105704010A (en) Message display method and apparatus
CN104881326A (en) Journal file processing method and device
CN101515888B (en) port mapping method and device
CN105471955A (en) Writing method of distributed file system, client device and distributed file system
CN103501247A (en) Method and device for processing high concurrency request
CN111640012A (en) Block chain transaction tracing method and device
CN107329832B (en) Data receiving method and device
US20180110091A1 (en) Data Transmission Method and Apparatus for Data Service
CN109327705A (en) A kind of transmission method of live video, device, server and medium
CN103905341A (en) Resource scheduling method, resource scheduling device and resource scheduling system

Legal Events

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