CN104219069B - access frequency control method, device and control system - Google Patents
access frequency control method, device and control system Download PDFInfo
- Publication number
- CN104219069B CN104219069B CN201310209513.9A CN201310209513A CN104219069B CN 104219069 B CN104219069 B CN 104219069B CN 201310209513 A CN201310209513 A CN 201310209513A CN 104219069 B CN104219069 B CN 104219069B
- Authority
- CN
- China
- Prior art keywords
- access
- service server
- imp
- cluster
- duration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Telephonic Communication Services (AREA)
- Computer And Data Communications (AREA)
Abstract
A kind of access frequency control method, including:Duration, the actual access frequency information for the service server cluster that central server receiving interface machine reports are reported every preset;According to actual access frequency information, each service server cluster is counted respectively in preset access duration to total access times of interface message processor (IMP) cluster;And accessed in duration to total access times of interface message processor (IMP) cluster preset according to each service server cluster, access frequency control instruction is sent to interface message processor (IMP), so that interface message processor (IMP) in denied access duration, is refused to provide business service to corresponding service server cluster.In addition, the present invention also provides a kind of access frequency control device and control systems.Above-mentioned access frequency control method, device and control system can more effectively control access frequency of multiple service server clusters to interface message processor (IMP) cluster, and can improve the service efficiency of interface message processor (IMP) cluster resource.
Description
Technical field
The present invention relates to a kind of access frequency control technology more particularly to access frequency control method, device and control systems
System.
Background technology
In the prior art, when a service server accesses an interface message processor (IMP), accessed interface message processor (IMP) records and counts industry
The access frequency of server of being engaged in namely service server access the number of accessed interface message processor (IMP) in preset time period, when above-mentioned visit
When asking that number is more than predetermined times, accessed interface message processor (IMP) will be refused to provide the service of access to service server again, so as to real
Now to the control of the access frequency of service server.
But service server still can obtain access service, such industry by way of accessing other interface message processor (IMP)s
The access frequency of business server is not effectively controlled in fact, in addition, in the service server cluster of multiple and different types
Under the application environment of access interface machine cluster, different types of service server cluster is to multiple interface message processor (IMP)s in interface message processor (IMP) cluster
Access closeness in same duration is different, and the interface message processor (IMP) that this will have is very busy, and some interface message processor (IMP)s
But the phenomenon that very idle, so as to cause the significant wastage of interface message processor (IMP) cluster resource.Therefore multiple business how effectively to be controlled to take
For business device cluster to the access frequency of interface message processor (IMP) cluster, the service efficiency for improving interface message processor (IMP) cluster resource is current a great problem.
Invention content
In view of this, the present invention provides a kind of access frequency control method, device and control system, to multiple business services
Device cluster has higher efficiency, and can improve making for interface message processor (IMP) cluster resource to the control of the access frequency of interface message processor (IMP) cluster
Use efficiency.
A kind of access frequency control method, for controlling access frequency of multiple service server clusters to interface message processor (IMP) cluster
Rate, each service server cluster include the service server of multiple same types of service, and the interface message processor (IMP) cluster includes
Multiple interface message processor (IMP)s, including:Duration is reported every preset, central server receives the service server that the interface message processor (IMP) reports
The actual access frequency information of cluster, the actual access frequency information include, it is described it is preset report in duration, connect to described
Mouth machine carried out identity and the access times of all service server clusters accessed;According to the identity and
Access times count total access of each service server cluster to the interface message processor (IMP) cluster in preset access duration respectively
Number, the preset access duration, which is greater than or equal to, described preset reports duration;And according to each service server cluster
To total access times of the interface message processor (IMP) cluster in the preset access duration, access frequency control is sent to the interface message processor (IMP)
Instruction, the access frequency control instruction are included in the preset access duration, and total access times are equal to or more than preset limit
The identity of the service server cluster of access times processed and corresponding denied access duration, so that the interface message processor (IMP) is in institute
It states in denied access duration, refuses to provide business service to corresponding service server cluster.
A kind of access frequency control method, for controlling access frequency of multiple service server clusters to interface message processor (IMP) cluster
Rate, each service server cluster include the service server of multiple same types of service, and the interface message processor (IMP) cluster includes
Multiple interface message processor (IMP)s, including:The interface message processor (IMP) reports duration every preset, count it is described it is preset report in duration, connect to described
Mouth machine carried out the access times of each service server cluster accessed;Actual access frequency information is sent to central server,
The actual access frequency information is included in the preset all industry for reporting in duration, to the interface message processor (IMP) access
The identity of business server cluster and access times;The access frequency control instruction that the central server is sent is received,
The access frequency control instruction is included in the preset access duration, and total access times are equal to or more than preset limitation and access
The identity of the service server cluster of number and corresponding denied access duration;And it is controlled according to the access frequency
Instruction in the denied access duration, is refused to provide business service to corresponding service server cluster.
A kind of access frequency control method, for controlling access frequency of multiple service server clusters to interface message processor (IMP) cluster
Rate, each service server cluster include the service server of multiple same types of service, and the interface message processor (IMP) cluster includes
Multiple interface message processor (IMP)s, including:The interface message processor (IMP) reports duration every preset, count it is described it is preset report in duration, connect to described
Mouth machine carried out the access times of each service server cluster accessed;The interface message processor (IMP) sends actual access to central server
Frequency information, the actual access frequency information include it is described it is preset report in duration, the interface message processor (IMP) is paid a visit
The identity for all service server clusters asked and access times;Central server receives the institute that the interface message processor (IMP) is sent
Actual access frequency information is stated, the identity and access times in the actual access frequency information, respectively
Each service server cluster is counted in preset access duration to total access times of the interface message processor (IMP) cluster, it is described preset
It accesses duration and is greater than or equal to and described preset report duration;The central server is according to each service server collection of statistics
Group, to total access times of the interface message processor (IMP) cluster, access frequency control is sent to the interface message processor (IMP) in the preset access duration
System instruction, the access frequency control instruction are included in the preset access duration, and total access times are equal to or more than preset
The identity of the service server cluster of access times and corresponding denied access duration are limited, so that the interface message processor (IMP) exists
In the denied access duration, refuse to provide business service to corresponding service server cluster;And the interface message processor (IMP) receives
The access frequency control instruction that the central server is sent, according to the access frequency control instruction, in the denied access
In duration, refuse to provide business service to corresponding service server cluster.
A kind of central server, including:Actual access frequency information receiving module, for reporting duration every preset, in
The actual access frequency information for the service server cluster that central server receiving interface machine reports, the actual access frequency information
Including in the preset identity mark for reporting in duration, all service server clusters of access being carried out to the interface message processor (IMP)
Knowledge and access times;Total access times statistical module, for what is received according to the actual access frequency information receiving module
The identity and access times count each service server cluster and are connect in preset access duration to described respectively
Total access times of mouthful machine cluster, the preset access duration, which is greater than or equal to, described preset reports duration;And access frequency
Control instruction sending module, for according to each service server cluster of total access times statistical module counts in institute
It states in preset access duration to total access times of the interface message processor (IMP) cluster, sends access frequency control to the interface message processor (IMP) and refer to
It enables, the access frequency control instruction is included in the preset access duration, and total access times are equal to or more than preset limitation
The identity of the service server cluster of access times and corresponding denied access duration, so that the interface message processor (IMP) is described
In denied access duration, refuse to provide business service to corresponding service server cluster.
A kind of interface message processor (IMP), including:Access times statistical module for reporting duration every preset, is counted described preset
It reports in duration, to the access times for each service server cluster that the interface message processor (IMP) access;Actual access frequency is believed
Sending module is ceased, for sending actual access frequency information to the central server, is wrapped in the actual access frequency information
Include it is described it is preset report in duration, to the interface message processor (IMP) carried out access all service server clusters identity with
And the access times of the access times statistical module counts;Access frequency control instruction receiving module, for receive it is described in
The access frequency control instruction that central server is sent, the access frequency control instruction are included in the preset access duration,
Total access times are equal to or more than the identity of the service server cluster of preset limitation access times and corresponding refusal
Access duration;And refusal service module, for the access received according to the access frequency control instruction receiving module
FREQUENCY CONTROL instructs, and in the denied access duration, refuses to provide business service to corresponding service server cluster.
A kind of cluster access frequency control system, including:Multiple service server clusters, wherein each business service
Device cluster includes the service server of multiple same types of service;Above-mentioned central server;And by multiple above-mentioned interface units
Into interface message processor (IMP) cluster.
Access frequency control method provided in an embodiment of the present invention, device and control system, by central server according to
The actual access frequency information for the service server cluster that interface message processor (IMP) periodically reports counts each service server cluster pre- respectively
It puts and accesses in duration to total access times of entire interface message processor (IMP) cluster, access frequency control is sent to interface message processor (IMP) according to statistical result
Instruction, so that interface message processor (IMP) in denied access duration, refuses the service server collection more than preset access frequency to access frequency
Group provides business service, realizes and multiple service server clusters manage the unified of access frequency of entire interface message processor (IMP) cluster
Reason so as to the more efficiently multiple service server clusters of control to the access frequency of interface message processor (IMP) cluster, improves interface message processor (IMP)
The service efficiency of cluster resource.
Above and other objects, features and advantages to allow the present invention can be clearer and more comprehensible, preferred embodiment cited below particularly,
And coordinate institute's accompanying drawings, it is described in detail below.
Description of the drawings
Fig. 1 is the applied environment figure of the present invention.
Fig. 2 is the flow chart of access frequency control method that first embodiment of the invention provides.
Fig. 3 is the flow chart of access frequency control method that second embodiment of the invention provides.
Fig. 4 is the flow chart of access frequency control method that third embodiment of the invention provides.
Fig. 5 is the flow chart of access frequency control method that fourth embodiment of the invention provides.
Fig. 6 is the flow chart of access frequency control method that fifth embodiment of the invention provides.
Fig. 7 is the structure diagram of central server that sixth embodiment of the invention provides.
Fig. 8 is the structure diagram of central server that seventh embodiment of the invention provides.
Fig. 9 is the structure diagram of interface message processor (IMP) that eighth embodiment of the invention provides.
Figure 10 is the structure diagram of interface message processor (IMP) that ninth embodiment of the invention provides.
Figure 11 is the schematic diagram of access frequency control system that tenth embodiment of the invention provides.
Specific embodiment
Further to illustrate that the present invention is the technological means and effect that the predetermined goal of the invention of realization is taken, below in conjunction with
Attached drawing and preferred embodiment to specific embodiment, structure, feature and its effect according to the present invention, are described in detail as after.
The following each embodiments of the present invention can be applied in environment as shown in Figure 1 unless otherwise instructed, as shown in Figure 1,
Central server 100 is connected by way of wired or wireless network with interface message processor (IMP) cluster 200, and interface message processor (IMP) cluster 200 is by having
The mode of line or wireless network is connected with multiple service server clusters 300.
Multiple service server clusters 300 may include multiple business clothes that different kinds of business service is provided for client
Business device cluster, such as:Mail service server cluster 300(Identity:Email300), microblogging service server cluster 300
(Identity:MicroBlog300), cyberspace service server cluster 300(Identity:Qzone300)Deng corresponding
Can provide mail service, microblogging business and cyberspace business to client respectively.Each service server cluster 300
In may include the service servers of multiple same types of service, such as:It can in microblogging service server cluster MicroBlog300
Including:MicroBlog300A、MicroBlog300B……MicroBlog300300N.
It may include multiple interface message processor (IMP) 200A, 200B ... 200N in interface message processor (IMP) cluster 200.Interface message processor (IMP) can be that data platform takes
Business device is each service server and its cluster for the access request according to service server each in service server cluster 300
The service of access, read-write or storage service data are provided.The multiple interface message processor (IMP) 200A, 200B ... 200N can be simultaneously respectively
Multiple service server clusters 300 provide services, the resource of each interface message processor (IMP) can be made to be fully used in this way, without because
Different types of service server cluster is different to access closeness of multiple interface message processor (IMP)s in same duration, but an industry
Business server limitation can only access an interface message processor (IMP) again, and the caused interface message processor (IMP) having is very busy, and some interface message processor (IMP)s are but very idle
Phenomenon so as to avoid the waste of interface message processor (IMP) cluster resource, improves the service efficiency of interface message processor (IMP) cluster resource.
First embodiment
Fig. 2 is the flow chart of access frequency control method that first embodiment provides.As shown in Fig. 2, the visit of the present embodiment
Ask that control method for frequency includes the following steps:
Step S11 reports duration every preset, and central server receives the business clothes that the interface message processor (IMP) cluster reports
The actual access frequency information of business device cluster.
Access frequency refers to service server cluster in the preset number for reporting access interface machine in duration.Actual access frequency
Rate information can include at least:In the identity of the preset all service server clusters for reporting and carrying out access in duration to interface message processor (IMP)
Mark(IDentity, ID)And access times.
Interface message processor (IMP) reports duration every preset, and preset report of statistics was accessed all business services of oneself in duration
The ID and its access times of device cluster are sent to central server.
Step S12 according to the identity and access times, counts each service server cluster pre- respectively
It puts and accesses in duration to total access times of the interface message processor (IMP) cluster.
The preset duration that accesses is to control duration standard of the service server cluster to the access frequency of interface message processor (IMP) cluster, control
Service server cluster is exactly to control service server cluster in preset access duration to the access frequency of interface message processor (IMP) cluster, right
The access times of interface message processor (IMP) cluster, it is impossible to more than preset limitation access times.
It is preset to report duration preset access duration be greater than or equal to described preset report according to preset access duration setting
Duration, such as:Assuming that a length of 1 minute during preset access, then preset to report duration can be 5 seconds.
Step S13, according to each service server cluster it is described it is preset access duration in the interface message processor (IMP) cluster
Total access times, to the interface message processor (IMP) send access frequency control instruction.
Access frequency control instruction is included in preset access duration, and total access times are equal to or more than preset limitation and access
The ID of the service server cluster of number and corresponding denied access duration, for making interface message processor (IMP) in denied access duration,
Refuse to provide business service to corresponding service server cluster.
It is understood that central server can be also accessed in duration preset to interface according to each service server cluster
Total access times of machine cluster, to entire interface message processor (IMP) collection pocket transmission access frequency control instruction, so that in entire interface message processor (IMP) cluster
Total interface machine in denied access duration, refuse to corresponding service server cluster provide business service.
Access frequency control method provided in an embodiment of the present invention, is periodically reported by central server according to interface message processor (IMP)
The actual access frequency information of service server cluster counts each service server cluster in preset access duration to whole respectively
Total access times of a interface message processor (IMP) cluster send access frequency control instruction, so that interface message processor (IMP) according to statistical result to interface message processor (IMP)
In denied access duration, refuse to provide business service to the service server cluster that access frequency is more than preset access frequency,
It realizes to unified management of multiple service server clusters to the access frequency of entire interface message processor (IMP) cluster, so as to more have
The multiple service server clusters of control of effect improve the use effect of interface message processor (IMP) cluster resource to the access frequency of interface message processor (IMP) cluster
Rate.
Second embodiment
Fig. 3 is the flow chart of access frequency control method that second embodiment provides.As shown in Fig. 2, the visit of the present embodiment
Ask that control method for frequency includes the following steps:
Step S21 receives the access service request information that the service server is sent.
Accessing service request information can include at least:The identity of the affiliated service server cluster of service server, industry
Business server cluster is in preset access duration to the internet of the preset limitation access times of interface message processor (IMP) cluster, service server
Agreement(Internet Protocol, IP)Address, other business that a service server cluster is belonged to service server
The IP address of server, service server and belong to a service server cluster other service servers IP address with
The correspondence of service server cluster.
Step S22 according to the access service request information, sends control frequency configuration information to the interface message processor (IMP) collection
Group.
Control frequency configuration information may include the part or all of content of the access service request information in step S21, use
Each interface message processor (IMP) in interface message processor (IMP) cluster is according to control frequency configuration information, and statistical service server cluster is to the access frequency of oneself
Rate.
Step S23 according to the access service request information, is created or the access frequency control of update center server is arranged
Table.
Central server can be according to the access service request information creating center server access frequency control received for the first time
List processed, and taken according to multiple access that the service server by belonging to different business server cluster received thereafter is sent
Business application information updates the content of center server access frequency control list.
It is appreciated that central server, which also may respectively be multiple service server clusters, creates multiple central servers
Hold access frequency control list.
It is as shown in table 1 below with reference to application environment shown in FIG. 1, it can be wrapped in center server access frequency control list
It includes:At least one set of primary index information and secondary indexing information.Wherein, primary index information may include:The ID of each service server cluster;
Secondary indexing information may include:Access of each service server cluster corresponding with ID in preset access duration to interface message processor (IMP) cluster
Number.
Table 1
It is understood that it is as shown in table 2 below, it can also further be wrapped in center server access frequency control list
It includes:The information such as the preset access duration of each service server cluster, preset limitation access times, remaining statistics duration.
Table 2
Step S24 reports duration every preset, receives the reality of the service server cluster that the interface message processor (IMP) reports
Access frequency information.
This step can refer to the corresponding contents in first embodiment in step S11, and which is not described herein again.
Step S25, according to the identity of the service server cluster, in the center server access frequency control
It is searched and using the identity of the service server cluster as the corresponding secondary indexing of the primary index information of content in list processed
Information.
Step S26, by it is described it is preset report in duration, service server cluster corresponding with the identity is to described
The access times of interface message processor (IMP) add up with the access times in presently described secondary indexing information, according to the update of cumulative gained
Secondary indexing information.
Illustrate as with reference to property, for example(Example 1), with reference to shown in Fig. 1 and table 1, it is assumed that service server cluster
It is preset a length of 5 seconds when reporting a length of 1 minute during the preset access of MicroBlog300, central server 100 in second 5 seconds
First and second actual access frequency information that interface message processor (IMP) 200A and interface message processor (IMP) 200B is reported is respectively received, wherein first is practical
Access frequency information includes:In 5 seconds, service server cluster MicroBlog300 is accessed 200 times, the second actual access frequency
Information includes:In 5 seconds, service server cluster MicroBlog300 is accessed 800 times.Central server 100 according to first with
Second actual access frequency information updates the corresponding secondary indexing information in table 1.Specifically, 5 seconds that interface message processor (IMP) 200A is reported
Service server cluster in interior service server cluster MicroBlog300 access times 200, interface message processor (IMP) 200B report 5 seconds
The secondary indexing information of MicroBlog300 in MicroBlog300 access times 1000, with table 1(Namely current business server set
Group MicroBlog300 is in 1 minute to total access times 20 of interface message processor (IMP) cluster 200)It is cumulative, then by the number of cumulative acquisition
Value 200+1000+20=1220 re-write the secondary indexing, make table 1 as shown in table 3.
Table 3
The numerical value of cumulative gained is that service server cluster MicroBlog300 is accessed preset in duration, to interface message processor (IMP) collection
Current total access times of group 200.By counting each service server cluster respectively to entire interface message processor (IMP) cluster in preset access
Total access times in duration can effectively prevent each service server cluster to break by accessing different interface message processor (IMP)s pre-
The limitation for accessing the access that duration only carries out preset limitation access times is put, so as to the more efficiently multiple business of control
Server cluster is to the access frequency of interface message processor (IMP) cluster.
According to updated secondary indexing information, access frequency control instruction is sent to the interface message processor (IMP) by step S27.
Total access of the secondary indexing information for each service server cluster in preset access duration to the interface message processor (IMP) cluster
Number.By the way that secondary indexing information and preset limitation access times are compared, it is possible to determine that the visit of each service server cluster
Ask frequency whether super rate.
Access frequency control instruction may include:In preset access duration, total access times are equal to or more than preset limitation
The ID of the service server cluster of access times and corresponding denied access duration, for making interface message processor (IMP) in denied access duration
It is interior, refuse to provide business service to corresponding service server cluster.
It is understood that if the service server cluster involved by the actual access frequency information that interface message processor (IMP) reports does not surpass
Frequently, the information of the non-overclocking of service server cluster also can be sent to interface by central server as access frequency control instruction
Machine.
Illustrate as with reference to property, for example, still by taking above-mentioned example 1 as an example, with reference to shown in Fig. 1 and table 3, it is assumed that 1 minute
The preset limitation access times of interior service server cluster MicroBlog300 are 1000, and central server 100 can be according to statistics
As a result will be more than the ID of the preset service server cluster for limiting access times in table 2(MicroBlog300)And its total access time
Number(1220 times)Interface message processor (IMP) 200A and interface message processor (IMP) 200B are sent to as access frequency control instruction, so that interface message processor (IMP) 200A is with connecing
Mouthful machine 200B is returned when the access request for receiving in service server cluster MicroBlog300 any service server
Refuse information, and in denied access duration, refuse to provide the service of access to the service server.Wherein, denied access duration
The residue counted except duration for preset access duration removing accesses service server cluster in duration namely table 2
The value of the remaining statistics duration of MicroBlog300.After denied access duration is used up, interface message processor (IMP) 200A and interface message processor (IMP) 200B can
Again access service is provided for service server cluster MicroBlog300.
It is understood that access frequency control instruction can be also sent in interface message processor (IMP) cluster 200 by central server 100
Each interface message processor (IMP) 200A, 200B ... 200N.
Step S28 after the preset access duration is used up, empties the center server access frequency control list
In with the access times be equal to or more than it is described it is preset access duration in limitation access times service server cluster it is opposite
The secondary indexing information answered.
Since the preset access duration of each service server cluster is different, when the preset visit of some service server cluster
After asking that duration is used up, central server empties center server access frequency control list(Table 1)In with the service server
Cluster relative to secondary indexing information.As reference, for example, with reference to shown in Fig. 1, table 2, it is assumed that service server cluster
The preset access duration of MicroBlog300 and service server cluster Email300 is used up, then central server 100 empties table 2
Middle service server cluster MicroBlog300 and service server cluster Email300 secondary indexing values, and reset the residue of the two
Duration information is counted, table 2 is made to become as shown in table 4 below, to be service server cluster MicroBlog300 and business again
Server cluster Email300 timing, again statistical service server cluster MicroBlog300 and service server cluster
Email300 is in preset access duration, to total access times of interface message processor (IMP) cluster 200.
Table 4
Access frequency control method provided in an embodiment of the present invention, is periodically reported by central server according to interface message processor (IMP)
The actual access frequency information of service server cluster counts each service server cluster in preset access duration to whole respectively
Total access times of a interface message processor (IMP) cluster send access frequency control instruction, so that interface message processor (IMP) according to statistical result to interface message processor (IMP)
In denied access duration, refuse to provide business service to the service server cluster that access frequency is more than preset access frequency,
It realizes to unified management of multiple service server clusters to the access frequency of entire interface message processor (IMP) cluster, so as to more have
The multiple service server clusters of control of effect improve the use effect of interface message processor (IMP) cluster resource to the access frequency of interface message processor (IMP) cluster
Rate.
3rd embodiment
Fig. 4 is the flow chart of access frequency control that 3rd embodiment provides.As shown in figure 4, the access frequency of the present embodiment
Rate control method includes the following steps:
Step S31, interface message processor (IMP) report duration every preset, count it is described it is preset report in duration, to the interface message processor (IMP)
Carried out the access times of each service server cluster accessed.
Step S32 sends actual access frequency information to central server.
Actual access frequency information includes reporting in duration preset, and carrying out all business accessed to interface message processor (IMP) takes
The identity of business device cluster and access times.
Step S33 receives the access frequency control instruction that the central server is sent, the access frequency control instruction
Including in the preset access duration, total access times are equal to or more than the service server cluster of preset limitation access times
Identity and corresponding denied access duration.
Step S34 according to the access frequency control instruction, in the denied access duration, refuses to corresponding industry
Business server cluster provides business service.
Access frequency control method provided in an embodiment of the present invention, is periodically reported by central server according to interface message processor (IMP)
The actual access frequency information of service server cluster counts each service server cluster in preset access duration to whole respectively
Total access times of a interface message processor (IMP) cluster send access frequency control instruction, so that interface message processor (IMP) according to statistical result to interface message processor (IMP)
In denied access duration, refuse to provide business service to the service server cluster that access frequency is more than preset access frequency,
It realizes to unified management of multiple service server clusters to the access frequency of entire interface message processor (IMP) cluster, so as to more have
The multiple service server clusters of control of effect improve the use effect of interface message processor (IMP) cluster resource to the access frequency of interface message processor (IMP) cluster
Rate.
Fourth embodiment
Fig. 5 is the flow chart of access frequency control that fourth embodiment provides.As shown in figure 5, the access frequency of the present embodiment
Rate control method includes the following steps:
Step S41 receives the control frequency configuration information that the central server is sent.
Access service request information, when application accesses service, is sent to central server by service server.In it is genuinely convinced
Business device issues control frequency configuration information to the total interface in interface message processor (IMP) cluster according to the access service request information of reception
Machine.Control frequency configuration information may include:It accesses service request information and includes the affiliated service server cluster of service server
ID, service server cluster are in preset access duration to the preset limitation access times of interface message processor (IMP) cluster, service server
IP address and service server belong to IP address, the business service of other service servers of a service server cluster
The IP address of other service servers of the device with belonging to a service server cluster corresponding pass with service server cluster
System.
Step S42 according to control frequency configuration information, is created or is updated interface generator terminal access frequency control list.
Interface message processor (IMP) is according to the access service request information creating interface generator terminal access frequency control list received for the first time, and root
According to the multiple control frequency configuration informations received thereafter, the content of interface generator terminal access frequency control list is updated.
It is understood that interface message processor (IMP), which is alternatively multiple service server clusters, creates multiple interface generator terminal access frequency controls
List processed.
Specifically, can according to control frequency configuration information in each service server cluster ID, belong to a business
The IP address of each service server of server cluster and each service server for belonging to service server cluster
IP address and the correspondence of each service server cluster, create interface generator terminal access frequency control list.
It may include in interface generator terminal access frequency control list:At least one set of primary index information and secondary indexing information, main rope
Fuse breath includes:The ID of service server cluster, secondary indexing information include:Interface message processor (IMP) reports collected industry in duration preset
The number of business server cluster access interface machine., also can also be further as shown in table 5 in addition to above- mentioned information, including:In advance
It puts and reports the information such as duration, the preset IP address for accessing duration, remaining statistics duration, subordinate's service server.
Table 5
Step S43, be recorded in it is described it is preset report in duration, with accessing the IP of each service server of the interface message processor (IMP)
Location.
Step S44 takes according to the IP address for each service server for belonging to a service server cluster and each business
It is engaged in the correspondence of device cluster, adds up each service server cluster to the access times of the interface message processor (IMP), and according to adding up what is
Access times update the secondary indexing information in the interface generator terminal access frequency control list.
Specifically, as a reference, for example(Example 2), with reference to shown in Fig. 1 and table 5, in 5 seconds, when interface message processor (IMP) 200A is supervised
Measure the service server MicroBlog300A that IP address is 119.139.29.58 to oneself access when, interface message processor (IMP) 200
The IP address 119.139.29.58 of service server MicroBlog300A specifically accessed is recorded, according to IP address
119.139.29.58 find with the service server cluster MicroBlog300 belonging to service server MicroBlog300A, and
The secondary indexing information of service server cluster MicroBlog300 is updated, makes table 5 as shown in table 6 below.
Table 6
Step S45, when it is described it is preset duration is reported to use up when, by the institute in the interface generator terminal access frequency control list
It states primary index information and is reported to the central server as actual access frequency information, and report with the secondary indexing information
The secondary indexing information in the interface generator terminal access frequency control list is emptied afterwards.
Still by taking example 2 as an example, as shown in Fig. 1 and table 5, it is assumed that service server cluster MicroBlog300 it is preset on give the correct time
A length of 5 seconds, interface message processor (IMP) 200A service server cluster MicroBlog300 when monitoring that 5 seconds have used up namely in table 5
When a length of 0 during residue statistics, by the primary index information MicroBlog300 of service server cluster MicroBlog300 and secondary rope
Fuse breath 21 is reported to central server 100, and by service server cluster after reporting as actual access frequency information
The secondary indexing value of MicroBlog300 empties, and the remaining statistics duration of resetting service server cluster MicroBlog300 makes table 6
As shown in table 7.
Table 7
It is understood that interface message processor (IMP) is when the preset access duration for monitoring some service server cluster is used up,
Can in cleanout port generator terminal access frequency control list the service server cluster secondary indexing value, and reset the service server
The remaining statistics duration of cluster.
Step S46 receives the access frequency control instruction that the central server is sent, the access frequency control instruction
Including in the preset access duration, total access times are equal to or more than the service server cluster of preset limitation access times
Identity and corresponding denied access duration.
Step S47 according to the access frequency control instruction, in the denied access duration, refuses to corresponding industry
Business server cluster provides business service.
Interface message processor (IMP) can be in interface generator terminal access frequency control list, the need that arrive involved in the instruction of mark access FREQUENCY CONTROL
Refuse to provide the service server cluster for accessing and servicing, when the access request for receiving labeled service server cluster
When, refuse to provide access service for it, and send denied access information and give the service server cluster, notify the service server
Cluster alreadys exceed limitation access frequency, which can not obtain interface message processor (IMP) offer in denied access duration
Access service.
Access frequency control method provided in an embodiment of the present invention, is periodically reported by central server according to interface message processor (IMP)
The actual access frequency information of service server cluster counts each service server cluster in preset access duration to whole respectively
Total access times of a interface message processor (IMP) cluster send access frequency control instruction, so that interface message processor (IMP) according to statistical result to interface message processor (IMP)
In denied access duration, refuse to provide business service to the service server cluster that access frequency is more than preset access frequency,
It realizes to unified management of multiple service server clusters to the access frequency of entire interface message processor (IMP) cluster, so as to more have
The multiple service server clusters of control of effect improve the use effect of interface message processor (IMP) cluster resource to the access frequency of interface message processor (IMP) cluster
Rate.
5th embodiment
Fig. 6 is the flow chart of access frequency control method that the 5th embodiment provides.As shown in fig. 6, the visit of the present embodiment
Ask that control method for frequency includes the following steps:
Step S501, the pocket transmission of service server collection access service request information to central server.
Service server collection pocket transmission service request information takes to central server to be accessed to central server application
Business.Wherein, service request information may include:ID, the service server cluster of service server cluster are accessed preset in duration
To the preset limitation access times of interface message processor (IMP) cluster(Namely service server cluster needs the frequency to access to interface message processor (IMP) cluster
Rate), the IP address of each service server of service server cluster subordinate, each service server of service server cluster subordinate IP
Address and the correspondence of service server cluster.
After above-mentioned access service request goes through, service server can obtain the permission of access interface machine cluster.
Step S502, central server are visited according to the access service request information creating or update center server of reception
Ask FREQUENCY CONTROL list.
This step can refer to the corresponding contents in second embodiment in step S23, and which is not described herein again.
Step S503, after accessing service request and going through, central server sends control frequency configuration information to described
Interface message processor (IMP) cluster.
Control frequency configuration information is to be sent by central server according to service request information is accessed.Control frequency configuration letter
Breath includes at least the part or all of content accessed in service request information.
Step S504, interface message processor (IMP) cluster create according to the control frequency configuration information of reception or update interface generator terminal access
FREQUENCY CONTROL list.
Each interface message processor (IMP) in machine cluster creates according to the control frequency configuration information of reception or update interface generator terminal accesses frequency
Rate control list.
Each interface message processor (IMP) creates or the specific steps of update interface generator terminal access frequency control list, can refer to the 4th and implement
Corresponding contents in example in step S42, which is not described herein again.
Step S505, service server cluster is for the first time to interface message processor (IMP) collection pocket transmission access request.
Step S506, the access that interface message processor (IMP) cluster notice central server receives service server collection pocket transmission for the first time please
It asks.
Step S507, central server start to access access interface in duration preset for statistical service server cluster
The number timing of machine cluster.
Step S508, interval is preset to report duration, and interface message processor (IMP) cluster reports and submits service server cluster to central server
Actual access frequency information.
Actual access frequency is reported preset in duration for service server cluster, the number of access interface machine cluster.
Be spaced it is preset report duration, interface message processor (IMP) collection group records and counting are reported in duration epicycle is preset, service server
Cluster accesses the number of oneself, and is sent to central server using the access times of statistics as actual access frequency information.
Specific steps can refer to the corresponding contents in fourth embodiment in step S42-S45, and which is not described herein again.
Step S509, central server are counted according to the actual access frequency information of the service server cluster of reception
In preset access duration, total access times of service server cluster access interface machine cluster.
Specific steps can refer to the corresponding contents in second embodiment in step S25-S26, and which is not described herein again.
Step S510, central server send access frequency control according to total access times of statistics to the interface message processor (IMP)
Instruction.
It may include service server cluster in access frequency control instruction in preset access duration, to interface message processor (IMP) cluster
Whether whether total access times be greater than or equal to preset limitation access times, refusal needed to access clothes to service server offer
The information such as business, denied access duration.
Step S511, service server cluster is to interface message processor (IMP) collection pocket transmission access request.
Step S512 refuses to provide the letter for accessing and servicing to service server cluster when including in access frequency control instruction
During breath, interface message processor (IMP) collection pocket transmission denied access information gives service server cluster, refuses in denied access duration, is taken to business
Business device cluster provides the service of access.
Access frequency control method provided in an embodiment of the present invention, is periodically reported by central server according to interface message processor (IMP)
The actual access frequency information of service server cluster counts each service server cluster in preset access duration to whole respectively
Total access times of a interface message processor (IMP) cluster send access frequency control instruction, so that interface message processor (IMP) according to statistical result to interface message processor (IMP)
In denied access duration, refuse to provide business service to the service server cluster that access frequency is more than preset access frequency,
It realizes to unified management of multiple service server clusters to the access frequency of entire interface message processor (IMP) cluster, so as to more have
The multiple service server clusters of control of effect improve the use effect of interface message processor (IMP) cluster resource to the access frequency of interface message processor (IMP) cluster
Rate.
Sixth embodiment
Fig. 7 is the structure diagram of central server that sixth embodiment of the invention provides.Center provided in this embodiment
Server can be used to implement control of multiple service server clusters to the access frequency of interface message processor (IMP) cluster.In as shown in fig. 7,
Central server 10 includes:Actual access frequency information receiving module 11, total access times statistical module 12, access frequency control refer to
Enable sending module 13.
Wherein, actual access frequency information receiving module 11 is used to report duration every preset, and receiving interface machine reports
The actual access frequency information of service server cluster, the actual access frequency information include, and preset duration is reported described
It is interior, identity and the access times of all service server clusters of access were carried out to the interface message processor (IMP).
Total access times statistical module 12 is used for according to receiving the actual access frequency information receiving module 11
Identity and access times count each service server cluster in preset access duration to the interface message processor (IMP) respectively
Total access times of cluster, the preset access duration, which is greater than or equal to, described preset reports duration.
Access frequency control instruction sending module 13, for each institute counted according to total access times statistical module 12
Service server cluster is stated in the preset access duration to total access times of the interface message processor (IMP) cluster, to the interface message processor (IMP)
Access frequency control instruction is sent, the access frequency control instruction is included in the preset access duration, total access times
Identity and corresponding denied access duration equal to or more than the service server cluster of preset limitation access times, with
Make the interface message processor (IMP) in the denied access duration, refuse to provide business service to corresponding service server cluster.
The detailed process of the respective function of each Implement of Function Module of the present embodiment central server 10, refers to above-mentioned Fig. 1
To the particular content described in embodiment illustrated in fig. 6, details are not described herein again.
Access frequency control device provided in an embodiment of the present invention, is periodically reported by central server according to interface message processor (IMP)
The actual access frequency information of service server cluster counts each service server cluster in preset access duration to whole respectively
Total access times of a interface message processor (IMP) cluster send access frequency control instruction, so that interface message processor (IMP) according to statistical result to interface message processor (IMP)
In denied access duration, refuse to provide business service to the service server cluster that access frequency is more than preset access frequency,
It realizes to unified management of multiple service server clusters to the access frequency of entire interface message processor (IMP) cluster, so as to more have
The multiple service server clusters of control of effect improve the use effect of interface message processor (IMP) cluster resource to the access frequency of interface message processor (IMP) cluster
Rate.
7th embodiment
Fig. 8 is the structure diagram of central server that seventh embodiment of the invention provides.Center provided in this embodiment
Server can be used to implement control of multiple service server clusters to the access frequency of interface message processor (IMP) cluster.In as shown in figure 8,
Central server 20 includes:Actual access frequency information receiving module 21, total access times statistical module 22, access frequency control refer to
Sending module 23 is enabled, service request information receiving module 24 is accessed, accesses service request information sending module 25, central server
End access frequency control list creation module 26, center server empty module 27.
Wherein, actual access frequency information receiving module 21 is used to report duration every preset, and receiving interface machine reports
The actual access frequency information of service server cluster, the actual access frequency information include, and preset duration is reported described
It is interior, identity and the access times of all service server clusters of access were carried out to the interface message processor (IMP).
Total access times statistical module 22 is used for according to receiving the actual access frequency information receiving module 21
Identity and access times count each service server cluster in preset access duration to the interface message processor (IMP) respectively
Total access times of cluster, the preset access duration, which is greater than or equal to, described preset reports duration.Including:Searching unit 221
With summing elements 222.Wherein searching unit 221, for the institute received according to the actual access frequency information receiving module 21
The identity of service server cluster is stated, is searched and with the industry in the center server access frequency control list
The identity of business server cluster is the corresponding secondary indexing information of primary index information of content.Summing elements 222 are used for will
The actual access frequency information receiving module 21 receive it is described it is preset report in duration, industry corresponding with the identity
Business server cluster is to the access times of the interface message processor (IMP) cluster, the presently described secondary rope found with the searching unit 221
Access times in fuse breath add up, and update the secondary indexing information according to cumulative gained.
Access frequency control instruction sending module 23, for each institute counted according to total access times statistical module 22
Service server cluster is stated in the preset access duration to total access times of the interface message processor (IMP) cluster, to the interface message processor (IMP)
Access frequency control instruction is sent, the access frequency control instruction is included in the preset access duration, total access times
Identity and corresponding denied access duration equal to or more than the service server cluster of preset limitation access times, with
Make the interface message processor (IMP) in the denied access duration, refuse to provide business service to corresponding service server cluster.
Service request information receiving module 24 is accessed for receiving the access service request letter that the service server is sent
Breath, the access service request information include:The identity of the affiliated service server cluster of service server, the industry
Business server cluster takes the preset limitation access times of the interface message processor (IMP) cluster, the business in preset access in duration
The Internet protocol address of device of being engaged in and the service server belong to other service servers of a service server cluster
Internet protocol address, the service server and the other service servers for belonging to a service server cluster
Internet protocol address and the service server cluster correspondence;
Service request information sending module 25 is accessed to be used to, according to the access service request information, send control frequency and match
Confidence is ceased to the interface message processor (IMP) cluster.
Center server access frequency control list creation module 26 is used to be connect according to the access service request information
The described according to the access service request information of the reception of module 24 is received, creates or updates the control of center server access frequency
List, the center server access frequency control list include at least one set of primary index information and secondary indexing information, institute
The identity that primary index information includes each service server cluster is stated, the secondary indexing information includes each service server cluster
To the access times of the interface message processor (IMP) cluster in the preset access duration.
Center server empties module 27 for after the preset access duration is used up, emptying the central server
It holds and is equal to or more than limitation access times in the preset access duration in access frequency control list with the access times
The corresponding secondary indexing information of service server cluster.
The detailed process of the respective function of each Implement of Function Module of the present embodiment central server 20, refers to above-mentioned Fig. 1
To the particular content described in embodiment illustrated in fig. 6, details are not described herein again.
Access frequency control device provided in an embodiment of the present invention, is periodically reported by central server according to interface message processor (IMP)
The actual access frequency information of service server cluster counts each service server cluster in preset access duration to whole respectively
Total access times of a interface message processor (IMP) cluster send access frequency control instruction, so that interface message processor (IMP) according to statistical result to interface message processor (IMP)
In denied access duration, refuse to provide business service to the service server cluster that access frequency is more than preset access frequency,
It realizes to unified management of multiple service server clusters to the access frequency of entire interface message processor (IMP) cluster, so as to more have
The multiple service server clusters of control of effect improve the use effect of interface message processor (IMP) cluster resource to the access frequency of interface message processor (IMP) cluster
Rate.
8th embodiment
Fig. 9 is the structure diagram of interface message processor (IMP) that eighth embodiment of the invention provides.Interface message processor (IMP) 30 provided in this embodiment
It can be used to implement control of multiple service server clusters to the access frequency of interface message processor (IMP) cluster.As shown in figure 9, interface message processor (IMP) 30
Including:Access times statistical module 31, actual access frequency information sending module 32, access frequency control instruction receiving module
33rd, refuse service module 34.
Access times statistical module 31 is used to every preset report duration, count it is described it is preset report in duration, to institute
State the access times that interface message processor (IMP) carried out each service server cluster accessed.
Actual access frequency information sending module 32 is used to send actual access frequency information, institute to the central server
Actual access frequency information is stated to include in the preset all business for reporting in duration, to the interface message processor (IMP) access
The identity of server cluster and the access times of the access times statistical module counts.
Access frequency control instruction receiving module 33 is used to receive the access frequency that the central server is sent and control to refer to
It enables, the access frequency control instruction is included in the preset access duration, and total access times are equal to or more than preset limitation
The identity of the service server cluster of access times and corresponding denied access duration.
Refusal service module 34 is used for the access frequency received according to the access frequency control instruction receiving module 33
Rate control instruction in the denied access duration, is refused to provide business service to corresponding service server cluster.
The detailed process of the respective function of each Implement of Function Module of the present embodiment interface message processor (IMP) 30, refers to above-mentioned Fig. 1 to Fig. 6
Particular content described in illustrated embodiment, details are not described herein again.
Access frequency control device provided in an embodiment of the present invention, is periodically reported by central server according to interface message processor (IMP)
The actual access frequency information of service server cluster counts each service server cluster in preset access duration to whole respectively
Total access times of a interface message processor (IMP) cluster send access frequency control instruction, so that interface message processor (IMP) according to statistical result to interface message processor (IMP)
In denied access duration, refuse to provide business service to the service server cluster that access frequency is more than preset access frequency,
It realizes to unified management of multiple service server clusters to the access frequency of entire interface message processor (IMP) cluster, so as to more have
The multiple service server clusters of control of effect improve the use effect of interface message processor (IMP) cluster resource to the access frequency of interface message processor (IMP) cluster
Rate.
9th embodiment
Figure 10 is the structure diagram of interface message processor (IMP) that ninth embodiment of the invention provides.Interface message processor (IMP) 40 provided in this embodiment
It can be used to implement control of multiple service server clusters to the access frequency of interface message processor (IMP) cluster.As shown in Figure 10, interface message processor (IMP)
40 include:Access times statistical module 41, actual access frequency information sending module 42, access frequency control instruction receiving module
43rd, refuse service module 44, control frequency configuration information receiving module 45, interface generator terminal access frequency control list creation module
46th, interface generator terminal empties module 47.
Access times statistical module 41 is used to every preset report duration, count it is described it is preset report in duration, to institute
State the access times that interface message processor (IMP) carried out each service server cluster accessed.Access times statistical module 41 further includes:Interconnection
FidonetFido address recording unit 411, access times add up on secondary indexing information updating unit 412, actual access frequency information
Declaration form member 413.Wherein, Internet protocol address recording unit 411 for be recorded in it is described it is preset report in duration, described in access
The Internet protocol address of each service server of interface message processor (IMP).Access times add up to be used for secondary indexing information updating unit 412
According to the Internet protocol address for each service server for belonging to a service server cluster and each service server cluster
Correspondence, add up each service server cluster to the access times of the interface message processor (IMP), and according to the access times for adding up
Update the secondary indexing information in the interface message processor (IMP) access frequency control list.Actual access frequency information reporting unit 413 is used for
When it is described it is preset duration is reported to use up when, by the primary index information in the interface generator terminal access frequency control list and institute
It states secondary indexing information and is reported to the central server as actual access frequency information.
Actual access frequency information sending module 42 is used to send actual access frequency information, institute to the central server
Actual access frequency information is stated to include in the preset all business for reporting in duration, to the interface message processor (IMP) access
The identity of server cluster and the access times of the access times statistical module counts.
Access frequency control instruction receiving module 43 is used to receive the access frequency that the central server is sent and control to refer to
It enables, the access frequency control instruction is included in the preset access duration, and total access times are equal to or more than preset limitation
The identity of the service server cluster of access times and corresponding denied access duration.
Refusal service module 44 is used for the access frequency received according to the access frequency control instruction receiving module 43
Rate control instruction in the denied access duration, is refused to provide business service to corresponding service server cluster.
Control frequency configuration information receiving module 45 is believed for receiving the control frequency configuration that the central server is sent
Breath, the control frequency configuration information access service according to the service server of reception by the central server in application
When the access service request information that sends send, including:The identity of the affiliated service server cluster of service server,
The service server cluster preset is accessed in duration to the preset limitation access times of the interface message processor (IMP) cluster, described described
The Internet protocol address of service server, other business that a service server cluster is belonged to the service server
The Internet protocol address of server, the service server and the other business for belonging to a service server cluster
The Internet protocol address of server and the correspondence of the service server cluster.
Interface generator terminal access frequency control list creation module 46 is used to receive mould according to the control frequency configuration information
The control frequency configuration information that block 45 receives creates or updates interface generator terminal access frequency control list, the interface message processor (IMP)
End access frequency control list includes at least one set of primary index information and secondary indexing information, and the primary index information includes each institute
State the identity of service server cluster, the secondary indexing information include each service server cluster it is described it is preset on
To the access times of the interface message processor (IMP) in length of giving the correct time.
Interface generator terminal empty module 47 for it is described it is preset report duration use up or it is described it is preset access duration use up
Afterwards, the secondary indexing information in the interface generator terminal access frequency control list is emptied.
The detailed process of the respective function of each Implement of Function Module of the present embodiment interface message processor (IMP) 40, refers to above-mentioned Fig. 1 to Fig. 6
Particular content described in illustrated embodiment, details are not described herein again.
Access frequency control device provided in an embodiment of the present invention, is periodically reported by central server according to interface message processor (IMP)
The actual access frequency information of service server cluster counts each service server cluster in preset access duration to whole respectively
Total access times of a interface message processor (IMP) cluster send access frequency control instruction, so that interface message processor (IMP) according to statistical result to interface message processor (IMP)
In denied access duration, refuse to provide business service to the service server cluster that access frequency is more than preset access frequency,
It realizes to unified management of multiple service server clusters to the access frequency of entire interface message processor (IMP) cluster, so as to more have
The multiple service server clusters of control of effect improve the use effect of interface message processor (IMP) cluster resource to the access frequency of interface message processor (IMP) cluster
Rate.
The embodiment of the present invention additionally provides a kind of access frequency control system, please refers to Fig.1 1, access frequency control system
50 include:Central server 51, interface message processor (IMP) cluster 52 and multiple service server clusters 53.
Each device realizes that the detailed process of function is please referred to Fig.1 to Fig. 6 in access frequency control system in the present embodiment
The method and Fig. 7 figures of corresponding embodiment are to the device of Figure 10 corresponding embodiments, and details are not described herein again.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation is all difference from other examples, and just to refer each other for identical similar part between each embodiment.
For device class embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, related part is joined
See the part explanation of embodiment of the method.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any this practical relationship or sequence.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Non-exclusive inclusion, so that process, method, article or device including a series of elements not only will including those
Element, but also including other elements that are not explicitly listed or further include as this process, method, article or device
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
Also there are other identical elements in process, method, article or device including the element.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The above described is only a preferred embodiment of the present invention, not make limitation in any form to the present invention, though
So the present invention is disclosed above with preferred embodiment, however is not limited to the present invention, any technology people for being familiar with this profession
Member, without departing from the scope of the present invention, when the technology contents using the disclosure above make a little change or modification
For the equivalent embodiment of equivalent variations, as long as being without departing from technical solution of the present invention content, technical spirit pair according to the present invention
Any simple modification, equivalent change and modification that above example is made, in the range of still falling within technical solution of the present invention.
Claims (22)
1. a kind of access frequency control method, for controlling access frequency of multiple service server clusters to interface message processor (IMP) cluster,
Each service server cluster includes the service server of multiple same types of service, and the interface message processor (IMP) cluster includes multiple
Interface message processor (IMP), which is characterized in that including:
Duration is reported every preset, central server receives the practical visit of the service server cluster that the interface message processor (IMP) reports
Ask frequency information, the actual access frequency information includes, it is described it is preset report in duration, the interface message processor (IMP) is paid a visit
The identity for all service server clusters asked and access times;
According to the identity and access times, each service server cluster is counted respectively in preset access duration
To total access times of the interface message processor (IMP) cluster, the preset access duration, which is greater than or equal to, described preset reports duration;And
According to each service server cluster it is described it is preset access in duration to total access times of the interface message processor (IMP) cluster,
Access frequency control instruction is sent to the interface message processor (IMP), the access frequency control instruction is included in the preset access duration
Interior, total access times are equal to or more than the identity of the service server cluster of preset limitation access times and corresponding refuse
Duration is accessed absolutely, so that the interface message processor (IMP) in the denied access duration, is refused to provide to corresponding service server cluster
Business service.
2. the method as described in claim 1, which is characterized in that the service server for receiving the interface message processor (IMP) and reporting
Cluster it is each it is preset report in duration actual access frequency information the step of before, further include:
The access service request information that the service server is sent is received, the access service request information includes:The industry
The identity of the business affiliated service server cluster of server, the service server cluster are right in the preset access duration
Preset limitation access times, the Internet protocol address of the service server and the business of the interface message processor (IMP) cluster take
Business device belong to the Internet protocol address of other service servers of a service server cluster, the service server with
The Internet protocol address of the other service servers for belonging to a service server cluster and the service server
The correspondence of cluster;
According to the access service request information, control frequency configuration information is sent to the interface message processor (IMP) cluster.
3. method as claimed in claim 2, which is characterized in that the service server for receiving the interface message processor (IMP) and reporting
Cluster it is each it is preset report in duration actual access frequency information the step of before, further include:
According to the access service request information, create or update center server access frequency control list, the center
Server end access frequency control list includes at least one set of primary index information and secondary indexing information, the primary index information packet
The identity of each service server cluster is included, the secondary indexing information is included with each service server cluster described pre-
It puts and accesses in duration to the access times of the interface message processor (IMP) cluster.
4. method as claimed in claim 3, which is characterized in that described according to the identity and access times, difference
Each service server cluster is counted to wrap the step of total access times of the interface message processor (IMP) cluster in preset access duration
It includes:
According to the identity of the service server cluster, searched in the center server access frequency control list
With using the identity of the service server cluster as the corresponding secondary indexing information of the primary index information of content;
By it is described it is preset report in duration, access of the service server cluster corresponding with the identity to the interface message processor (IMP)
Access times in number, with presently described secondary indexing information add up, and update the secondary indexing information according to cumulative gained.
5. method as claimed in claim 3, which is characterized in that it is described according to each service server cluster described preset
It accesses to total access times of the interface message processor (IMP) cluster in duration, to the interface message processor (IMP) collection pocket transmission access frequency control instruction
After step, further include:
It is described it is preset access duration use up after, empty in the center server access frequency control list with the access
Number is equal to or more than the preset corresponding secondary indexing letter of service server cluster for accessing limitation access times in duration
Breath.
6. a kind of access frequency control method, for controlling access frequency of multiple service server clusters to interface message processor (IMP) cluster,
Each service server cluster includes the service server of multiple same types of service, and the interface message processor (IMP) cluster includes multiple
Interface message processor (IMP), which is characterized in that including:
The interface message processor (IMP) reports duration every preset, count it is described it is preset report in duration, the interface message processor (IMP) is paid a visit
The access times of each service server cluster asked;
Actual access frequency information is sent to central server, described preset report is included in the actual access frequency information
In duration, identity and the access times of all service server clusters of access were carried out to the interface message processor (IMP);
The access frequency control instruction that the central server is sent is received, the access frequency control instruction is included in preset visit
It asks in duration, total access times are equal to or more than the identity of service server cluster of preset limitation access times and right
The denied access duration answered, wherein, total access times are each service server clusters in the preset access duration
Interior total access times to the interface message processor (IMP) cluster, the preset access duration, which is greater than or equal to, described preset reports duration;With
And
According to the access frequency control instruction, in the denied access duration, refuse to corresponding service server cluster
Business service is provided.
7. method as claimed in claim 6, which is characterized in that the interface message processor (IMP) reports duration every preset, counts described
It is preset to report in duration, to the interface message processor (IMP) cluster carried out access each service server cluster access times the step of it
Before, it further includes:
Receive the control frequency configuration information that the central server is sent, the control frequency configuration information is by genuinely convinced in described
Business device accesses the access service request information transmission sent during service according to the service server of reception in application, including:
The identity of the affiliated service server cluster of service server, the service server cluster are in the preset access
In long to the preset limitation access times of the interface message processor (IMP) cluster, the Internet protocol address of the service server, with it is described
Service server belongs to the Internet protocol address of other service servers of a service server cluster, business clothes
Internet protocol address and the business of the business device with the other service servers for belonging to a service server cluster
The correspondence of server cluster.
8. the method for claim 7, which is characterized in that the interface message processor (IMP) reports duration every preset, counts described
It is preset to report in duration, to the interface message processor (IMP) cluster carried out access each service server cluster access times the step of it
Before, it further includes:
According to the control frequency configuration information, create or update interface generator terminal access frequency control list, the interface generator terminal
Access frequency control list includes at least one set of primary index information and secondary indexing information, and the primary index information includes each business
The identity of server cluster, the secondary indexing information include each service server cluster and preset report duration described
The interior access times to the interface message processor (IMP).
9. method as claimed in claim 8, which is characterized in that the interface message processor (IMP) reports duration every preset, counts described
It is preset to report in duration, to the interface message processor (IMP) cluster carried out access each service server cluster access times the step of,
Including:
It is recorded in the preset Internet protocol address for reporting in duration, accessing each service server of the interface message processor (IMP);
According to the Internet protocol address for each service server for belonging to a service server cluster and each service server
The correspondence of cluster adds up access times of each service server cluster to the interface message processor (IMP), and according to the access for adding up
Number updates the secondary indexing information in the interface generator terminal access frequency control list;
When it is described it is preset duration is reported to use up when, by the primary index information in the interface generator terminal access frequency control list
With the secondary indexing information central server is reported to as actual access frequency information.
10. method as claimed in claim 8, which is characterized in that further include:
It is described it is preset report duration use up or it is described it is preset access duration use up after, empty the interface generator terminal access frequency
The secondary indexing information in control list.
11. a kind of access frequency control method, for controlling access frequency of multiple service server clusters to interface message processor (IMP) cluster,
Each service server cluster includes the service server of multiple same types of service, and the interface message processor (IMP) cluster includes multiple
Interface message processor (IMP), which is characterized in that including:
The interface message processor (IMP) reports duration every preset, count it is described it is preset report in duration, the interface message processor (IMP) is paid a visit
The access times of each service server cluster asked;
The interface message processor (IMP) sends actual access frequency information to central server, is included in institute in the actual access frequency information
State the preset identity and access for reporting in duration, all service server clusters of access being carried out to the interface message processor (IMP)
Number;
Central server receives the actual access frequency information that the interface message processor (IMP) is sent, and is believed according to the actual access frequency
It is right in preset access duration to count each service server cluster respectively for the identity and access times in breath
Total access times of the interface message processor (IMP) cluster, the preset access duration, which is greater than or equal to, described preset reports duration;
The central server connects according to each service server cluster of statistics in the preset access duration to described
Total access times of mouth machine cluster send access frequency control instruction, the access frequency control instruction packet to the interface message processor (IMP)
It includes in the preset access duration, total access times are equal to or more than the service server cluster of preset limitation access times
Identity and corresponding denied access duration, so that the interface message processor (IMP) is refused in the denied access duration to correspondence
Service server cluster provide business service;And
The interface message processor (IMP) receives the access frequency control instruction that the central server is sent, and is referred to according to access frequency control
It enables, in the denied access duration, refuses to provide business service to corresponding service server cluster.
12. a kind of central server, which is characterized in that including:
Actual access frequency information receiving module, for reporting duration every preset, central server receiving interface machine reports
The actual access frequency information of service server cluster, the actual access frequency information include, and preset duration is reported described
It is interior, identity and the access times of all service server clusters of access were carried out to the interface message processor (IMP);
Total access times statistical module, for the identity received according to the actual access frequency information receiving module
And access times, each service server cluster is counted respectively in preset access duration to the total of the interface message processor (IMP) cluster
Access times, the preset access duration, which is greater than or equal to, described preset reports duration;And
Access frequency control instruction sending module takes for each business according to total access times statistical module counts
Business device cluster, to total access times of the interface message processor (IMP) cluster, sends to the interface message processor (IMP) and accesses in the preset access duration
FREQUENCY CONTROL instructs, and the access frequency control instruction is included in the preset access duration, and total access times are equal to or greatly
Identity and corresponding denied access duration in the service server cluster of preset limitation access times, so that described connect
Mouth machine is refused to provide business service to corresponding service server cluster in the denied access duration.
13. central server as claimed in claim 12, which is characterized in that further include:
Service request information receiving module is accessed, for receiving the access service request information that the service server is sent, institute
Access service request information is stated to include:The identity of the affiliated service server cluster of service server, business clothes
Device cluster be engaged in the preset preset limitation access times accessed in duration to the interface message processor (IMP) cluster, the service server
Internet protocol address, belong to the service server service server cluster other service servers it is mutual
Networking protocol address, the service server are mutual with the other service servers for belonging to a service server cluster
Networking protocol address and the correspondence of the service server cluster;
Service request information sending module is accessed, is additionally operable to, according to the access service request information, send control frequency configuration
Information gives the interface message processor (IMP) cluster.
14. central server as claimed in claim 13, which is characterized in that further include:
Center server access frequency control list creation module, for according to the access service request information receiving module
The access service request information received creates or updates center server access frequency control list, genuinely convinced in described
Business device end access frequency control list includes at least one set of primary index information and secondary indexing information, and the primary index information includes
The identity of each service server cluster, the secondary indexing information include each service server cluster in the preset access
To the access times of the interface message processor (IMP) cluster in long.
15. central server as claimed in claim 14, which is characterized in that total access times statistical module includes:
Searching unit, for the body of the service server cluster received according to the actual access frequency information receiving module
Part mark, is searched and in the center server access frequency control list with the identity mark of the service server cluster
Know for the corresponding secondary indexing information of the primary index information of content;
Summing elements, for by the actual access frequency information receiving module receive it is described it is preset report in duration, with institute
The corresponding service server cluster of identity is stated to the access times of the interface message processor (IMP) cluster, is found with the searching unit
Presently described secondary indexing information in access times add up, the secondary indexing information is updated according to cumulative gained.
16. central server as claimed in claim 14, which is characterized in that further include:
Center server empties module, for after the preset access duration is used up, emptying the center server and visiting
It asks and is equal to or more than the preset business for accessing limitation access times in duration in FREQUENCY CONTROL list with the access times
The corresponding secondary indexing information of server cluster.
17. a kind of interface message processor (IMP), which is characterized in that including:
Access times statistical module, for reporting duration every preset, count it is described it is preset report in duration, to the interface
Machine carried out the access times of each service server cluster accessed;
Actual access frequency information sending module, for sending actual access frequency information, the practical visit to central server
Ask that frequency information is included in the preset all service server collection for reporting in duration, to the interface message processor (IMP) access
The identity of group and the access times of the access times statistical module counts;
Access frequency control instruction receiving module, for receiving the access frequency control instruction that the central server is sent, institute
It states access frequency control instruction to include in preset access duration, total access times are equal to or more than preset limitation access times
The identity of service server cluster and corresponding denied access duration, wherein, total access times are each industry
Business server cluster is in the preset access duration to total access times of the interface message processor (IMP) cluster, the preset access duration
Preset duration is reported more than or equal to described;And
Refuse service module, the access frequency control for being received according to the access frequency control instruction receiving module refers to
It enables, in the denied access duration, refuses to provide business service to corresponding service server cluster.
18. interface message processor (IMP) as claimed in claim 17, which is characterized in that further include:
Frequency configuration information receiving module is controlled, for receiving the control frequency configuration information that the central server is sent, institute
Control frequency configuration information is stated to be sent out when application accesses service according to the service server of reception by the central server
The access service request information sent is sent, including:It is the identity of the affiliated service server cluster of service server, described
Service server cluster is in the preset access duration to preset limitation access times, the business of the interface message processor (IMP) cluster
The Internet protocol address of server, other business services that a service server cluster is belonged to the service server
The Internet protocol address of device, the service server and the other business services for belonging to a service server cluster
The Internet protocol address of device and the correspondence of the service server cluster.
19. interface message processor (IMP) as claimed in claim 18, which is characterized in that further include:
Interface generator terminal access frequency control list creation module, for being received according to the control frequency configuration information receiving module
The control frequency configuration information, create or update interface generator terminal access frequency control list, the interface generator terminal access frequency
Rate control list includes at least one set of primary index information and secondary indexing information, and the primary index information includes each business clothes
It is engaged in the identity of device cluster, the secondary indexing information includes each service server cluster and preset reported in duration described
To the access times of the interface message processor (IMP).
20. interface message processor (IMP) as claimed in claim 19, which is characterized in that the access times statistical module includes:
Internet protocol address recording unit, for being recorded in the preset each industry for reporting in duration, accessing the interface message processor (IMP)
The Internet protocol address of business server;
Access times add up with secondary indexing information updating unit, for according to belonging to each business of a service server cluster
The Internet protocol address of server and the correspondence of each service server cluster add up each service server cluster to described
The access times of interface message processor (IMP), and update the secondary rope in the interface message processor (IMP) access frequency control list according to the access times for adding up
Fuse ceases;
Actual access frequency information reporting unit, for when it is described it is preset duration is reported to use up when, by the interface generator terminal access
The primary index information in FREQUENCY CONTROL list is reported to described with the secondary indexing information as actual access frequency information
Central server.
21. interface message processor (IMP) as claimed in claim 19, which is characterized in that further include:
Interface generator terminal empties module, for it is described it is preset report duration use up or it is described it is preset access duration use up after, empty
The secondary indexing information in the interface generator terminal access frequency control list.
22. a kind of cluster access frequency control system, which is characterized in that including:
Multiple service server clusters, wherein the business that each service server cluster includes multiple same types of service takes
Business device;
Such as any one of them central server of claim 12 to 16;And
The interface message processor (IMP) cluster being made of multiple any one of them interface message processor (IMP)s such as claim 17 to 21.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310209513.9A CN104219069B (en) | 2013-05-30 | 2013-05-30 | access frequency control method, device and control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310209513.9A CN104219069B (en) | 2013-05-30 | 2013-05-30 | access frequency control method, device and control system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104219069A CN104219069A (en) | 2014-12-17 |
CN104219069B true CN104219069B (en) | 2018-06-08 |
Family
ID=52100231
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310209513.9A Active CN104219069B (en) | 2013-05-30 | 2013-05-30 | access frequency control method, device and control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104219069B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105282047B (en) * | 2015-09-25 | 2020-04-14 | 小米科技有限责任公司 | Access request processing method and device |
CN106598723A (en) * | 2015-10-19 | 2017-04-26 | 北京国双科技有限公司 | Configuration method and device for resources in distributed system |
CN105871590A (en) * | 2015-12-15 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Client data updating method, client and server |
CN106656959B (en) * | 2016-09-28 | 2020-07-28 | 腾讯科技(深圳)有限公司 | Access request regulation and control method and device |
CN107979580B (en) * | 2016-10-24 | 2019-08-13 | 腾讯科技(深圳)有限公司 | A kind of access control method, device and server |
CN108270839B (en) * | 2017-01-04 | 2022-03-25 | 腾讯科技(深圳)有限公司 | Access frequency control system and method |
CN109962855A (en) * | 2017-12-14 | 2019-07-02 | 深圳市融汇通金科技有限公司 | A kind of current-limiting method of WEB server, current-limiting apparatus and terminal device |
CN109298939B (en) * | 2018-09-26 | 2021-04-20 | 腾讯科技(深圳)有限公司 | Access frequency control method, device and system of distributed system and server |
CN109669982A (en) * | 2018-12-25 | 2019-04-23 | 钛马信息网络技术有限公司 | The called statistical system of platform interface and method |
CN110677494B (en) * | 2019-10-14 | 2021-06-01 | 腾讯科技(深圳)有限公司 | Access response method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1929477A (en) * | 2005-09-08 | 2007-03-14 | 中兴通讯股份有限公司 | Control system and method for multicast business limited access |
JP2009140319A (en) * | 2007-12-07 | 2009-06-25 | Internatl Business Mach Corp <Ibm> | Technique for controlling access to database |
CN102118828A (en) * | 2009-12-30 | 2011-07-06 | 华为技术有限公司 | Method and equipment for controlling access of user equipment |
CN102960029A (en) * | 2011-06-21 | 2013-03-06 | 华为技术有限公司 | Method, device, user equipment and system for repeated access detection and restriction |
-
2013
- 2013-05-30 CN CN201310209513.9A patent/CN104219069B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1929477A (en) * | 2005-09-08 | 2007-03-14 | 中兴通讯股份有限公司 | Control system and method for multicast business limited access |
JP2009140319A (en) * | 2007-12-07 | 2009-06-25 | Internatl Business Mach Corp <Ibm> | Technique for controlling access to database |
CN102118828A (en) * | 2009-12-30 | 2011-07-06 | 华为技术有限公司 | Method and equipment for controlling access of user equipment |
CN102960029A (en) * | 2011-06-21 | 2013-03-06 | 华为技术有限公司 | Method, device, user equipment and system for repeated access detection and restriction |
Also Published As
Publication number | Publication date |
---|---|
CN104219069A (en) | 2014-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104219069B (en) | access frequency control method, device and control system | |
CN104158755B (en) | The methods, devices and systems of transmitting message | |
AU2009347686B2 (en) | Method and device for flow counting and automatically calculating internet connection fee | |
CN105634784B (en) | Control data distributing method, apparatus and system | |
CN106953905A (en) | Catalogue sharing method and device between domain | |
CN104301161B (en) | Computational methods, computing device and the communication system of quality of service index | |
CN112016030B (en) | Message pushing method, device, server and computer storage medium | |
CN102868770B (en) | A kind of method of distribution interface, equipment and system | |
CN105516143B (en) | Anti-stealing link method, equipment and the system of Streaming Media | |
CN104427519B (en) | IP address ownership place management method and device | |
CN109787915A (en) | Flow control methods, device, electronic equipment and the storage medium of network access | |
CN110012076B (en) | Connection establishing method and device | |
CN103310087A (en) | Service data statistic analysis method and device | |
CN107276857A (en) | A kind of method and device for monitoring flow | |
CN102281204B (en) | Method and routing equipment for implementing rendezvous point (RP) load sharing of multicast group and routing equipment | |
CN108989438A (en) | Implementation method, the device and system of data distribution network | |
CN103607410B (en) | A kind of contents access method and equipment | |
CN104426956B (en) | A kind of SOT state of termination method for subscribing, apparatus and system | |
CN106899621B (en) | A kind of scheduling system and method | |
CN102257792A (en) | Method for content delivery involving a policy database | |
CN110880991B (en) | Bandwidth limiting method, device and system | |
CN100372323C (en) | A method for accessing server group | |
CN107710218A (en) | The dead point network architecture | |
CN104270466B (en) | Data reporting method and relevant device | |
CN103973747A (en) | Method and device for acquiring content |
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 |