CN106982174A - Flowtube prosecutor method and system on line - Google Patents
Flowtube prosecutor method and system on line Download PDFInfo
- Publication number
- CN106982174A CN106982174A CN201710241260.1A CN201710241260A CN106982174A CN 106982174 A CN106982174 A CN 106982174A CN 201710241260 A CN201710241260 A CN 201710241260A CN 106982174 A CN106982174 A CN 106982174A
- Authority
- CN
- China
- Prior art keywords
- client
- line
- token bucket
- predetermined number
- bucket algorithm
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/215—Flow control; Congestion control using token-bucket
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses flowtube prosecutor method and system on a kind of line.The token bucket algorithm that separate configurations are respectively adopted for the flow of multiple client for individual interface in the present invention carries out management and control, each token bucket algorithm is each equipped with comprising the configuration parameter including preset duration and predetermined number, and it is configured to the token that every process preset duration produces predetermined number, the configuration parameter of separate configuration is used for the token bucket algorithm of each client, it is incomplete same for the preset duration in the token bucket algorithm of each client, predetermined number.The present invention being capable of lifting system performance to a certain extent, and the flow that can be needed based on single client carries out the configuration of token bucket, when a certain client unexpected abnormality is called, other clients in client cluster will not be affected, substantially increase the stability applied on line, moreover it is possible to realize finer traffic management and control.
Description
Technical field
The present invention relates to the technical field of traffic management and control on line, more particularly to traffic management and control on line based on token bucket algorithm
Method and system.
Background technology
On line in traffic management and control, token bucket algorithm is a kind of most-often used algorithm.Traffic management and control on existing line, one
As use traditional token bucket algorithm, it uses fixed-size token bucket, and is voluntarily continuously produced with constant speed
Raw token, if token is not consumed, or the speed being consumed is less than the speed produced, and token will constantly increase, directly
Filled up to bucket, reach maximum.Hereafter the highest number of tokens that can be preserved in new token, last bucket is no longer produced never
The size of bucket can be exceeded.
Be using one of shortcoming of flowtube prosecutor formula on existing line, its for client traffic management and control in other words
It is flow restriction, can only carries out on the whole, this causes when some client unexpected abnormality is called, other can be caused to attempt to adjust
Tied up with the flow of the client of same interface, so as to cause the hydraulic performance decline of this interface related application or service, very
To paralysis.This make it that the stability applied or serviced on line is not good enough, client cluster easily by individual client it is abnormal or
The influence of person's malicious access.
The content of the invention
The technical problem to be solved in the present invention is in order to overcome flowtube prosecutor formula on line of the prior art, in a certain visitor
During the distal process hair exception call of family, other clients in client cluster can be caused by strong influence, cause to apply on line
The not high defect of stability, proposes flowtube prosecutor method and system on a kind of line.
The present invention is to solve above-mentioned technical problem by following technical proposals:
The invention provides flowtube prosecutor method on a kind of line, its feature is that flowtube prosecutor method is directed on the line
The token bucket algorithm that separate configurations are respectively adopted for the flow of multiple client in individual interface carries out management and control, and each token bucket is calculated
Method is each equipped with comprising the configuration parameter including preset duration and predetermined number, and it is default to be configured to every process preset duration generation
The token of quantity, uses the configuration parameter of separate configuration, for each client for the token bucket algorithm of each client
Preset duration, predetermined number in the token bucket algorithm at end is incomplete same.
It will be appreciated by those skilled in the art that except the part encyclopaedized in the present invention, the token bucket algorithm in the present invention
Other parts, to token bucket algorithm in the prior art apply typical case be similar, will not be repeated here.
It is preferred that for the preset duration and predetermined number in the token bucket algorithm of each client according to relative client
Traffic statistics within the default passing period are configured.
It is preferred that for the preset duration in the token bucket algorithm of each client is identical, predetermined number is incomplete same.
It is preferred that for the predetermined number in the token bucket algorithm of each client according to relative client in default mistake
It is configured toward the traffic statistics in the period.
It is preferred that the interface is SOA interfaces.
Present invention also offers traffic management and control system on the line applied on a kind of line, its feature is, is applied on the line
Including SOA interfaces, each SOA interfaces produce flow on line to multiple client, for each SOA interfaces, flow on the line
Managing and control system is provided with the multiple control units corresponded in the multiple client, and each control unit is each configured with solely
Vertical token bucket algorithm, each token bucket algorithm is each configured with comprising the configuration parameter including preset duration and predetermined number,
And it is configured to the preset duration in the token that every process preset duration produces predetermined number, each token bucket algorithm, predetermined number
It is incomplete same.
It is preferred that for preset duration and predetermined number in the token bucket algorithm of each client of each SOA interfaces
It is configured according to traffic statistics of the relative client within the default passing period.
It is preferred that for the preset duration in the token bucket algorithm of each client is identical, predetermined number is incomplete same.
It is preferred that for the predetermined number in the token bucket algorithm of each client of each SOA interfaces according to corresponding visitor
Traffic statistics of the family end within the default passing period are configured.
Flowtube on line as described above is employed it is preferred that being applied on the line and including applying on SOA interfaces, the line
Control system.
On the basis of common sense in the field is met, above-mentioned each optimum condition can be combined, and produce each preferable reality of the present invention
Example.
The positive effect of the present invention is:
Flowtube prosecutor method and system on the line of the present invention, it is to avoid polling algorithm and timer algorithms, to a certain extent
Systematic function is improved, and the flow that can be needed based on single client carries out the configuration of token bucket, in a certain client's distal process
When sending out exception call, other clients in client cluster will not be affected, and substantially increase applied on line steady
It is qualitative.And for the flow restriction of each client, it can be as accurate as, per some milliseconds of fixed how many tokens of output, realizing
Finer traffic management and control.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of flowtube prosecutor method on the line of a preferred embodiment of the present invention.
Embodiment
Provide present pre-ferred embodiments below in conjunction with the accompanying drawings, to describe technical scheme in detail, but not because
This is limited the present invention among described scope of embodiments.
With reference to shown in Fig. 1, flowtube prosecutor method on a kind of line of a preferred embodiment of the present invention, for individual interface for
The token bucket algorithm that separate configurations are respectively adopted in the flow of multiple client carries out management and control, and each token bucket algorithm is each equipped with bag
Containing the configuration parameter including preset duration and predetermined number, and it is configured to the token that every process preset duration produces predetermined number,
The configuration parameter of separate configuration is used for the token bucket algorithm of each client, is calculated for the token bucket of each client
Preset duration, predetermined number in method is incomplete same.
According to an aspect of the present invention, the interface is SOA interfaces.
According to an aspect of the present invention, one of the token bucket algorithm compared to token bucket algorithm of the prior art
Important difference is, for different client separate configurations, thus eliminate some client in client cluster for
When calling the data traffic for exception occur or requiring excessive of interface, causes for other clients in client cluster
Adverse effect.
According to another aspect of the present invention, one of the token bucket algorithm compared to token bucket algorithm of the prior art
Individual important difference is, it is configured to the token that every process preset duration produces predetermined number, i.e., often exceed one it is fixed when
Between fragment is just fixed produces several access tokens, what this was different from using in traditional algorithm is continuously existed with constant rate of speed
Token is produced in the token bucket of prescribed level.This is favorably improved system effectiveness.
For example, in a preferred embodiment, three for individual interface different clients, corresponding order
Board bucket algorithm is respectively configured as, and is produced after 5 tokens, every 3 milliseconds of time slices are produced after every 3 milliseconds of time slice
5 tokens are produced after 15 tokens and every 2 milliseconds of time slice, so as to realize different flows to three clients
Management and control mode.
In some preferred embodiments, for the preset duration and predetermined number in the token bucket algorithm of each client
It is configured according to traffic statistics of the relative client within the default passing period.
It is identical, default for the preset duration in the token bucket algorithm of each client in some preferred embodiments
Quantity is incomplete same, for the predetermined number in the token bucket algorithm of each client according to relative client in default mistake
It is configured toward the traffic statistics in the period.
For example, intraday traffic statistics were shown in the past, the visit capacity in two clients of some interface is in 2:1
Proportionate relationship.Therefore, the preset duration and predetermined number in the token bucket algorithm for the two clients can be configured to, in advance
If duration is identical, predetermined number is in 2:1 proportionate relationship.Or, also can be by the token bucket algorithm for the two clients
Preset duration and predetermined number be configured to, preset duration be in 1:4 proportionate relationship, predetermined number is in 1:2 proportionate relationship.
It should be understood that in actual disposition numerically, those skilled in the art can be based on the flow of each client
It is expected that, configured, to enable traffic management and control strategy both to meet the normal access of client as far as possible, and do not left excessive
Remaining token, to make full use of resource.
Traffic management and control system is applied to apply on a line on the line of a preferred embodiment of the present invention, and being applied on the line includes
SOA interfaces, each SOA interfaces produce flow on line to multiple client, for each SOA interfaces, traffic management and control on the line
System is provided with the multiple control units corresponded in the multiple client, and each control unit is each configured with independent
Token bucket algorithm, each token bucket algorithm is each configured with comprising the configuration parameter including preset duration and predetermined number, and is matched somebody with somebody
It is set to preset duration in the token that every process preset duration produces predetermined number, each token bucket algorithm, predetermined number endless
It is exactly the same.
In some preferred embodiments, for default in the token bucket algorithm of each client of each SOA interfaces
Duration and predetermined number are configured according to traffic statistics of the relative client within the default passing period.
It is identical, default for the preset duration in the token bucket algorithm of each client in some preferred embodiments
Quantity is incomplete same.
In some preferred embodiments, for default in the token bucket algorithm of each client of each SOA interfaces
Quantity is configured according to traffic statistics of the relative client within the default passing period.
In the other preferred embodiment of the present invention, using itself being to employ line as described above on the line
Upper traffic management and control system.
Although the foregoing describing the embodiment of the present invention, it will be appreciated by those of skill in the art that these
It is merely illustrative of, protection scope of the present invention is defined by the appended claims.Those skilled in the art is not carrying on the back
On the premise of principle and essence from the present invention, various changes or modifications can be made to these embodiments, but these are changed
Protection scope of the present invention is each fallen within modification.
Claims (10)
1. flowtube prosecutor method on a kind of line, it is characterised in that flowtube prosecutor method is directed to individual interface for many on the line
The token bucket algorithm that separate configurations are respectively adopted in the flow of individual client carries out management and control, and each token bucket algorithm is each equipped with including
Configuration parameter including preset duration and predetermined number, and it is configured to the token that every process preset duration produces predetermined number, pin
The configuration parameter of separate configuration is used to the token bucket algorithm of each client, for the token bucket algorithm of each client
In preset duration, predetermined number it is incomplete same.
2. flowtube prosecutor method on line as claimed in claim 1, it is characterised in that for the token bucket algorithm of each client
In preset duration and predetermined number set according to traffic statistics of the relative client within the default passing period
Put.
3. flowtube prosecutor method on line as claimed in claim 1, it is characterised in that for the token bucket algorithm of each client
In preset duration is identical, predetermined number is incomplete same.
4. flowtube prosecutor method on line as claimed in claim 3, it is characterised in that for the token bucket algorithm of each client
In predetermined number be configured according to traffic statistics of the relative client within the default passing period.
5. flowtube prosecutor method on line as claimed in claim 1, it is characterised in that the interface is SOA interfaces.
6. traffic management and control system on the line applied on a kind of line, it is characterised in that using SOA interfaces are included on the line, each
SOA interfaces produce flow on line to multiple client, and for each SOA interfaces, traffic management and control system is provided with one on the line
One corresponds to multiple control units of the multiple client, and each control unit is each configured with independent token bucket algorithm,
Each token bucket algorithm is each configured with comprising the configuration parameter including preset duration and predetermined number, and is configured to every by pre-
If the preset duration, predetermined number in the token of duration generation predetermined number, each token bucket algorithm are incomplete same.
7. traffic management and control system on line as claimed in claim 6, it is characterised in that for each client of each SOA interfaces
The flow of preset duration and predetermined number according to relative client within the default passing period in the token bucket algorithm at end
Statistics is configured.
8. traffic management and control system on line as claimed in claim 6, it is characterised in that for the token bucket algorithm of each client
In preset duration is identical, predetermined number is incomplete same.
9. traffic management and control system on line as claimed in claim 8, it is characterised in that for each client of each SOA interfaces
Predetermined number in the token bucket algorithm at end enters according to traffic statistics of the relative client within the default passing period
Row is set.
10. being applied on a kind of line, being applied on the line includes SOA interfaces, it is characterised in that applies and is employed such as power on the line
Profit requires traffic management and control system on line in 6-9 described in any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710241260.1A CN106982174A (en) | 2017-04-13 | 2017-04-13 | Flowtube prosecutor method and system on line |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710241260.1A CN106982174A (en) | 2017-04-13 | 2017-04-13 | Flowtube prosecutor method and system on line |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106982174A true CN106982174A (en) | 2017-07-25 |
Family
ID=59345066
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710241260.1A Pending CN106982174A (en) | 2017-04-13 | 2017-04-13 | Flowtube prosecutor method and system on line |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106982174A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109194539A (en) * | 2018-08-13 | 2019-01-11 | 中国平安人寿保险股份有限公司 | Data management-control method, device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101227410A (en) * | 2008-02-03 | 2008-07-23 | 杭州华三通信技术有限公司 | Flow monitoring method and flow monitoring equipment |
CN101674247A (en) * | 2009-10-21 | 2010-03-17 | 中兴通讯股份有限公司 | Method for supervising traffic flow and apparatus thereof |
CN101741603A (en) * | 2008-11-11 | 2010-06-16 | 中兴通讯股份有限公司 | Method and device for supervising traffic based on token bucket |
CN102315956A (en) * | 2010-07-02 | 2012-01-11 | 中兴通讯股份有限公司 | Method and device for supervising flow |
CN105515880A (en) * | 2016-01-25 | 2016-04-20 | 重庆邮电大学 | Token bucket traffic shaping method suitable for fusion network |
-
2017
- 2017-04-13 CN CN201710241260.1A patent/CN106982174A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101227410A (en) * | 2008-02-03 | 2008-07-23 | 杭州华三通信技术有限公司 | Flow monitoring method and flow monitoring equipment |
CN101741603A (en) * | 2008-11-11 | 2010-06-16 | 中兴通讯股份有限公司 | Method and device for supervising traffic based on token bucket |
CN101674247A (en) * | 2009-10-21 | 2010-03-17 | 中兴通讯股份有限公司 | Method for supervising traffic flow and apparatus thereof |
CN102315956A (en) * | 2010-07-02 | 2012-01-11 | 中兴通讯股份有限公司 | Method and device for supervising flow |
CN105515880A (en) * | 2016-01-25 | 2016-04-20 | 重庆邮电大学 | Token bucket traffic shaping method suitable for fusion network |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109194539A (en) * | 2018-08-13 | 2019-01-11 | 中国平安人寿保险股份有限公司 | Data management-control method, device, computer equipment and storage medium |
CN109194539B (en) * | 2018-08-13 | 2022-01-28 | 中国平安人寿保险股份有限公司 | Data management and control method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9250863B1 (en) | Managing virtual machine migration | |
US20160337259A1 (en) | Method and apparatus for data traffic restriction | |
US8316250B2 (en) | Method, system, and apparatus for dynamically distributing a computational load between clusters of cores at a frequency greater than a thermal time constant | |
US9137136B2 (en) | Overhead management for event tracing | |
US7644161B1 (en) | Topology for a hierarchy of control plug-ins used in a control system | |
CN103530185B (en) | Method for optimizing resources and device | |
CN104808770B (en) | Data center energy consumption management method and system based on dynamic frequency modulation | |
CN105306622B (en) | A kind of cloud net fusion domain name analysis system and its DNS service method | |
CN103841129B (en) | Cloud computing resource information acquisition server, cloud computing resource information acquisition client and information processing method | |
CN105975047A (en) | Method and system for adjusting power consumption of cloud data centre | |
CN105677000B (en) | The system and method for dynamic voltage frequency adjustment | |
CN105446653B (en) | A kind of data merging method and equipment | |
CN105242956A (en) | Virtual function service chain deployment system and deployment method therefor | |
CN104378262A (en) | Intelligent monitoring analyzing method and system under cloud computing | |
Zhang et al. | Capping the electricity cost of cloud-scale data centers with impacts on power markets | |
CN107920031A (en) | Access bandwidth self-adapting regulation method and device | |
CN103502944A (en) | Method and device for adjusting memories of virtual machines | |
CN105872061B (en) | A kind of server set group managing means, apparatus and system | |
CN107862438A (en) | A kind of multi-client wisdom water affairs management platform based on expert system | |
CN107329811A (en) | A kind of power consumption of data center adjusting method and device | |
CN103744735B (en) | The dispatching method and device of a kind of multi-core resource | |
CN103874133B (en) | A kind of method, device and the access point apparatus of bandwidth control | |
CN106982174A (en) | Flowtube prosecutor method and system on line | |
CN109726062A (en) | The inserting method and control server of proxy server | |
CN104750546B (en) | A kind of method and system for adjusting connection pool |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170725 |
|
RJ01 | Rejection of invention patent application after publication |