CN105591980B - A kind of bandwidth consumption management method and device - Google Patents
A kind of bandwidth consumption management method and device Download PDFInfo
- Publication number
- CN105591980B CN105591980B CN201410562217.1A CN201410562217A CN105591980B CN 105591980 B CN105591980 B CN 105591980B CN 201410562217 A CN201410562217 A CN 201410562217A CN 105591980 B CN105591980 B CN 105591980B
- Authority
- CN
- China
- Prior art keywords
- resource data
- preset
- bandwidth consumption
- time
- duration
- 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.)
- Active
Links
Abstract
A kind of bandwidth consumption management method, comprising: when detecting that peak period starts, the alternative resource data which meets preset determining condition are determined as target resource data by the variation of the download time of real-time monitoring alternative resource data;For the corresponding restriction factor of target resource data configuration, wherein the variation is bigger, and the value of the corresponding restriction factor is bigger, and the speed limit value for allowing to download is smaller;According to the restriction factor, the bandwidth consumption of the target resource data is managed.In addition, the present invention also provides a kind of bandwidth consumption managing devices.Above-mentioned bandwidth consumption management method and device have higher flexibility, foresight and timeliness, can effectively reduce the bandwidth pressure of server, improve the efficiency of bandwidth consumption management.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of bandwidth consumption management method and devices.
Background technique
The bandwidth of computer network refers to the passable the maximum data rate of network, i.e., how many bit per second.For downloading and
Transmission service, bandwidth pressure is relatively high one in all operation costs.The accounting of bandwidth is usually high according to day is calculated
Phase server rate of discharge per second in peak is calculated (rather than according to one day average value), so eliminating peak for saving
Bandwidth is necessary measure.And in peak period limitation user's speed of download at a main means.
In the prior art, when limitation the unreasonable bandwidth occupancy situation of user, often through limitation one
The current behavior of user at some time point carries out.Such as: certain company has issued certain game, this game is on downloading peak
Phase often has many people's downloadings, to expend a large amount of bandwidth.Plan is managed according to the bandwidth consumption that the prior art is taken
Slightly, server can be in downloading peak period, for this game real-time detection with the presence or absence of bandwidth consumption exception (that is, being detected
Time point on, the speed for downloading this game is more than preset threshold value) user, and to detecting that there are bandwidth consumption exceptions
User hit, limit its download maximum speed (speed limit).Such restriction strategy is from detected time point
The downloading behavior of user, which is set out, limits bandwidth, and the behavior of user at some time point usually have it is biggish accidentally
Property, can not accurate response go out the user in the truth of entire peak period bandwidth consumption, therefore according to user some when
Between the current behavior put carry out bandwidth consumption management there is very strong hysteresis quality, timeliness is not good enough.
Summary of the invention
In view of this, the present invention provides a kind of bandwidth consumption management method and device, there is higher flexibility, foresight
And timeliness, it can effectively reduce the bandwidth pressure of server, improve the efficiency of bandwidth consumption management.
Bandwidth consumption management method provided in an embodiment of the present invention, comprising: when detecting that peak period starts, supervise in real time
The alternative resource data that the variation meets preset determining condition are determined as by the variation for surveying the download time of alternative resource data
Target resource data;For the corresponding restriction factor of the target resource data configuration, wherein the variation is bigger, it is described corresponding
The value of restriction factor is bigger, and the speed limit value for allowing to download is smaller;According to the restriction factor, to the target resource data
Bandwidth consumption be managed.
Bandwidth consumption managing device provided in an embodiment of the present invention, comprising: monitoring modular detects peak period for working as
When beginning, the variation of the download time of real-time monitoring alternative resource data;First determining module, for supervising the monitoring modular
The alternative resource data that the variation measured meets preset determining condition are determined as target resource data;Configuration module is used for
For the corresponding restriction factor of the target resource data configuration that first determining module is determined, wherein the variation is got over
Greatly, the value of the corresponding restriction factor is bigger, and the speed limit value for allowing to download is smaller;Management module, for according to
The restriction factor of configuration module configuration, disappears to the bandwidth for the target resource data that first determining module is determined
Consumption is managed.
Bandwidth consumption management method provided in an embodiment of the present invention and device, when detecting that peak period starts, in real time
The variation for monitoring the download time of the alternative resource data, the alternative resource data which is met preset determining condition are true
It is set to target resource data, and is the corresponding restriction factor of target resource data configuration, obtains the mark of the target resource data
Know information, according to the identification information and the restriction factor, generates bandwidth consumption management list, and arrange according to the bandwidth consumption management
Table is managed the bandwidth consumption of the target resource data, by thus according to resource data in peak period after one
The dynamic change of download time in the section time determines management object, and according to different restriction factors to different limitations pair
As carrying out targeted rate limitation, thus compared to the prior art in will test the excessively high user of time point speed of download and make
For limitation object for, can more be accurately located out the object for really needing management, have higher flexibility, foresight and
Timeliness can effectively reduce the bandwidth pressure of server, improve the efficiency of bandwidth consumption management.
For above and other objects, features and advantages of the invention can be clearer and more comprehensible, preferred embodiment is cited below particularly,
And cooperate institute's accompanying drawings, it is described in detail below.
Detailed description of the invention
Fig. 1 is an applied environment figure of bandwidth consumption management method provided in an embodiment of the present invention and device;
Fig. 2 is the another application environment map of bandwidth consumption management method provided in an embodiment of the present invention and device;
Fig. 3 shows a kind of structural schematic diagram of server;
Fig. 4 is the flow diagram for the bandwidth consumption management method that first embodiment of the invention provides;
Fig. 5 is the flow diagram for the bandwidth consumption management method that second embodiment of the invention provides;
Fig. 6 is the structural schematic diagram for the bandwidth consumption managing device that third embodiment of the invention provides;
Fig. 7 is the structural schematic diagram for the bandwidth consumption managing device that fourth embodiment of the invention provides.
Specific embodiment
Further to illustrate that the present invention is the technical means and efficacy realizing predetermined goal of the invention and being taken, below in conjunction with
Attached drawing and preferred embodiment, to specific embodiment, structure, feature and its effect according to the present invention, detailed description is as follows.
Lower Fig. 1 is the applied environment figure of bandwidth consumption management method provided in an embodiment of the present invention and device.Following Fig. 1 institute
Show, client 100 and server 200 are located in wired or wireless network, above-mentioned respectively to set by the cable network or wireless network
It is standby to carry out data interaction.
Client 100 may include: the smart phone for being mounted with to have the client-side program of data download function, plate electricity
Brain, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic shadow
As expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic
Image expert's compression standard audio level 4) player, pocket computer on knee, vehicle-mounted computer, wearable device, desk-top meter
Calculation machine, set-top box, smart television, all-in-one machine etc..
Wherein, above-mentioned cable network can be, but not limited to include: to connect using coaxial cable, twisted pair or optical fiber
Computer network.Various communication standards, agreement and technology can be used in above-mentioned wireless network, and including but not limited to the whole world is moved
Dynamic communication system (Global System for Mobile Communication, GSM), enhanced mobile communication technology
(Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code division
Multiple access, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time division multiple access technology
(time division multiple access, TDMA), bluetooth, adopting wireless fidelity technology (Wireless, Fidelity,
WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.11a, IEEE802.11b, IEEE802.11g and/or
IEEE802.11n), the networking telephone (Voice over internet protocol, VoIP), worldwide interoperability for microwave accesses
(Worldwide Interoperability for Microwave Access, Wi-Max), other be used for mail, Instant Messenger
The agreement and any other suitable communications protocol of news and short message, or even may include that those are not developed currently yet
Agreement.
When detecting that peak period starts, the variation of the download time of 200 real-time monitoring alternative resource data of server,
The alternative resource data that the variation meets preset determining condition are determined as target resource data;For the target resource data configuration
Corresponding restriction factor, wherein the variation is bigger, and the value of the corresponding restriction factor is bigger, and the speed limit value downloaded is allowed to get over
It is small;According to the restriction factor, management client 100 downloads the speed of the target resource data, to manage the target resource data
Bandwidth consumption.
Fig. 2 shows a kind of structural block diagrams of server.It is to be appreciated that structure shown in Fig. 2 is only to illustrate, server
200 may also include than shown in Fig. 2 more perhaps less component or with the configuration different from shown in Fig. 2.Institute in Fig. 2
Each component shown can be realized using hardware, software, or its combination.In addition, the server in the embodiment of the present invention can also include
The server of multiple specific different function.
As shown in Fig. 2, server 200 can generate bigger difference because configuration or performance are different, it may include one
Or more than one central processing unit (central processing units, CPU) 222 is (for example, one or more are handled
Device) and memory 232, one or more storage application programs 242 or data 244 storage medium 230 (such as one or
More than one storage equipment).Wherein, memory 232 and storage medium 230 can be of short duration storage or persistent storage.It is stored in
The program of storage medium 230 may include one or more modules (diagram is not shown), and each module may include to clothes
The series of instructions operation being engaged in device.Further, central processing unit 222 can be set to communicate with storage medium 230,
The series of instructions operation in storage medium 230 is executed on server 200.Server 200 can also include one or one with
Upper power supply 226, one or more wired or wireless network interfaces 250, one or more input/output interfaces 258,
And/or one or more operating systems 241, such as Windows ServerTM, Mac OS XTM, UnixTM,LinuxTM,
FreeBSDTMEtc..
It is to be appreciated that bandwidth consumption management method provided in an embodiment of the present invention and device also can be applied to Fig. 3 institute
In the application environment shown.The function of server 200 is by storage server 201, collection server 202, calculation server in Fig. 1
203 and speed issue server 204 jointly realize.
Wherein, storage server 201 collects server 202 for obtaining all kinds of resources for storing all kinds of resource datas
The download time of data, and the download time that will acquire is sent to calculation server 203, simultaneously so as to the statistics of calculation server 203
The alternative resource data that the variation meets preset determining condition are determined as target resource number by the variation for analyzing the download time
According to for the corresponding restriction factor of target resource data configuration, wherein the variation is bigger, and the value of the corresponding restriction factor is got over
Greatly, the speed limit value for allowing to download is smaller;The identification information of target resource data and its corresponding restriction factor are sent to
Speed issues server 204, so that speed issues server 204 when client 100 downloads the target resource data, according to right
The upper limit value of speed of download is handed down to client 100 by the restriction factor answered, and instruction client 100 limits preset downloading client
End program (such as: a sudden peal of thunder) speed of the target resource data is downloaded, to realize the bandwidth consumption to the target resource data
Effectively management.
First embodiment
Referring to Fig. 4, Fig. 4 is the flow chart for the bandwidth consumption management method that first embodiment of the invention provides.This implementation
Example can be applied in application environment shown in FIG. 1, realize more effectively bandwidth consumption pipe by server 200 shown in FIG. 1
Reason.As shown in figure 4, bandwidth consumption management method provided in this embodiment includes:
Step S101, when detecting that peak period starts, the variation of the download time of real-time monitoring alternative resource data,
The alternative resource data that the variation meets preset determining condition are determined as target resource data;
All kinds of resource datas can be preset in server 200, such as: video class resource data, Game patches class number of resources
According to, operating system patch class resource data, resource data and other kinds resource data are installed/upgraded to common application program
Etc..Alternative resource data be server 200 according to the above-mentioned all kinds of resource datas monitored preset first duration (such as: 24
Hour) in related download data (such as: download time), determined from above-mentioned all kinds of resource datas there may be bandwidth to disappear
Consume abnormal resource data.
The peak period of bandwidth consumption refers to bandwidth consumption higher one or more periods, usual resource data in one day
Download time it is more, consumption bandwidth it is higher.Server 200 can be according to all kinds of resource datas above-mentioned in one day each pre-
The download time for setting period generation determines the peak period of bandwidth consumption in one day.
Specifically, judge whether alternative resource data are seed data.Seed data refers to according to BitTorrent agreement
The resource data of transmission.BitTorrent abbreviation BT is a file distributing agreement, is commonly called as bit-torrent, it is identified by URL
It content and is combined with network seamless, the downloading person of a file are also constantly uploading mutually data while downloading, make
File source can support a large amount of downloading persons in the case where increasing very limited load while download.
If the alternative resource data are not seed datas, when the peak period for detecting bandwidth consumption starts, in real time
Monitor exponential increase variation of the download time of the alternative resource data in preset second duration;When exponential increase variation is aobvious
It, will when showing that ascendant trend of the download time of the alternative resource data in preset second duration and preset trend match
The alternative resource data are determined as target resource data.
If the alternative resource data are seed datas, when detecting that the peak period starts, this is alternative for real-time monitoring
Download time in the preset third duration is greater than or equal to pre- by download time of the resource data in preset third duration
The alternative resource data for the third threshold value set are ranked up according to sequence from big to small, and it is pre- that preceding second will be come in ranking results
The alternative resource data for setting a position are determined as the target resource data.
Step S102, for the corresponding restriction factor of target resource data configuration, wherein the variation is bigger, the corresponding limit
The value of the factor processed is bigger, and the speed limit value for allowing to download is smaller;
It is to be appreciated that for non-seed data, during real-time monitoring, the downloading time of monitored alternative resource data
Exponential increase variation of the number in preset second duration is bigger, that is, the exponential growth rate of the download time is bigger, corresponding limitation
The value of the factor is bigger, and the speed limit value for allowing to download is smaller, and the speed of download of permission is slower.
For seed data, during real-time monitoring, under monitored alternative resource data are in preset third duration
Load number is more, and the value of corresponding restriction factor is bigger, and the speed limit value for allowing to download is smaller, and the speed of download of permission is got over
Slowly.
Like this, the tool of the incipient stage of the peak period according to the download time of each target resource data in bandwidth consumption
Body situation of change is the corresponding restriction factor of each target resource data configuration, and targetedly according to different restriction factors
Its speed of download is limited, may make bandwidth consumption management with more flexibility, more efficiently.
Step S103 is managed the bandwidth consumption of the target resource data according to the restriction factor.
Corresponding table of the restriction factor with the upper limit value of speed of download is preset in server 200.When receiving client 100
When the request of the acquisition target resource data of transmission, server 200 is according to the marks of the target resource data for including in the request
Know information, obtain restriction factor corresponding with the identification information, the correspondence table is then inquired according to the restriction factor and obtains correspondence
Speed of download upper limit value, and be not higher than the limit upper limit value transmission speed, which is sent to client
End 100.Alternatively, server 200 can be while returning to the target resource data, by the corresponding speed of download of the restriction factor
Upper limit value be handed down to client 100, indicate that client 100 downloads the target resource number with the speed not higher than the upper limit value
According to being managed with the bandwidth consumption to the target resource data.
Bandwidth consumption management method provided in an embodiment of the present invention, when detecting that peak period starts, real-time monitoring institute
The alternative resource data that the variation meets preset determining member are determined as target by the variation for stating the download time of alternative resource data
Resource data, and be the corresponding restriction factor of target resource data configuration, obtain the identification information of the target resource data, root
According to the identification information and the restriction factor, bandwidth consumption management list is generated, and according to the bandwidth consumption management list, to the mesh
Mark resource data bandwidth consumption be managed, by thus according to resource data in peak period after a period of time in
The dynamic change of download time has carried out needle to different limitation objects according to different restriction factors to determine management object
To the rate limitation of property, thus compared to the prior art in will test the excessively high user of time point speed of download as limitation object
For, it can be more accurately located out the object for really needing management, there is higher flexibility, foresight and timeliness, it can
The bandwidth pressure of server is effectively reduced, improves the efficiency of bandwidth consumption management.
Second embodiment
Referring to Fig. 5, Fig. 5 is the flow chart for the bandwidth consumption management method that second embodiment of the invention provides.This implementation
Example can be applied in application environment shown in FIG. 1, realize more effectively bandwidth consumption pipe by server 200 shown in FIG. 1
Reason.As shown in figure 5, bandwidth consumption management method provided in this embodiment includes:
Step S201 obtains the downloading that each preset time point occurs in preset first duration time of all kinds of resource datas respectively
Number;
All kinds of resource datas can be preset in server 200 or in other storage servers that server 200 controls.Respectively
Class resource data may include: video class resource data, Game patches class resource data, operating system patch class resource data,
Resource data and other kinds resource data are installed/upgraded to common application program.
Specifically, it is each preset in preset first duration can periodically to obtain above-mentioned all kinds of resource datas respectively for server 200
The download time that time point occurs.For citing 1, it is assumed that a length of 24 hours when preset first, preset time point is in 24 hours
Each integral point, obtaining object is video class resource data and Game patches class resource data, then server 200 can be every other day
The video class resource data and Game patches class resource data are obtained respectively in each integral point time of proxima luce (prox. luc) 1:00 to 24:00
The download time of upper generation, such as: the download time of download time, 2:00 generation that video class resource data occurs in 1:00,3:
00 download time, the download time ... of 4:00 generation, the download time of 24:00 generation and the Game patches class money occurred
Source data is in the case where the download time that the download time that the download time that 1:00 occurs, 2:00 occur, 3:00 occur, 4:00 occur
Carry number ..., the download time that 24:00 occurs.
Step S202, according to preset statistical rules, all kinds of resource datas for counting acquisition are each in preset first duration
The download time that preset time point occurs, the peak period of bandwidth consumption in preset first duration is determined according to statistical result,
The one kind for meeting preset screening conditions in the statistical result or multiclass resource data are determined as alternative resource data;
Firstly, server 200 according to all kinds of resource datas obtained respectively each preset time point in preset first duration
The download time of generation calculates separately download time (all kinds of resources that all kinds of resource datas occur in the respectively preset time period
The download time of download time and start time point generation that data occur in the end time point of each preset time period respectively
Difference) and all categories the downloading total degree that occurs in each preset time period of resource data;Then total degree will be downloaded
More than or equal to the peak period that the period of preset first threshold is determined as bandwidth consumption in preset first duration.Citing 2
For, it is assumed that a length of 4 hours (16:00~20:00) when preset first;Preset time point is 16:00,17:00,18:00,19:
00,20:00;Preset time period is 16:00~17:00,17:00~18:00,18:00~19:00,19:00~20:00;It is preset
First threshold is 500 times;Obtaining object is video class resource data and Game patches class resource data;Wherein, video class resource
Data are 100 times in the download time that 16:00 occurs, and the download time that 17:00 occurs is 180 times, the downloading time that 18:00 occurs
Number is 220 times, and the download time that 19:00 occurs is 400 times, and the download time that 20:00 occurs is 900 times;Game patches class money
Source data is 20 times in the download time that 16:00 occurs, and the download time that 17:00 occurs is 40 times, the downloading time that 18:00 occurs
Number is 100 times, and the download time that 19:00 occurs is 300 times, and the download time that 20:00 occurs is 500 times.Then by counting, on
State the resource data of all categories, that is, video class resource data and Game patches class resource data occur in each preset time period
Downloading total degree be respectively as follows: 16:00~17:00, (180-80)+(40-20)=120 time;17:00~18:00, (220-
180)+(100-40)=100 time;18:00~19:00, (400-220)+(300-100)=380 time;19:00~20:00,
(900-400)+(500-300)=700 time.Above-mentioned statistical result and preset first threshold (500 times) are compared, it may be determined that
19:00~20:00 is the peak period of the bandwidth consumption in 16:00 to 20:00.
It is to be appreciated that downloading total degree can also be ranked up by server 200 according to sequence from big to small, according to
The downloading total degree corresponding period for coming preceding first preset a position is determined as in preset first duration by ranking results
The peak period of bandwidth consumption.Still illustrate for 2, it is assumed that preceding first preset a position is first 2, according to aforesaid statistical as a result,
And the downloading total degree corresponding period that first 2 are come by sequence, in ranking results be 19:00~20:00 and 18:00~
19:00 then can determine that 18:00~~20:00 is the peak period in 16:00~20:00.
Secondly, calculating the download time of peak period all kinds of resource datas generations in all types of resource datas
Specific gravity shared in total degree is downloaded, calculated result is ranked up according to the sequence of specific gravity from big to small, it will be in ranking results
One kind or multiclass resource data of preceding second preset a position are determined as alternative resource data, or by specific gravity more than or equal to preset
One kind or multiclass resource data of second threshold are determined as alternative resource data.Still by taking above-mentioned example 2 as an example, it is assumed that through determining 19:
00~20:00 is peak period, and preceding second preset a position is first, under this peak period, video class resource data
Carrying number specific gravity shared in the downloading total degree of all types of resource datas is (900-400)/700 × 100% ≈
71%;The download time of Game patches class resource data specific gravity shared in the downloading total degree of all types of resource datas
For (500-300)/700 × 100% ≈ 29%.It, can be by video class number of resources that specific gravity holds pride of place according to above-mentioned calculated result
According to being determined as alternative resource data;Or assume that preset second threshold is 20%, then video class resource data and game can be mended
Class D resource data is determined as alternative resource data.
Further, server 200 can add monitoring mark for determining alternative resource data, or obtain the standby of determination
Select the identification information of resource data, and monitoring list generated according to the identification information, so as in peak period to the alternative resource
The variation of the download time of data is monitored.It is to be appreciated that server 200 can empty this at the end of preset first duration
The monitoring mark is cancelled in monitoring list, or before determining that the operation of peak period and alternative resource data execute next time clearly
The monitoring mark is cancelled in the empty monitoring list, or in the operation execution for determining peak period and alternative resource data next time
After update the monitoring list or update the monitoring mark.
Step S203 judges whether the alternative resource data are seed data;
Seed data refers to the resource data transmitted according to BitTorrent agreement.BitTorrent abbreviation BT is one
File distributing agreement, is commonly called as bit-torrent, it identifies content by URL and combines with network seamless, the downloading of a file
Persons are also constantly uploading mutually data while downloading, prop up file source in the case where increasing very limited load
It holds a large amount of downloading persons while downloading.
If the alternative resource data are not seed datas, S204 is thened follow the steps: when detecting that the peak period starts,
Exponential increase variation of the download time of the real-time monitoring alternative resource data in preset second duration;
When detecting that system time reached at the beginning of the peak period, the peak period, server are determined
The download time of the alternative resource data of non-seed data in all alternative resource data of 200 real-time monitorings is at preset second
Exponential increase variation in length, and exponential increase variation is analyzed.
Step S205: when the exponential increase changes the download time for showing the alternative resource data in preset second duration
When interior ascendant trend and preset trend match, which is determined as target resource data;
It is to be appreciated that the resource data as bandwidth consumption rich and influential family is in bandwidth consumption peak period, the downloading time of beginning
Number has the rising of an index.The especially patch data of game data or microsoft operation system.200 pairs of realities of server
When download time in preset second duration of the alternative resource data that monitor dynamic change analyzed, when discovery has
When the dynamic changes of download time meet the embryonic character of preset exponential increase, corresponding alternative resource data are determined
For target resource data.For citing 3, it is assumed that a length of 15 minutes when preset second, the embryonic character of preset exponential increase is
Every 5 minutes, download time increased by 1 times, and the game data A for being counted alternately one of resource data starts in peak period
5 minutes, 100 downloadings occur, occur 200 downloadings at the 10th minute, 400 downloadings occur for the 15th minute when, as a result, may be used
The index ascendant trend and preset trend for determining download time of the game data A in 15 minutes match, and game data A is
Target resource data.
If the alternative resource data are seed datas, S206 is thened follow the steps: real when detecting that the peak period starts
When monitor download time of the alternative resource data in preset third duration, by the download time in the preset third duration
Alternative resource data more than or equal to preset third threshold value are ranked up according to sequence from big to small, will be in ranking results
The alternative resource data of the preset a position of third are determined as the target resource data before coming;
When detecting that system time reached at the beginning of the peak period, the peak period, server are determined
The downloading in preset third duration time of the alternative resource data of seed data in all alternative resource data of 200 real-time monitorings
Number, and it is for statistical analysis to its.The download time in all alternative resource data in the preset third duration is obtained to be greater than
Or the alternative resource data equal to preset third threshold value, the alternative resource data that will acquire according to download time from big to small
Sequence be ranked up, according to ranking results, the alternative resource data of the preset a position of third are determined as the target before coming
Resource data.For citing 4, it is assumed that preset third threshold value is 1000 times, and when preset third is 10 minutes a length of, third preset
Position is first 3, and alternative resource data are video class resource data 1,2,3,4,5, if 10 minutes after peak period starts
The download time of interior video data 1,2,3,4,5 is respectively 10000 times, 1000 times, 800 times, 20000 times, 3000 times, obtains 10
Download time in minute is greater than or equal to 1000 video datas, and is arranged according to the sequence of download time from big to small
Sequence, acquisition ranking results are video data 1,4,5,2, then can determine that coming preceding 3 video datas 1,4,5 is target resource
Data.
Step S207, for the corresponding restriction factor of target resource data configuration, wherein the variation is bigger, corresponding limitation
The value of the factor is bigger, and the speed limit value for allowing to download is smaller;
It is to be appreciated that for non-seed data, during real-time monitoring, the downloading time of monitored alternative resource data
Exponential increase variation of the number in preset second duration is bigger, that is, the exponential growth rate of the download time is bigger, corresponding limitation
The value of the factor is bigger, and the speed limit value for allowing to download is smaller, and the speed of download of permission is slower.
For seed data, during real-time monitoring, under monitored alternative resource data are in preset third duration
Load number is more, and the value of corresponding restriction factor is bigger, and the speed limit value for allowing to download is smaller, and the speed of download of permission is got over
Slowly.
Like this, the tool of the incipient stage of the peak period according to the download time of each target resource data in bandwidth consumption
Body situation of change is the corresponding restriction factor of each target resource data configuration, and targetedly according to different restriction factors
Its speed of download is limited, may make bandwidth consumption management with more flexibility, more efficiently.
Step S208 obtains the identification information of the target resource data, according to the identification information and the restriction factor, generates
Bandwidth consumption management list, and according to the bandwidth consumption management list, the bandwidth consumption of the target resource data is managed;
The identification information of target resource data may include: the title of the target resource data, store path etc..
May include in the bandwidth consumption management list: the identification information of target resource data, corresponding restriction factor, with
And the corresponding relationship of the identification information and the restriction factor.Further, restriction factor and downloading are also preset in server 200
The correspondence table of the upper limit value of speed.When receiving the request of acquisition target resource data of the transmission of client 100, server
200 obtain corresponding according to the identification informations of the target resource data for including in the request, inquiry bandwidth consumption management list
Restriction factor inquires the upper limit value that corresponding table obtains corresponding speed of download according to the restriction factor, then to be not higher than the limit
The target resource data are sent to client 100 by the transmission speed of upper limit value.Alternatively, server 200 can return to the mesh
While marking resource data, the upper limit value of the corresponding speed of download of the restriction factor is handed down to client 100, indicates client
100 download the target resource data with the speed not higher than the upper limit value, are carried out with the bandwidth consumption to the target resource data
Management.
Step S209 empties the bandwidth consumption management list at the end of detecting the peak period.
When detecting that system time reaches the finish time of the peak period, determines that the peak period terminates, empty band
Content in width consumption management list, stops the bandwidth consumption management to target resource data.Further, alternative resource is deleted
The monitoring mark of data, or the content in monitoring list is emptied, to be done for the bandwidth consumption management of next round peak period
Prepare.
Bandwidth consumption management method provided in an embodiment of the present invention, when detecting that peak period starts, real-time monitoring institute
The alternative resource data that the variation meets preset determining member are determined as target by the variation for stating the download time of alternative resource data
Resource data, and be the corresponding restriction factor of target resource data configuration, obtain the identification information of the target resource data, root
According to the identification information and the restriction factor, bandwidth consumption management list is generated, and according to the bandwidth consumption management list, to the mesh
Mark resource data bandwidth consumption be managed, by thus according to resource data in peak period after a period of time in
The dynamic change of download time has carried out needle to different limitation objects according to different restriction factors to determine management object
To the rate limitation of property, thus compared to the prior art in will test the excessively high user of time point speed of download as limitation object
For, it can be more accurately located out the object for really needing management, there is higher flexibility, foresight and timeliness, it can
The bandwidth pressure of server is effectively reduced, improves the efficiency of bandwidth consumption management.
3rd embodiment
Fig. 6 is the structural schematic diagram for the bandwidth consumption managing device that third embodiment of the invention provides.The present embodiment provides
Bandwidth consumption managing device can run in server 200 shown in FIG. 1, for realizing the bandwidth consumption in above-described embodiment
Management method.As shown in fig. 6, bandwidth consumption managing device 30 includes:
Monitoring modular 31, for when detecting that peak period starts, the download time of real-time monitoring alternative resource data
Variation;
First determining module 32, the variation for monitoring monitoring modular 31 meet the alternative money of preset determining condition
Source data is determined as target resource data;
Configuration module 33, the corresponding limitation of target resource data configuration for being determined for the first determining module 32 because
Son, wherein the variation is bigger, and the value of the corresponding restriction factor is bigger, and the speed limit value for allowing to download is smaller;
Management module 34, the restriction factor for being configured according to configuration module 33, determines the first determining module 32
The bandwidth consumptions of the target resource data be managed.
The present embodiment refers to the detailed process of the respective function of each Implement of Function Module of bandwidth consumption managing device 30
Particular content described in above-mentioned Fig. 1 to embodiment illustrated in fig. 5, details are not described herein again.
Bandwidth consumption managing device provided in an embodiment of the present invention, when detecting that peak period starts, real-time monitoring institute
The alternative resource data that the variation meets preset determining member are determined as target by the variation for stating the download time of alternative resource data
Resource data, and be the corresponding restriction factor of target resource data configuration, obtain the identification information of the target resource data, root
According to the identification information and the restriction factor, bandwidth consumption management list is generated, and according to the bandwidth consumption management list, to the mesh
Mark resource data bandwidth consumption be managed, by thus according to resource data in peak period after a period of time in
The dynamic change of download time has carried out needle to different limitation objects according to different restriction factors to determine management object
To the rate limitation of property, thus compared to the prior art in will test the excessively high user of time point speed of download as limitation object
For, it can be more accurately located out the object for really needing management, there is higher flexibility, foresight and timeliness, it can
The bandwidth pressure of server is effectively reduced, improves the efficiency of bandwidth consumption management.
Fourth embodiment
Fig. 7 is the structural schematic diagram for the bandwidth consumption managing device that fourth embodiment of the invention provides.The present embodiment provides
Bandwidth consumption managing device can run in server 200 shown in FIG. 1, for realizing the bandwidth consumption in above-described embodiment
Management method.As shown in fig. 7, bandwidth consumption managing device 40 includes:
Monitoring modular 31, for when detecting that peak period starts, the download time of real-time monitoring alternative resource data
Variation;
First determining module 32, the variation for monitoring monitoring modular 31 meet the alternative money of preset determining condition
Source data is determined as target resource data;
Configuration module 33, the corresponding limitation of target resource data configuration for being determined for the first determining module 32 because
Son, wherein the variation is bigger, and the value of the corresponding restriction factor is bigger, and the speed limit value for allowing to download is smaller;
Management module 34, the restriction factor for being configured according to configuration module 33, determines the first determining module 32
The bandwidth consumptions of the target resource data be managed.
Preferably, bandwidth consumption managing device 40 further include:
Module 41 is obtained, for obtaining each preset time point generation in preset first duration of all kinds of resource datas respectively
Download time;
Statistical module 42, for counting all kinds of resource datas of acquisition at preset first according to preset statistical rules
The download time that each preset time point occurs in long;
Second determining module 43, when for determining peak of bandwidth consumption in preset first duration according to statistical result
Section;
Second determining module 43 is also used to that one kind or multiclass number of resources of preset screening conditions will be met in the statistical result
According to being determined as alternative resource data.
Preferably, statistical module 42 are also used to be occurred according to all kinds of resource datas obtained respectively in each preset time point
Download time, calculate separately the download time and all categories that all kinds of resource datas occurred in the respectively preset time period
The downloading total degree that occurs in the respectively preset time period of resource data.
Preferably, the second determining module 43 includes:
Sequencing unit 431, for the downloading total degree to be ranked up according to sequence from big to small;
Determination unit 432, for according to ranking results that the downloading total degree for coming preceding first preset a position is corresponding
Period is determined as the peak period of bandwidth consumption in preset first duration;
Determination unit 432, the period for being also used to for the downloading total degree being greater than or equal to preset first threshold are determined as
The peak period of bandwidth consumption in preset first duration;
Computing unit 433, for calculating the download time of the peak period all kinds of resource datas generations in all classes
Shared specific gravity in the downloading total degree of the resource data of type;
Sequencing unit 431 is also used to for calculated result being ranked up according to the sequence of the specific gravity from big to small;
Determination unit 432 is also used to one kind of second preset a position preceding in ranking results or multiclass resource data is true
It is set to alternative resource data;
Determination unit 432 is also used to for the specific gravity being greater than or equal to one kind or multiclass resource data of preset second threshold
It is determined as alternative resource data.
Preferably, the first determining module 32 includes:
Judging unit 321, for judging whether the alternative resource data are seed data;
Monitoring unit 322, if the judging result for the judging unit be it is no, when detecting that the peak period starts
When, exponential increase variation of the download time of the real-time monitoring alternative resource data in preset second duration;
Determination unit 323, for showing that the download time of the alternative resource data is preset at this when exponential increase variation
When ascendant trend and preset trend in second duration match, which is determined as target resource data;
Monitoring unit 322, if the judging result for being also used to the judging unit be it is yes, when detecting that the peak period starts
When, download time of the real-time monitoring alternative resource data in preset third duration;
Sequencing unit 324, for the download time in the preset third duration to be greater than or equal to preset third threshold
The alternative resource data of value are ranked up according to sequence from big to small;
Determination unit 323, the alternative resource data of the preset a position of third determine before being also used to come in ranking results
For the target resource data.
Preferably, bandwidth consumption managing device 40 further include:
Module 44 is emptied, for emptying the bandwidth consumption management list at the end of detecting the peak period.
Preferably, management module 34 includes:
Acquiring unit 341, for obtaining the identification information of the target resource data;
Generation unit 342, for generating bandwidth consumption management list according to the identification information and the restriction factor;
Administrative unit 343, for being carried out to the bandwidth consumption of the target resource data according to the bandwidth consumption management list
Management.
The present embodiment refers to the detailed process of the respective function of each Implement of Function Module of bandwidth consumption managing device 40
Particular content described in above-mentioned Fig. 1 to embodiment illustrated in fig. 5, details are not described herein again.
Bandwidth consumption managing device provided in an embodiment of the present invention, when detecting that peak period starts, real-time monitoring institute
The alternative resource data that the variation meets preset determining member are determined as target by the variation for stating the download time of alternative resource data
Resource data, and be the corresponding restriction factor of target resource data configuration, obtain the identification information of the target resource data, root
According to the identification information and the restriction factor, bandwidth consumption management list is generated, and according to the bandwidth consumption management list, to the mesh
Mark resource data bandwidth consumption be managed, by thus according to resource data in peak period after a period of time in
The dynamic change of download time has carried out needle to different limitation objects according to different restriction factors to determine management object
To the rate limitation of property, thus compared to the prior art in will test the excessively high user of time point speed of download as limitation object
For, it can be more accurately located out the object for really needing management, there is higher flexibility, foresight and timeliness, it can
The bandwidth pressure of server is effectively reduced, improves the efficiency of bandwidth consumption management.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that process, method, article or device including a series of elements are not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or device
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or device including the element.
It will be appreciated by those skilled in the art that realizing that all or part of the steps of above-described embodiment can be by hardware come complete
At relevant hardware can also being instructed to complete by program, the program can store in a kind of computer-readable storage
In medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The above described is only a preferred embodiment of the present invention, be not intended to limit the present invention in any form, though
So the present invention has been disclosed as a preferred embodiment, and however, it is not intended to limit the invention, any technology people for being familiar with this profession
Member, without departing from the scope of the present invention, when the technology contents using the disclosure above are modified or are modified
It is right according to the technical essence of the invention for the equivalent embodiment of equivalent variations, but without departing from the technical solutions of the present invention
Any simple modification, equivalent change and modification made by above embodiments, all of which are still within the scope of the technical scheme of the invention.
Claims (15)
1. a kind of bandwidth consumption management method characterized by comprising
When detecting that peak period starts, if alternative resource data are not seed datas, alternatively provided described in real-time monitoring
Exponential increase variation of the download time of source data in preset second duration;
When exponential increase variation shows that the download time of the alternative resource data is upper in preset second duration
When the trend of liter and preset trend match, the alternative resource data are determined as target resource data;
For the corresponding restriction factor of the target resource data configuration, wherein bigger, the corresponding restriction factor of the variation
Value it is bigger, allow download speed limit value it is smaller;
According to the restriction factor, the bandwidth consumption of the target resource data is managed.
2. the method according to claim 1, wherein described when detecting that peak period starts, real-time monitoring
Before the variation of the download time of the alternative resource data, further includes:
All kinds of resource datas download time that each preset time point occurs in preset first duration is obtained respectively;
According to preset statistical rules, all kinds of resource datas each preset time point generation in preset first duration of acquisition is counted
Download time;
The peak period of bandwidth consumption in preset first duration is determined according to statistical result;
The one kind for meeting preset screening conditions in the statistical result or multiclass resource data are determined as alternative resource data.
3. according to the method described in claim 2, it is characterized in that, described according to preset statistical rules, count and get
Download time includes:
According to the download time that all kinds of resource datas obtained respectively occur in each preset time point, all kinds of moneys are calculated separately
Source data is in the download time of each preset time period generation and the resource data of all categories in each preset time
The downloading total degree of Duan Fasheng.
4. according to the method described in claim 3, it is characterized in that, described determine preset first duration according to statistical result
The peak period of interior bandwidth consumption includes:
The downloading total degree is ranked up according to sequence from big to small, preceding first preset will be come according to ranking results
The downloading total degree corresponding period of position is determined as the peak period of bandwidth consumption in preset first duration;Or
The period that the downloading total degree is greater than or equal to preset first threshold is determined as band in preset first duration
The peak period of width consumption.
5. according to the method described in claim 3, it is characterized in that, described will meet preset screening conditions in the statistical result
One kind or multiclass resource data be determined as alternative resource data and include:
The download time of all kinds of resource datas generations described in the peak period is calculated in all types of resource datas
Download specific gravity shared in total degree;
Calculated result is ranked up according to the sequence of the specific gravity from big to small;
One kind of second preset a position preceding in ranking results or multiclass resource data are determined as alternative resource data;Or
The specific gravity is greater than or equal to one kind of preset second threshold or multiclass resource data is determined as alternative resource data.
6. the method according to claim 1, wherein the method also includes:
If the alternative resource data are seed datas, when detecting that the peak period starts, described in real-time monitoring
Download time of the alternative resource data in preset third duration, the download time in the preset third duration is greater than or
Alternative resource data equal to preset third threshold value are ranked up according to sequence from big to small, before coming in ranking results
The alternative resource data of the preset a position of third are determined as the target resource data.
7. the method according to claim 1, wherein the method also includes:
At the end of detecting the peak period, the bandwidth consumption management list is emptied.
8. the method according to claim 1, wherein described according to the restriction factor, to the target resource
The bandwidth consumption of data, which is managed, includes:
The identification information for obtaining the target resource data generates bandwidth and disappears according to the identification information and the restriction factor
Management list is consumed, and according to the bandwidth consumption management list, the bandwidth consumption of the target resource data is managed.
9. a kind of bandwidth consumption managing device characterized by comprising
Monitoring modular, for when detecting that peak period starts, the variation of the download time of real-time monitoring alternative resource data;
First determining module includes: monitoring unit, if not being seed data for alternative resource data, described in real-time monitoring
Exponential increase variation of the download time of alternative resource data in preset second duration;Determination unit, for working as the index
Increase variation and shows ascendant trend of the download time of the alternative resource data in preset second duration and preset
When trend matches, the alternative resource data are determined as target resource data;
Configuration module, the corresponding limitation of the target resource data configuration for being determined for first determining module because
Son, wherein the variation is bigger, the value of the corresponding restriction factor is bigger, and the speed limit value for allowing to download is smaller;
Management module, the restriction factor for being configured according to the configuration module, determines first determining module
The bandwidth consumptions of the target resource data be managed.
10. device according to claim 9, which is characterized in that described device further include:
Module is obtained, for obtaining the downloading that each preset time point occurs in preset first duration time of all kinds of resource datas respectively
Number;
Statistical module, for according to preset statistical rules, all kinds of resource datas for counting acquisition to be each in preset first duration
The download time that preset time point occurs;
Second determining module, when for determining the peak of bandwidth consumption in preset first duration according to statistical result
Section;
Second determining module is also used to that one kind or multiclass number of resources of preset screening conditions will be met in the statistical result
According to being determined as alternative resource data.
11. device according to claim 10, which is characterized in that
The statistical module is also used to the downloading time occurred according to all kinds of resource datas obtained respectively in each preset time point
Number calculates separately all kinds of resource datas in the download time of each preset time period generation and the money of all categories
The downloading total degree that source data occurs in each preset time period.
12. device according to claim 11, which is characterized in that second determining module includes:
Sequencing unit, for the downloading total degree to be ranked up according to sequence from big to small;
Determination unit, for according to ranking results that the downloading total degree corresponding period for coming preceding first preset a position is true
It is set to the peak period of bandwidth consumption in preset first duration;
The determination unit is also used to the period that the downloading total degree is greater than or equal to preset first threshold being determined as institute
State the peak period of bandwidth consumption in preset first duration;
Computing unit, for calculating the download time of all kinds of resource datas generations described in the peak period in all types
Resource data downloading total degree in shared specific gravity;
The sequencing unit is also used to for calculated result being ranked up according to the sequence of the specific gravity from big to small;
The determination unit is also used to for one kind of second preset a position preceding in ranking results or multiclass resource data being determined as
Alternative resource data;
The determination unit, one kind or the multiclass resource data for being also used to for the specific gravity being greater than or equal to preset second threshold are true
It is set to alternative resource data.
13. device according to claim 9, which is characterized in that
The monitoring unit, if being also used to the alternative resource data is seed data, when detecting the peak period
When beginning, download time of the alternative resource data described in real-time monitoring in preset third duration;
Sequencing unit, for the download time in the preset third duration to be greater than or equal to the standby of preset third threshold value
Resource data is selected to be ranked up according to sequence from big to small;
The determination unit, the alternative resource data of the preset a position of third are determined as institute before being also used to come in ranking results
State target resource data.
14. device according to claim 9, which is characterized in that described device further include:
Module is emptied, for emptying the bandwidth consumption management list at the end of detecting the peak period.
15. device according to claim 9, which is characterized in that the management module includes:
Acquiring unit, for obtaining the identification information of the target resource data;
Generation unit, for generating bandwidth consumption management list according to the identification information and the restriction factor;
Administrative unit, for carrying out pipe to the bandwidth consumption of the target resource data according to the bandwidth consumption management list
Reason.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410562217.1A CN105591980B (en) | 2014-10-21 | 2014-10-21 | A kind of bandwidth consumption management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410562217.1A CN105591980B (en) | 2014-10-21 | 2014-10-21 | A kind of bandwidth consumption management method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105591980A CN105591980A (en) | 2016-05-18 |
CN105591980B true CN105591980B (en) | 2019-08-13 |
Family
ID=55931208
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410562217.1A Active CN105591980B (en) | 2014-10-21 | 2014-10-21 | A kind of bandwidth consumption management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105591980B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109600437B (en) * | 2018-12-11 | 2021-11-16 | 网宿科技股份有限公司 | Downloading method of streaming media resource and cache server |
CN111756648B (en) * | 2019-03-27 | 2023-01-17 | 百度在线网络技术(北京)有限公司 | Flow congestion control method, device, equipment and medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102164157A (en) * | 2010-02-24 | 2011-08-24 | 腾讯科技(深圳)有限公司 | Downloading speed limiting method and system |
CN103312824A (en) * | 2013-07-10 | 2013-09-18 | 亿览在线网络技术(北京)有限公司 | Peer-to-peer (P2P) network intelligent speed governing method, device and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101434568B1 (en) * | 2007-02-02 | 2014-08-27 | 삼성전자 주식회사 | Method and apparatus for sharing contents |
-
2014
- 2014-10-21 CN CN201410562217.1A patent/CN105591980B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102164157A (en) * | 2010-02-24 | 2011-08-24 | 腾讯科技(深圳)有限公司 | Downloading speed limiting method and system |
CN103312824A (en) * | 2013-07-10 | 2013-09-18 | 亿览在线网络技术(北京)有限公司 | Peer-to-peer (P2P) network intelligent speed governing method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN105591980A (en) | 2016-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105281981B (en) | The data traffic monitoring method and device of network service | |
CN108776934B (en) | Distributed data calculation method and device, computer equipment and readable storage medium | |
CN112165691B (en) | Content delivery network scheduling method, device, server and medium | |
CN109246229A (en) | A kind of method and apparatus of distribution resource acquisition request | |
CN106296142B (en) | Method and system for selecting multiple payment channels | |
CN109343965A (en) | Resource adjusting method, device, cloud platform and server | |
WO2016119412A1 (en) | Resource scaling method on cloud platform and cloud platform | |
CN110474852B (en) | Bandwidth scheduling method and device | |
CN109597685A (en) | Method for allocating tasks, device and server | |
CN109634915A (en) | File dispositions method, Cloud Server, system and storage medium | |
CN109981744B (en) | Data distribution method and device, storage medium and electronic equipment | |
CN109327540A (en) | Electronic device, server load balancing method and storage medium | |
CN106487928A (en) | Information push method and device | |
CN111970132B (en) | Control method, device and server for OTA data packet issuing flow | |
CN103067297A (en) | Dynamic load balancing method and device based on resource consumption prediction | |
KR20130017234A (en) | Method of updating software list on software as a service and system for the same | |
CN105763595A (en) | Method of improving data processing efficiency and server | |
CN108307337A (en) | Flux monitoring method, system and the storage device of vehicle mounted guidance terminal | |
CN110336888B (en) | Server distribution method, device, system and medium | |
CN103607731B (en) | A kind of processing method and processing device of measurement report | |
CN105591980B (en) | A kind of bandwidth consumption management method and device | |
CN106055598B (en) | Information display method and device | |
CN104462116B (en) | Data selection method and device | |
US20130117275A1 (en) | Index monitoring system, index monitoring method and program | |
CN108093428B (en) | Server for authenticating real traffic |
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 |