A kind of Flow Control group system and control method thereof that is used to control flow equilibrium
Technical field
The present invention relates to the flow equilibrium problem in the network data exchange process, relate in particular to a kind of Flow Control group system and control method thereof in order to the control flow equilibrium.
Background technology
Along with the high speed development of information technology, the composition of network becomes increasingly complex.In the network of reality, the network data exchange generally all is divided into the uplink and downlink data link.Up data link generally arrives service network, and the downlink data link generally arrives the user.In case it is congested that up link occurs, forwarding of data certainly will go wrong.
Existing equipment is not owing to consider the control of up-downgoing data balancing, in case the up link appearance is congested, the network service of some Very Important Person can't normally be carried out.
At first, as shown in Figure 1, if increase a down link newly on the equipment 1, the bandwidth ratio downlink bandwidth of up link is little so.When the down link linear speed was given out a contract for a project, up link will certainly occur congested, caused partial data stream normally to transmit.
Secondly, as shown in Figure 2, if certain bar linkdown of the up link on the equipment 2 has fallen, the bandwidth ratio downlink bandwidth of up link is little so.When the down link linear speed was given out a contract for a project, up link certainly will occur congested, caused partial data stream normally to transmit.
Summary of the invention
Technical problem to be solved by this invention provides a kind of Flow Control group system and control method thereof, controls the balance of flow simply and effectively, improves the forward efficiency and the success rate of data flow.
The objective of the invention is to be achieved through the following technical solutions:
A kind of Flow Control group system that is used to control flow equilibrium comprises Flow Control group generation module and Flow Control group monitoring module,
Described Flow Control group generation module is used for up link and is set to the benchmark group, and down link is set to passive group; The bandwidth threshold value is set;
Described Flow Control group monitoring module is used to monitor the link bandwidth of benchmark group and passive group, when both bandwidth difference are not equal to the bandwidth threshold value passive group link bandwidth is adjusted.
Wherein, described Flow Control group generation module is used to also that each down link is provided with authority credentials in passive group.
A kind of control method of the group system of Flow Control as mentioned above may further comprise the steps:
(1) up link is set to the benchmark group respectively, down link is set to passive group; And the bandwidth threshold value is set;
(2) monitor the bandwidth of benchmark group and passive group in real time, if both bandwidth difference are less than the bandwidth threshold value, the bandwidth that then reduces passive group equals the bandwidth threshold value until bandwidth difference; If both bandwidth difference are greater than the bandwidth threshold value, the bandwidth that then increases passive group equals the bandwidth threshold value until bandwidth difference.
Wherein, described bandwidth threshold value is meant the redundancy of benchmark group bandwidth with respect to passive group of bandwidth.
Wherein, described step (1) also comprises: for each down link in passive group is provided with authority credentials.
Wherein, in the described step (2), the method that reduces passive group bandwidth is: the data of closing the little down link of authority credentials or blocking this link; The method that increases passive group bandwidth is: the down link that the authority credentials that will close/block is big is opened/unblocking.
The present invention has following beneficial effect:
The present invention is on existing switching equipment basis, increased the Flow Control group that bandwidth balancing is controlled to uplink downlink, realized the flow equilibrium of uplink downlink simply and effectively, avoided owing to the congested data forwarding packet loss that brings occurs, and because the present invention realizes on existing hardware device basis, thereby do not increase extra cost, also little to the cost increase of software.
Description of drawings
Fig. 1 causes the unbalanced schematic diagram of uplink downlink flow by the downlink bandwidth increase;
Fig. 2 is reduced by uplink bandwidth to cause the unbalanced schematic diagram of uplink downlink flow;
Fig. 3 is the flow control methods flow chart of Flow Control group system of the present invention.
Embodiment
Below in conjunction with drawings and the specific embodiments the present invention is further described:
Flow Control group system provided by the invention comprises Flow Control group generation module and Flow Control group monitoring module.
Wherein, Flow Control group generation module: be used for up link and be set to the benchmark group, down link is set to passive group; Flow Control group bandwidth threshold value is set; And the authority credentials of each down link in passive group is set according to the importance of link, and link is important more, and authority credentials is big more.
Flow Control group monitoring module: the link bandwidth that is used to monitor benchmark group and passive group; When between the two bandwidth difference during less than Flow Control group bandwidth threshold value, close the lower down link of some authority credentials in passive group or block the flow of these links, equal Flow Control group bandwidth threshold value until bandwidth difference; When between the two bandwidth difference during greater than Flow Control group thresholding, recover some authority credentials of closing or blocking in passive group than the business of higher down link, equal Flow Control group bandwidth threshold value until bandwidth difference.
As shown in Figure 3, above-mentioned Flow Control group system specifically may further comprise the steps the control method of flow:
301, set up benchmark group and passive group, these two groups form a Flow Control group.
Link bandwidth, the descender that the ascender of the data forwarding link of 302, needs being monitored is designed to the benchmark group is designed to passive group link bandwidth.
303, according to link-attached client's importance distribute links authority credentials, authority credentials is high more, and priority is high more.
304, the bandwidth threshold value of Flow Control group is set, and this limits value refers to the redundancy of the passive relatively group bandwidth of benchmark group bandwidth.
305, start Flow Control group monitoring modular, regularly monitor the bandwidth of benchmark group and passive group, whether the bandwidth difference of judging both is greater than the bandwidth threshold value of Flow Control group, if then enter step 307, otherwise enter 306.
306, according to the authority credentials size of down link, the down link that authority is little is the down data of falling or blocking this link successively, till the bandwidth difference between benchmark group and passive group equals Flow Control group bandwidth threshold, finish afterwards.
307, if having by the Flow Control group and close or the down link that blocks, according to the authority credentials size of down link, the link that authority is big is opened or unblocking successively, till the bandwidth difference between benchmark group and passive group equals the bandwidth threshold value of Flow Control group.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.