CN106302211B - The request amount control method and device of a kind of Internet resources - Google Patents

The request amount control method and device of a kind of Internet resources Download PDF

Info

Publication number
CN106302211B
CN106302211B CN201610575927.7A CN201610575927A CN106302211B CN 106302211 B CN106302211 B CN 106302211B CN 201610575927 A CN201610575927 A CN 201610575927A CN 106302211 B CN106302211 B CN 106302211B
Authority
CN
China
Prior art keywords
parameter
value
time
network resource
value parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610575927.7A
Other languages
Chinese (zh)
Other versions
CN106302211A (en
Inventor
程汉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Huabei Technology Co ltd
Original Assignee
Netease Kaola Hangzhou Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Kaola Hangzhou Technology Co Ltd filed Critical Netease Kaola Hangzhou Technology Co Ltd
Priority to CN201610575927.7A priority Critical patent/CN106302211B/en
Publication of CN106302211A publication Critical patent/CN106302211A/en
Application granted granted Critical
Publication of CN106302211B publication Critical patent/CN106302211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1053Group management mechanisms  with pre-configuration of logical or physical connections with a determined number of other peers
    • H04L67/1055Group management mechanisms  with pre-configuration of logical or physical connections with a determined number of other peers involving connection limits

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

Embodiments of the present invention provide a kind of request amount control method of Internet resources, and for available Internet resources pond the first numerical parameter of setting and second value parameter, the initial value of the first numerical parameter and second value parameter is controlled threshold value according to default stream and determined;This method includes:Receive network resource request;Answer operand value parameter to carry out subtracting 1 operation to current, obtain Internet resources to handle net resource request.By setting two values parameter for available Internet resources pond, and two values parameter is operated in turn according to the default resource switch cycle, solve the problems, such as that resource caused by HP M is given back unsuccessfully, it is achieved thereby that controlling the flow of whole server cluster, the service quality of server cluster is improved.In addition, embodiments of the present invention provide a kind of request amount control device of Internet resources.

Description

The request amount control method and device of a kind of Internet resources
Technical field
Embodiments of the present invention are related to network access technology field, more specifically, embodiments of the present invention are related to one The request amount control method and device of kind Internet resources.
Background technology
This part is it is intended that the embodiments of the present invention stated in claims provide background or context.Herein Description recognizes it is prior art not because not being included in this part.
Server cluster technology refers to get up many server centereds carries out same service together, in client It is like an only server.Cluster can carry out parallel computation so as to obtain very high calculating speed using multiple computers Degree, can also be backuped with multiple computers, so that any one computer glitch whole system can be with normal operation. Because server cluster technology has incomparable advantage, therefore, server in business processing compared to individual server Clustering is used to provide business processing service by increasing main stream website particularly e-commerce website.
At present, most of Website servers are when facing a large number of users and concurrently accessing, by the access to user access into The method of row flow restriction avoid server load it is too high may caused by delay machine the problems such as.Existing flow access control scheme Typically by the experience setting stream control threshold value of configuration personnel, but if stream control threshold value setting is too low, then have the wasting of resources; If stream control threshold value setting is too high, when user's flowing of access is uprushed, background server occurs that system load is too high, when serious Even server can be caused to delay machine, influence is brought to user.For example, user enters to some hot product in e-commerce website When the row second kills activity, if user accesses access amount beyond the stream control threshold value of server, it will be considered that server load is higher, Refuse user's request.
The content of the invention
In the existing technical scheme that stream control is carried out for individual server, stream control threshold value, which can be stored in, to be needed to carry out The service server of flow access control is local, service server in the business processing logic of local, according to the stream control of storage Threshold value conducts interviews flow control, and for service server cluster, it is generally made up of multiple service servers, cluster In a certain server traffic exceed stream control threshold value, whole server cluster load too high can not be illustrated, if therefore refused Exhausted user accesses, then can reduce the service quality of server cluster, influence Consumer's Experience, and therefore, existing stream prosecutor case can not Suitable for the stream control of server cluster;In addition, controlling implementation according to existing stream, it is sentenced by being gone in business processing logic Whether disconnected current accessed exceedes stream control threshold value, is patrolled if it exceeds then refusing business processing logic and performing, it is necessary to change business processing Volume, this implementation is invasive to business processing logic larger.Therefore, the feelings of business processing are carried out for server cluster Condition, inventor are had found, stream control threshold value and flow control logic can be stored in other one independently of service server cluster Individual stream is controlled on server, the stream control server is used for completing flow control function for service server cluster, it is possible thereby to gram Take the existing technical scheme for for individual server flow control and be applied to problem caused by the control of server cluster flow; But technology inventor has found in project development, above-mentioned processing mode is taken, a problem, i.e. business service can be faced again Device cluster after service request has been handled, it is necessary to its service request of notification streams control server be disposed, the resource that takes Release, and in network communications, may have some reasons causes announcement information transmission failure, is so tieed up at stream control server The resource occupation information of shield may be inaccurate, thereby results in a series of problems, such as flow control is inaccurate, influences for service The flow control function of device cluster, the service quality that can also influence server cluster.
Therefore, a kind of request amount control method of improved Internet resources is highly desirable to, to be provided for server cluster Flow access control, ensure the service quality of server cluster.
In the present context, embodiments of the present invention it is expected to provide a kind of the request amount control method and dress of Internet resources Put.
In the first aspect of embodiment of the present invention, there is provided a kind of request amount control method of Internet resources, being can Internet resources set the first numerical parameter and second value parameter, first numerical parameter and the second value parameter Initial value according to it is default stream control threshold value determine;And
Methods described, including:
Receive network resource request;
Operand value parameter is answered to carry out subtracting 1 operation to current, wherein, it is described that current to answer operand value parameter be according to default The resource switch cycle determine, it is described current to answer operand value parameter to include first numerical parameter and/or described the Two numerical parameters;
Internet resources are obtained to handle the net resource request.
In the second aspect of embodiment of the present invention, there is provided a kind of request amount control device of Internet resources, including:
Dispensing unit, for setting the first numerical parameter and second value parameter for available Internet resources, described first Numerical parameter and the initial value of the second value parameter are controlled threshold value according to default stream and determined;
Receiving unit, for receiving network resource request;
Operating unit, for answering operand value parameter to carry out subtracting 1 operation to current, wherein, it is described currently to answer operand value Parameter is determined according to the default resource switch cycle, described currently to answer operand value parameter to include first numerical value ginseng Several and/or described second value parameter;
Acquiring unit, for obtaining Internet resources to handle the net resource request.
In the third aspect of embodiment of the present invention, there is provided a kind of request amount control method of Internet resources, for example, Memory and processor can be included, wherein, processor can be used for reading the program in memory, perform following process:Connect Receive network resource request;Operand value parameter is answered to carry out subtracting 1 operation to current, wherein, it is described current to answer the operand value parameter to be Determined according to the default resource switch cycle, it is described it is current answer operand value parameter include first numerical parameter and/ Or the second value parameter;Internet resources are obtained to handle the net resource request.
In the fourth aspect of embodiment of the present invention, there is provided a kind of program product, it includes program code, when described When program product is run, described program code is used to perform procedure below:Receive network resource request;To currently answering operand value Parameter carries out subtracting 1 operation, wherein, it is described currently to answer operand value parameter to be determined according to the default resource switch cycle, It is described currently to answer operand value parameter to include first numerical parameter and/or the second value parameter;Obtain Internet resources To handle the net resource request.
According to the request amount control method and device of the Internet resources of embodiment of the present invention, by being filled in special stream control It is set to server cluster and carries out flow control, and two values parameter is set for available Internet resources, and according to default The resource switch cycle operates in turn to two values parameter, solves in the flow control process for server cluster, Because resource caused by HP M etc. gives back the problem of failure causes actually available Internet resources to reduce, service is improved The service quality of device cluster, more preferable experience is brought for user.
Brief description of the drawings
Detailed description below, above-mentioned and other mesh of exemplary embodiment of the invention are read by reference to accompanying drawing , feature and advantage will become prone to understand.In the accompanying drawings, if showing the present invention's by way of example, and not by way of limitation Dry embodiment, wherein:
Fig. 1 schematically shows the application scenarios schematic diagram according to embodiment of the present invention;
Fig. 2 schematically shows the request amount control method implementing procedure according to the Internet resources of embodiment of the present invention Schematic diagram;
Fig. 3 schematically shows the resource switch cycle schematic diagram according to embodiment of the present invention;
The request amount control device structure that Fig. 4 schematically shows Internet resources according to another embodiment of the present invention is shown It is intended to;
Fig. 5 is schematically shown to be shown according to the request amount control device structure of the Internet resources of further embodiment of this invention It is intended to;
The program production that the request amount that Fig. 6 schematically shows Internet resources according to yet another embodiment of the invention very controls Product schematic diagram;
In the accompanying drawings, identical or corresponding label represents identical or corresponding part.
Embodiment
The principle and spirit of the present invention is described below with reference to some illustrative embodiments.It should be appreciated that provide this A little embodiments are not with any just for the sake of better understood when those skilled in the art and then realize the present invention Mode limits the scope of the present invention.On the contrary, these embodiments are provided so that the disclosure is more thorough and complete, and energy It is enough that the scope of the present disclosure is intactly communicated to those skilled in the art.
One skilled in the art will appreciate that embodiments of the present invention can be implemented as a kind of system, device, equipment, method Or computer program product.Therefore, the disclosure can be implemented as following form, i.e.,:Complete hardware, complete software (including firmware, resident software, microcode etc.), or the form that hardware and software combines.
According to the embodiment of the present invention, it is proposed that a kind of method and apparatus of the visit capacity control of Internet resources.
Herein, it is to be understood that in involved term:
Stream control:System visit capacity controls, avoid due to instantaneous delivery it is excessive caused by system low-response, delay machine the problems such as.
Stream control threshold value:System visit capacity higher limit, can be rejected more than the access after the value.
Unit stream control:Controlled for the flow of single server, after single server flowing of access exceedes threshold value, after Continuous access can be rejected.
Cluster stream control:Controlled for the flow of some server cluster, when whole server cluster flowing of access exceedes threshold After value, follow-up access can be rejected.
Dynamic stream control:Stream control threshold value can adjust in real time as needed.
Resource pool:A kind of abstract concept, it is assumed that the threshold value for certain one kind request stream control top limit is 100, then A resource pool for possessing 100 resources can be abstracted as, a request starts first to obtain a resource from resource pool, please Ask end to give back 1 resource again, refuse to ask if inadequate resource.
Resource is lost:Total resources is then referred to as resource loss less than initial resource value (for example, it is assumed that one opens in resource pool There are 100 resources beginning, has been requested 1, and also surplus 99, requested 1 after request terminates, should give back this 1 money Source, but because network failure reason, give back signal and do not arrive background server side smoothly, then background server side will be considered that currently Available resources are that have 99, and less than initial set value 100, now as resource is lost).
Resource excess:In resource pool total resources be more than initial resource value be then referred to as resource excess (by compensation mechanism, When resource loss occurs, the quantity of resource is reset into top limit threshold value.And it is possible to resource loss and is not due to Caused by network failure reason, but truly have request also using resource, there is no returned resource also, by the quantity weight of resource After being set to top limit threshold value, if the request returned resource, the total resources in resource pool may be more than initial money Source value, it is at this moment resource excess).
In addition, any number of elements in accompanying drawing is used to example and unrestricted, and any name is only used for distinguishing, Without any restrictions implication.
Below with reference to the principle and spirit of some representative embodiments of the present invention, in detail the explaination present invention.
Summary of the invention
The inventors discovered that the existing stream prosecutor case for single service server, fluid logic and service logic are equal Performed by service server, service server needs to carry out flow control in business procession, and this stream prosecutor formula is to industry Logic of being engaged in is invasive larger, and if service logic and fluid logic separated, and service server is released having handled service request Put after the Internet resources of occupancy, it is necessary to give back Internet resources to stream control server to flow control server modification resource occupying Situation, but in practical application, situations below inevitably be present:Because the reasons such as network communication failure cause to give back information Transmission failure, so, the network resource conditions of stream control server storage do not conform to the actual conditions so that actually available Internet resources subtract It is few, reduce the service quality of service server.
In order to solve the above problems, in the present invention, business processing logic and fluid logic are separated, special stream control is set Server carries out flow control to service server cluster, and any service server in service server cluster is receiving industry After business request, Internet resources are asked to carry out business processing to stream control server, and after the completion of business processing, to stream control service Device gives back Internet resources, and stream control server asks resource or the situation of returned resource to safeguard that itself is stored according to service server Resource occupation information, in order to avoid giving back mistake due to resource caused by the communication failure between service server and stream control server Lose so that the inaccurate situation of resource occupation information that stream control server is safeguarded, in the embodiment of the present invention, provided for available network Source sets two values parameter, two values parameter is operated in turn according to the default resource switch cycle, so, right When one numerical parameter is operated, another numerical parameter can be verified, if it is determined that resource loss occurs and then enters Row supplement, to ensure available resources quantity;Initial value is then reverted in the event of resource excess, to avoid access amount from exceeding Stream control threshold value, causes system load too high.
After the general principle of the present invention is described, lower mask body introduces the various non-limiting embodiment party of the present invention Formula.
Application scenarios overview
With reference first to Fig. 1, it is the application scenarios of the request amount control method of Internet resources provided in an embodiment of the present invention Schematic diagram.Stream control server 11 performs fluid logic, and service server cluster 12 performs business processing logic.Stream control server root The flowing of access of service server is controlled according to the stream control threshold value being pre-configured with, in the embodiment of the present invention, a stream control threshold The corresponding two values parameter of value, respectively the first numerical parameter and second value parameter, wherein, the first numerical parameter and the second number The initial value of value parameter can determine according to stream control threshold value, for example, the first numerical parameter and the initial value of second value parameter can With identical with stream control threshold value, i.e., if stream control threshold value is 100, then the first numerical parameter and the initial value of second value parameter are also 100。
The numerical parameter that stream control server 11 determines currently operate according to default resource switch algorithm, service server Any service server in cluster 12 asks Internet resources with right when receiving business processing request, to stream control server 11 Service request is handled.Stream controls server 11 after the Internet resources for receiving Service Process Server transmission obtain request, To currently answering operand value parameter to subtract 1, net resource request is handled with obtaining Internet resources.
Illustrative methods
With reference to Fig. 1 application scenarios, referring to figs. 2 and 3 describing the net according to exemplary embodiment of the invention The method of the request amount control of network resource.It should be noted that above-mentioned application scenarios are for only for ease of the essence for understanding the present invention God and principle and show, embodiments of the present invention are unrestricted in this regard.On the contrary, embodiments of the present invention can be with Applied to applicable any scene.
As shown in Fig. 2 it shows for the implementing procedure of the request amount control method of Internet resources provided in an embodiment of the present invention It is intended to, can includes:
S21, receive network resource request.
S22, operand value parameter is answered to carry out subtracting 1 operation to current.
Wherein, it is described currently to answer operand value parameter to be determined according to the default resource switch cycle, it is described current Operand value parameter is answered to include first numerical parameter and/or the second value parameter.
S23, Internet resources are obtained to handle the net resource request received.
Any server in service server cluster 12 is sent out after business processing request is received to stream control server 11 To handle business processing request, stream control server 11 is receiving network resource request for SCN Space Cable Network resource acquisition request Afterwards, operating parameter is answered to carry out subtracting 1 operation to current.Wherein, it is to switch week according to default Internet resources currently to answer operating parameter What the phase was determined.
It should be noted that above-mentioned steps S22 and step S23 do not have certain priority execution sequence, step S22 can be with Step S23 is performed simultaneously, can also be first carried out step S23 when it is not 0 currently to answer operand value parameter, performing step S22, these are all equivalent embodiments, and the embodiment of the present invention is to this without limiting.
When it is implemented, currently answer operating parameter to be determined in real time after can receiving net resource request, can also Predefine out, introduce it individually below:
First way, the numerical parameter that should currently operate is determined in real time
Internet resources switching cycle includes very first time section and the second time interval, and stream control server is receiving network After resource request, according to current time or receive the time of network resource request belonging to time interval, it is determined that currently should The numerical parameter of operation.
If when it is implemented, current time or receive time of network resource request and belong to very first time section, Then determine that it is the first numerical parameter currently to answer operand value parameter, if the time for receiving network resource request belongs to second Between section, it is determined that it is current that to answer operand value parameter be second value parameter.
Assuming that the default resource switch cycle is 2M (a length of M during the use of each numerical parameter), as shown in figure 3, it is The first resource switch schematic diagram, transverse axis are timeline, it is assumed that current time receives time of network resource request and is T1, use T1Mould 2M, then can be according to determining current time in method or receive the time T of network resource request1The affiliated time Section: t1=T1Mod2M, if t1∈ [0, M), it is determined that current time receives time of network resource request and belonged to The very first time section;If t1∈ [M, 2M), it is determined that current time receives time of network resource request and belongs to Two time intervals.
If it is determined that current time or receive time of network resource request and belong to very first time section, then to first Numerical parameter carries out subtracting 1 operation, if it is determined that current time receives time of network resource request and belonged to for the second time Section, then carry out subtracting 1 operation to second value parameter.It should be noted that to the first numerical parameter and second value parameter from Initial value proceeds by the operation that subtracts 1, it is assumed that current time section is very first time section, and the first numerical parameter initial value is 100, then first request carries out subtracting 1 operation to the initial value of the first numerical parameter, and the first numerical parameter currency is changed into 99, the Two requests carry out subtracting 1 operation (if first request not yet returned resource before) to the first numerical value, and the second request is to the After one numerical value carries out subtracting 1 operation, the first numerical parameter currency is changed into 98, by that analogy;If asking returned resource, then First numerical parameter is carried out from currency plus 1 operation.If the value for receiving the first numerical parameter during network resource request is 0, Then illustrate that now the network resource request will be refused without available network resource.
In the embodiment of the present invention, it is using the reason for two values parameter, if simply using a numerical parameter, because Ceaselessly to there is acquisition request resource, resource is taken;It so will be unable to judge resource loss or resource when occurs Excess, if resource excess will cause the actual resource released of system to exceed stream control threshold value, in that way it is possible to cause system load Height, it is also possible to cause server to delay machine when serious.Controlled if resource loss will cause the actually available resource of system to be less than stream Threshold value, the wasting of resources is caused, reduce resource utilization.And use two values parameter, then the two numerical value can be used in turn Parameter, for example, first using the first numerical parameter, after some cycles, second value parameter is reused, using second value parameter Period, before using the continuous returned resource of request of the first numerical parameter, after certain time, the resource of these acquisition requests is big The complete restitution of probability finishes, at this point it is possible to be verified to the first numerical parameter, if the numerical value of the first numerical parameter is more than Initial value, it is determined that resource excess occurs.If the numerical value of the first numerical parameter is less than initial value, it is determined that resource occurs and loses Damage.It is determined that after resource loss or resource excess occurs, the first numerical parameter is reverted into initial value.Equally, first is being used During numerical parameter, second value parameter can be verified.Due to the first numerical parameter or second value parameter , it is necessary to be carried out using second value parameter or after the first numerical parameter certain time (to ensure using when being verified The giving back for request maximum probability that resource is obtained during first numerical parameter or second value parameter finishes), therefore, the present invention is real Apply example the very first time section and the second time-switching in set resource recovery buffer section, resource recovery buffer section duration It can preset based on experience value.
Based on this, the request amount control method of Internet resources provided in an embodiment of the present invention, can also comprise the following steps: In current time section, duration is buffered according to default resource recovery and answers operand value parameter to carry out school a upper time interval Test;If determining that a upper time interval answers the value of operand value parameter different from initial value according to check results, recover upper one It is initial value that time interval, which answers the value of operand value parameter,.
As shown in figure 3, in the time interval using the first numerical parameter, to second value parameter after certain time Recovered, in the time interval using second value parameter, the first numerical parameter is recovered after certain time. Assuming that current time is T2, a length of Q when default resource recovery buffers, then according to embodiments of the present invention, in current time section It is interior, operand value parameter can be answered to verify a upper time interval in accordance with the following methods:t2=T2Mod2M, if t2∈ [Q, M), then second value parameter is verified;If t2∈ [M+Q, 2M), then the first numerical parameter is verified.
When it is implemented, after being terminated using the Internet resources of acquisition to network resource request processing, specifically, can be Receive request Internet resources service server send give back signal after determines to terminate network resource request processing, to locate The numerical parameter for carrying out subtracting 1 operation when managing the network resource request is carried out plus 1 operation, to give back Internet resources.
Above-mentioned first numerical parameter and second value parameter be not provided with it is overlapping use section, can in resource switch moment Component requests can occur and use the first numerical parameter, component requests use second value parameter, so, will appear from the network of request Resource exceedes the problem of stream control threshold value.For example, it is assumed that stream control threshold value is 100, the first numerical parameter initial value is 100, the second number Value parameter initial value is also 100.Assuming that it is to be received using the first numerical parameter, i.e. stream control server in current time section After network resource request, carry out subtracting 1 operation to the first numerical parameter, the first numerical parameter is carried out after use plus 1 operation. If when receiving network resource request, the first numerical parameter is carried out according to current time or the time for receiving request The operation that subtracts 1, now system available surplus resources are 99, but according to resource switch before the Internet resources of acquisition are given back Cycle switches to be operated to second value parameter, and so, second value will be joined when hereafter receiving network resource request Number carries out subtracting 1 operation, and the initial value of second value parameter is 100, i.e., when receiving network resource request to second value Parameter proceeds by the operation that subtracts 1 from initial value 100, if giving back network in the request for carrying out subtracting 1 operation to the first numerical parameter Before resource, second value parameter receives 100 requests (assuming that not giving back), then now, the actual network released of system Resource has 101, that is, has exceeded stream control threshold value, so, caused system load too high, be also possible to server can be caused to delay when serious Machine.
Further optimize, in order to solve the problem, the request amount controlling party of Internet resources provided in an embodiment of the present invention In method, the embodiment optimized further below is additionally provided:The default resource switch cycle also includes resource overlapping time section, In resource overlapping time section, while the first numerical parameter and second value parameter are used, to reach Item Smoothing switching Purpose.When receiving network resource request in resource overlapping time section, respectively to the first numerical parameter and second value Parameter carries out subtracting 1 operation, accordingly, when giving back Internet resources, it is necessary to respectively to the first numerical parameter and second value parameter Carry out plus 1 operates.
Preferably, when it is implemented, according to current time or receive time of network resource request, can according to Lower method determines current time or receives time interval belonging to the time of network resource request:t3=T1Mod2M, ifThen determine that the time for receiving network resource request belongs to very first time section;IfThen determine that the time for receiving network resource request belongs to resource overlapping time section;IfThen determine that the time for receiving network resource request belongs to the second time interval, wherein, T1For it is current when Between or receive time of network resource request, 2M is the default resource switch cycle, and P is area of default resource overlapping time Between duration.If current time receives time of network resource request and belongs to resource overlapping time section, it is determined that when Before answer the operand value parameter to be the first numerical parameter and second value parameter.In resource overlapping time section, network is received During resource request, before carrying out subtracting 1 operation to the first numerical parameter and second value parameter respectively, the first numerical parameter or are judged The value of two numerical parameters, as long as one of value is 0, then refuse the network resource request, can so ensure that available network provides The logic judgment of source quantity exceedes stream control threshold value, the problem of causing resource occupation excessive.In addition, the length in resource overlapping time section Degree can determine according to statistical result or empirical value, as long as can ensure in resource overlapping time section, in the resource weight The Internet resources being issued in time interval before folded time interval, only carrying out subtracting 1 operation to a numerical parameter, probably Rate is by complete restitution.It can so ensure at the end of the resource overlapping time section, the first numerical parameter and the second number The value of value parameter is equal or very close to so following can enters the time for only carrying out subtracting 1 operation to a numerical parameter Section.
If resource overlapping time section is set, when it is implemented, can be in accordance with the following methods to the first numerical parameter Or second value parameter is verified:t4=T2Mod2M, ifThen the second value parameter is entered Row verification;IfThen first numerical parameter is verified, wherein, Q is default resource Recover buffering duration, T2For current time.
The second way, predefine and currently answer operating parameter.
Under this embodiment, stream control server 11 predefines according to the default resource switch cycle currently answers operand Value parameter is currently answered operand value parameter list and stored, when stream control server receives network resource request, according to The current of storage answers operand value parameter list to determine currently to answer operand value parameter.
Equally by taking Fig. 3 as an example, it is assumed that the default resource switch cycle is 2M, then is T for the time, and stream control server 12 can To determine the time interval belonging to current time using below equation: t1=Tmod2M, if t1∈ [0, M), it is determined that time T Belong to very first time section;If t1∈ [M, 2M), it is determined that time T belongs to the second time interval.
If resource overlapping time section is provided with the default resource switch cycle, it is assumed that P is that default resource is overlapping Time interval duration, then stream control server time interval belonging to time T can be determined according to below equation:t2=Tmod2M, IfThen determine that time T belongs to very first time section;IfThen determine the time T belongs to resource overlapping time section;IfThen determine that time T belongs to the second time interval.
In very first time section, stream control server determines that current answer includes the first numerical value in operand value parameter list Parameter, in the second time interval, stream control server determines that current answer includes second value ginseng in operand value parameter list Number, in resource overlapping time section, stream control server determines that current answer in operand value parameter list is joined containing the first numerical value Number and second value parameter.Under this embodiment, stream control server is also needed to according to the default resource switch cycle to the One numerical parameter and second value parameter are verified.Due to specific verification mode and above-mentioned a pair of first numerical value of embodiment Parameter is identical with the embodiment that second value parameter is verified, and repeats no more here.
The present invention implements the request amount control method of the Internet resources provided, by setting special stream control server by industry Business processing logical sum fluid logic separation, and two values parameter is set by available network resource, cut according to default resource Change the cycle operates to two values parameter in turn, can be to another when being operated to one of numerical parameter Parameter is verified, avoid due to available resources can not be verified and may caused by system load is too high or system The problem of resource utilization reduces, improves server service quality.
Example devices
After the method for exemplary embodiment of the invention is described, next, with reference to figure 4 to the exemplary reality of the present invention Request amount control devices that apply mode, Internet resources.
As shown in figure 4, it is the request amount controling device structure diagram of Internet resources provided in an embodiment of the present invention, can With including:
Dispensing unit 41, it is described for setting the first numerical parameter and second value parameter for available Internet resources pond First numerical parameter and the initial value of the second value parameter are controlled threshold value according to default stream and determined;
Receiving unit 42, for receiving network resource request;
Operating unit 43, for answering operand value parameter to carry out subtracting 1 operation to current, wherein, it is described currently to answer operand Value parameter is determined according to the default resource switch cycle, described currently to answer operand value parameter to include first numerical value Parameter and/or the second value parameter.
Acquiring unit 44, for obtaining Internet resources to handle the net resource request.
Wherein, the resource switch cycle includes very first time section and the second time interval.
Alternatively, the request amount control device of Internet resources provided in an embodiment of the present invention, can also include:
First determining unit 45, for determining to receive the time interval belonging to the time of network resource request;
Second determining unit 46, if belonging to the very first time section for receiving the time of network resource request, Then determine that it is first numerical parameter currently to answer operand value parameter;If the time for receiving network resource request belongs to institute State the second time interval, it is determined that it is the second value parameter currently to answer operand value parameter.
Alternatively, the request amount control device of Internet resources provided in an embodiment of the present invention, can also include:
Obtaining unit 47, for before the receiving unit 42 receives network resource request, acquisition currently to answer operand Value parameter list, current answer include first numerical parameter and/or second value parameter in operand value parameter list;
3rd determining unit 48, the first numerical value included in operand value parameter list is currently answered to join for determine to obtain Number and/or second value parameter are currently to answer operand value parameter.
It is preferred that operating unit 43, if specifically for currently answering operand value parameter to include first numerical parameter With the second value parameter, then carry out subtracting 1 operation to first numerical parameter and the second value parameter respectively.
Alternatively, the request amount control device of Internet resources provided in an embodiment of the present invention, can also include:
Response unit 49, if being 0 for the current value for answering operand value parameter, refusing the Internet resources please Ask.
Alternatively, the request amount control device of Internet resources provided in an embodiment of the present invention,
The operating unit 43, it is additionally operable to terminate the network resource request processing in the Internet resources using acquisition The numerical parameter for carrying out subtracting 1 operation when afterwards, to handling the network resource request is carried out plus 1 operation.
Wherein, the operating unit 43, if carrying out subtracting 1 numerical value of operation during specifically for handling the network resource request Parameter includes first numerical parameter and the second value parameter, then respectively to first numerical parameter and described second Numerical parameter carries out plus 1 operation.
When it is implemented, the first determining unit 45, specifically for determining current time in accordance with the following methods or receiving net Time interval belonging to the time of network resource request:t1=T1Mod2M, if t1∈ [0, M), it is determined that current time or reception Time to network resource request belongs to very first time section;If t1∈ [M, 2M), it is determined that current time receives net The time of network resource request belongs to the second time interval, wherein, T1For current time or receive network resource request when Between, 2M is the default resource switch cycle.
Alternatively, the request amount control device of Internet resources provided in an embodiment of the present invention, can also include:
First verification unit 410, in current time section, duration to be buffered to upper one according to default resource recovery Time interval answers operand value parameter to be verified;And
Recovery unit 411, if for according to check results determine a upper time interval answer operand value parameter value and The initial value is different, then it is the initial value to recover a upper time interval to answer the value of operand value parameter.
Wherein, the first verification unit 410, specifically in current time section, in accordance with the following methods to the upper time Operand value parameter is answered to be verified in section:t2=T2Mod2M, if t2∈ [Q, M), then the second value parameter is carried out Verification;If t2∈ [M+Q, 2M), then first numerical parameter is verified, wherein, Q buffers for default resource recovery Duration, T2For current time.
It is preferred that the default resource switch cycle also includes resource overlapping time section;And
First determining unit 45, please specifically for determining current time in accordance with the following methods or receiving Internet resources The time interval belonging to time asked:t3=T1Mod2M, ifThen determine current time or receive net The time of network resource request belongs to very first time section;IfThen determine current time or receive The time of network resource request belongs to resource overlapping time section;IfThen determine current time or connect The time for receiving network resource request belongs to the second time interval, wherein, T1For current time or receive Internet resources please The time asked, 2M are the default resource switch cycle, and P is section duration of default resource overlapping time.
Alternatively, the request amount control device of Internet resources provided in an embodiment of the present invention, can also include:
4th determining unit 412, if belonging to resource overlapping time section for receiving the time of network resource request, Then determine that it is first numerical parameter and the second value parameter currently to answer operand value parameter.
Alternatively, the request amount control device of Internet resources provided in an embodiment of the present invention, can also include:Second verification Unit 413, for being verified in accordance with the following methods to the first numerical parameter or second value parameter:t4=T2Mod2M, such as FruitThen the second value parameter is verified;IfThen to described One numerical parameter is verified, wherein, Q is that default resource recovery buffers duration, T2For current time.
After the method and apparatus of exemplary embodiment of the invention are described, next, introducing according to the present invention's The request amount control device of the Internet resources of another exemplary embodiment.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be implemented as following form, i.e.,:It is complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.), or hardware and software, can unite here Referred to as " circuit ", " module " or " system ".
In some possible embodiments, the request amount control device of the network according to the invention resource can be included extremely A few processing unit and at least one memory cell.Wherein, the memory cell has program stored therein code, when the journey When sequence code is performed by the processing unit so that the processing unit is performed in above-mentioned " illustrative methods " part of this specification Various steps in the request amount control method of the Internet resources according to the various illustrative embodiments of the present invention of description.Example Such as, the processing unit can perform step S21 as shown in Figure 2, receive network resource request, step S22, to currently should Operand value parameter carries out subtracting 1 operation, wherein, it is described that current to answer operand value parameter be true according to the default resource switch cycle Make, it is described currently to answer operand value parameter to include first numerical parameter and/or the second value parameter;And step Rapid S23, Internet resources are obtained to handle the net resource request.
The request amount control device according to the Internet resources of the embodiment of the invention is described referring to Fig. 5 50.The request amount control device for the Internet resources that Fig. 5 is shown is only an example, should not to the function of the embodiment of the present invention and Use range brings any restrictions.
As shown in figure 5, the request amount control device 50 of Internet resources can be showed in the form of universal computing device, such as It can be server apparatus.The component of the request amount control device 50 of Internet resources can include but is not limited to:It is above-mentioned at least One processing unit 51, above-mentioned at least one memory cell 52, connection different system component (including memory cell 52 and processing it is single The bus 53 of member 51).
Bus 53 represents the one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, processor or the local bus using any bus structures in a variety of bus structures.
Memory cell 52 can include the computer-readable recording medium of form of volatile memory, such as random access memory (RAM) 521 and/or cache memory 522, it can further include read-only storage (ROM) 523.
Memory cell 52 can also include program/utility 525 with one group of (at least one) program module 524, Such program module 524 includes but is not limited to:Operating system, one or more application program, other program modules and Routine data, the realization of network environment may be included in each or certain combination in these examples.
The request amount control device 50 of Internet resources can also with one or more external equipments 54 (such as keyboard, point to Equipment etc.) communication, it can also enable a user to what is interacted with the request amount control device 50 of the Internet resources with one or more Equipment communication, and/or with enabling the request amount control device 50 of the Internet resources and one or more of the other computing device to enter Any equipment (such as router, modem etc.) communication of row communication.This communication can pass through input/output (I/ O) interface 55 is carried out.Also, the request amount control device 50 of Internet resources can also by network adapter 56 and one or Multiple networks (such as LAN (LAN), wide area network (WAN) and/or public network, such as internet) communication.As illustrated, Network adapter 56 is communicated by bus 53 with other modules of the request amount control device 50 of Internet resources.It should be understood that to the greatest extent Not shown in pipe figure, the request amount control device 50 that can combine Internet resources uses other hardware and/or software module, including But it is not limited to:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive And data backup storage system etc..
Exemplary process product
In some possible embodiments, various aspects of the invention are also implemented as a kind of shape of program product Formula, it includes program code, and when described program product is being run on server apparatus, described program code is used to make the clothes Business device equipment perform described in above-mentioned " illustrative methods " part of this specification according to the various illustrative embodiments of the present invention Method in step, for example, the server apparatus can perform step S21 as shown in Figure 2, receive Internet resources please Ask, and step S22, answer operand value parameter to carry out subtracting 1 operation to current, wherein, it is described that current to answer operand value parameter be root Determined according to the default resource switch cycle, it is described it is current answer operand value parameter include first numerical parameter and/or The second value parameter;And step S23, Internet resources are obtained to handle the net resource request.
Described program product can use any combination of one or more computer-readable recording mediums.Computer-readable recording medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red The system of outside line or semiconductor, device or device, or any combination above.The more specifically example of readable storage medium storing program for executing (non exhaustive list) includes:Electrical connection, portable disc with one or more wires, hard disk, random access memory (RAM), read-only storage (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
As shown in fig. 6, describe the program production of the request control for being used for Internet resources according to the embodiment of the present invention Product 60, it can use portable compact disc read only memory (CD-ROM) and including program code, and can be set in server Standby upper operation.However, the program product not limited to this of the present invention, in this document, readable storage medium storing program for executing can be any includes Or the tangible medium of storage program, the program can be commanded execution system, device either device using or in connection make With.
Readable signal medium can be included in a base band or as a part of data-signal propagated of carrier wave, wherein carrying Readable program code.The data-signal of this propagation can take various forms, including --- but being not limited to --- electromagnetism letter Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be beyond readable storage medium storing program for executing it is any can Read medium, the computer-readable recording medium can send, propagate either transmit for being used by instruction execution system, device or device or Program in connection.
The program code included on computer-readable recording medium can be transmitted with any appropriate medium, including --- but being not limited to --- Wirelessly, wired, optical cable, RF etc., or above-mentioned any appropriate combination.
Can being combined to write the program operated for performing the present invention with one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., include routine Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user Perform on computing device, partly perform on a user device, the software kit independent as one performs, is partly calculated in user Its upper side point is performed or performed completely in remote computing device or server on a remote computing.It is remote being related to In the situation of journey computing device, remote computing device can pass through the network of any kind --- including LAN (LAN) or wide Domain net (WAN)-be connected to user calculating equipment, or, it may be connected to external computing device (such as utilize Internet service Provider passes through Internet connection).
It should be noted that although being referred to some units or subelement of device in above-detailed, but this stroke Point it is merely exemplary not enforceable.In fact, according to the embodiment of the present invention, it is above-described two or more The feature and function of unit can embody in a unit.Conversely, the feature and function of an above-described unit can To be further divided into being embodied by multiple units.
In addition, although the operation of the inventive method is described with particular order in the accompanying drawings, still, this do not require that or Hint must perform these operations according to the particular order, or the operation having to carry out shown in whole could realize it is desired As a result.Additionally or alternatively, it is convenient to omit some steps, multiple steps are merged into a step and performed, and/or by one Step is decomposed into execution of multiple steps.
Although describe spirit and principles of the present invention by reference to some embodiments, it should be appreciated that, this Invention is not limited to disclosed embodiment, and the division to each side does not mean that the feature in these aspects can not yet Combination is to be benefited, and this division is merely to the convenience of statement.It is contemplated that cover appended claims spirit and In the range of included various modifications and equivalent arrangements.

Claims (22)

1. a kind of request amount control method of Internet resources, the first numerical parameter and second value are set for available Internet resources The initial value of parameter, first numerical parameter and the second value parameter is controlled threshold value according to default stream and determined;And
Methods described, including:
Receive network resource request;
Operand value parameter is answered to carry out subtracting 1 operation to current, wherein, it is described that current to answer operand value parameter be according to default money Source switching cycle is determined, described currently to answer operand value parameter to include first numerical parameter and/or second number Value parameter;
Internet resources are obtained to handle the network resource request;
During the first numerical parameter operates, duration is buffered according to default resource recovery school is carried out to the second value parameter Test, if determining that the value of the second value parameter is different from the initial value of the second value parameter according to check results, The value for recovering the second value parameter is the initial value;
During second value parameter manipulation, duration is buffered according to default resource recovery school is carried out to first numerical parameter Test, if determining that the value of first numerical parameter is different from the initial value of first numerical parameter according to check results, The value for recovering first numerical parameter is the initial value.
2. according to the method for claim 1, the resource switch cycle includes very first time section and the second time interval; And
Determine currently to answer operand value parameter in accordance with the following methods according to the default resource switch cycle:
Determine current time or receive time interval belonging to the time of network resource request;
If current time receives time of network resource request and belongs to the very first time section, it is determined that should currently grasp It is first numerical parameter to make numerical parameter;
If current time receives time of network resource request and belongs to second time interval, it is determined that should currently grasp It is the second value parameter to make numerical parameter.
3. according to the method for claim 1, before network resource request is received, in addition to:
Obtain and currently answer operand value parameter list, current answer in operand value parameter list is joined comprising first numerical value Number and/or second value parameter;And
According to it is current answer operand value parameter to carry out subtracting 1 operation to corresponding numerical parameter before, in addition to:
It is determined that what is obtained currently answers the first numerical parameter included in operand value parameter list and/or second value parameter to work as Before answer operand value parameter.
4. according to the method for claim 1, if currently answering operand value parameter to include first numerical parameter and institute Second value parameter is stated, then answers operand value parameter to carry out subtracting 1 operation to current, specifically includes:
Carry out subtracting 1 operation to first numerical parameter and the second value parameter respectively.
5. according to the method for claim 1, to it is current answer operand value parameter to carry out subtracting 1 operation before, in addition to:
If it is determined that the current value for answering operand value parameter is 0, then refuse the network resource request, and terminate the side Method.
6. the method according to claim 11, in addition to:
Enter after being terminated using the Internet resources of acquisition to the network resource request processing, during to handling the network resource request The numerical parameter for operation that row subtracts 1 carries out plus 1 operation.
7. according to the method for claim 6, if carrying out subtracting 1 the numerical parameter bag of operation when handling the network resource request Include first numerical parameter and the second value parameter, then to handling the network resource request when carry out subtracting 1 the number of operation Value parameter carries out plus 1 operation, specifically includes:
First numerical parameter and the second value parameter are carried out respectively plus 1 operates.
8. current time according to the method for claim 2, is determined in accordance with the following methods or receives network resource request Time interval belonging to time:t1=T1Mod 2M, if t1∈ [0, M), it is determined that current time or receive Internet resources please The time asked belongs to very first time section;If t1∈ [M, 2M), it is determined that current time receives network resource request Time belongs to the second time interval, wherein, T1For current time or time of network resource request is received, 2M is default money Source switching cycle.
9. according to the method for claim 8, verified in accordance with the following methods:t2=T2Mod 2M, if t2∈ [Q, M), Then the second value parameter is verified;If t2∈ [M+Q, 2M), then first numerical parameter is verified, its In, Q is that default resource recovery buffers duration, T2For current time.
10. according to the method for claim 2, the default resource switch cycle also includes resource overlapping time section;With And
Current time is determined in accordance with the following methods or receives time interval belonging to the time of network resource request:t3=T1mod 2M, ifThen determine current time or receive time of network resource request to belong to very first time section; IfThen determine current time or receive network resource request time belong to resource it is overlapping when Between section;IfWhen then determining current time or receiving time of network resource request and belong to second Between section, wherein, T1For current time or time of network resource request is received, 2M is the default resource switch cycle, and P is Section duration of default resource overlapping time;And
Methods described, in addition to:
If current time receives time of network resource request and belongs to resource overlapping time section, it is determined that should currently grasp It is first numerical parameter and the second value parameter to make numerical parameter.
11. the method according to claim 11, in addition to:
The first numerical parameter or second value parameter are verified in accordance with the following methods:t4=T2Mod 2M, ifThen the second value parameter is verified;IfThen to described first Numerical parameter is verified, wherein, Q is that default resource recovery buffers duration, T2For current time.
12. a kind of request amount control device of Internet resources, including:
Dispensing unit, for setting the first numerical parameter and second value parameter, first numerical value for available Internet resources The initial value of parameter and the second value parameter is controlled threshold value according to default stream and determined;
Receiving unit, for receiving network resource request;
Operating unit, for answering operand value parameter to carry out subtracting 1 operation to current, wherein, it is described currently to answer operand value parameter Determined according to the default resource switch cycle, it is described currently to answer operand value parameter to include first numerical parameter And/or the second value parameter;
Acquiring unit, for obtaining Internet resources to handle the network resource request;
First verification unit, for during the first numerical parameter operates, duration to be buffered to described according to default resource recovery Second value parameter is verified, and during second value parameter manipulation, duration pair is buffered according to default resource recovery First numerical parameter is verified;
Recovery unit, if for according to the result verified to the second value parameter, determining the second value ginseng Several values is different from the initial value of the second value parameter, then the value for recovering the second value parameter is the initial value, And if according to the result verified to first numerical parameter, determine the value of first numerical parameter and described the The initial value of one numerical parameter is different, then the value for recovering first numerical parameter is the initial value.
13. device according to claim 12, the resource switch cycle includes very first time section and the second time zone Between;And
Described device, in addition to:
First determining unit, for determining current time or receiving time interval belonging to the time of network resource request;
Second determining unit, if belonging to the very first time area for current time or the time for receiving network resource request Between, it is determined that it is first numerical parameter currently to answer operand value parameter;If current time or receive Internet resources please The time asked belongs to second time interval, it is determined that it is the second value parameter currently to answer operand value parameter.
14. device according to claim 12, in addition to:
Obtaining unit, for before the receiving unit receives network resource request, obtaining and currently answering operand value parameter to arrange Table, current answer include first numerical parameter and/or second value parameter in operand value parameter list;
3rd determining unit, for determine to obtain it is current answer the first numerical parameter included in operand value parameter list and/ Or second value parameter is currently to answer operand value parameter.
15. device according to claim 12,
The operating unit, if specifically for currently answering operand value parameter to include first numerical parameter and described second Numerical parameter, then carry out subtracting 1 operation to first numerical parameter and the second value parameter respectively.
16. device according to claim 12, in addition to:
Judging unit, for the operating unit to it is current answer operand value parameter to carry out subtracting 1 operation before, currently should judge Whether the value of operand value parameter is 0;
Response unit, if judging that the current value for answering operand value parameter is 0 for the judging unit, described in refusal Network resource request.
17. device according to claim 12,
The operating unit, it is additionally operable to after being terminated using the Internet resources of acquisition to the network resource request processing, to place The numerical parameter for carrying out subtracting 1 operation when managing the network resource request is carried out plus 1 operation.
18. device according to claim 17,
The operating unit, if the numerical parameter for carrying out subtracting 1 operation during specifically for handling the network resource request includes institute The first numerical parameter and the second value parameter are stated, then first numerical parameter and the second value parameter are entered respectively Row plus 1 operation.
19. device according to claim 13,
First determining unit, specifically for determine in accordance with the following methods current time or receive network resource request when Between belonging to time interval:t1=T1Mod 2M, if t1∈ [0, M), it is determined that current time receives network resource request Time belong to very first time section;If t1∈ [M, 2M), it is determined that current time or receive network resource request when Between belong to the second time interval, wherein, T1For current time or time of network resource request is received, 2M is default money Source switching cycle.
20. device according to claim 19,
First verification unit, specifically for being verified in accordance with the following methods:t2=T2Mod 2M, if t2∈ [Q, M), Then the second value parameter is verified;If t2∈ [M+Q, 2M), then first numerical parameter is verified, its In, Q is that default resource recovery buffers duration, T2For current time.
21. device according to claim 13, the default resource switch cycle also includes resource overlapping time section;With And
First determining unit, specifically for determine in accordance with the following methods current time or receive network resource request when Between belonging to time interval:t3=T1Mod 2M, ifThen determination receives the time of network resource request Belong to very first time section;IfThen determine current time or receive network resource request when Between belong to resource overlapping time section;IfThen determine current time or receive network resource request Time belong to the second time interval, wherein, T1For current time or time of network resource request is received, 2M is default The resource switch cycle, P is section duration of default resource overlapping time;And
Described device, in addition to:
4th determining unit, if belonging to resource overlapping time section for receiving the time of network resource request, it is determined that It is first numerical parameter and the second value parameter currently to answer operand value parameter.
22. device according to claim 21, in addition to:
Second verification unit, for being verified in accordance with the following methods to the first numerical parameter or second value parameter:t4= T2Mod 2M, ifThen the second value parameter is verified;IfThen first numerical parameter is verified, wherein, when Q is that default resource recovery buffers It is long, T2For current time.
CN201610575927.7A 2016-07-18 2016-07-18 The request amount control method and device of a kind of Internet resources Active CN106302211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610575927.7A CN106302211B (en) 2016-07-18 2016-07-18 The request amount control method and device of a kind of Internet resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610575927.7A CN106302211B (en) 2016-07-18 2016-07-18 The request amount control method and device of a kind of Internet resources

Publications (2)

Publication Number Publication Date
CN106302211A CN106302211A (en) 2017-01-04
CN106302211B true CN106302211B (en) 2018-04-03

Family

ID=57652759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610575927.7A Active CN106302211B (en) 2016-07-18 2016-07-18 The request amount control method and device of a kind of Internet resources

Country Status (1)

Country Link
CN (1) CN106302211B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108345594A (en) * 2017-01-22 2018-07-31 中国移动通信集团安徽有限公司 Control method, control device and the control system of database access request
CN108471386B (en) * 2018-02-28 2022-05-03 四川新网银行股份有限公司 Flow and frequency control method based on token and transaction record
CN111404713B (en) * 2019-01-02 2022-12-13 中国移动通信有限公司研究院 Network resource adjusting method, device and storage medium
CN110401720B (en) * 2019-07-31 2022-08-30 中国工商银行股份有限公司 Information processing method, device, system, application server and medium
CN110430142B (en) * 2019-08-16 2023-07-18 北京百度网讯科技有限公司 Method and device for controlling flow
CN111314315B (en) * 2020-01-20 2022-07-08 重庆富民银行股份有限公司 Open platform multi-dimensional safety control system and method
CN113760549B (en) * 2021-08-30 2024-03-15 聚好看科技股份有限公司 Pod deployment method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1758623A (en) * 2004-10-10 2006-04-12 中兴通讯股份有限公司 Method for deciding over-ring flow overrun on elastic group ring
CN102469529A (en) * 2010-11-12 2012-05-23 中兴通讯股份有限公司 Resource allocation method and multi-mode controller
US8302122B1 (en) * 2010-03-08 2012-10-30 Google Inc. Verifying content distribution authority
US8978001B1 (en) * 2013-09-11 2015-03-10 International Business Machines Corporation Enhanced case-splitting based property checking

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1607767A (en) * 2003-10-16 2005-04-20 中兴通讯股份有限公司 Flow-control method based on network processor
EP2040422A1 (en) * 2007-09-19 2009-03-25 British Telecommunications Public Limited Company Methods and apparatus for providing congestion indications
CN103763208B (en) * 2014-01-29 2017-08-29 华为技术有限公司 Data traffic method for limiting and device
CN104980367B (en) * 2014-04-03 2019-04-30 深圳市中兴微电子技术有限公司 A kind of limiting speed of token bucket method and apparatus
CN105245468B (en) * 2015-09-08 2019-04-23 天翼爱音乐文化科技有限公司 Flow limitation method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1758623A (en) * 2004-10-10 2006-04-12 中兴通讯股份有限公司 Method for deciding over-ring flow overrun on elastic group ring
US8302122B1 (en) * 2010-03-08 2012-10-30 Google Inc. Verifying content distribution authority
CN102469529A (en) * 2010-11-12 2012-05-23 中兴通讯股份有限公司 Resource allocation method and multi-mode controller
US8978001B1 (en) * 2013-09-11 2015-03-10 International Business Machines Corporation Enhanced case-splitting based property checking

Also Published As

Publication number Publication date
CN106302211A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106302211B (en) The request amount control method and device of a kind of Internet resources
Varghese et al. Challenges and opportunities in edge computing
EP2342628B1 (en) Integration of an internal cloud infrastructure with existing enterprise services and systems
CN104519458B (en) A kind of method of network connection, terminal, wireless router and system
CN108537543A (en) Method for parallel processing, device, equipment and the storage medium of block chain data
CN106506670B (en) A kind of cloud platform virtual resource high speed dispatching method and system
CN110417879A (en) A kind of message treatment method, device, equipment and storage medium
CN109783472A (en) Moving method, device, computer equipment and the storage medium of table data
US8645545B2 (en) Balancing the loads of servers in a server farm based on an angle between two vectors
CN103942097B (en) A kind of data processing method, device and the computer for possessing related device
CN105144109A (en) Distributed data center technology
US9755924B2 (en) Network resource requirements of traffic through a multiple stage switch network
CN108063813A (en) The method and system of cryptographic service network parallelization under a kind of cluster environment
CN103336708B (en) The polymerization method of network interface card resource and relevant device and computer system
CN107635010A (en) Traffic scheduling method, device, computer-readable recording medium and electronic equipment
CN103927216A (en) Method And System For Managing Virtual Devices
CN103685426B (en) Message processing device and information processing method
CN108837505B (en) Network game data transmission method and system
CN103763403B (en) Message flux control method and relevant apparatus and calculate node
CN109842652A (en) A kind of method for uploading of file, terminal, Cloud Server and computer storage medium
CN109729139A (en) Access request retransmission method, device, equipment and readable storage medium storing program for executing
CN113079041B (en) Service flow transmission method, device, equipment and storage medium
Wang et al. Performance modeling and suitability assessment of data center based on fog computing in smart systems
CN107666401A (en) A kind of configuration information obtaining method and terminal
CN103299298A (en) Service processing method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191106

Address after: 310012 G building, 10 floor, A building, Paradise Software Park, 3 West Road, Hangzhou, Xihu District, Zhejiang

Patentee after: Alibaba (China) Co.,Ltd.

Address before: Hangzhou City, Zhejiang province 310051 Binjiang District River Street No. 1786 Jianghan Road Longsheng Building Room 803

Patentee before: NETEASE KOALA (HANGZHOU) TECH CO.,LTD.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221201

Address after: Room 101, Warehouse 1, No. 88, Jingbin Avenue, Jingbin Industrial Park, Wuqing District, Tianjin 301739

Patentee after: Alibaba Huabei Technology Co.,Ltd.

Address before: 310012 G Block, 10th Building, Building A, Paradise Software Park, No. 3 Xidoumen Road, Xihu District, Hangzhou City, Zhejiang Province

Patentee before: Alibaba (China) Co.,Ltd.