CN106101017A - A kind of line flows amount control method and device - Google Patents
A kind of line flows amount control method and device Download PDFInfo
- Publication number
- CN106101017A CN106101017A CN201610382007.3A CN201610382007A CN106101017A CN 106101017 A CN106101017 A CN 106101017A CN 201610382007 A CN201610382007 A CN 201610382007A CN 106101017 A CN106101017 A CN 106101017A
- Authority
- CN
- China
- Prior art keywords
- circuit
- flow
- packet
- transaction
- current
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
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/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2416—Real-time traffic
-
- 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/12—Avoiding congestion; Recovering from congestion
-
- 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/29—Flow control; Congestion control using a combination of thresholds
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Abstract
The invention discloses a kind of line flows amount control method and device, in order to realize the circuit in distributed transaction system is traded the dynamic adjustment of flow.The method comprise the steps that the current transaction flow obtaining each bar circuit, the current transaction flow of each bar circuit is to determine according to the transaction data of record in transaction data base in current slot;The group character that current transaction flow according to each bar circuit is corresponding with each bar circuit, determines each total flow of currently concluding the business being grouped;For arbitrary packet, if the current transaction total flow of packet is higher than the highest current limliting of packet of packet, the circuit in packet is carried out flow adjustment, until being grouped in the highest current limliting of packet less than packet of the transaction total flow after carrying out flow adjustment.By said method, when the total transaction flow a packet exceedes packet the highest current limliting, can realize the circuit in this packet is carried out flow adjustment.
Description
Technical field
The present embodiments relate to communication technical field, particularly relate to a kind of line flows amount control method and device.
Background technology
Present online transaction system the most all uses distributed structure/architecture, and multiple servers processes transaction simultaneously, uses one
Platform or multiple stage database server store transaction data.In order to ensure that system can (i.e. unit interval inside and outside transaction please in overload
Ask quantity to exceed the manageable maximum trading volume of system) time still can be properly functioning, be generally required for design overload and protect
Protective function, i.e. flow-control.
The common methods carrying out flow-control is: each circuit for every station server all configures a single flow control
Parameter processed, such as circuit ceiling, this flow control parameter is only used for judging whether the flow of the circuit corresponding to this parameter surpasses
Cross this restriction, if it does, then take corresponding flow control policy to carry out current limliting, to guarantee the properly functioning of system.
But above-mentioned flow control mode is the most single, it is only capable of realizing a circuit individually being carried out flow-control, in reality
In reality, in order to avoid causing the disabled situation of whole system, also for carrying when only one circuit access during circuit exception
Elevated track bulk flow bearing capacity, the outside system accessed the most all can keep a plurality of connection with transaction system, i.e. outside
The system that portion accesses passes through the transaction processing server that a plurality of connection is different.Above-mentioned flow control mode can not realize many
The central flow of bar circuit controls, it is impossible to meet diversified flow-control demand.Such as, more when the external system accessed
Time, cause the process inadequate resource distributed for other external systems to affect for avoiding certain system to take multiprocessing resource
The arm's length dealing of other external systems.At this moment, it is necessary to by the stream that flow-control is certain to each external system integral dispensing
Amount limit, it is ensured that the transaction of each external system all can normal process.
In current practice, if needing to realize the overall flow-control to certain external system, can only will distribute to this
The bulk flow of external system is fixedly assigned to all affiliated circuits, as each bar circuit is divided equally, part by certain distribution method
Circuit distributes big flow, part circuit distribution low discharge etc..
But when distributing to multiple circuit according to firm discharge limit, the flow that actually occurs of some circuit exceeds well over as its point
The firm discharge limit joined so that this circuit processing pressure is relatively big, and the flow that actually occurs of some circuit is much smaller than as its point
The firm discharge limit joined.As certain circuit occurs in that suddenly big flow in the case of dividing equally.And for example part circuit distribute big flow,
In the case of part circuit distribution low discharge, the circuit distributing big flow but occurs in that low discharge, and the circuit of distribution low discharge is but
Occur in that big flow.Therefore, by fixed allocation stream quantitative limitation, it is impossible to carry out Real-time and Dynamic adjustment for different circuits so that
Line resource can not be fully used, and causes the waste of line resource.Therefore, the assignment of traffic side of existing distributed system
Method, needs to be optimized.
To sum up, prior art carries out according to firm discharge limit the circuit assignment of traffic of distributed system, exists each
The transaction flow of circuit cannot dynamically adjust, and causes the wasting skill of line resource of some circuit over loadings, some circuits
Art problem.
Summary of the invention
The embodiment of the present invention provides a kind of line flows amount control method and device, in order to realize in distributed transaction system
Circuit be traded the dynamic adjustment of flow.
The embodiment of the present invention provides a kind of line flows amount control method, including:
Obtaining the current transaction flow of each bar circuit, the current transaction flow of described each bar circuit is according to current slot
In interior transaction data base, the transaction data of record determines;
The group character that current transaction flow according to described each bar circuit is corresponding with described each bar circuit, determines each point
The total flow of currently concluding the business of group;
For arbitrary packet, if the current transaction total flow of described packet is higher than the highest current limliting of packet of described packet, right
Circuit in described packet carries out flow adjustment, until described in be grouped in the transaction total flow after carrying out flow adjustment less than described
The highest current limliting of packet of packet.
Further, described circuit in described packet is carried out flow adjustment, including:
Determine the circuit needing to carry out flow adjustment;
Determine the adjusted value of the circuit dynamic current limiting that the circuit needing to carry out flow adjustment is corresponding;
The adjusted value of described circuit dynamic current limiting is sent to the flow that the described circuit needing to carry out flow adjustment is corresponding
Actuator, so that described flow regulator is according to the adjusted value of described circuit dynamic current limiting, carries out flow adjustment to described needs
Circuit on transaction flow be controlled.
Further, the described circuit that needs to carry out flow adjustment is the part or all of circuit in described packet, then
The described adjusted value determining circuit dynamic current limiting that the circuit needing to carry out flow adjustment is corresponding, including:
According to the proportionate relationship between the current transaction flow of described part or all of circuit, determine described partly or entirely
The adjusted value of the circuit dynamic current limiting that circuit is corresponding, to reduce the transaction flow of described part or all of circuit.
Further, the line that in the described circuit that needs to carry out flow adjustment is described packet, current transaction flow is maximum
Road;
The described adjusted value determining circuit dynamic current limiting that the circuit needing to carry out flow adjustment is corresponding, including:
The current transaction flow of the circuit according to described current transaction flow maximum and current total transaction flow of described packet
The ratio of amount, determines the adjusted value of the circuit dynamic current limiting that the maximum circuit of described current transaction flow is corresponding, to reduce described working as
The transaction flow of the circuit that front transaction flow is maximum.
Further, for arbitrary packet, if the current transaction total flow of described packet is not less than the packet of described packet
The current transaction flow of one or more circuit in the highest current limliting, and described packet dynamically limits equal to the circuit of described circuit
Stream, the most described method also includes:
Determine the adjusted value of the circuit dynamic current limiting that described one or more circuit is corresponding;
According to the adjusted value of circuit dynamic current limiting corresponding to described one or more circuit, to described one or more circuit
Transaction flow be adjusted, to increase the transaction flow of described one or more circuit;Or,
Determine the adjusted value of the circuit dynamic current limiting that every circuit in described packet is corresponding;
According to the adjusted value of circuit dynamic current limiting corresponding to described every circuit, the friendship to every circuit in described packet
Easily flow is adjusted, to increase the transaction flow of described one or more circuit.
In said method flow process, if certain circuit in a packet has reached the circuit dynamic current limiting of this circuit,
Realize tuning up the circuit dynamic current limiting value of this circuit, in order to make full use of line load, this is because when a certain bar circuit
During circuit dynamic current limiting, due to the flow-control of this circuit, it is likely that the outside actual request flow that there is this circuit is big
In the situation of the current transaction flow of this circuit, if the most further adjusted, the outside real of this circuit will be caused
Border request can not be processed timely, causes business to block up.
Further, for arbitrary packet and arbitrary circuit, including following configuration:
The highest current limliting of packet of arbitrary packet is definite value, and the highest current limliting of packet of different grouping is configured to identical or not
With;
The highest current limliting of circuit of arbitrary circuit is definite value, the highest current limliting of circuit of each bar circuit in same packet identical or
Different;
The circuit dynamic current limiting of arbitrary circuit is adjustable, and the circuit dynamic current limiting of arbitrary circuit is less than or equal to this circuit
The highest current limliting of circuit.
The embodiment of the present invention provides a kind of line flows amount control device, including:
Acquiring unit, for obtaining the current transaction flow of each bar circuit, the current transaction flow of described each bar circuit is
Determine according to the transaction data of record in transaction data base in current slot;
Determine unit, for the packet mark corresponding with described each bar circuit according to the current transaction flow of described each bar circuit
Know, determine each total flow of currently concluding the business being grouped;
Processing unit, for for arbitrary packet, if the current transaction total flow of described packet is higher than dividing of described packet
Organize the highest current limliting, the circuit in described packet carried out flow adjustment, until described in be grouped in the transaction after carrying out flow adjustment
Total flow is less than the highest current limliting of packet of described packet.
Further, described processing unit specifically for:
Determine the circuit needing to carry out flow adjustment;
Determine the adjusted value of the circuit dynamic current limiting that the circuit needing to carry out flow adjustment is corresponding;
The adjusted value of described circuit dynamic current limiting is sent to the flow that the described circuit needing to carry out flow adjustment is corresponding
Actuator, so that described flow regulator is according to the adjusted value of described circuit dynamic current limiting, carries out flow adjustment to described needs
Circuit on transaction flow be controlled.
Further, the described circuit that needs to carry out flow adjustment is the part or all of circuit in described packet, then institute
State processing unit specifically for:
According to the proportionate relationship between the current transaction flow of described part or all of circuit, determine described partly or entirely
The adjusted value of the circuit dynamic current limiting that circuit is corresponding, to reduce the transaction flow of described part or all of circuit.
Further, the line that in the described circuit that needs to carry out flow adjustment is described packet, current transaction flow is maximum
Road;The most described processing unit specifically for:
The current transaction flow of the circuit according to described current transaction flow maximum and current total transaction flow of described packet
The ratio of amount, determines the adjusted value of the circuit dynamic current limiting that the maximum circuit of described current transaction flow is corresponding, to reduce described working as
The transaction flow of the circuit that front transaction flow is maximum.
Further, described processing unit is additionally operable to:
For arbitrary packet, if the current transaction total flow of described packet is not less than the highest current limliting of the packet of described packet,
And the current transaction flow of one or more circuit in described packet is equal to the circuit dynamic current limiting of described circuit, then:
Determine the adjusted value of the circuit dynamic current limiting that described one or more circuit is corresponding;
According to the adjusted value of circuit dynamic current limiting corresponding to described one or more circuit, to described one or more circuit
Transaction flow be adjusted, to increase the transaction flow of described one or more circuit;Or,
Determine the adjusted value of the circuit dynamic current limiting that every circuit in described packet is corresponding;
According to the adjusted value of circuit dynamic current limiting corresponding to described every circuit, the friendship to every circuit in described packet
Easily flow is adjusted, to increase the transaction flow of described one or more circuit.
Further, for arbitrary packet and arbitrary circuit, including following configuration:
The highest current limliting of packet of arbitrary packet is definite value, and the highest current limliting of packet of different grouping is configured to identical or not
With;
The highest current limliting of circuit of arbitrary circuit is definite value, the highest current limliting of circuit of each bar circuit in same packet identical or
Different;
The circuit dynamic current limiting of arbitrary circuit is adjustable, and the circuit dynamic current limiting of arbitrary circuit is less than or equal to this circuit
The highest current limliting of circuit.
In above-described embodiment, the corresponding packet of each bar circuit, each packet configuration has the highest current limliting of packet, is flowing
When amount controls, obtaining the current transaction flow of each bar circuit, the current transaction flow of each bar circuit is according in current slot
In transaction data base, the transaction data of record determines;Divide corresponding with each bar circuit of current transaction flow according to each bar circuit
Group mark, determines each total flow of currently concluding the business being grouped;For arbitrary packet, if the current transaction total flow of described packet is high
The highest current limliting of packet in described packet, carries out flow adjustment to the circuit in described packet, until described in be grouped in and flow
Transaction total flow after amount adjustment is less than the highest current limliting of packet of described packet.By circuit is grouped, total be grouped
When transaction flow exceedes packet the highest current limliting, it is possible to the circuit in this packet is carried out flow adjustment, to reduce this packet
Transaction total flow, and then achieve the dynamic adjustment of the transaction flow of circuit, solve in prior art and limit according to firm discharge
Volume carries out the circuit assignment of traffic of distributed system, causes the technical problem that the transaction flow of each circuit cannot dynamically adjust.
Accompanying drawing explanation
Accompanying drawing is for providing a further understanding of the present invention, and constitutes a part for description, implements with the present invention
Example is used for explaining the present invention together, is not intended that limitation of the present invention.In the accompanying drawings:
The structural representation of a kind of distributed transaction system architecture that Fig. 1 provides for the embodiment of the present invention;
The structural representation of the framework of a kind of distributed transaction system that Fig. 2 provides for the embodiment of the present invention;
The schematic diagram of the configuration structure of a kind of 3 layers of flow control parameter that Fig. 3 provides for the embodiment of the present invention;
The method flow diagram of a kind of line flows amount control method that Fig. 4 provides for the embodiment of the present invention;
A kind of NetStream Data Analyzer that Fig. 5 provides for the embodiment of the present invention carries out flow adjustment to the circuit in a packet
Method flow diagram;
The structural representation of a kind of line flows amount control device that Fig. 6 provides for the embodiment of the present invention.
Detailed description of the invention
In order to realize the dynamic adjustment of the transaction flow of circuit, the embodiment of the present invention provides a kind of circuit flow controlling party
Method, by being grouped by circuit, when carrying out flow-control, obtains the current transaction flow of each bar circuit, according to each bar circuit
The group character corresponding with each bar circuit of current transaction flow, determine the total flow of currently concluding the business of each packet, at arbitrary point
When total transaction flow of group exceedes the highest current limliting of packet of this packet, it is possible to the circuit in this packet is carried out flow adjustment,
To reduce the transaction total flow of this packet, and then the dynamic of transaction flow achieving circuit adjusts, and solves in prior art
Carry out the circuit assignment of traffic of distributed system according to firm discharge limit, cause the transaction flow of each circuit dynamically to adjust
Whole technical problem.
In order to make technical problem solved by the invention, technical scheme and effective clearer, below in conjunction with
The preferred embodiments of the present invention are illustrated by Figure of description, it will be appreciated that preferred embodiment described herein is only used for
The description and interpretation present invention, is not intended to limit the present invention.And in the case of not conflicting, the embodiment in the application and reality
Execute the feature in example can be mutually combined.
Circuit during the embodiment of the present invention provides refers to by multiple transaction of external system access distributed transaction system
The a plurality of circuit of reason server, the transaction data that each circuit is traded processing by multiple transaction processing servers is stored in one
On database server, the framework of distributed transaction system is as it is shown in figure 1, circuit 1 and circuit 2 are linked into transaction processing server
On 1, circuit 3 and circuit 4 are linked on transaction processing server 2, and circuit 5 and circuit 6 are linked on transaction processing server 3.
For simplicity, the distributed transaction system of the embodiment of the present invention, it is assumed that communication and trading processing are all at same transaction
On reason server.
Dynamic transaction flow control is carried out in order to realize each circuit in distributed transaction system, basis distributed structure/architecture
On the basis of, increase by two classes control facilities: NetStream Data Analyzer and flow regulator.
After former distributed system adds above two facility, the framework of distributed transaction system is as in figure 2 it is shown, flow divides
Parser is connected with database server, with periodicity or the real-time transaction data obtaining each circuit from database server,
The transaction flow of bar circuit each in certain time in transaction data base is added up.NetStream Data Analyzer and multiple flow regulators
Connect, in order to NetStream Data Analyzer receives Flow-rate adjustment instruct it to flow regulator transmitted traffic regulating command, flow regulator
After, the circuit of the transaction processing server that flow regulator is corresponding carries out Flow-rate adjustment.Wherein, flow regulator 1 is to transaction
The circuit 1 of processing server 1 and circuit 2 are traded Flow-rate adjustment, the flow regulator 2 circuit 3 to transaction processing server 2
Being traded Flow-rate adjustment with circuit 4, flow regulator 3 is traded stream to circuit 5 and the circuit 6 of transaction processing server 3
Amount regulation.
In the embodiment of the present invention, transaction processing server one flow regulator of configuration, this flow regulator docks
Every the circuit entering transaction processing server carries out flow-control, and a transaction processing server can also be configured multiple Flow-rate adjustment
Device, multiple flow regulators and a plurality of circuit one_to_one corresponding accessing transaction processing server, as transaction processing server 1 configures
2 flow regulators, a flow regulator carries out flow-control to the circuit 1 of transaction processing server 1, and another flow is adjusted
Joint device carries out flow-control to the circuit 2 of transaction processing server 1.Flow regulator and the corresponding relation of circuit, be specially
On same trading server, a flow regulator uniquely corresponding circuit, or, on same trading server, one
The corresponding a plurality of circuit of flow regulator.Flow regulator can be only fitted to inside transaction processing server, it is possible to is arranged in flow
Outside transaction processing server.
In order to realize the flow-control to every circuit, all circuits of distributed transaction system are entered by the embodiment of the present invention
Row logic groups, will be divided into a logic entirety and this logic entirety is carried out overall flow control by different circuits
System.Logic groups need to configure in advance, it is possible to dynamically adjusts in distributed system is run.To packet in distributed system is run
Dynamically adjust, it is possible to according to practical situation, the logic groups being pre-configured with for the circuit on different server is adjusted
Whole.In the embodiment of the present invention, logic groups, example can be carried out according to the situation that outside access system accesses distributed transaction system
As, in Fig. 2, there is external system A, be concurrently accessed circuit 1,3 and 5, then circuit 1,3 and 5 just can be divided into one
Packet, for controlling the bulk flow situation of external system A.
Circuit carrying out logic groups and is roughly divided into two kinds of situations, a kind of situation is unit multi-line, and a kind of situation is many
Machine multi-line.To realize the multi control of unit, then the multiple circuits controlling to access same transaction processing server are joined
Putting an independent packet, as by circuit in Fig. 21 and 2,3 and 4,5 and 6 are arranged respectively in an independent packet.To
Realize the multi control of multimachine, then control the multiple line configuring accessing multiple transaction processing servers an independent packet
, such as the circuit 1,3 and 5 in packet 1 configuration Fig. 2, packet 2 configuration circuit 2,4 and 6, the packet of multimachine multi-line can realize
Flow-control across machine circuit.
In the embodiment of the present invention, actual packet is not limited to above two, can customize according to actual needs, minimum particle size
Under every circuit be an independent packet, under maximum particle size, all circuits are a packet.
In order to realize each circuit in packet is carried out flow dynamics control, the embodiment of the present invention 3 layers of flow-control of design
Parameter, the flow control parameter of each packet includes 3 layers of flow control parameter, includes following configuration for arbitrary packet: arbitrary
Packet configuration one is grouped the highest current limliting, and the highest current limliting of packet of arbitrary packet is definite value, and the highest limit of packet of different grouping
Stream configuration is identical or different;One the highest current limliting of circuit of arbitrary line configuring and circuit dynamic current limiting, the circuit of arbitrary circuit
The highest current limliting is definite value, and the highest current limliting of circuit of each bar circuit in same packet is identical or different;The circuit of arbitrary circuit moves
State current limliting is adjustable, and the circuit dynamic current limiting of arbitrary circuit is less than or equal to the highest current limliting of circuit of this circuit.
Current limliting the highest for circuit, refers to that the maximum limit flow valuve that single line allows, the i.e. the highest current limliting of circuit are less than thing
The flow that in reason, circuit maximum can carry, the visual practical situation of occurrence determines, this value is fixed, will not be along with packet traffic control
Dynamically adjust and adjust.
For circuit dynamic current limiting, refer to that the cut-off current that single line allows temporarily, circuit dynamic current limiting can be modified,
Modified values is controlled by NetStream Data Analyzer and flow regulator, the highest less than the highest current limliting of circuit.Initial value can be defaulted as
The highest current limliting of circuit.
For being grouped the highest current limliting, referring to the maximum limit flow valuve that single packet allows, this value is fixed, will not be along with stream of packets
What amount controlled dynamically adjusts and adjusts, and value determines depending on practical situation.
The configuration structure of 3 layers of flow control parameter sees Fig. 3.As it is shown on figure 3, the flow control parameter configuration of every circuit
Information includes the highest current limliting of circuit of circuit, circuit dynamic current limiting, packet ID, circuit ID.The flow-control of each logic groups
Parameter configuration includes the corresponding relation being grouped the highest current limliting and packet ID.Circuit ID is used for distinguishing different circuit, such as circuit 1
The identification code that circuit ID is circuit 1, packet ID is for distinguishing different logic groups, and such as the numbering of packet, circuit 1 place is divided
Group is packet 1, then the packet ID of circuit 1 is the numbering of packet 1.
Packet traffic in each packet controls in parameter configuration, the highest current limliting of packet of each packet and this packet
Packet ID there is corresponding relation, therefore, NetStream Data Analyzer can packet traffic based on each packet control parameter configuration letter
Breath, in conjunction with current transaction flow and the highest current limliting of packet of configuration of each packet, determines which packet needs to carry out flow tune
Joint, which packet is made without Flow-rate adjustment.In the flow control parameter configuration information of every circuit, the line of every circuit
There is corresponding relation in the packet ID of the highest current limliting in road and circuit dynamic current limiting and the circuit ID of this circuit, the packet of this circuit place,
Therefore when NetStream Data Analyzer determines the packet needing to carry out Flow-rate adjustment, can be according to the flow control of the circuit belonging to this packet
Parameter configuration processed, redefines out the dynamic current limiting parameter needing to carry out the circuit of Flow-rate adjustment.NetStream Data Analyzer determines
After going out the adjusted value needing to carry out the dynamic current limiting of the circuit of Flow-rate adjustment, by dynamic current limiting adjusted value and the circuit of circuit
ID is sent to the flow regulator that this circuit is corresponding.
Above-mentioned logic groups based on the part or all of circuit in distributed transaction system, NetStream Data Analyzer and flow are adjusted
The deployment of joint device, and the configuration of the flow control parameter of each logic groups and the interior circuit of packet, can realize distributed system
The flow to each circuit that is in operation carries out Real-time and Dynamic regulation and control.During whole circuit flow-control, only circuit is moved
This parameter of state current limliting is modified.
The flow control methods that the embodiment of the present invention provides is performed by NetStream Data Analyzer and flow regulator.NetStream Data Analyzer
By the transaction of bar circuit each in certain time in transaction data base is added up, the packet of combined circuit, calculate current point
The loading condition of group also judges whether to need to carry out flow-control, if needing to control, then the modified values of flow-control is notified
Flow regulator comes into force.NetStream Data Analyzer and flow regulator carry out the Real-time and Dynamic of flow and adjust the circuit in packet
Whole, mainly include two kinds of situations.
A kind of situation is: NetStream Data Analyzer timing (setting of visual practical situation of concrete cycle) accesses database server,
Add up each current transaction flow of bar circuit, calculate the total flow of currently concluding the business of each packet further according to rule of classification, it may be judged whether be super
Cross the highest current limliting of packet of this grouping and setting, if it does, the new circuit continuing to calculate the interior each circuit of packet dynamically limits
Stream, and notify that flow regulator is adjusted in the way of Flow-rate adjustment instruction.Flow regulator receives NetStream Data Analyzer transmission
Flow-rate adjustment instruction, according to new circuit dynamic current limiting, notify and revise the old circuit dynamic current limiting of corresponding line, generally
Circuit dynamic current limiting information is stored in a storage file of transaction processing server, can be replaced by new circuit dynamic current limiting
Fall old circuit dynamic current limiting, make new circuit dynamic current limiting come into force, finally realize the dynamic control of flow.
Another kind of situation is: NetStream Data Analyzer is if it find that current group flow is not less than being grouped the highest current limliting, but packet
When interior certain circuit has reached the circuit dynamic current limiting of this circuit, need to tune up the circuit dynamic current limiting of this circuit, in order to
Make full use of line load, continue to calculate the new circuit dynamic current limiting of the interior each circuit of packet, and instruct with Flow-rate adjustment
Mode notify that flow regulator is adjusted.This is because certain circuit reaches when reaching circuit dynamic current limiting of this circuit,
There may be the outside actual request flow situation more than currently practical flow of circuit, if the transaction total flow of packet is less than
It is grouped the highest current limliting, then the dynamic line limit of this circuit can be tuned up, in order to promote the utilization rate of line resource.Flow is adjusted
Joint device receives the Flow-rate adjustment instruction of NetStream Data Analyzer transmission, according to new circuit dynamic current limiting, notifies and revises corresponding line
Old circuit dynamic current limiting, finally realize the dynamic control of flow.
In the embodiment of the present invention, NetStream Data Analyzer only disposes one can realize flow control function, it is possible to dispose multiple.
Flow regulator needs to dispose at each transaction processing server, can dispose one, it is also possible to dispose multiple.Tie below
The flow control methods that closing specific embodiment provides the embodiment of the present invention is described in detail.
As shown in Figure 4, the embodiment of the present invention provides a kind of line flows amount control method, comprises the following steps:
Step 401, obtains the current transaction flow of each bar circuit, and the current transaction flow of each bar circuit is according to time current
Between in section in transaction data base the transaction data of record determine;
Step 402, according to the group character that the current transaction flow of each bar circuit is corresponding with each bar circuit, determines each point
The total flow of currently concluding the business of group;
Step 403 is for arbitrary packet, if the current transaction total flow of packet is higher than the highest current limliting of packet of packet, right
Circuit in packet carries out flow adjustment, until be grouped in the transaction total flow after carrying out flow adjustment less than packet packet
High current limliting.
Said method flow process is performed by the NetStream Data Analyzer in above-described embodiment, and NetStream Data Analyzer can configure one, also
Can configure multiple.
For arbitrary packet and arbitrary circuit, including following configuration:
The highest current limliting of packet of arbitrary packet is definite value, and the highest current limliting of packet of different grouping is configured to identical or not
With;The highest current limliting of circuit of arbitrary circuit is definite value, and the highest current limliting of circuit of each bar circuit in same packet is identical or different;
The circuit dynamic current limiting of arbitrary circuit is adjustable, the circuit dynamic current limiting of arbitrary circuit less than or equal to this circuit circuit
High current limliting.
In step 401, NetStream Data Analyzer specifically obtains from the transaction data base being connected with NetStream Data Analyzer, number of deals
According to lab setting on database server.When transaction enters transaction processing server by certain circuit, trading processing service
Transaction need to be processed by device, is recorded in the lump in database server by the transaction flow processing the circuit of this transaction, in order to stream
Use during contents analyzer statistics.NetStream Data Analyzer timer access database server, adds up each current transaction flow of bar circuit, stream
The current transaction flow of each bar circuit that contents analyzer counts is in transaction data base in certain time (i.e. in step 401
Current slot) the transaction total amount of each bar circuit.Current slot in step 401 can be configured according to practical situation,
Such as using the moment of NetStream Data Analyzer access transaction data base as T1, current slot is 5 minutes before TI in, or before T1
In 10 minutes, the current transaction flow of each bar circuit, in being 5 minutes before TI of each bar circuit or 10 minutes interior transaction flow
Amount.It addition, the cycle of NetStream Data Analyzer timer access transaction data base can also be arranged according to practical situation, such as NetStream Data Analyzer
Within every 15 minutes, access a transaction data base.
In step 402, because the circuit ID of every circuit exists corresponding relation, therefore with the packet ID of this circuit place packet
Before NetStream Data Analyzer determines the packet needing to carry out Flow-rate adjustment, can be according to belonging to working as of all circuits being grouped
Front transaction flow, calculates the total flow of currently concluding the business of a packet, the i.e. current transaction flow sum of every circuit.
In step 403, NetStream Data Analyzer judges the packet higher than this packet of the current transaction total flow being grouped
The highest current limliting, then be defined as the packet needing to carry out flow adjustment by this packet.NetStream Data Analyzer carries out flow tune to needs
Whole packet carries out flow adjustment and refers to that NetStream Data Analyzer is to needing the circuit carrying out in the packet of flow adjustment to carry out flow tune
Whole.To needing the circuit carrying out in the packet of flow adjustment to carry out flow adjustment, can be to each circuit belonging to this packet
Circuit dynamic current limiting be adjusted, it is also possible to circuit dynamic current limiting maximum to current transaction flow in this packet is adjusted
Whole.
Preferably, NetStream Data Analyzer carries out flow adjustment to the circuit in a packet, as it is shown in figure 5, idiographic flow bag
Include:
Step 501, determines the circuit needing to carry out flow adjustment;
Step 502, determines the adjusted value of the circuit dynamic current limiting that the circuit needing to carry out flow adjustment is corresponding;
Step 503, the flow that the circuit that is sent to the adjusted value of circuit dynamic current limiting to need to carry out flow adjustment is corresponding
Actuator, so that flow regulator is according to the adjusted value of circuit dynamic current limiting, to needing the friendship that carries out on the circuit of flow adjustment
Easily flow is controlled.
In a kind of optional embodiment, needing the circuit carrying out flow adjustment is the part circuit in being grouped, and step 502 is wrapped
Include: according to the proportionate relationship between the current transaction flow of part or all of circuit, determine the line that part or all of circuit is corresponding
The adjusted value of road dynamic current limiting, to reduce the transaction flow of part or all of circuit.
Such as, in distributed system architecture as shown in Figure 2, configure the circuit of every circuit of every transaction processing server
The highest current limliting is 300, and initial plant dynamic current limiting is also configured as 300, and the highest current limliting of packet of each packet is 400, circuit 1,
Circuit 3, circuit 5 is packet 1, and circuit 1, circuit 3, the current transaction flow of circuit 5 is respectively as follows: 200,150,80.Because of packet 1
Transaction total flow is more than 400, it is therefore desirable to the circuit in this packet carries out Flow-rate adjustment, specifically can select circuit 1, circuit
3 for need the circuit carrying out flow adjustment, the ratio between circuit 1 and the current transaction flow of circuit 3 be 4:3, if with packet
The highest current limliting 400 is radix, occupies ratio (250:200) equal proportion in the current transaction flow of circuit 1 and circuit 3 in packet 1
Adjust, then in packet 1, the circuit dynamic current limiting of circuit 1 will be adjusted to The circuit dynamic current limiting of circuit 3 will
It is adjusted toSo after a period of time, the transaction flow of circuit 1 and circuit 3 can decline, and finally makes packet
Within the transaction total flow of 1 drops to 400.
In a kind of optional embodiment, needing the circuit carrying out flow adjustment is the whole circuits in being grouped, and step 502 is wrapped
Include: according to the proportionate relationship between the current transaction flow of whole circuits, determine the circuit dynamic current limiting that each circuit is corresponding
Adjusted value, to reduce the transaction flow of part or all of circuit.
Such as, in distributed system architecture as shown in Figure 2, configure the circuit of every circuit of every transaction processing server
The highest current limliting is 300, and initial plant dynamic current limiting is also configured as 300, and the highest current limliting of packet of each packet is 400, wherein, often
Platform transaction processing server two lines Lu Weiyi is grouped, (unit multi-line packet mode the most as shown in Figure 2, circuit 1 and line
Road 2 is packet 1, and circuit 3 and circuit 4 are packet 2, and circuit 5 and circuit 6 are packet 3).
Assuming in current line, the current transaction flow of each circuit is as follows:
Circuit 1:250
Circuit 2:200
Circuit 3:100
Circuit 4:200
Circuit 5:50
Circuit 6:300
Owing to the maximum flow of single line is limited by circuit self Current limited Control, namely external flow even more than
300, limited by circuit self maximum flow, actually enter the flow of system the highest by also only 300, therefore NetStream Data Analyzer only needs place
The flow-control of reason packet.
NetStream Data Analyzer performs above-mentioned steps 402, obtains the total flow of currently concluding the business of each packet, it may be assumed that packet 1:450,
Packet 2:300, is grouped 3:350.
NetStream Data Analyzer performs above-mentioned steps 403, passes through and is grouped the highest current limliting 400 and compare, determines the flow of packet 1
450 have exceeded 400 set, and packet 1 is the packet needing to carry out Flow-rate adjustment, and is grouped 2 and is grouped 3 all not less than being grouped
High current limliting, it is not necessary to adjust.NetStream Data Analyzer occupies ratio in the current transaction flow of each circuit in packet 1, will be grouped circuit 1 in 1
Carry out equal proportion with the circuit dynamic current limiting of circuit 2 to turn down, or the circuit by circuit 1 maximum for transaction flow current in packet
Dynamic current limiting is individually turned down.
Such as, NetStream Data Analyzer is with packet the highest current limliting 400 as radix, by circuit 1 in packet 1 and the current friendship of circuit 2
Easily flow occupies the adjustment of ratio (250:200) equal proportion, then in packet 1, the circuit dynamic current limiting of circuit 1 will be adjusted toThe circuit dynamic current limiting of circuit 2 will be adjusted to After certain time, circuit 1
The transaction flow of transaction flow and circuit 2 can decline, within making the transaction total flow of packet 1 drop to 400.As shown in Figure 2
In the framework of distributed transaction system, circuit 1 and circuit 2 all access transaction processing server 1, and flow regulator 1 controls circuit 1
With the Flow-rate adjustment of circuit 2, the flow regulator 1 on such NetStream Data Analyzer notice transaction processing server 1 is by circuit 1 and line
The first original circuit dynamic current limiting (such as initial value 300) on road 2 is respectively modified as 222 and 178.After certain time, the transaction flow of circuit 1
Amount and the transaction flow of circuit 2 can decline, and the transaction flow such as circuit 1 is dropped to 100 by 250, and the transaction flow of circuit 2 by
200 drop to 178.
After the transaction flow of circuit 1 and the circuit dynamic current limiting of circuit 2 are turned down, the transaction flow of circuit 1 and line
The transaction flow on road 2 can decline, this is because: for circuit 1, after circuit dynamic current limiting is adjusted to 22, circuit 1 is interim
The cut-off current allowed is 222, and transaction processing server 1 can be according to the real trade flow of circuit 1 and circuit dynamic current limiting 222
Between difference, control the load of this circuit, such as, when detecting that relatively circuit 1 was in certain period of time, such as the friendship of 2 minutes
Easily flow is always close to the circuit dynamic current limiting 222 of this circuit, and outside this circuit of access system of notice is in busy state, it is proposed that
Outside access system selects to access other not busy circuits, and so, outside access system the most no longer accesses this circuit, one section
After time, the transaction flow of this circuit 1 of fully loaded will drop to circuit dynamic current limiting less than 222.The transaction flow of circuit 2
The reason that amount can decline is in like manner.
In a kind of optional embodiment, the line needing the circuit carrying out flow adjustment to be the interior current transaction flow maximum of packet
Road, step 502 includes: according to current total transaction flow of the current transaction flow of the maximum circuit of current transaction flow with packet
Ratio, determine the adjusted value of the circuit dynamic current limiting that the maximum circuit of current transaction flow is corresponding, to reduce current transaction flow
The transaction flow of maximum circuit.
Such as, still the circuit 1 of the packet 1 in the example above and the circuit dynamic current limiting of circuit 2 are adjusted, circuit
The current transaction flow of 1 is maximum (250), when adjusting, with packet the highest current limliting 400 as radix, or with the highest current limliting of circuit
For radix, will individually the circuit dynamic current limiting (being defaulted as 300) of circuit 1 be adjusted toOr, adjust
For
These are only the current transaction flow of the circuit maximum according to current transaction flow and current total transaction flow of packet
The ratio of amount determines the citing of the adjusted value of the circuit dynamic current limiting that the circuit of current transaction flow maximum is corresponding, it is also possible to according to it
His adjustable strategies, determines the adjusted value of the circuit dynamic current limiting that the maximum circuit of current transaction flow is corresponding.
On the basis of above-described embodiment, if the current transaction total flow of a packet is the highest not less than the packet of packet
Current limliting, illustrates that the line resource distributing to this packet has surplus, if in the case, certain circuit in this packet is
Reach the circuit dynamic current limiting of this circuit, need to tune up the circuit dynamic current limiting value of this circuit, in order to make full use of circuit and bear
Carry, this is because when the circuit dynamic current limiting of a certain bar circuit, owing to the current transaction flow of this circuit is also not less than this
The highest current limliting of circuit of individual line configuring, it is likely that there is outside actual request flow the working as more than this circuit of this circuit
The situation of front transaction flow, if the most further adjusted, can not be timely by the outside actual request causing this circuit
Processed, cause business to block up.
Preferably, for arbitrary packet, if the current transaction total flow of packet is not less than the highest current limliting of packet of packet, and
The current transaction flow of a circuit in packet is equal to the circuit dynamic current limiting of this circuit, then this circuit carries out flow for needs
The circuit of regulation, then said method also includes that following two carries out the mode of Flow-rate adjustment to this circuit:
The first regulative mode: the transaction flow of every circuit in packet is adjusted;Specifically: in determining packet
The adjusted value of circuit dynamic current limiting corresponding to every circuit;According to the adjusted value of circuit dynamic current limiting corresponding to every circuit,
The transaction flow of every circuit in packet is adjusted, to increase the transaction flow of this circuit.
If, circuit 1, the circuit dynamic current limiting of circuit 2 are respectively 222, and 178, circuit 1, the current transaction flow of circuit 2
Being 100,178, total transaction flow of packet 1 is 278.Set the packet of the logic groups that packet circuit 1 and circuit 2 are formed
High current limliting is 400, and the highest current limliting of circuit of circuit 1 and circuit 2 is 300, then the residue line resource of this packet is 122, line
The current transaction flow 178 on road 2 has reached the circuit dynamic current limiting 178 of circuit 2, in order to utilize the residue circuit of this packet to provide
Source, heightens the circuit dynamic current limiting of circuit 1 and circuit 2, after adjustment the circuit dynamic current limiting of every line be less than 300, as according to
(100:178), with packet the highest current limliting 400 as radix, the circuit dynamic current limiting of circuit 1, circuit 2 is adjusted to 144 and 256.
If circuit 2 is the most at full capacity after Tiao Zhenging, then can be adjusted again according to above-mentioned steps, until circuit 2 is transported the most at full capacity
Go or reach the highest current limliting of this circuit.
The second regulative mode: individually the transaction flow of this circuit is adjusted;Specifically: in determining packet
The adjusted value of the circuit dynamic current limiting that this circuit is corresponding;According to being grouped circuit dynamic current limiting corresponding to this circuit interior
Adjusted value, is adjusted the transaction flow of this circuit, to increase the transaction flow of this circuit.
Wherein it is determined that the adjusted value of circuit dynamic current limiting corresponding to this circuit in Fen Zu moves than the circuit before adjusting
State current limliting is big, it is therefore an objective to increase the transaction flow of this circuit, such as, according to current transaction flow and the institute of this circuit
At the ratio of current total transaction flow of packet, the adjusted value of circuit dynamic current limiting corresponding to this circuit is individually determined.
If, circuit 1, the circuit dynamic current limiting of circuit 2 are respectively 222, and 178, circuit 1, the current transaction flow of circuit 2
Being 100,178, total transaction flow of packet 1 is 278.Set the packet of the logic groups that packet circuit 1 and circuit 2 are formed
High current limliting is 400, and the highest current limliting of circuit of circuit 1 and circuit 2 is 300, then the residue line resource of this packet is 122, line
The current transaction flow 178 on road 2 has reached the circuit dynamic current limiting 178 of circuit 2, in order to utilize the residue circuit of this packet to provide
Source, individually heightens the circuit dynamic current limiting of circuit 2, after adjustment the circuit dynamic current limiting of circuit 2 be less than 300, as according to (178:
278), (the highest current limliting 400 can also be grouped as radix, it is also possible to other are higher than 278 with the highest current limliting of circuit 300 as radix
For radix, but ensure that the adjusted value of circuit dynamic current limiting is less than 300), the adjusted value of the dynamic current limiting of circuit 2 is defined asWherein, according to the adjusted value of circuit dynamic current limiting corresponding to this circuit in packet, to this
The specific embodiment that the transaction flow of circuit is adjusted sees the particular content in above-described embodiment, is not repeated herein.As
After fruit adjustment, circuit 2 is the most at full capacity, then can be adjusted according to above-mentioned steps again, until circuit 2 no longer oepration at full load
Or reach the highest current limliting of this circuit.
Preferably, for arbitrary packet, if the current transaction total flow of packet is not less than the highest current limliting of packet of packet, and
The current transaction flow of a plurality of circuit in packet is equal to the circuit dynamic current limiting of this circuit, then this plurality of circuit is that needs are carried out
The circuit of Flow-rate adjustment, then said method also includes that following two carries out the mode of Flow-rate adjustment to this plurality of circuit:
The first regulative mode: individually the transaction flow of this plurality of circuit is adjusted;Specifically: in determining packet
The adjusted value of the circuit dynamic current limiting that this plurality of circuit is corresponding;According to being grouped circuit dynamic current limiting corresponding to this plurality of circuit interior
Adjusted value, is adjusted the transaction flow of this plurality of circuit, to increase the transaction flow of this plurality of circuit.Particular content sees
Above-described embodiment, is not repeated herein.
The second regulative mode: the transaction flow of every circuit in packet is adjusted;Particularly as follows: in determining packet
The adjusted value of circuit dynamic current limiting corresponding to every circuit;According to the adjusted value of circuit dynamic current limiting corresponding to every circuit,
The transaction flow of every circuit in packet is adjusted, to increase the transaction flow of this plurality of circuit.Optionally, in packet
The circuit dynamic current limiting of each circuit can also be heightened according to present flow rate proportion equal proportion.Particular content sees above-mentioned reality
Execute example, be not repeated herein.
In said method flow process, by circuit being carried out the configuration of the highest current limliting of packet of packet and each packet, entering
During row flow-control, obtain the current transaction flow of each bar circuit, according to current transaction flow and each bar circuit of each bar circuit
Corresponding group character, determines the total flow of currently concluding the business of each packet, and the total transaction flow in arbitrary packet exceedes this packet
Packet the highest current limliting time, it is possible to the circuit in this packet is carried out flow adjustment, to reduce the transaction total flow of this packet,
And then the dynamic of transaction flow achieving circuit adjusts, solve in prior art and carry out distributed according to firm discharge limit
The circuit assignment of traffic of system, causes the technical problem that the transaction flow of each circuit cannot dynamically adjust.
For said method flow process, the embodiment of the present invention also provides for a kind of line flows amount control device, the tool of these devices
Internal appearance is referred to said method and implements, and does not repeats them here.
As shown in Figure 6, the embodiment of the present invention provides a kind of line flows amount control device, including:
Acquiring unit 601, for obtaining the current transaction flow of each bar circuit, the current transaction flow of each bar circuit is root
Determine according to the transaction data of record in transaction data base in current slot;
Determine unit 602, for the group character corresponding with each bar circuit according to the current transaction flow of each bar circuit, really
The total flow of currently concluding the business of each packet fixed;
Processing unit 603, for for arbitrary packet, if the current transaction total flow of packet is the highest higher than the packet of packet
Current limliting, carries out flow adjustment to the circuit in packet, until being grouped in the transaction total flow after carrying out flow adjustment less than packet
The highest current limliting of packet.
Further, processing unit 603 specifically for:
Determine the circuit needing to carry out flow adjustment;
Determine the adjusted value of the circuit dynamic current limiting that the circuit needing to carry out flow adjustment is corresponding;
The flow regulator that the circuit that is sent to the adjusted value of circuit dynamic current limiting to need to carry out flow adjustment is corresponding, with
Make flow regulator according to the adjusted value of circuit dynamic current limiting, carry out needing the transaction flow carrying out on the circuit of flow adjustment
Control.
Further, needing the circuit carrying out flow adjustment is the part or all of circuit in being grouped, then processing unit 603
Specifically for:
According to the proportionate relationship between the current transaction flow of part or all of circuit, determine that part or all of circuit is corresponding
The adjusted value of circuit dynamic current limiting, to reduce the transaction flow of part or all of circuit.
Further, the circuit needing the circuit carrying out flow adjustment to be the interior current transaction flow maximum of packet;Then process
Unit 603 specifically for:
The ratio of the current transaction flow according to the maximum circuit of current transaction flow and current total transaction flow of packet, really
The adjusted value of the circuit dynamic current limiting that the maximum circuit of settled front transaction flow is corresponding, the line maximum to reduce current transaction flow
The transaction flow on road.
Further, processing unit 603 is additionally operable to:
For arbitrary packet, if the current transaction total flow of packet is not less than the highest current limliting of packet of packet, and in packet
The current transaction flow of one or more circuit equal to the circuit dynamic current limiting of circuit, then:
Determine the adjusted value of the circuit dynamic current limiting that one or more circuit is corresponding;
According to the adjusted value of circuit dynamic current limiting corresponding to one or more circuit, the transaction flow to one or more circuit
Amount is adjusted, to increase the transaction flow of one or more circuit;Or,
Determine the adjusted value of the circuit dynamic current limiting that every circuit in packet is corresponding;
According to the adjusted value of circuit dynamic current limiting corresponding to every circuit, the transaction flow of every circuit in packet is entered
Row sum-equal matrix, to increase the transaction flow of one or more circuit.
Further, for arbitrary packet and arbitrary circuit, including following configuration:
The highest current limliting of packet of arbitrary packet is definite value, and the highest current limliting of packet of different grouping is configured to identical or not
With;
The highest current limliting of circuit of arbitrary circuit is definite value, the highest current limliting of circuit of each bar circuit in same packet identical or
Different;
The circuit dynamic current limiting of arbitrary circuit is adjustable, and the circuit dynamic current limiting of arbitrary circuit is less than or equal to this circuit
The highest current limliting of circuit.
In above-described embodiment, the corresponding packet of each bar circuit, each packet configuration has the highest current limliting of packet, is flowing
When amount controls, obtaining the current transaction flow of each bar circuit, the current transaction flow of each bar circuit is according in current slot
In transaction data base, the transaction data of record determines;Divide corresponding with each bar circuit of current transaction flow according to each bar circuit
Group mark, determines each total flow of currently concluding the business being grouped;For arbitrary packet, if the current transaction total flow of packet is higher than dividing
The highest current limliting of packet of group, carries out flow adjustment, until it is total to be grouped in the transaction after carrying out flow adjustment to the circuit in packet
Flow is less than the highest current limliting of packet of packet.By being grouped by circuit, it is the highest that the total transaction flow in packet exceedes packet
During current limliting, it is possible to the circuit in this packet is carried out flow adjustment, to reduce the transaction total flow of this packet, and then achieve
The dynamic adjustment of the transaction flow of circuit, solves the circuit carrying out distributed system in prior art according to firm discharge limit
Assignment of traffic, causes the technical problem that the transaction flow of each circuit cannot dynamically adjust.
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention
Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram
Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce
A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real
The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to
Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or
The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter
Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or
The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one
The step of the function specified in individual square frame or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed to include excellent
Select embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present invention
God and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereof
Within, then the present invention is also intended to comprise these change and modification.
Claims (12)
1. a line flows amount control method, it is characterised in that including:
Obtaining the current transaction flow of each bar circuit, the current transaction flow of described each bar circuit is to hand over according in current slot
The transaction data easily recorded in data base determines;
The group character that current transaction flow according to described each bar circuit is corresponding with described each bar circuit, determines what each was grouped
Currently conclude the business total flow;
For arbitrary packet, if the current transaction total flow of described packet is higher than the highest current limliting of packet of described packet, to described
Circuit in packet carries out flow adjustment, until described in be grouped in the transaction total flow after carrying out flow adjustment less than described packet
The highest current limliting of packet.
2. the method for claim 1, it is characterised in that described circuit in described packet is carried out flow adjustment, bag
Include:
Determine the circuit needing to carry out flow adjustment;
Determine the adjusted value of the circuit dynamic current limiting that the circuit needing to carry out flow adjustment is corresponding;
The adjusted value of described circuit dynamic current limiting is sent to the Flow-rate adjustment that the described circuit needing to carry out flow adjustment is corresponding
Device, so that described flow regulator is according to the adjusted value of described circuit dynamic current limiting, to the described line needing to carry out flow adjustment
Transaction flow on road is controlled.
3. method as claimed in claim 2, it is characterised in that in the described circuit needing to carry out flow adjustment is described packet
Part or all of circuit, then
The described adjusted value determining circuit dynamic current limiting that the circuit needing to carry out flow adjustment is corresponding, including:
According to the proportionate relationship between the current transaction flow of described part or all of circuit, determine described part or all of circuit
The adjusted value of corresponding circuit dynamic current limiting, to reduce the transaction flow of described part or all of circuit.
4. method as claimed in claim 2, it is characterised in that in the described circuit needing to carry out flow adjustment is described packet
The circuit that current transaction flow is maximum;
The described adjusted value determining circuit dynamic current limiting that the circuit needing to carry out flow adjustment is corresponding, including:
Current total transaction flow of the current transaction flow according to the maximum circuit of described current transaction flow and described packet it
Ratio, determines the adjusted value of the circuit dynamic current limiting that the maximum circuit of described current transaction flow is corresponding, to reduce described current friendship
The easily transaction flow of the circuit of maximum flow.
5. the method as according to any one of Claims 1-4, it is characterised in that for arbitrary packet, if the working as of described packet
Front transaction total flow is not less than the highest current limliting of the packet of described packet, and the current friendship of one or more circuit in described packet
Easily flow is equal to the circuit dynamic current limiting of described circuit, and the most described method also includes:
Determine the adjusted value of the circuit dynamic current limiting that described one or more circuit is corresponding;
According to the adjusted value of circuit dynamic current limiting corresponding to described one or more circuit, the friendship to described one or more circuit
Easily flow is adjusted, to increase the transaction flow of described one or more circuit;Or,
Determine the adjusted value of the circuit dynamic current limiting that every circuit in described packet is corresponding;
According to the adjusted value of circuit dynamic current limiting corresponding to described every circuit, the transaction flow to every circuit in described packet
Amount is adjusted, to increase the transaction flow of described one or more circuit.
6. method as claimed in claim 5, it is characterised in that for arbitrary packet and arbitrary circuit, including following configuration:
The highest current limliting of packet of arbitrary packet is definite value, and the highest current limliting of packet of different grouping is configured to identical or different;
The highest current limliting of circuit of arbitrary circuit is definite value, and the highest current limliting of circuit of each bar circuit in same packet is identical or not
With;
The circuit dynamic current limiting of arbitrary circuit is adjustable, and the circuit dynamic current limiting of arbitrary circuit is less than or equal to the line of this circuit
The highest current limliting in road.
7. a line flows amount control device, it is characterised in that including:
Acquiring unit, for obtaining the current transaction flow of each bar circuit, the current transaction flow of described each bar circuit is basis
The transaction data recorded in transaction data base in current slot determines;
Determine unit, for the group character corresponding with described each bar circuit according to the current transaction flow of described each bar circuit,
Determine each total flow of currently concluding the business being grouped;
Processing unit, for for arbitrary packet, if the current transaction total flow of described packet higher than described packet packet
High current limliting, carries out flow adjustment to the circuit in described packet, until described in be grouped in the transaction after carrying out flow adjustment and always flow
Amount is less than the highest current limliting of packet of described packet.
8. device as claimed in claim 7, it is characterised in that described processing unit specifically for:
Determine the circuit needing to carry out flow adjustment;
Determine the adjusted value of the circuit dynamic current limiting that the circuit needing to carry out flow adjustment is corresponding;
The adjusted value of described circuit dynamic current limiting is sent to the Flow-rate adjustment that the described circuit needing to carry out flow adjustment is corresponding
Device, so that described flow regulator is according to the adjusted value of described circuit dynamic current limiting, to the described line needing to carry out flow adjustment
Transaction flow on road is controlled.
9. device as claimed in claim 8, it is characterised in that in the described circuit needing to carry out flow adjustment is described packet
Part or all of circuit, the most described processing unit specifically for:
According to the proportionate relationship between the current transaction flow of described part or all of circuit, determine described part or all of circuit
The adjusted value of corresponding circuit dynamic current limiting, to reduce the transaction flow of described part or all of circuit.
10. device as claimed in claim 8, it is characterised in that the described circuit needing to carry out flow adjustment is described packet
The circuit that interior current transaction flow is maximum;The most described processing unit specifically for:
Current total transaction flow of the current transaction flow according to the maximum circuit of described current transaction flow and described packet it
Ratio, determines the adjusted value of the circuit dynamic current limiting that the maximum circuit of described current transaction flow is corresponding, to reduce described current friendship
The easily transaction flow of the circuit of maximum flow.
11. devices as according to any one of claim 7 to 10, it is characterised in that described processing unit is additionally operable to:
For arbitrary packet, if the current transaction total flow of described packet is not less than the highest current limliting of the packet of described packet, and institute
The current transaction flow stating one or more circuit in packet is equal to the circuit dynamic current limiting of described circuit, then:
Determine the adjusted value of the circuit dynamic current limiting that described one or more circuit is corresponding;
According to the adjusted value of circuit dynamic current limiting corresponding to described one or more circuit, the friendship to described one or more circuit
Easily flow is adjusted, to increase the transaction flow of described one or more circuit;Or,
Determine the adjusted value of the circuit dynamic current limiting that every circuit in described packet is corresponding;
According to the adjusted value of circuit dynamic current limiting corresponding to described every circuit, the transaction flow to every circuit in described packet
Amount is adjusted, to increase the transaction flow of described one or more circuit.
12. devices as claimed in claim 11, it is characterised in that for arbitrary packet and arbitrary circuit, including following configuration:
The highest current limliting of packet of arbitrary packet is definite value, and the highest current limliting of packet of different grouping is configured to identical or different;
The highest current limliting of circuit of arbitrary circuit is definite value, and the highest current limliting of circuit of each bar circuit in same packet is identical or not
With;
The circuit dynamic current limiting of arbitrary circuit is adjustable, and the circuit dynamic current limiting of arbitrary circuit is less than or equal to the line of this circuit
The highest current limliting in road.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610382007.3A CN106101017B (en) | 2016-06-01 | 2016-06-01 | line flow control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610382007.3A CN106101017B (en) | 2016-06-01 | 2016-06-01 | line flow control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106101017A true CN106101017A (en) | 2016-11-09 |
CN106101017B CN106101017B (en) | 2019-12-06 |
Family
ID=57446890
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610382007.3A Active CN106101017B (en) | 2016-06-01 | 2016-06-01 | line flow control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106101017B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228659A (en) * | 2016-12-22 | 2018-06-29 | 经贸联网科技股份有限公司 | Dynamic update finance data and/or dynamic adjust the method and system of power configuration |
CN108282411A (en) * | 2017-12-29 | 2018-07-13 | 北京五八信息技术有限公司 | A kind of access current-limiting method, device, equipment and computer readable storage medium |
CN108733789A (en) * | 2018-05-11 | 2018-11-02 | 阿里巴巴集团控股有限公司 | Executive plan evolution method, device and the equipment of database operating instruction |
CN109450806A (en) * | 2018-10-31 | 2019-03-08 | 中国联合网络通信集团有限公司 | A kind of flow control methods and device, distributed type assemblies |
CN110035108A (en) * | 2018-12-26 | 2019-07-19 | 阿里巴巴集团控股有限公司 | A kind of information-pushing method and system |
CN110198275A (en) * | 2018-03-28 | 2019-09-03 | 腾讯科技(深圳)有限公司 | A kind of flow control methods, system, server and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102244898A (en) * | 2010-05-14 | 2011-11-16 | 华为技术有限公司 | Group-based traffic control method, equipment and system |
CN103874134A (en) * | 2012-12-15 | 2014-06-18 | 华为终端有限公司 | Flow control method and device |
CN104092650A (en) * | 2013-12-04 | 2014-10-08 | 腾讯数码(天津)有限公司 | Service distributing request method and device |
-
2016
- 2016-06-01 CN CN201610382007.3A patent/CN106101017B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102244898A (en) * | 2010-05-14 | 2011-11-16 | 华为技术有限公司 | Group-based traffic control method, equipment and system |
CN103874134A (en) * | 2012-12-15 | 2014-06-18 | 华为终端有限公司 | Flow control method and device |
CN104092650A (en) * | 2013-12-04 | 2014-10-08 | 腾讯数码(天津)有限公司 | Service distributing request method and device |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228659A (en) * | 2016-12-22 | 2018-06-29 | 经贸联网科技股份有限公司 | Dynamic update finance data and/or dynamic adjust the method and system of power configuration |
CN108282411A (en) * | 2017-12-29 | 2018-07-13 | 北京五八信息技术有限公司 | A kind of access current-limiting method, device, equipment and computer readable storage medium |
CN108282411B (en) * | 2017-12-29 | 2022-07-29 | 北京五八信息技术有限公司 | Access current limiting method, device, equipment and computer readable storage medium |
CN110198275A (en) * | 2018-03-28 | 2019-09-03 | 腾讯科技(深圳)有限公司 | A kind of flow control methods, system, server and storage medium |
CN108733789A (en) * | 2018-05-11 | 2018-11-02 | 阿里巴巴集团控股有限公司 | Executive plan evolution method, device and the equipment of database operating instruction |
CN108733789B (en) * | 2018-05-11 | 2021-11-19 | 北京奥星贝斯科技有限公司 | Method, device and equipment for evolution of execution plan of database operation instruction |
CN109450806A (en) * | 2018-10-31 | 2019-03-08 | 中国联合网络通信集团有限公司 | A kind of flow control methods and device, distributed type assemblies |
CN109450806B (en) * | 2018-10-31 | 2022-05-06 | 中国联合网络通信集团有限公司 | Flow control method and device and distributed cluster |
CN110035108A (en) * | 2018-12-26 | 2019-07-19 | 阿里巴巴集团控股有限公司 | A kind of information-pushing method and system |
CN110035108B (en) * | 2018-12-26 | 2022-01-28 | 创新先进技术有限公司 | Information pushing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN106101017B (en) | 2019-12-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106101017A (en) | A kind of line flows amount control method and device | |
CN103929492B (en) | Business chain load-balancing method and its device, system | |
CN105872079B (en) | A kind of link equalization method based on domain name system DNS | |
CN107169756A (en) | Payment channel distribution method, device, storage medium and payment route system | |
CN103916396A (en) | Method for automatic expansion of application examples of cloud platform based on load self-adaption | |
CN101354664A (en) | Method and apparatus for interrupting load equilibrium of multi-core processor | |
US10554430B2 (en) | Systems and methods for providing adaptive flow control in a notification architecture | |
US20170031327A1 (en) | System and method for control and/or analytics of an industrial process | |
CN106357559A (en) | Bandwidth allocation method and device | |
CN104104551B (en) | Cloud resource need assessment method and device | |
CN106776080A (en) | The connection method for building up and device of worker thread | |
CN102638457B (en) | Method and system for automatically allocating server resource | |
CN109767070A (en) | Case distribution method, device, computer equipment and storage medium | |
CN109086131A (en) | A kind of virtual machine elastic telescopic control method and control device | |
CN104052677B (en) | The soft load-balancing method and device of data mapping | |
CN107395521B (en) | Big data information processing method and system based on Internet of things | |
CN106293533A (en) | A kind of based on the load-balancing method between storage multipath and system | |
CN104426813A (en) | Method, device and controller for controlling flow table updating | |
CN106210129A (en) | The current-limiting method of a kind of sing on web server configures and system | |
CN103703830B (en) | A kind of physical resource adjustment, device and controller | |
CN106470163A (en) | A kind of information processing method, device and system | |
CN106716368A (en) | Network classification for applications | |
CN107608788A (en) | A kind of control method, device and equipment | |
CN106209685B (en) | A kind of web crawlers distribution method of dynamic bandwidth and system towards mass data source | |
CN105955826A (en) | Control method and device of quality of service in cloud host system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |