Summary of the invention
Technical problem to be solved by this invention provides a kind of intelligent method for limiting speed and device, can either avoid bandwidth resources wastes, can make the normal accesses network of other web application except that downloading again.
Accordingly, the present invention also provides a kind of download system, in order to guarantee above-mentioned intelligent method for limiting speed and the application of device in downloading process.
In order to address the above problem, the invention discloses a kind of intelligent method for limiting speed, comprising:
Survey current system environments;
According to described current system environments, regulate the speed of download upper limit and/or the uploading speed upper limit that download.
Preferably, the step of the current system environments of described detection is periodically to obtain the key element of current system environments.
Preferably, described current system environments comprises the system load key element, and described system load key element comprises CPU usage and/or memory usage.
Preferably, according to the system load key element, the speed of download upper limit that adjusting downloads and/or the step of the uploading speed upper limit comprise:
Exceed when presetting the load upper limit in described system load key element, reduce the speed of download upper limit and/or the uploading speed upper limit that download, do not exceed the described load upper limit that presets until described system load key element.
Preferably, described current system environments comprises the environmental key-element of non-speed limit application program, and wherein, described non-speed limit application program is the application program except that downloading.
Preferably, according to the environmental key-element of non-speed limit application program, the speed of download upper limit that adjusting downloads and/or the step of the uploading speed upper limit comprise:
Obtain the speed of download upper limit and/or the uploading speed upper limit of current network;
According to the environmental key-element of described non-speed limit application program, obtain speed of download reservation and/or uploading speed and reserve;
According to the difference between the speed of download upper limit and the speed of download reservation, the speed of download upper limit that obtains downloading, and/or the difference according between the uploading speed upper limit and the uploading speed reservation obtains the uploading speed upper limit.
Preferably, according to the environmental key-element of non-speed limit application program, the speed of download upper limit that adjusting downloads and/or the step of the uploading speed upper limit comprise:
Obtain the required system resource that takies of non-speed limit application program;
The environmental key-element of described non-speed limit application program comprises the shared system resource of the normal operation of system;
According to the normal difference of moving between the shared system resource of required system resource that takies of non-speed limit application program and system, the system resource upper limit that obtains downloading and take;
The utilization system resource upper limit that takies that downloads is carried out the adjusting of the speed of download upper limit and/or the uploading speed upper limit to it.
Preferably, described current system environments comprises the caller information that downloads.
Preferably, the described caller information that downloads comprises the importance degree of caller and caller;
According to the caller information that downloads, the speed of download upper limit that adjusting downloads and/or the step of the uploading speed upper limit comprise:
According to the importance degree of described caller, regulate respective calls person's the speed of download upper limit and/or the uploading speed upper limit, the high caller of importance degree is than limit for height on the low caller speed of download upper limit of importance degree and/or the uploading speed.。
Preferably, the described caller information that downloads comprises caller and corresponding weights;
Described method can also comprise:
Foundation is weights separately, and the described speed of download upper limit that downloads and the uploading speed upper limit are assigned to corresponding caller.
Preferably, described current system environments comprises the environmental key-element of system load key element, non-speed limit application program and one or more of the caller that downloads, wherein, described system load key element comprises CPU usage and/or memory usage, and described non-speed limit application program is the application program except that downloading;
The described current system environments of described foundation, the speed of download upper limit that adjusting downloads and the step of the uploading speed upper limit comprise:
Obtain the speed of download upper limit and the uploading speed upper limit of current network;
According to the environmental key-element of described non-speed limit application program, obtain speed of download reservation and uploading speed and reserve;
One or more rate-limiting factor in the caller that obtains described user behavior key element, system load key element respectively and download;
Calculate the speed of download upper limit and the uploading speed upper limit that download;
Wherein, the described step that calculates the speed of download upper limit that downloads comprises:
Try to achieve first difference between the reservation of the speed of download upper limit and speed of download;
With the product of described first difference and the total rate-limiting factor of system environments, as the speed of download upper limit that downloads;
The described step that calculates the uploading speed upper limit that downloads comprises:
Try to achieve second difference between the reservation of the uploading speed upper limit and uploading speed;
With the product of described second difference and the total rate-limiting factor of system environments, as the uploading speed upper limit that downloads;
Wherein, the total rate-limiting factor of described system environments is the product of one or more rate-limiting factors in described user behavior key element, system load key element and the caller that downloads, perhaps, the weighted average of one or more rate-limiting factors in described user behavior key element, system load key element and the caller that downloads.
On the other hand, the invention also discloses a kind of intelligent speed-limiting device, comprising:
Detecting module is used to survey current system environments; And
Adjustment module is used for regulating the speed of download upper limit and/or the uploading speed upper limit that download according to described current system environments.
Preferably, described detecting module specifically is used for periodically obtaining the key element of current system environments.
Preferably, described current system environments comprises the system load key element, and described system load key element comprises CPU usage and/or memory usage.
Preferably, described adjustment module comprises:
Reduce submodule, be used for exceeding when presetting the load upper limit, reduce the speed of download upper limit and/or the uploading speed upper limit that download, do not exceed the described load upper limit that presets until described system load key element in described system load key element.
Preferably, described current system environments comprises the environmental key-element of non-speed limit application program, and wherein, described non-speed limit application program is the application program except that downloading.
Preferably, described adjustment module comprises:
The upper limit is obtained submodule, is used to obtain the speed of download upper limit and/or the uploading speed upper limit of current network;
Submodule is obtained in reservation, is used for the environmental key-element according to described non-speed limit application program, obtains speed of download reservation and/or uploading speed and reserves;
Regulate submodule, be used for according to the difference between the speed of download upper limit and the speed of download reservation, the speed of download upper limit that obtains downloading, and/or the difference according between the uploading speed upper limit and the uploading speed reservation obtains the uploading speed upper limit.
Preferably, described adjustment module comprises:
First obtains submodule, is used to obtain the required system resource that takies of non-speed limit application program;
The environmental key-element of described non-speed limit application program comprises the shared system resource of the normal operation of system;
First upper limit is obtained submodule, is used for according to the normal difference of moving between the shared system resource of required system resource that takies of non-speed limit application program and system, the system resource upper limit that obtains downloading and take;
Regulate submodule, be used to utilize the system resource upper limit that takies that downloads that it is carried out the adjusting of the speed of download upper limit and/or the uploading speed upper limit.
Preferably, described current system environments comprises the caller information that downloads.
Preferably, the described caller information that downloads comprises the importance degree of caller and caller;
Described adjustment module comprises:
Importance degree is regulated submodule, is used for the importance degree according to described caller, regulates respective calls person's the speed of download upper limit and/or the uploading speed upper limit, and the high caller of importance degree is than limit for height on the low caller speed of download upper limit of importance degree and/or the uploading speed.
Preferably, the described caller information that downloads comprises caller and corresponding weights;
Described device can also comprise:
Distribution module is used for foundation weights separately, and the described speed of download upper limit that downloads and the uploading speed upper limit are assigned to corresponding caller.
On the other hand, the invention also discloses a kind of download system, it is characterized in that, comprise aforesaid intelligent speed-limiting device.
Compared with prior art, the present invention has the following advantages:
The present invention regulates the speed of download and the uploading speed that download according to the current system environments that detects; Because system environments is the running environment of all-network application program on whole the computer, the result of detection of system environments can reflect the situation of this running environment, therefore, with respect to traditional intelligent speed limit, the speed limit result who obtains according to the result of detection of system environments, can avoid downloading influence to other web application, make the normal accesses network of other web application except that downloading, thereby can satisfy the smooth and easy operation demand of all-network application program on whole the computer.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Because traditional intelligent speed limit is only analyzed the network behavior that originally downloads in downloading process isolatedly, the speed limit result that event obtains according to analysis result still causes the influence to other web application inevitably, feasible other web application except that downloading is accesses network normally, thereby can not satisfy the smooth and easy operation demand of all-network application program on whole the computer.
The inventor herein has noticed this point, thereby has creatively proposed one of core idea of the embodiment of the invention, also, based on detection to user institute using system environment, speed of download and uploading speed that the intelligence restriction downloads; Because system environments is the running environment of all-network application program on whole the computer, the result of detection of system environments can reflect the situation of this running environment, therefore, with respect to traditional intelligent speed limit, the speed limit result who obtains according to the result of detection of system environments, can avoid downloading influence to other web application, make the normal accesses network of other web application except that downloading, thereby can satisfy the smooth and easy operation demand of all-network application program on whole the computer.
With reference to Fig. 1, show the flow chart of a kind of intelligent method for limiting speed embodiment of the present invention, specifically can comprise:
Step 101, survey current system environments;
In embodiments of the present invention, system environments mainly is meant the residing operating system environment of computer; Wherein, computer can be a stationary computer, also can be mobile computer (Mobile Computer), as smart mobile phone, PPC (palmtop PC, Pocket PC), PDA (personal digital assistant, Personal Digital Assistant) etc.; The operating system here can be operating systems such as Windows, UNIX, LINUX, Netware, XENIX, and the embodiment of the invention is that example describes with Windows operating system only, and other operating system cross-reference gets final product.
In specific implementation, a kind of preferred form of described detection steps 101 can for, periodically obtain the key element of current system environments.Wherein, the cycle here can be set according to actual conditions by those skilled in the art, for example, it can be 2 minutes, 5 minutes, 10 minutes or the like, in a word, described detection steps should be an aim with the current system environments of timely detection both, was prerequisite to leave the user alone again, and can not be limited concrete cycle and setting means.
Step 102, the described current system environments of foundation are regulated the speed of download upper limit and/or the uploading speed upper limit that download.
As the speed limit object, the main finger that downloads here need take downloading in the web application of the network bandwidth, as Kingsoft net shield, Rising's fire compartment wall, day net fire compartment wall, the road of safety, 360 security guards' download, upgrading, a sudden peal of thunder, electric furnace etc. download etc., and the present invention is not limited concrete downloading.
For reflecting the running environment of all-network application program on whole the computer, the embodiment of the invention can provide different speed regulation schemes according to different current system environmentss, specifically can comprise:
1, system load key element;
In a preferred embodiment of the present invention, described current system environments can comprise the system load key element, and described system load key element mainly can comprise CPU usage and/or memory usage.
As a rule, the system load key element is many more, and the expression system load is heavy more, at this moment, should down regulate the speed of download and the uploading speed that download.Therefore, in a preferred embodiment of the present invention, described step 102 specifically can comprise:
Exceed when presetting the load upper limit in described system load key element, reduce the speed of download upper limit and/or the uploading speed upper limit that download, do not exceed the described load upper limit that presets until described system load key element.
In practice, can be according to the actual conditions (as configuration parameter) of current system, being respectively CPU usage and/or memory usage is provided with one and presets the load upper limit, expression has surpassed this and has preset the load upper limit, will influence the normal operation of system, thereby influence the smooth and easy operation of all-network application program on whole the computer.
For example, the load upper limit that presets of CPU usage is 30%, and the CPU usage that obtains in detection exceeds when presetting the load upper limit, then needs to reduce the speed of download upper limit and/or the uploading speed upper limit that download always, until CPU usage smaller or equal to 30%.For memory usage preset the application of the load upper limit in speed limit, cross-reference gets final product, and does not give unnecessary details at this.
Certainly, except CPU usage and memory usage, those skilled in the art can also survey other system load key element according to actual needs, and as I/O request (input and output request) etc., the present invention is not limited concrete system load key element.
2, the environmental key-element of non-speed limit application program;
Except downloading itself, also moved other application program in the system, as browser, online game, Internet video or Video chat etc., when detecting these application program operations, then expression has the network bandwidth on the shared computer of web application, at this moment, also should down regulate speed of download and the uploading speed that downloads.
Therefore, in another kind of preferred embodiment of the present invention, described current system environments can comprise the environmental key-element of non-speed limit application program, and wherein, described non-speed limit application program is mainly the application program except that downloading.
As a kind of preferred embodiment, described step 102 specifically can comprise:
Substep A1, the speed of download upper limit of obtaining current network and/or the uploading speed upper limit;
Supposing that substep A1 acquires on the speed of download of current network is limited to 300KB/S.
The environmental key-element of substep A2, the described non-speed limit application program of foundation is obtained speed of download reservation and/or uploading speed and is reserved;
Suppose that current non-speed limit application program comprises browser, online game, Internet video, then can be according to the empirical value of surveying in the past, obtaining the lowest-bandwidth that these non-speed limit application programs can smooth and easy operation, also is that speed of download is reserved and is respectively: browser (30KB/S), online game (20KB/S), Internet video (50KB/S).Therefore, can learn that when carrying out speed limit to downloading, speed of download is reserved as 30+20+50=100KB/S.
Substep A3, the difference between reserving according to the speed of download upper limit and speed of download, the speed of download upper limit that obtains downloading, and/or the difference according between the uploading speed upper limit and the uploading speed reservation obtains the uploading speed upper limit.
In some cases, can be directly to download the difference between the reservation of speed limit and speed of download, the speed of download upper limit as downloading also promptly goes up 300KB/S-100KB/S=200KB/S in the example; Under the other situation, can also reserve the bandwidth of some for system, in order to the startup of other non-speed limit application program, like this, the speed of download upper limit that downloads is (200-S) KB/S, and here, S can determine according to actual conditions, for example, can be 20KB/S, 50KB/S, or the like.
For the uploading speed upper limit, because its adjustment process is similar to the speed of download upper limit, so do not give unnecessary details at this, cross-reference gets final product.
As another kind of preferred embodiment, described step 102 specifically can comprise:
Substep B 1, obtain the required system resource that takies of non-speed limit application program; The environmental key-element of described non-speed limit application program comprises the shared system resource of the normal operation of system;
The normal difference of moving between the shared system resource of substep B2, the foundation required system resource that takies of non-speed limit application program and system, the system resource upper limit that obtains downloading and take;
Substep B3, utilize the system resource upper limit that takies that downloads that it is carried out the adjusting of the speed of download upper limit and/or the uploading speed upper limit.
When application program is moved in Windows, Windows " tracking " operation of this application program in real time, and keep associated many information is as the situation of cursor, window etc., these information are retained in a kind of crying in the memory block of piling by Windows, and the English of heap is Heap.Briefly, heap is the memory block that adopts the special mechanism management.Heap by system kernel User.exe management of Windows is called User resource heap (User Resource Heap), heap by another system kernel Gdi.exe management is called GDI resource heap (Graphical Device Interface Resource Heap), User resource heap and GDI resource heap are collectively referred to as system resource heap (System Resource Heap), just they are called system resource (System Resource) traditionally.
For example, Microsoft is divided into five heaps with the system resource (heap) of Windows, and wherein the User resource heap is three, and the GDI resource heap is two.Three User resource heaps are respectively: and user's heap of 16 (User Heap, 64KB); 32 window heap (Windows Heap, 2MB); 32 custom menu heap (User Menu Heap, 2MB).Two GDI resource heaps are respectively: and 16 GDI heap (GDI Heap, 64KB); 32 GDI heap (GDI, 2MB).
No matter CPU is P4 or 486, and internal memory is 1G or 2G, and all users of Windows have onesize system resource (heap), and can not increase or reduce the size of system resource separately, and its size is by the operating system decision, with hardware independent.
But, program of every operation in Windows, system resource will reduce, therefore, for avoiding of the influence of Windows system resource deficiency to the smooth and easy operation of all-network application program on whole the computer, the system resource upper limit that this preferred embodiment takies based on downloading is carried out corresponding speed regulation, here, can be according to the normal difference of moving between the shared system resource of required system resource that takies of non-speed limit application program and system, the system resource upper limit that obtains downloading and take.
Window heap 2MB with 32 is an example, the shared system resource of the normal operation of supposing the system is 1.8MB, and current non-speed limit application program browser, online game, the required system resource that takies of Internet video are respectively 0.1MB, 0.4MB and 0.55MB, so, the system resource upper limit that takies that downloads then can be 1.8-0.1-0.4-0.55=0.75MB.
As for how utilizing the system resource upper limit that downloads and take, it is carried out the adjusting of the speed of download upper limit and/or the uploading speed upper limit; In specific implementation, can a threshold value T (being assumed to be 0.75MB) be set according to the shared system resource of normal operation that downloads, when the system resource upper limit that takies of downloading>T, the speed of download that can the raise upper limit and/or the uploading speed upper limit, when the system resource upper limit that takies of downloading<T, can reduce and regulate the speed of download upper limit and/or the uploading speed upper limit, here, the amplitude that raises and reduce can be determined by various algorithms, not give unnecessary details at this.
Certainly, can also adopt other regulative mode, for example, system resource that can take according to downloading and the relation between the speed of download upper limit are provided with some speed stages, then, when regulating, by interpolation or inquiry, the system resource upper limit coupling that takies for downloading obtains corresponding speed stage and gets final product, and does not give unnecessary details at this.
3, the caller information that downloads.
Download for one, also can it be divided into a plurality of program branches usually according to the function difference.For example, a plurality of program branches such as wooden horse fire compartment wall, virus killing, net shield, anti-steal-number, software house keeper, hardware detection, net purchase bodyguard are arranged below " 360 security guard ", these program branches have defense function separately; And these program branches independent operatings connect the downloading task of the Internet execution at leak or patch respectively.
At said circumstances, the embodiment of the invention can be surveyed this key element of caller information that downloads, and it represents mainly who has started to download and download that it can be certain program, can be the user.Like this, download and just can carry out speed limit to downloading, specifically can comprise following situation according to the difference of the caller information that downloads:
Situation A,
In a preferred embodiment of the present invention, the described caller information that downloads specifically can comprise the importance degree of caller and caller;
At this moment, described step 102 can comprise:
According to the importance degree of described caller, regulate respective calls person's the speed of download upper limit and/or the uploading speed upper limit, when the importance degree of caller is high, rising respective calls person's the speed of download upper limit and/or the uploading speed upper limit.
In fact, the importance degree height of caller is then represented the caller responsive to speed, so the respective calls person's that can raise the speed of download upper limit and/or the uploading speed upper limit; Otherwise,, represent that then caller is insensitive to speed, so can reduce respective calls person's the speed of download upper limit and/or the uploading speed upper limit if the importance degree of caller is low.Here, the high or low of importance degree can quantize to obtain by a certain or many index, also can be by the empirical value setting, and the present invention is not limited concrete obtain manner.Case B,
In a preferred embodiment of the present invention, the described caller information that downloads specifically can comprise caller and corresponding weights;
Described method can also comprise:
Foundation is weights separately, and the described speed of download upper limit that downloads and the uploading speed upper limit are assigned to corresponding caller.
For example, current " 360 security guard " has wooden horse fire compartment wall, two callers of virus killing to call downloading task simultaneously, and the weights of the two are respectively 60%, 40%, then substep A3 can be tried to achieve the speed of download upper limit and be assigned to this two caller: 200*60%=120KB/S, 200*40%=80KB/S.
Need to prove, survey current system environments from step 101, to the described current system environments of step 102 foundation, the whole process of speed of download that adjusting downloads and uploading speed, all finish in this locality, the embodiment of the invention can not report server with the data relevant with current system environments yet, thereby can not reveal privacy of user.
More than the key element of three kinds of current system environmentss is described in detail, be appreciated that those skilled in the art can unite the key element of using described three kinds of current system environmentss as required, perhaps, use wherein any, the present invention is not limited this.
For example, in a preferred embodiment of the present invention, described current system environments specifically can comprise the environmental key-element of system load key element, non-speed limit application program and one or more of the caller that downloads, wherein, described system load key element specifically can comprise CPU usage and/or memory usage, and described non-speed limit application program is the application program except that downloading;
Described step 102 specifically can comprise:
Substep C1, the speed of download upper limit of obtaining current network and the uploading speed upper limit;
The environmental key-element of substep C2, the described non-speed limit application program of foundation is obtained speed of download reservation and uploading speed and is reserved;
Substep C3, respectively obtain described user behavior key element, system load key element and the caller that downloads in one or more rate-limiting factor;
Substep C4, calculate the speed of download upper limit and the uploading speed upper limit that download;
Wherein, the described step that calculates the speed of download upper limit that downloads specifically can comprise:
Substep C41, try to achieve the speed of download upper limit and speed of download first difference between reserving;
Substep C42, with the product of described first difference and the total rate-limiting factor of system environments, as the speed of download upper limit that downloads;
The described step that calculates the uploading speed upper limit that downloads comprises:
Substep C43, try to achieve the uploading speed upper limit and uploading speed second difference between reserving;
Substep C44, with the product of described second difference and the total rate-limiting factor of system environments, as the uploading speed upper limit that downloads;
Wherein, the total rate-limiting factor of described system environments can be the product of one or more rate-limiting factors in described user behavior key element, system load key element and the caller that downloads, perhaps, the weighted average of one or more rate-limiting factors in described user behavior key element, system load key element and the caller that downloads.
Above-mentioned rate-limiting factor is mainly represented each system environments role in speed limit, can its span be set to 0~100%.
For example, if current system load key element is many, meaning that speed limit is relatively stricter, so can be provided with corresponding rate-limiting factor a little bit smaller, for example be 50%;
And for example, the importance degree of the caller that downloads (downloading in this example) is lower, insensitive to speed, then can speed limit strict, so can be provided with corresponding rate-limiting factor a little bit smaller, for example be 20%, if the importance degree of the caller that downloads is than higher, responsive to speed, then speed limit is not strict, so can be provided with corresponding rate-limiting factor more greatly, for example be 50%.
Certainly, above-mentioned rate-limiting factor when enforcement is of the present invention, can be provided with other rate-limiting factor just as example according to actual conditions, and the present invention is not limited this,
Corresponding above-mentioned example, substep A1 acquires on the speed of download of current network and is limited to 300KB/S, the speed of download that substep A2 obtains is reserved as 100KB/S, the rate-limiting factor of described system load key element that substep A3 obtains and the caller that downloads is respectively: 80%, 50%, and then the embodiment of the invention can provide following speed limit numerical procedure:
Scheme one,
Computing formula is: the product of (the speed of download upper limit-speed of download is reserved) the described system load key element of * and the rate-limiting factor of the caller that downloads;
Example on the correspondence: (300-100) * 80%*50%=80KB/S.
Scheme two,
Computing formula is: the weighted average of (the speed of download upper limit-speed of download is reserved) the described system load key element of * and the rate-limiting factor of the caller that downloads.
When weighted average, need at first distribute to described system load key element and the caller that downloads with weights, for example be respectively 30% and 70%, result of weighted average can for:
80%*30%+50%*70%=59%。
Example on the correspondence: (300-100) * 59%=118KB/S.
Certainly, above-mentioned weights when enforcement is of the present invention, can be provided with other weights just as example according to actual conditions, and the present invention is not limited this.In addition, except above-mentioned two kinds of speed limit numerical procedures, those skilled in the art can also adopt other speed limit numerical procedure by actual needs, and the present invention is not limited this yet.
Embodiment is corresponding with the aforementioned intelligent method for limiting speed, the invention also discloses a kind of intelligent speed-limiting device, with reference to Fig. 2, specifically can comprise:
Detecting module 201 is used to survey current system environments; And
Adjustment module 202 is used for regulating the speed of download and the uploading speed that download according to described current system environments.
In embodiments of the present invention, preferably, described detecting module 201 can specifically be used for periodically obtaining the key element of current system environments.
For reflecting the running environment of all-network application program on whole the computer, the embodiment of the invention can be according to different current system environmentss, and the design of different adjustment module is provided, and specifically can comprise:
Scheme one,
In a preferred embodiment of the present invention, described current system environments specifically can comprise the system load key element, and described system load key element specifically can comprise CPU usage and/or memory usage.
In embodiments of the present invention, preferably, described adjustment module specifically can comprise:
Reduce submodule, be used for exceeding when presetting the load upper limit, reduce the speed of download upper limit and/or the uploading speed upper limit that download, do not exceed the described load upper limit that presets until described system load key element in described system load key element.
Scheme two,
In another kind of preferred embodiment of the present invention, described current system environments specifically can comprise the environmental key-element of non-speed limit application program, and wherein, described non-speed limit application program is the application program except that downloading.
In embodiments of the present invention, preferably, described adjustment module specifically can comprise:
The upper limit is obtained submodule, is used to obtain the speed of download upper limit and/or the uploading speed upper limit of current network;
Submodule is obtained in reservation, is used for the environmental key-element according to described non-speed limit application program, obtains speed of download reservation and/or uploading speed and reserves;
Regulate submodule, be used for according to the difference between the speed of download upper limit and the speed of download reservation, the speed of download upper limit that obtains downloading, and/or the difference according between the uploading speed upper limit and the uploading speed reservation obtains the uploading speed upper limit.
In embodiments of the present invention, preferably, described adjustment module specifically can comprise:
First obtains submodule, is used to obtain the required system resource that takies of non-speed limit application program;
The environmental key-element of described non-speed limit application program comprises the shared system resource of the normal operation of system;
First upper limit is obtained submodule, is used for according to the normal difference of moving between the shared system resource of required system resource that takies of non-speed limit application program and system, the system resource upper limit that obtains downloading and take;
Regulate submodule, be used to utilize the system resource upper limit that takies that downloads that it is carried out the adjusting of the speed of download upper limit and/or the uploading speed upper limit.
Scheme three,
In another preferred embodiment of the present invention, described current system environments can comprise the caller information that downloads.
In a preferred embodiment of the present invention, the described caller information that downloads specifically can comprise the importance degree of caller and caller;
Correspondingly, described adjustment module specifically can comprise:
Importance degree is regulated submodule, is used for the importance degree according to described caller, regulates respective calls person's the speed of download upper limit and/or the uploading speed upper limit, and the high caller of importance degree is than limit for height on the low caller speed of download upper limit of importance degree and/or the uploading speed.
In another kind of preferred embodiment of the present invention, the described caller information that downloads specifically can comprise caller and corresponding weights;
Described device can also comprise:
Distribution module is used for foundation weights separately, and the described speed of download upper limit that downloads and the uploading speed upper limit are assigned to corresponding caller.
For intelligent speed-limiting device embodiment, because it is similar substantially to intelligent method for limiting speed embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of intelligent method for limiting speed embodiment.
Above-mentioned intelligent speed-limiting device can be applied in the download system, and the described download system of intelligent speed-limiting device that comprises may operate on the multiple computer equipments such as smart mobile phone, PPC, PDA.
With reference to Fig. 3, show the structure chart of a kind of download system embodiment of the present invention, specifically can comprise:
Downloading task scheduler module 301 is used to begin downloading task;
Intelligent speed-limiting device 302 specifically can comprise:
Detecting module 321 is used for surveying current system environments when the beginning downloading task; And
Adjustment module 322 is used for regulating the speed of download and the uploading speed that download according to described current system environments; And
Download module 303 is used to carry out described downloading task.
For download system embodiment, because it is similar substantially to intelligent method for limiting speed embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of intelligent method for limiting speed embodiment.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
More than to a kind of intelligent method for limiting speed provided by the present invention and device, a kind of download system, be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.