CN106534231A - Method, device and system for controlling use limit of network resources - Google Patents
Method, device and system for controlling use limit of network resources Download PDFInfo
- Publication number
- CN106534231A CN106534231A CN201510571666.7A CN201510571666A CN106534231A CN 106534231 A CN106534231 A CN 106534231A CN 201510571666 A CN201510571666 A CN 201510571666A CN 106534231 A CN106534231 A CN 106534231A
- Authority
- CN
- China
- Prior art keywords
- client
- internet resources
- limit
- dynamic
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 77
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 claims description 25
- 230000005540 biological transmission Effects 0.000 claims description 20
- 230000008569 process Effects 0.000 description 13
- 230000000694 effects Effects 0.000 description 11
- 230000004044 response Effects 0.000 description 9
- 238000012856 packing Methods 0.000 description 8
- 238000003860 storage Methods 0.000 description 5
- 239000002699 waste material Substances 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000000205 computational method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000005192 partition Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000004931 aggregating effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 230000007717 exclusion Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/82—Miscellaneous aspects
- H04L47/826—Involving periods of time
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The application discloses a method, device and system for controlling a use limit of network resources. A client counts a use limit of network resources used in current interval time t; when the current interval time t is ended, information of the use limit of the network resources used by the client in the current interval time t is sent to a server; then the server determines a first dynamic use limit of the network resources used by the client at current time, and if the use limit of the network resources used by the client in the current interval time t is determined to be greater than the first dynamic use limit, a forbidden duration of the network resources is sent to the client; and the client receives the forbidden duration of the network resources, which is sent by the server, and according to the forbidden duration, from a moment when the forbidden duration is received, use of the network resources is forbidden in the forbidden duration. Inaccuracy of limit control of the network resources, which is caused by time asynchrony of the client and the server can be prevented.
Description
Technical field
The application belongs to Internet technical field, specifically, is related to a kind of use limit of Internet resources
Control method, apparatus and system.
Background technology
In distributed system or multi-user system, it is allowed to which multiple client is used in conjunction with network system resources,
Including the internal memory of system, CPU and hard disk.In default situations, system is not limiting upon each client
The size of the system resource that can be used, if so client malice uses system resource, or client
Due to carelessness, system resource is all taken, other clients will be caused to use system resource, from
And decline systematic function, or even there is the danger of system crash.
In order to limit the use of network system resources, so as to effectively realize resource reservation and metering and billing,
Limit service can generally be started carries out the control of network system resources limit.It is in prior art, generally right
The limit of network system resources, for example can be using quota orders using control method locally or globally
Check the Current resource service condition of each user equipment.
Inventor discovery, the limit in prior art to network system resources during the present invention is realized
There is a problem of that control is inaccurate using control method locally or globally.
The content of the invention
In view of this, the application provides a kind of control method of the use limit of Internet resources, device and is
System, can solve the problems, such as that the control method of existing Internet resources limit has control inaccurate.
In order to solve above-mentioned technical problem, the application first aspect provides a kind of use limit of Internet resources
Control method, including:
The use amount of Internet resources is used in client statistics present interval time t;
The client is at the end of present interval time t to the server transmission client between currently
The information of the use amount of Internet resources is used in time t;So that the server determines current time
The client uses limit using the first dynamic of Internet resources, however, it is determined that the client is between currently
Limit is used using the use amount of Internet resources more than first dynamic in time t, then to described
Client sends the disabling duration of the Internet resources;
The client receives the disabling duration of the Internet resources that the server sends, according to described
Disabling duration, from the moment for receiving the disabling duration, prohibits the use of institute in the disabling duration
State Internet resources.
Alternatively, in client statistics present interval time t using Internet resources use amount it
Afterwards, also include:
The client at the end of present interval time t sends the client to the server and uses
Second dynamic of Internet resources uses limit, and second dynamic is the server upper one using limit
The client calculated at the end of minor tick time t uses limit using the dynamic of Internet resources;So that
The server is it is determined that second dynamic is inconsistent using limit with the described first dynamic using limit
When, first dynamic is sent to the client use limit;
The client uses limit according to first dynamic that the server sends, by the client
End is updated to first dynamic using the second dynamic of Internet resources using limit and uses limit.
Alternatively, in client statistics present interval time t using Internet resources use amount it
Afterwards, also include:
At the end of present interval time t, the client will be arranged using the use amount of Internet resources
It is zero.
Alternatively, the client receives the disabling duration of the Internet resources that the server sends
Afterwards, also include:
The disabling duration of the Internet resources that the client is sent according to the server, will receive
The set of time of the disabling duration be prohibit the use of the Internet resources forbid initial time, will be described
The set of time that initial time starts at the end of the disabling duration is forbidden to be to prohibit the use of the network money
The end time is forbidden in source.
Alternatively, described method also includes:
The client in upper once t interval time using the Internet resources when, however, it is determined that when current
Between the Internet resources forbid the end time after, then using the Internet resources, and count use
The use amount of the Internet resources;If it is determined that current time forbids the end time in the Internet resources
Before, then the Internet resources are prohibitted the use of.
The embodiment of the present invention also provides a kind of control method of the use limit of Internet resources, including:
Server receives the client of client transmission and uses Internet resources in present interval time t
Use amount information;
The server determines that client described in current time uses the first dynamic of Internet resources using limit
Volume;
If it is determined that the client is more than institute using the use amount of Internet resources in present interval time t
State the first dynamic and use limit, then send the disabling duration of the Internet resources to the client;So that
The disabling duration of the Internet resources that the client is sent according to the server, from the reception taboo
With the moment of duration, the Internet resources are prohibitted the use of in the disabling duration.
Alternatively, the server determines that client described in current time uses the first dynamic of Internet resources
Using limit, including:
The use institute that the client and other clients that the server is received according to current time sends
The information of the use amount of Internet resources is stated, the client and described other visitors in described information, are carried
The identification information at family end, determines the client terminal quantity of the currently used Internet resources;
The server according to the default default limit using the Internet resources of the client, and
The client terminal quantity of the currently used Internet resources, determines that client is provided using network described in current time
First dynamic in source uses limit.
Alternatively, the server is limited according to the default acquiescence using the Internet resources of the client
Volume, and the client terminal quantity of the currently used Internet resources, determine that client makes described in current time
Limit is used with the first dynamic of Internet resources, including:
According to computing formula:Determine current time institute
State client limit is used using the first dynamic of Internet resources;
Wherein, DefaultQuota represents that the default acquiescence using the Internet resources of the client is limited
Volume, aliveAgentCount represent the client terminal quantity of the currently used Internet resources, ImpactFactor
It is default constant.
Alternatively, the client that server reception client sends is used in present interval time t
After the information of the use amount of Internet resources, then methods described also includes:
The server receives the client and sends to the server at the end of present interval time t
The client use the limit, second dynamic using limit to be using the second dynamic of Internet resources
The client that the server is calculated at the end of upper once t interval time is using the dynamic of Internet resources
State uses limit;
The server is it is determined that second dynamic is differed using limit with first dynamic using limit
During cause, first dynamic is sent to the client and use limit;So that the client is according to described
First dynamic that server sends uses limit, and the client is moved using the second of Internet resources
State is updated to first dynamic using limit and uses limit.
The embodiment of the present invention also provides a kind of control device of the use limit of Internet resources, positioned at client,
Including:
Statistical module, for counting the use amount for using Internet resources in present interval time t;
Sending module, is working as sending the client to server at the end of present interval time t
The information of the use amount of Internet resources is used in space before time t;So that the server determines currently
Client described in time uses limit using the first dynamic of Internet resources, however, it is determined that the client is being worked as
Limit is used using the use amount of Internet resources more than first dynamic in space before time t, then to
The client sends the disabling duration of the Internet resources;
Receiver module, for receiving the disabling duration of the Internet resources that the server sends;
Disabled module, for according to the disabling duration, from the moment for receiving the disabling duration,
The Internet resources are prohibitted the use of in the disabling duration.
Alternatively, the sending module, is additionally operable at the end of present interval time t to the server
Sending the client uses limit, second dynamic to use limit using the second dynamic of Internet resources
Internet resources are used for the client that the server is calculated at the end of upper once t interval time
Dynamic uses limit;So that the server is it is determined that second dynamic is dynamic with described first using limit
When state uses limit inconsistent, first dynamic is sent to the client and use limit;
The receiver module, first dynamic for being additionally operable to the reception server transmission use limit;
Described device also includes:
Update module, first dynamic for being received according to the receiver module use limit, by institute
Stating client and first dynamic being updated to using the second dynamic of Internet resources using limit use limit.
Alternatively, described device also includes:
Setup module, at the end of present interval time t, by the use amount using Internet resources
It is set to zero.
Alternatively, the disabled module, specifically for the Internet resources sent according to the server
Disabling duration, will receive it is described disabling duration set of time be to prohibit the use of the Internet resources
Forbid initial time, forbid initial time to start the set of time at the end of the disabling duration by described
Forbid the end time for prohibit the use of the Internet resources.
Alternatively, described device also includes:
Judge module, during in upper once t interval time using the Internet resources, however, it is determined that when
The front time the Internet resources forbid the end time after, then using the Internet resources, and count
Using the use amount of the Internet resources;If it is determined that current time the Internet resources forbid terminate
Before time, then the Internet resources are prohibitted the use of.
The embodiment of the present invention also provides a kind of control device of the use limit of Internet resources, positioned at server,
Including:
Receiver module, uses in present interval time t for receiving the client of client transmission
The information of the use amount of Internet resources;
Determining module, for determining that client described in current time uses the first dynamic of Internet resources to use
Limit;
Judge module, for determining the client making using Internet resources in the present interval time t
Whether limit is used more than first dynamic with amount;
In the judge module, sending module, for determining that the client is made in present interval time t
When limit is used with the use amount of Internet resources more than the described first dynamic, send institute to the client
State the disabling duration of Internet resources;So that the network money that the client is sent according to the server
The disabling duration in source, from the moment for receiving the disabling duration, forbids making in the disabling duration
Use the Internet resources.
Alternatively, the determining module specifically for:
The use Internet resources that the client and other clients received according to current time sends
Use amount information, carry the mark of the client and other clients in described information
Information, determines the client terminal quantity of the currently used Internet resources;
According to the default default limit using the Internet resources of the client, and currently used institute
The client terminal quantity of Internet resources is stated, determines that client described in current time uses the first of Internet resources to move
State uses limit.
Alternatively, the determining module specifically for:
According to computing formula:Determine current time institute
State client limit is used using the first dynamic of Internet resources;
Wherein, DefaultQuota represents that the default acquiescence using the Internet resources of the client is limited
Volume, aliveAgentCount represent the client terminal quantity of the currently used Internet resources, ImpactFactor
It is default constant.
Alternatively, the receiver module, is additionally operable to receive the client and terminates in present interval time t
When to the server send the client use limit using the second dynamic of Internet resources, it is described
Second dynamic is using the client that limit is that the server is calculated at the end of upper once t interval time
End uses limit using the dynamic of Internet resources;
The judge module, is additionally operable to determine that second dynamic uses limit to use with the described first dynamic
Whether limit is consistent;
The sending module, is additionally operable to determine that second dynamic uses limit and institute in the judge module
When stating the first dynamic and using limit inconsistent, first dynamic is sent to the client and use limit;
So that the client uses limit according to first dynamic that the server sends, by the client
End is updated to first dynamic using the second dynamic of Internet resources using limit and uses limit.
The embodiment of the present invention also provides a kind of control system of the use limit of Internet resources, including:Client
End and server;
The client includes the control device of the use limit of above-mentioned Internet resources;
The server includes the control device of the use limit of above-mentioned Internet resources.
Due to time window size w of the control to Internet resources limit of embodiment of the present invention server it is remote
The interval time that the service condition using Internet resources is counted much larger than client is t so that client is given tacit consent to
The time window that the data that report comes up all fall in server currently to the control of Internet resources limit, and this
Inventive embodiments are used from the moment of the client reception disabling duration and are started in the disabling duration
The Internet resources are inside prohibitted the use of, rather than disables the time conduct of order according to server down distributing resource
The reference of the Internet resources is prohibitted the use of, therefore, even if in client and server time irreversibility
When, it is also possible to effectively the limit of Internet resources is accurately controlled;Therefore client can be prevented
Caused by end and server time irreversibility, the limit control of Internet resources is inaccurate.
Further, in the embodiment of the present invention, server is made in the Internet resources for receiving client report
During with the information of amount, determine that client described in current time uses the first dynamic of Internet resources using limit
Then client, is used limit using the use amount of Internet resources with current the first dynamic for determining by volume
Volume is compared, it is determined that the client uses the use volume of Internet resources in present interval time t
When degree uses limit more than the described first dynamic, the disabling of the Internet resources is just sent to the client
Duration.As the first dynamic is client of the server according to current all use Internet resources using limit
With the quantity of other clients (being referred to as the active client terminal quantity of currently used Internet resources),
And the default default limit using the Internet resources of the client, the client use of calculating
First dynamic of Internet resources uses limit, and first dynamic can be distributed respectively with effective and reasonable using limit
Client uses Internet resources, is not result in that Internet resources distribution inaccurately causes the waste of Internet resources to ask
Topic.
Description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes of the application
Point, the schematic description and description of the application is used for explaining the application, does not constitute to the application's
Improper restriction.In the accompanying drawings:
Fig. 1 is that a kind of flow process of the control method of the use limit of Internet resources of the embodiment of the present application is illustrated
Figure;
Fig. 2 is that a kind of flow process of the control method of the use limit of Internet resources of the embodiment of the present application is illustrated
Figure;
Fig. 3 is that a kind of flow process of the control method of the use limit of Internet resources of the embodiment of the present application is illustrated
Figure;
Fig. 4 is that a kind of flow process of the control method of the use limit of Internet resources of the embodiment of the present application is illustrated
Figure;
Fig. 5 is that a kind of flow process of the control method of the use limit of Internet resources of the embodiment of the present application is illustrated
Figure;
Fig. 6 is a kind of structural representation of the control device of the use limit of Internet resources of the embodiment of the present application
Figure;
Fig. 7 is a kind of structural representation of the control device of the use limit of Internet resources of the embodiment of the present application
Figure;
Fig. 8 is a kind of structural representation of the control system of the use limit of Internet resources of the embodiment of the present application
Figure;
Fig. 9 is a kind of electronic equipment schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Describe presently filed embodiment below in conjunction with drawings and Examples in detail, thereby to the application
How application technology means come solve technical problem and reach technology effect realize that process can fully understand simultaneously
Implement according to this.
One it is typical configure, computing device include one or more processors (CPU), input/
Output interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
And/or the form, such as read only memory (ROM) or flash memory (flash RAM) such as Nonvolatile memory (RAM).
Internal memory is the example of computer-readable medium.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by
Any method or technique is realizing information Store.Information can be computer-readable instruction, data structure, journey
The module of sequence or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its
The random access memory (RAM) of his type, read only memory (ROM), electrically erasable are only
Read memorizer (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory
(CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic
Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be counted
The information that calculation equipment is accessed.Define according to herein, computer-readable medium does not include non-temporary computer
Readable media (transitory media), the such as data signal of modulation and carrier wave.
As in description and claim some vocabulary used in censuring specific components.This area skill
Art personnel are, it is to be appreciated that hardware manufacturer may call same component with different nouns.This explanation
Book and claim not in the way of the difference of title is used as distinguishing component, but with component in function
On difference be used as distinguish criterion.Such as " the bag in description in the whole text and claim mentioned in
Containing " be an open language, therefore should be construed to " comprising but be not limited to "." substantially " refer to receivable
In range of error, those skilled in the art can solve the technical problem, base in the range of certain error
Originally reach the technique effect.Additionally, " coupling " word here includes any directly and indirectly electrical coupling
Catcher section.Therefore, if a first device is coupled to a second device described in text, represent described first
Device can directly be electrically coupled to the second device, or indirectly electric by other devices or coupling means
Property is coupled to the second device.Description subsequent descriptions are to implement the better embodiment of the application, so
The description is, for the purpose of the rule for illustrating the application, to be not limited to scope of the present application.
The protection domain of the application ought be defined depending on the defined person of claims.
Also, it should be noted that term " including ", "comprising" or its any other variant be intended to it is non-
Exclusiveness is included, so that a series of commodity or system including key elements not only include those key elements,
But also including other key elements being not expressly set out, or also include for this commodity or system institute
Intrinsic key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...",
It is not precluded from also there is other identical element in the commodity including the key element or system.
During inventor has found prior art during the present invention is realized, most of system is (as distributed
System or multi-user system) generally to Internet resources limit using control method locally or globally, wherein,
Partial controll method is exactly that, to user, each user has certainly by Internet resources limit according to certain regular partition
Oneself Resources limit.Partial controll method can be made troubles to user, because user is to resources consumption speed
Different, the resources consumption for distributing to oneself is over by some users, and some users are likely to there remains greatly
Amount resource is not consumed, and this results in the expense problem that resource allocation can inaccurately cause resource.
Global control method is usually the user configured resource SC service ceiling per minute of server maintenance, but,
Time synchronized between global control method meeting severe reliance server and client, i.e. client are reported and are arrived
The resource service condition of server can be strict with the time window of server resource statistics, otherwise
The data that report comes up can be reduced or be abandoned.Additionally, the disabling order of server down distributing resource is to take
Business device time as reference, if client and server time irreversibility also brings along Internet resources
Limit controls inaccurate problem.
It is inaccurate in order to solve the problems, such as the control of Internet resources limit present in prior art, and how
Internet resources limit is controlled in the nonsynchronous application scenarios of system time, the embodiment of the present invention is carried
For a kind of control method of the use limit of Internet resources, the method provided by the embodiment of the present invention can be answered
In for distributed system or multi-user system, wherein, each client with t interval time by various moneys
The service condition in source is packed to server and is reported, and server collects each client and reports the resource use for coming up
Situation, calculates the dynamic limit that each client uses each resource, and verifies what the client was reported
Whether the dynamic of this kind of resource for exceeding calculating uses limit to this kind of resource service condition, if it does, then
The disabling order of the resource that transfinites to this kind can be taken in the response of return, include the client in disabling order
Duration to this kind of resource disabling, after the client receives disabling order, for the resource for transfiniting, ought
The front time is plus disabling duration as the moment for disabling.
It follows that the embodiment of the present invention uses the moment for receiving disabling duration from client starting
The Internet resources are prohibitted the use of in disabling duration, rather than order is disabled according to server down distributing resource
Time as the reference for prohibitting the use of Internet resources, therefore, even if different in the client and server time
When step, it is also possible to effectively the limit of Internet resources is accurately controlled;Therefore can prevent
Caused by client and server time irreversibility, the limit control of Internet resources is inaccurate.
Further, as dynamic is that server is provided using a certain network according to currently all using limit
The quantity (being referred to as the active client terminal quantity of currently used Internet resources) of the client in source,
And the default default limit using a certain Internet resources of each client, each client of calculating
Limit is used using the dynamic of this kind of Internet resources, the dynamic can distribute each with effective and reasonable using limit
Client uses Internet resources, is not result in that Internet resources distribution inaccurately causes the waste of Internet resources to ask
Topic.
It should be noted that in the embodiment of the present invention control to Internet resources limit of server time
Window size is w, and client statistics is t using the interval time of the service condition of Internet resources, wherein,
W is far longer than t so that client acquiescence is reported the data come up and all fallen in server currently to Internet resources
The time window of the control of limit.
Fig. 1 is that a kind of flow process of the control method of the use limit of Internet resources of the embodiment of the present application is illustrated
Figure, methods described are located at client executing, as shown in figure 1, including:
101st, the use amount of Internet resources is used in client statistics present interval time t;
Specifically, in the embodiment of the present invention, for example, client needs system in each interval time in t
Count the service condition information (such as using amount) using Internet resources.And for example, terminate in present interval time t
When, the client will be set to zero using the use amount of Internet resources.
Specifically, for every kind of resource, client has the time window of a statistics, the widow time
The Internet resources consumed by the client request reached in interval can be accumulated in time window, it is assumed that when
Between window be W, in the W times, client can repeatedly to service end report Internet usage situation, converge
Report interval t is much smaller than W.
102nd, client sends the client between current to server at the end of present interval time t
The information of the use amount of Internet resources is used in time t;So that the server determines current time
The client uses limit using the first dynamic of Internet resources, however, it is determined that the client is between currently
Limit is used using the use amount of Internet resources more than first dynamic in time t, then to described
Client sends the disabling duration of the Internet resources;
Specifically, for example, be provided with packing timer in client, each interval time t terminate
When, triggering packing timer-signals, so, client will be counted in step 101 in t interval time
The information of the use amount of interior use Internet resources is packed, and wherein, carries this in the information of packing
The mark of the mark of Internet resources, client, the client using Internet resources use amount situations such as.
Accordingly, server receives the letter of the use amount of the use Internet resources of client transmission
Breath, generally, in practical application scene, while client uses the Internet resources, other clients
End can also use the Internet resources, therefore, the client that server is received according to current time with
The information of the use amount of the use Internet resources that other clients send, carries in described information
The identification information of the client and other clients, determines the visitor of the currently used Internet resources
Family end quantity;
Further, server is according to the default default limit using the Internet resources of the client,
And the client terminal quantity of the currently used Internet resources, determine that client uses net described in current time
First dynamic of network resource uses limit;Wherein, the default acquiescence using the Internet resources of client
Limit can be for example stored in data base, and client and service end can share the data base, server
The default acquiescence using the Internet resources of client can be obtained with client to limit from data base
Volume.
Further, server is it is determined that the client uses Internet resources in present interval time t
Use amount use limit more than first dynamic, then send the Internet resources to the client
Disabling duration.Wherein, server has the statistical window that one first dynamic uses limit, usually
One minute, if a certain moment in statistical window is interval, Internet usage was more than the first dynamic using limit
Volume, the request for reaching afterwards apply for that the Internet resources can be disabled, during disabling during a length of statistical window end
Quarter deducts current time.
103rd, client receives the disabling duration of the Internet resources that the server sends, according to described
Disabling duration, from the moment for receiving the disabling duration, prohibits the use of institute in the disabling duration
State Internet resources.
When implementing, for example, the network money that the client is sent according to the server
The disabling duration in source, will receive the set of time of the disabling duration for prohibitting the use of the Internet resources
Forbid initial time, by it is described forbid initial time start it is described disabling duration at the end of time set
Be set to prohibit the use of the Internet resources forbid the end time.
Further for example, when the client uses the network in upper once t interval time
During resource, however, it is determined that current time the Internet resources forbid the end time after, then using described
Internet resources, and count the use amount using the Internet resources;If it is determined that current time is in the net
Network resource forbid the end time before, then prohibit the use of the Internet resources.
Due to time window size w of the control to Internet resources limit of embodiment of the present invention server it is remote
The interval time that the service condition using Internet resources is counted much larger than client is t so that client is given tacit consent to
The time window that the data that report comes up all fall in server currently to the control of Internet resources limit, and this
Inventive embodiments are used from the moment of the client reception disabling duration and are started in the disabling duration
The Internet resources are inside prohibitted the use of, rather than disables the time conduct of order according to server down distributing resource
The reference of the Internet resources is prohibitted the use of, therefore, even if in client and server time irreversibility
When, it is also possible to effectively the limit of Internet resources is accurately controlled;Therefore client can be prevented
Caused by end and server time irreversibility, the limit control of Internet resources is inaccurate.
Further, in the embodiment of the present invention, server is made in the Internet resources for receiving client report
During with the information of amount, determine that client described in current time uses the first dynamic of Internet resources using limit
Then client, is used limit using the use amount of Internet resources with current the first dynamic for determining by volume
Volume is compared, it is determined that the client uses the use volume of Internet resources in present interval time t
When degree uses limit more than the described first dynamic, the disabling of the Internet resources is just sent to the client
Duration.As the first dynamic is client of the server according to current all use Internet resources using limit
With the quantity of other clients (being referred to as the active client terminal quantity of currently used Internet resources),
And the default default limit using the Internet resources of the client, the client use of calculating
First dynamic of Internet resources uses limit, and first dynamic can be distributed respectively with effective and reasonable using limit
Client uses Internet resources, is not result in that Internet resources distribution inaccurately causes the waste of Internet resources to ask
Topic.
Fig. 2 is that a kind of flow process of the control method of the use limit of Internet resources of the embodiment of the present application is illustrated
Figure, methods described are located at client executing, as shown in Fig. 2 including:
201st, the use amount of Internet resources is used in client statistics present interval time t;
Implement the detailed content with reference to the step 101 in embodiment illustrated in fig. 1.
202nd, client at the end of present interval time t sends the client to server and uses network
Second dynamic of resource uses limit, second dynamic using limit be the server it is upper once between
The client calculated at the end of time t uses limit using the dynamic of Internet resources;So that service
Device when it is determined that second dynamic is inconsistent using limit with the described first dynamic using limit, to described
Client sends first dynamic and uses limit.
For example, the client (such as T1 moment) at the end of upper once t interval time, to clothes
Business device have sent the use amount that the client uses the Internet resources in upper once t interval time
Information, server T1 receptions to the client in upper once t interval time using described
The information of the use amount of Internet resources, counts the client for using the Internet resources at the T1 moment
With the quantity of other clients (i.e. the T1 moment using the Internet resources active client terminal quantity),
With reference to the default default limit using the Internet resources of the client, client described in the T1 moment is calculated
Hold using the dynamic of the Internet resources that (i.e. the second dynamic uses limit, is once spaced upper using limit
At the end of time t, the client uses limit using the dynamic of Internet resources);
The client (i.e. current time is the T2 moment) at the end of present interval time t, to service
Device have sent the letter that the client uses the use amount of the Internet resources in present interval time t
Breath, server use institute in present interval time t in current time T2 reception to the client
The information of the use amount of Internet resources is stated, in current time T2 moment statistics using the Internet resources
Quantity (the i.e. work of the current time T2 moment using the Internet resources of the client and other clients
The client terminal quantity of jump), with reference to the default default limit using the Internet resources of the client,
Calculate client described in the current time T2 moment limit (i.e. first is used using the dynamic of the Internet resources
Dynamic uses limit;
Afterwards, when server is it is determined that second dynamic uses limit using limit with first dynamic
When inconsistent, first dynamic is sent to the client and use the limit, i.e. client current time to be
The use Internet resources that the T2 moment (at the end of present interval time t) is received from server
Dynamic uses limit;
203rd, client uses limit according to first dynamic that the server sends, by the client
End is updated to first dynamic using the second dynamic of Internet resources using limit and uses limit.
That is, the first dynamic is using the institute that limit is that client current time is received from server
State client limit is used using the dynamic of the Internet resources;Relatively, the second dynamic using limit is
The client that the client last time is received from server uses the dynamic of the Internet resources to use
Limit;Limit is used when client compares the first dynamic using limit and the second dynamic, however, it is determined that the two is not
Unanimously, then the second dynamic is updated to into first dynamic using limit and uses limit.
It should be noted that client is dynamic change using the dynamic of the Internet resources using limit
Reason, be because every time using the client terminal quantity of the Internet resources be change, server
Recalculate at set intervals client using the dynamic of Internet resources using limit also for can have
Effect is reasonably distributed each client and uses Internet resources, is not result in that Internet resources distribution inaccurately causes net
The waste problem of network resource.
As, in the embodiment of the present invention, server is made the use Internet resources for receiving client transmission
During with the information of amount, moment (i.e. current time) client for receiving use information can be all recalculated
End uses limit using the dynamic of Internet resources, and wherein, dynamic is to work as system crash using the effect of limit
When, the newest dynamic for once receiving server transmission can be used limit use as client by client
The temporary resource of Internet resources uses limit, can prevent user from abusing Internet resources in system crash,
Ensure the Internet usage experience of user.
Fig. 3 is that a kind of flow process of the control method of the use limit of Internet resources of the embodiment of the present application is illustrated
Figure, methods described are performed positioned at server, as shown in figure 3, including:
301st, the client that server reception client sends uses network in present interval time t
The information of the use amount of resource;
For example, client needs to count in each interval time in t the service condition for using Internet resources
Information (such as uses amount).And for example, packing timer is provided with client, in each interval time of t
At the end of, triggering packing timer-signals, so, client will be counted and be used in t in interval time
The information of the use amount of Internet resources is packed, and wherein, carries the network and provide in the information of packing
The mark of the mark in source, client, the client using Internet resources use amount situations such as.
Accordingly, therefore, the client and other clients that server is received according to current time is sent out
The information of the use amount of the use Internet resources for sending, carry in described information the client and
The identification information of other clients, determines the client terminal quantity of the currently used Internet resources.
302nd, server determines that client described in current time uses the first dynamic of Internet resources using limit
Volume;
Generally, in practical application scene, while client uses the Internet resources, other clients
End can also use the Internet resources, therefore, server receives the use network of client transmission
After the information of the use amount of resource, the client that server for example can be received according to current time
The information of the use amount of the use Internet resources that end and other clients send, takes in described information
Identification information with the client and other clients, determines the currently used Internet resources
Client terminal quantity;
Further, server is according to the default default limit using the Internet resources of the client,
And the client terminal quantity of the currently used Internet resources, determine that client uses net described in current time
First dynamic of network resource uses limit.Specifically for example can be according to computing formula:
Determine that client uses net described in current time
First dynamic of network resource uses limit;
Wherein, DefaultQuota represents that the default acquiescence using the Internet resources of the client is limited
Volume;
AliveAgentCount represents the client terminal quantity of the currently used Internet resources;
ImpactFactor is default constant, and this constant is empirical value, generally higher than 1, effect is to put
Big result of calculation.For example, in the case where server delays machine, DefaultQuota can be assigned to active
Client (aliveAgent) on, but fall in which client be probably it is uneven, in order to
Ensure service quality, the resource distributed on each aliveAgent can be amplified a bit.
303rd, if it is determined that the client is big using the use amount of Internet resources in present interval time t
Limit is used in first dynamic, then sends the disabling duration of the Internet resources to the client;
So that the disabling duration of the Internet resources that the client is sent according to the server, from receiving institute
The moment of disabling duration is stated, and the Internet resources is prohibitted the use of in the disabling duration.
For example, the disabling duration of the Internet resources that client is sent according to the server, will
The set of time for receiving the disabling duration be prohibit the use of the Internet resources forbid initial time,
Will be the set of time for forbidding initial time to start at the end of the disabling duration described for prohibitting the use of
Internet resources forbid the end time.
Further for example, when the client uses the network in upper once t interval time
During resource, however, it is determined that current time the Internet resources forbid the end time after, then using described
Internet resources, and count the use amount using the Internet resources;If it is determined that current time is in the net
Network resource forbid the end time before, then prohibit the use of the Internet resources.
The embodiment of the present invention is used from the moment of the client reception disabling duration and is started in the taboo
With prohibitting the use of the Internet resources in duration, rather than according to server down distributing resource disable order when
Between as the reference for prohibitting the use of the Internet resources, therefore, even if the client and server time not
When synchronous, it is also possible to effectively the limit of Internet resources is accurately controlled;Therefore can in case
Only caused by client and server time irreversibility Internet resources limit control it is inaccurate.
Further, in the embodiment of the present invention, server is made in the Internet resources for receiving client report
During with the information of amount, determine that client described in current time uses the first dynamic of Internet resources using limit
Then client, is used limit using the use amount of Internet resources with current the first dynamic for determining by volume
Volume is compared, it is determined that the client uses the use volume of Internet resources in present interval time t
When degree uses limit more than the described first dynamic, the disabling of the Internet resources is just sent to the client
Duration.As the first dynamic is client of the server according to current all use Internet resources using limit
With the quantity of other clients (being referred to as the active client terminal quantity of currently used Internet resources),
And the default default limit using the Internet resources of the client, the client use of calculating
First dynamic of Internet resources uses limit, and first dynamic can be distributed respectively with effective and reasonable using limit
Client uses Internet resources, is not result in that Internet resources distribution inaccurately causes the waste of Internet resources to ask
Topic.
Fig. 4 is that a kind of flow process of the control method of the use limit of Internet resources of the embodiment of the present application is illustrated
Figure, methods described are performed positioned at server, as shown in figure 4, including:
401st, server receives the client use that client is sent at the end of present interval time t
Second dynamic of Internet resources uses limit, and second dynamic is the server upper one using limit
The client calculated at the end of minor tick time t uses limit using the dynamic of Internet resources;
Wherein, the second dynamic may be referred to the first dynamic use in step 402 using the computational methods of limit
The computational methods of limit.
402nd, server determines that client described in current time uses the first dynamic of Internet resources using limit
Volume;
For example, the client (such as T1 moment) at the end of upper once t interval time, to clothes
Business device have sent the use amount that the client uses the Internet resources in upper once t interval time
Information, server T1 receptions to the client in upper once t interval time using described
The information of the use amount of Internet resources, counts the client for using the Internet resources at the T1 moment
With the quantity of other clients (i.e. the T1 moment using the Internet resources active client terminal quantity),
With reference to the default default limit using the Internet resources of the client, client described in the T1 moment is calculated
Hold using the dynamic of the Internet resources that (i.e. the second dynamic uses limit, is once spaced upper using limit
At the end of time t, the client uses limit using the dynamic of Internet resources);
The client (i.e. current time is the T2 moment) at the end of present interval time t, to service
Device have sent the letter that the client uses the use amount of the Internet resources in present interval time t
Breath, server use institute in present interval time t in current time T2 reception to the client
The information of the use amount of Internet resources is stated, in current time T2 moment statistics using the Internet resources
Quantity (the i.e. work of the current time T2 moment using the Internet resources of the client and other clients
The client terminal quantity of jump), with reference to the default default limit using the Internet resources of the client,
Calculate client described in the current time T2 moment limit (i.e. first is used using the dynamic of the Internet resources
Dynamic uses limit;
Further, in the present embodiment, server for example can be according to computing formula:
Determine that client uses the dynamic of Internet resources
Using limit;
Wherein, DefaultQuota represents that the default acquiescence using the Internet resources of the client is limited
Volume, aliveAgentCount represent the client terminal quantity of the currently used Internet resources, ImpactFactor
It is default constant.
403rd, server is it is determined that second dynamic is differed using limit with first dynamic using limit
During cause, first dynamic is sent to the client and use limit;So that the client is according to described
First dynamic that server sends uses limit, and the client is moved using the second of Internet resources
State is updated to first dynamic using limit and uses limit.
As, in the embodiment of the present invention, server is made the use Internet resources for receiving client transmission
During with the information of amount, moment (i.e. current time) client for receiving use information can be all recalculated
End uses limit using the dynamic of Internet resources, and wherein, dynamic is to work as system crash using the effect of limit
When, the newest dynamic for once receiving server transmission can be used limit use as client by client
The temporary resource of Internet resources uses limit, can prevent user from abusing Internet resources in system crash,
Ensure the Internet usage experience of user.
The method described in the embodiment of the present invention is described in detail below by specific embodiment.
Specifically, the present invention is divided into client and server two parts, it is assumed that have tetra- kinds of resources of a, b, c, d,
Multiple client is had in distributed system while consuming to tetra- kinds of resources of a, b, c, d, client
The service condition of tetra- kinds of resources of a, b, c, d is packed to server with t interval time and report, server
Aggregating client reports the resource service condition come up, and verifies client and using the situation of certain resource be
No client currently calculated more than server uses limit using the dynamic of the resource, if it exceeds dynamic
State uses limit, then can take to transfinite this in the response for returning to the client and be ordered using the disabling of resource
Order, comprising the client to the disabling duration that transfinites using resource in disabling order, client receives disabling
After order, current time is added disabling duration as the moment for disabling for the resource used for transfiniting.
Fig. 5 is that a kind of flow process of the control method of the use limit of Internet resources of the embodiment of the present application is illustrated
Figure, methods described are performed positioned at client and server, as shown in figure 5, including:
501st, user end to server reports the message of usage information of network resource.
Wherein, in the present embodiment, client refers in the multiple client in distributed system wherein one
Individual client.Usage information of network resource includes the identification information of client, the mark letter of Internet resources
The information such as the use amount of breath and Internet resources.
Client reports the data structure of the packet of the related network resource using information of server such as
Under:
struct ResourceUsage
{
int32_t resourceID;Represent Internet resources numbering;
uint64_t resourceUsage;Represent that resource is reporting the service condition in time interval t;
uint64_t dynamicQuota;Represent that dynamic uses limit;
};
struct RequestPackage
{
List<ResourceUsage>resourceUsages;Represent Internet usage situation list;
string agentIP;Represent client ip address;
int64_t agentProcessID;Represent client process;
};
Wherein, ResourceUsage is used for representing the service condition information of single network resource, does not include
The starting of reporting interval and end time, acquiescence are reported the data of server and are fallen in the current system of server
In meter window.
Wherein, the last receipts of dynamicQuota clients of server are reported in ResourceUsage
The dynamicQuota that the server for arriving is calculated.
RequestPackage is used for representing collecting for multiple Internet usage situation information;
For example when might have multiple client process on same machine, therefore, RequestPackage
Middle agentIP and agentProcessID is used for identifying the information of the client reported.
It should be noted that during user end to server report network resource using information, Internet resources meeting
By according to certain regular partition, the resource fallen in same interval can be punched in same packet,
All of client, server share same division rule, such as according to resource identification (resourceID)
The division of packet is carried out, such as resourceID breaks into a packet for [0,99], and resourceID is
[100,199] break into another packet.If the resource being punched in client in same packet
All it is not used in packing time interval, the first network money that client will can fall in the packet
Source use information packing, at this moment resource is 0 using amount.
502nd, the usage information of network resource that server is reported according to client, calculates the client current
Limit can be used using the dynamic of Internet resources.
Specifically, the identification information of the client in the packet that server is reported according to above-mentioned client
(agentProcessID), count certain hour in using a certain Internet resources (for example resource a, b, c,
Arbitrary resource in d) active client terminal quantity, and calculate client accordingly and can currently use
The dynamic of Internet resources uses limit (dynamicQuota).
The computing formula that server calculates dynamicQuota is as follows:
DefaultQuota represents the use limit of the default Internet resources acquiescence of client,
AliveAgentCount represents client terminal quantity active in a period of time, and ImpactFactor is default normal
Amount, is generally used for amplifying result of calculation.
503rd, server returns the response message of Internet usage to client.
Specifically, for example, in the message of server response RequestPackage, when discovery client is converged
When dynamicQuot that the dynamicQuota that comes up of report and server are calculated is inconsistent, will will take
The dynamicQuota that business device is calculated sends back to client.
Again for example, in the message of server response RequestPackage, when client is found at interval
Between in t using the use amount of Internet resources more than the dynamicQuot for calculating, then to client transmission
The client prohibits the use of the disabling duration of the Internet resources;
For example, the data structure of the response message of server is as follows:
struct ResourceResponse
{
int32_t resourceID;Represent Internet resources numbering;
uint64_t disableDuration;Represent Internet resources by disabled time span, i.e. table
Show that client prohibits the use of the disabling duration of the Internet resources;
uint64_t dynamicQuota;Represent that the dynamic of server latest computed uses limit;
};
struct ResponsePackage
{
List<ResourceResponse>responseList;Represent Response List
};
Accordingly, after step 503, including step 503 and/or 504:
504th, the disabling duration that client includes according to the response message that server sends, when will be current
Between plus disabling moment for disabling as resource of duration.
505th, client uses limit according to the dynamic that the response message that server sends includes, updates
Local dynamic uses limit.
It should be noted that the effect of dynamicQuota is to work as server crash, client will can be serviced
The dynamicQuota that device sends uses limit as the interim resource of client.Using dynamicQuota
Benefit on the one hand be to prevent user from abusing resource in server crash, on the other hand largely protect
The experience of card user.
In actual application scenarios, client is often FEP, and server is in same cluster, and
The control of Resources limit is all a minute rank, therefore network delay can be ignored.Using disabling duration
(disableDuration) purpose is to control caused by preventing client and server time irreversibility
It is inaccurate.
In the embodiment of the present invention, server reports the data come up according to the client for receiving, can first more
New active client terminal quantity, the quantity statistics of active clients is based on clients different in certain hour
End identification information (such as agentIP, agentProcessID), the then use of server update Internet resources
Situation, calculates each client and uses the dynamic of each Internet resources to use limit (dynamicQuota),
If client uses limit using Internet resources more than dynamic, then calculate the client and prohibit the use of this
The disabling duration of Internet resources, in addition, if it find that the dynamic of some client for calculating is used
Limit and the client are reported the dynamic come up and use limit inconsistent, the dynamic of calculating can be used limit
(dynamicQuota) and disabling duration information return to the client together.
In sum, the embodiment of the present invention is reported the data come up and is fallen by returning disabling duration and acquiescence
In the method for server current statistic window, solving server and client side's time irreversibility causes to use
Limit controls inaccurate problem, and colleague real-time dynamicly calculates dynamic and uses limit (dynamicQuota)
And the dynamic of the calculating is returned to into client using limit, solving server crash can caused resource
The problem of abuse.
Fig. 6 is a kind of structural representation of the control device of the use limit of Internet resources of the embodiment of the present application
Figure, positioned at client, as shown in fig. 6, including:
Statistical module 61, for counting the use amount for using Internet resources in present interval time t;
Sending module 62, for sending the statistical module to server at the end of present interval time t
The client of statistics uses the information of the use amount of Internet resources in present interval time t;So that institute
State server and determine that client described in current time uses limit using the first dynamic of Internet resources, if really
The fixed client is dynamic more than described first using the use amount of Internet resources in present interval time t
State uses limit, then send the disabling duration of the Internet resources to the client;
Receiver module 63, for receiving the disabling duration of the Internet resources that the server sends;
Disabled module 64, for according to the disabling duration, from the moment for receiving the disabling duration,
The Internet resources are prohibitted the use of in the disabling duration.
Alternatively, sending module 61, are additionally operable to send out to the server at the end of present interval time t
The client is sent to use the limit, second dynamic using limit to be using the second dynamic of Internet resources
The client that the server is calculated at the end of upper once t interval time is using the dynamic of Internet resources
State uses limit;So that the server is it is determined that second dynamic is dynamic with described first using limit
Using limit it is inconsistent when, send first dynamic to the client and use limit;
Receiver module 63, first dynamic for being additionally operable to the reception server transmission use limit;
Described device also includes:
Update module 65, first dynamic for being received according to the receiver module 63 use limit,
The client is updated to into first dynamic using limit using the second dynamic of Internet resources using limit
Volume.
Alternatively, described device also includes:
Setup module 66, for, at the end of present interval time t, statistical module 61 counts present interval
After using the use amount of Internet resources in time t, will be set to using the use amount of Internet resources
Zero.
Alternatively, disabled module 64, specifically for the Internet resources that sent according to the server
Disabling duration, is the taboo for prohibitting the use of the Internet resources by the set of time for receiving the disabling duration
Only initial time, by the set of time for forbidding initial time to start at the end of the disabling duration be
Prohibit the use of the Internet resources forbids the end time.
Alternatively, described device also includes:
Judge module 67, during in upper once t interval time using the Internet resources, however, it is determined that
Current time the Internet resources forbid the end time after, then using the Internet resources, and unite
Use amount of the meter using the Internet resources;If it is determined that current time the Internet resources forbid knot
Before the beam time, then the Internet resources are prohibitted the use of.
Device described in embodiment illustrated in fig. 6 can be used for performing described in Fig. 1 and embodiment illustrated in fig. 2
Method, which realizes that principle and technique effect are repeated no more.
Fig. 7 is a kind of structural representation of the control device of the use limit of Internet resources of the embodiment of the present application
Figure, positioned at server, as shown in fig. 7, comprises:
Receiver module 71, the client for receiving client transmission are made in present interval time t
With the information of the use amount of Internet resources;
Determining module 72, for determining that client described in current time uses the first dynamic of Internet resources
Using limit;
Judge module 73, for determining that the client uses Internet resources in present interval time t
Whether limit is used more than first dynamic using amount;
Sending module 74, for determining the client in present interval time t in the judge module 73
When the use amount of interior use Internet resources uses limit more than the described first dynamic, send out to the client
Send the disabling duration of the Internet resources;So that the net that the client is sent according to the server
The disabling duration of network resource, from the moment for receiving the disabling duration, prohibits in the disabling duration
The Internet resources are used only.
Alternatively, the determining module 72 specifically for:
The use Internet resources that the client and other clients received according to current time sends
Use amount information, carry the mark of the client and other clients in described information
Information, determines the client terminal quantity of the currently used Internet resources;
According to the default default limit using the Internet resources of the client, and currently used institute
The client terminal quantity of Internet resources is stated, determines that client described in current time uses the first of Internet resources to move
State uses limit.
Alternatively, the determining module 72 specifically for:
According to computing formula:Determine current time institute
State client limit is used using the first dynamic of Internet resources;
Wherein, DefaultQuota represents that the default acquiescence using the Internet resources of the client is limited
Volume, aliveAgentCount represent the client terminal quantity of the currently used Internet resources, ImpactFactor
It is default constant.
Alternatively, the receiver module 71, is additionally operable to receive the client in present interval time t knots
The client that server described in Shu Shixiang sends uses limit using the second dynamic of Internet resources, institute
It is the visitor that the server is calculated at the end of upper once t interval time that the second dynamic is stated using limit
Family end uses limit using the dynamic of Internet resources;
The judge module 73, is additionally operable to determine that second dynamic is made with first dynamic using limit
It is whether consistent with limit;
The sending module 74, be additionally operable to the judge module determine it is described second dynamic use limit with
When first dynamic uses limit inconsistent, first dynamic is sent to the client and use limit;
So that the client uses limit according to first dynamic that the server sends, by the client
End is updated to first dynamic using the second dynamic of Internet resources using limit and uses limit.
Device described in embodiment illustrated in fig. 7 can be used for performing described in Fig. 3 and embodiment illustrated in fig. 4
Method, which realizes that principle and technique effect are repeated no more.
Fig. 8 is a kind of structural representation of the control system of the use limit of Internet resources of the embodiment of the present application
Figure, as shown in figure 8, including:Client 81 and server 82;
The client 81 includes the control of the use limit of the Internet resources described in embodiment as shown in Figure 6
Device;
The server 82 includes the control of the use limit of the Internet resources described in embodiment as shown in Figure 6
Device.
System described in embodiment illustrated in fig. 8 can be used for performing described in Fig. 1 to Fig. 5 any one embodiment
Method, which realizes that principle and technique effect are repeated no more.
In the above-described embodiment, there is provided a kind of control method of the use limit of Internet resources, and
A kind of control device of the use limit of corresponding Internet resources, the application also provides one kind to be used for
The electronic equipment of the control method of the use limit of above-mentioned Internet resources is realized, the electronic equipment for example may be used
To realize the control of the use limit of the Internet resources in said method embodiment as client or server
Method.
Fig. 9 is a kind of electronic equipment schematic diagram provided in an embodiment of the present invention.The electronic equipment embodiment
Describe fairly simple, related part refers to the correspondence explanation of said method embodiment.It is following
The electronic equipment embodiment of description is only schematic.As shown in figure 9, embodiment of the present invention institute
The electronic equipment stated includes:Memorizer 91 and processor 92;
Wherein, the finger of the control method of the use limit for realizing above-mentioned Internet resources that is stored with memorizer 91
Order;
Alternatively, when the electronic equipment is used as client, the processor 92 calls memorizer 91
In the writ of execution can perform following steps:
The use amount of Internet resources is used in statistics present interval time t;Terminate in present interval time t
When to server send client in the present interval time t using Internet resources use amount information;
So that the server determines that client described in current time uses the first dynamic of Internet resources using limit
Volume, however, it is determined that the client is more than institute using the use amount of Internet resources in present interval time t
State the first dynamic and use limit, then send the disabling duration of the Internet resources to the client;
The disabling duration of the Internet resources that the server sends is received, according to the disabling duration,
From the moment for receiving the disabling duration, the Internet resources are prohibitted the use of in the disabling duration;
Further, the processor 92 can also carry out following steps:
The client is sent using Internet resources to the server at the end of present interval time t
Second dynamic uses limit, and second dynamic was the server in upper once interval time using limit
The client calculated at the end of t uses limit using the dynamic of Internet resources;So that the server exists
When determining that second dynamic uses limit to use limit inconsistent with the described first dynamic, to the client
End sends first dynamic and uses limit;
Limit is used according to first dynamic that the server sends, the client is used into network
Second dynamic of resource is updated to first dynamic using limit and uses limit.
Alternatively, when the electronic equipment is used as server, the processor 92 calls memorizer 91
In the writ of execution can perform following steps:
The client for receiving client transmission uses the use of Internet resources in present interval time t
The information of amount;
Determine that client described in current time uses limit using the first dynamic of Internet resources;
If it is determined that the client is more than institute using the use amount of Internet resources in present interval time t
State the first dynamic and use limit, then send the disabling duration of the Internet resources to the client;So that
The disabling duration of the Internet resources that the client is sent according to the server, from the reception taboo
With the moment of duration, the Internet resources are prohibitted the use of in the disabling duration.
Further, the processor 92 can also carry out following steps:
Receive the client that the client is sent to the server at the end of present interval time t
End uses limit using the second dynamic of Internet resources, and second dynamic is the server using limit
The client calculated at the end of upper once t interval time uses limit using the dynamic of Internet resources;
When it is determined that second dynamic is inconsistent using limit with the described first dynamic using limit, to institute
State client transmission first dynamic and use limit;So that the client is sent according to the server
First dynamic use limit, the client is used into limit using the second dynamic of Internet resources
It is updated to first dynamic and uses limit.
System described in embodiment illustrated in fig. 9 can be used for performing described in Fig. 1 to Fig. 5 any one embodiment
Method, which realizes that principle and technique effect are repeated no more.
Described above illustrates and describes some preferred embodiments of the present invention, but as it was previously stated, should manage
The solution present invention is not limited to form disclosed herein, is not to be taken as the exclusion to other embodiment,
And can be used for various other combinations, modification and environment, and can in invention contemplated scope described herein,
It is modified by the technology or knowledge of above-mentioned teaching or association area.And those skilled in the art are carried out changes
Dynamic and change, then all should be in the protection of claims of the present invention without departing from the spirit and scope of the present invention
In the range of.
Claims (19)
1. the control method of the use limit of a kind of Internet resources, it is characterised in that include:
The use amount of Internet resources is used in client statistics present interval time t;
The client is at the end of present interval time t to the server transmission client between currently
The information of the use amount of Internet resources is used in time t;So that the server determines current time
The client uses limit using the first dynamic of Internet resources, however, it is determined that the client is between currently
Limit is used using the use amount of Internet resources more than first dynamic in time t, then to described
Client sends the disabling duration of the Internet resources;
The client receives the disabling duration of the Internet resources that the server sends, according to described
Disabling duration, from the moment for receiving the disabling duration, prohibits the use of institute in the disabling duration
State Internet resources.
2. method according to claim 1, it is characterised in that the client counts present interval
After using the use amount of Internet resources in time t, also include:
The client at the end of present interval time t sends the client to the server and uses
Second dynamic of Internet resources uses limit, and second dynamic is the server upper one using limit
The client calculated at the end of minor tick time t uses limit using the dynamic of Internet resources;So that
The server is it is determined that second dynamic is inconsistent using limit with the described first dynamic using limit
When, first dynamic is sent to the client use limit;
The client uses limit according to first dynamic that the server sends, by the client
End is updated to first dynamic using the second dynamic of Internet resources using limit and uses limit.
3. method according to claim 1, it is characterised in that the client counts present interval
After using the use amount of Internet resources in time t, also include:
At the end of present interval time t, the client will be arranged using the use amount of Internet resources
It is zero.
4. method according to claim 1, it is characterised in that the client receives the clothes
After the disabling duration of the Internet resources that business device sends, also include:
The disabling duration of the Internet resources that the client is sent according to the server, will receive
The set of time of the disabling duration be prohibit the use of the Internet resources forbid initial time, will be described
The set of time that initial time starts at the end of the disabling duration is forbidden to be to prohibit the use of the network money
The end time is forbidden in source.
5. method according to claim 4, it is characterised in that also include:
The client in upper once t interval time using the Internet resources when, however, it is determined that when current
Between the Internet resources forbid the end time after, then using the Internet resources, and count use
The use amount of the Internet resources;If it is determined that current time forbids the end time in the Internet resources
Before, then the Internet resources are prohibitted the use of.
6. the control method of the use limit of a kind of Internet resources, it is characterised in that include:
Server receives the client of client transmission and uses Internet resources in present interval time t
Use amount information;
The server determines that client described in current time uses the first dynamic of Internet resources using limit
Volume;
If it is determined that the client is more than institute using the use amount of Internet resources in present interval time t
State the first dynamic and use limit, then send the disabling duration of the Internet resources to the client;So that
The disabling duration of the Internet resources that the client is sent according to the server, from the reception taboo
With the moment of duration, the Internet resources are prohibitted the use of in the disabling duration.
7. method according to claim 6, it is characterised in that the server determines current time
The client uses limit using the first dynamic of Internet resources, including:
The use institute that the client and other clients that the server is received according to current time sends
The information of the use amount of Internet resources is stated, the client and described other visitors in described information, are carried
The identification information at family end, determines the client terminal quantity of the currently used Internet resources;
The server according to the default default limit using the Internet resources of the client, and
The client terminal quantity of the currently used Internet resources, determines that client is provided using network described in current time
First dynamic in source uses limit.
8. method according to claim 6, it is characterised in that the server is according to the client
The default default limit using the Internet resources in end, and the client of the currently used Internet resources
End quantity, determines that client described in current time uses limit using the first dynamic of Internet resources, including:
According to computing formula: Determine current time institute
State client limit is used using the first dynamic of Internet resources;
Wherein, DefaultQuota represents that the default acquiescence using the Internet resources of the client is limited
Volume, aliveAgentCount represent the client terminal quantity of the currently used Internet resources, ImpactFactor
It is default constant.
9. the method according to any one of claim 6-8, it is characterised in that server receives visitor
The client that family end sends uses the information of the use amount of Internet resources in present interval time t
Afterwards, then methods described also includes:
The server receives the client and sends to the server at the end of present interval time t
The client use the limit, second dynamic using limit to be using the second dynamic of Internet resources
The client that the server is calculated at the end of upper once t interval time is using the dynamic of Internet resources
State uses limit;
The server is it is determined that second dynamic is differed using limit with first dynamic using limit
During cause, first dynamic is sent to the client and use limit;So that the client is according to described
First dynamic that server sends uses limit, and the client is moved using the second of Internet resources
State is updated to first dynamic using limit and uses limit.
10. the control device of the use limit of a kind of Internet resources, positioned at client, it is characterised in that
Including:
Statistical module, for counting the use amount for using Internet resources in present interval time t;
Sending module, is working as sending the client to server at the end of present interval time t
The information of the use amount of Internet resources is used in space before time t;So that the server determines currently
Client described in time uses limit using the first dynamic of Internet resources, however, it is determined that the client is being worked as
Limit is used using the use amount of Internet resources more than first dynamic in space before time t, then to
The client sends the disabling duration of the Internet resources;
Receiver module, for receiving the disabling duration of the Internet resources that the server sends;
Disabled module, for according to the disabling duration, from the moment for receiving the disabling duration,
The Internet resources are prohibitted the use of in the disabling duration.
11. devices according to claim 10, it is characterised in that:
The sending module, is additionally operable to send described to the server at the end of present interval time t
Client uses limit using the second dynamic of Internet resources, and second dynamic is the clothes using limit
The client that business device is calculated at the end of upper once t interval time uses the dynamic of Internet resources to use
Limit;So that the server is it is determined that second dynamic uses limit using limit with the described first dynamic
When volume is inconsistent, first dynamic is sent to the client and use limit;
The receiver module, first dynamic for being additionally operable to the reception server transmission use limit;
Described device also includes:
Update module, first dynamic for being received according to the receiver module use limit, by institute
Stating client and first dynamic being updated to using the second dynamic of Internet resources using limit use limit.
12. devices according to claim 10, it is characterised in that also include:
Setup module, at the end of present interval time t, by the use amount using Internet resources
It is set to zero.
13. devices according to claim 10, it is characterised in that:
The disabled module, specifically for the Internet resources sent according to the server disabling when
It is long, by the set of time for receiving the disabling duration be prohibit the use of the Internet resources forbid starting
Time, is to forbid making by the set of time for forbidding initial time to start at the end of the disabling duration
Forbid the end time with the Internet resources.
14. devices according to claim 13, it is characterised in that also include:
Judge module, during in upper once t interval time using the Internet resources, however, it is determined that when
The front time the Internet resources forbid the end time after, then using the Internet resources, and count
Using the use amount of the Internet resources;If it is determined that current time the Internet resources forbid terminate
Before time, then the Internet resources are prohibitted the use of.
A kind of control device of the use limit of 15. Internet resources, positioned at server, it is characterised in that
Including:
Receiver module, uses in present interval time t for receiving the client of client transmission
The information of the use amount of Internet resources;
Determining module, for determining that client described in current time uses the first dynamic of Internet resources to use
Limit;
Judge module, for determining the client making using Internet resources in the present interval time t
Whether limit is used more than first dynamic with amount;
In the judge module, sending module, for determining that the client is made in present interval time t
When limit is used with the use amount of Internet resources more than the described first dynamic, send institute to the client
State the disabling duration of Internet resources;So that the network money that the client is sent according to the server
The disabling duration in source, from the moment for receiving the disabling duration, forbids making in the disabling duration
Use the Internet resources.
16. devices according to claim 15, it is characterised in that the determining module specifically for:
The use Internet resources that the client and other clients received according to current time sends
Use amount information, carry the mark of the client and other clients in described information
Information, determines the client terminal quantity of the currently used Internet resources;
According to the default default limit using the Internet resources of the client, and currently used institute
The client terminal quantity of Internet resources is stated, determines that client described in current time uses the first of Internet resources to move
State uses limit.
17. devices according to claim 16, it is characterised in that the determining module specifically for:
According to computing formula: Determine current time institute
State client limit is used using the first dynamic of Internet resources;
Wherein, DefaultQuota represents that the default acquiescence using the Internet resources of the client is limited
Volume, aliveAgentCount represent the client terminal quantity of the currently used Internet resources, ImpactFactor
It is default constant.
18. devices according to any one of claim 15-17, it is characterised in that:
The receiver module, is additionally operable to receive the client at the end of present interval time t to described
The client that server sends uses limit using the second dynamic of Internet resources, and described second is dynamic
The use of limit is that the client that the server is calculated at the end of upper once t interval time uses net
The dynamic of network resource uses limit;
The judge module, is additionally operable to determine that second dynamic uses limit to use with the described first dynamic
Whether limit is consistent;
The sending module, is additionally operable to determine that second dynamic uses limit and institute in the judge module
When stating the first dynamic and using limit inconsistent, first dynamic is sent to the client and use limit;
So that the client uses limit according to first dynamic that the server sends, by the client
End is updated to first dynamic using the second dynamic of Internet resources using limit and uses limit.
The control system of the use limit of 19. a kind of Internet resources, it is characterised in that include:Client
And server;
The client includes the use limit of the Internet resources as any one of claim 10-14
Control device;
The server includes the use limit of the Internet resources as any one of claim 15-18
Control device.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510571666.7A CN106534231B (en) | 2015-09-09 | 2015-09-09 | Method, device and system for controlling use limit of network resources |
PCT/CN2016/097496 WO2017041652A1 (en) | 2015-09-09 | 2016-08-31 | Network resource usage quota control method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510571666.7A CN106534231B (en) | 2015-09-09 | 2015-09-09 | Method, device and system for controlling use limit of network resources |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106534231A true CN106534231A (en) | 2017-03-22 |
CN106534231B CN106534231B (en) | 2019-12-31 |
Family
ID=58240547
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510571666.7A Active CN106534231B (en) | 2015-09-09 | 2015-09-09 | Method, device and system for controlling use limit of network resources |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106534231B (en) |
WO (1) | WO2017041652A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108768744A (en) * | 2018-06-13 | 2018-11-06 | 郑州云海信息技术有限公司 | A kind of management method and device creating network to cloud platform |
CN112019445A (en) * | 2020-07-31 | 2020-12-01 | 青岛海尔科技有限公司 | Method and device for intelligent device flow control and intelligent device |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111611123B (en) * | 2019-02-25 | 2023-06-20 | 阿里巴巴集团控股有限公司 | Data processing method, data processing system and equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101599908A (en) * | 2009-07-15 | 2009-12-09 | 杭州华三通信技术有限公司 | A kind of auto-allocation method of bandwidth and equipment |
CN102916959A (en) * | 2012-10-16 | 2013-02-06 | 百度在线网络技术(北京)有限公司 | Blacklist synchronization method and device in cloud environment |
CN103731453A (en) * | 2012-10-12 | 2014-04-16 | 百度在线网络技术(北京)有限公司 | Quota administration method and device for service resources in cloud environment |
CN103841129A (en) * | 2012-11-21 | 2014-06-04 | 华为技术有限公司 | Cloud computing resource information acquisition server, cloud computing resource information acquisition client and information processing method |
US20150249621A1 (en) * | 2014-02-28 | 2015-09-03 | International Business Machines Corporation | Dynamic and adaptive quota shares |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102413508A (en) * | 2010-09-26 | 2012-04-11 | 华为终端有限公司 | Control method for access of machine terminal to network, and device for the same |
CN102624634B (en) * | 2012-04-11 | 2014-12-24 | 深圳证券通信有限公司 | Method and device for controlling network bandwidth on client side |
CN103369041B (en) * | 2013-07-09 | 2017-10-03 | 北京奇虎科技有限公司 | Resource allocation methods and device based on cloud computing |
-
2015
- 2015-09-09 CN CN201510571666.7A patent/CN106534231B/en active Active
-
2016
- 2016-08-31 WO PCT/CN2016/097496 patent/WO2017041652A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101599908A (en) * | 2009-07-15 | 2009-12-09 | 杭州华三通信技术有限公司 | A kind of auto-allocation method of bandwidth and equipment |
CN103731453A (en) * | 2012-10-12 | 2014-04-16 | 百度在线网络技术(北京)有限公司 | Quota administration method and device for service resources in cloud environment |
CN102916959A (en) * | 2012-10-16 | 2013-02-06 | 百度在线网络技术(北京)有限公司 | Blacklist synchronization method and device in cloud environment |
CN103841129A (en) * | 2012-11-21 | 2014-06-04 | 华为技术有限公司 | Cloud computing resource information acquisition server, cloud computing resource information acquisition client and information processing method |
US20150249621A1 (en) * | 2014-02-28 | 2015-09-03 | International Business Machines Corporation | Dynamic and adaptive quota shares |
Non-Patent Citations (1)
Title |
---|
陈起 等: "一种分布式存储系统用户磁盘配额的实现", 《计算机研究与发展》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108768744A (en) * | 2018-06-13 | 2018-11-06 | 郑州云海信息技术有限公司 | A kind of management method and device creating network to cloud platform |
CN112019445A (en) * | 2020-07-31 | 2020-12-01 | 青岛海尔科技有限公司 | Method and device for intelligent device flow control and intelligent device |
CN112019445B (en) * | 2020-07-31 | 2024-02-02 | 青岛海尔科技有限公司 | Method and device for controlling flow of intelligent equipment and intelligent equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2017041652A1 (en) | 2017-03-16 |
CN106534231B (en) | 2019-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10200542B2 (en) | System and method for dynamically allocating quota for shared balances in distributed telecommunications networks | |
Inoue | Analysis of the age of information with packet deadline and infinite buffer capacity | |
US9798680B2 (en) | Policy control method and apparatus for terminal peripheral | |
CN108259425A (en) | The determining method, apparatus and server of query-attack | |
CN114143265A (en) | Network flow current limiting method, device, equipment and storage medium | |
CN104239179B (en) | A kind of terminal and its method for realizing application management | |
EP2713270A1 (en) | Resource scheduling method and device | |
CN109756528A (en) | Control method for frequency and device, equipment, storage medium, server | |
CN106534231A (en) | Method, device and system for controlling use limit of network resources | |
EP3310093B1 (en) | Traffic control method and apparatus | |
CN110191160A (en) | A kind of concurrency control method and device | |
EP3499818A1 (en) | Method and device for load processing | |
EP3972298A1 (en) | Method and apparatus for information exchange in online charging | |
US10700879B2 (en) | Charging method and device, access device, service quality control method and device | |
CN110308901A (en) | Handle data variable method, apparatus, equipment and storage medium in front end page | |
CN103957230B (en) | A kind of client user's number determines method, server, client and system | |
CN114584519B (en) | Message middleware and current limiting method thereof | |
CN106598723A (en) | Configuration method and device for resources in distributed system | |
CN108809668A (en) | A kind of authentication method, device and access device | |
US10673523B2 (en) | Bandwidth control method and apparatus for solving service quality degradation caused by traffic overhead in SDN-based communication node | |
CN116166181A (en) | Cloud monitoring method and cloud management platform | |
CN111294856B (en) | Shared flow terminal identification method, device, equipment and readable storage medium | |
CN112019546A (en) | Protection strategy adjusting method, system, equipment and computer storage medium | |
CN110912770B (en) | Method and device for calculating interface congestion time delay | |
CN113949668B (en) | Data transmission control method, device, server and storage medium |
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 |