CN102065022A - Method and device for flow balance of aggregation port, aggregation port and network equipment - Google Patents

Method and device for flow balance of aggregation port, aggregation port and network equipment Download PDF

Info

Publication number
CN102065022A
CN102065022A CN2011100396236A CN201110039623A CN102065022A CN 102065022 A CN102065022 A CN 102065022A CN 2011100396236 A CN2011100396236 A CN 2011100396236A CN 201110039623 A CN201110039623 A CN 201110039623A CN 102065022 A CN102065022 A CN 102065022A
Authority
CN
China
Prior art keywords
flow
aggregation port
unit interval
port
deviation ratio
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
Application number
CN2011100396236A
Other languages
Chinese (zh)
Other versions
CN102065022B (en
Inventor
林嘉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ruijie Networks Co Ltd
Original Assignee
Fujian Star Net Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN2011100396236A priority Critical patent/CN102065022B/en
Publication of CN102065022A publication Critical patent/CN102065022A/en
Application granted granted Critical
Publication of CN102065022B publication Critical patent/CN102065022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and device for the flow balance of an aggregation port, the aggregation port and network equipment. The method comprises the steps of: selecting a flow balance policy in which the flow difference among member ports in a unit time is minimum as the flow balance policy used by the aggregation port; in the unit time, periodically judging whether the flow difference among the member ports is increased and the change amplitude exceeds a set range or not when the aggregation port uses the selected flow balance policy; if the flow difference among the member ports is increased and the change amplitude exceeds the set range, re-determining the flow balance policy in which the flow difference among the member ports in the unit time is the minimum as the flow balance policy currently used by the aggregation port; or else, remaining the current flow balance policy of the aggregation port unchanged. Through the invention, the configuration of the optimal flow balance policy can be automatically realized; when the flow difference among the member ports changes, the flow balance policy is adjusted in real time to obtain the optimal flow balance policy after the flow changes and ensure that the flow balance policy can play a real role in the flow balance along with the flow change of the aggregation port.

Description

A kind of method of aggregation port flow equilibrium, device, aggregation port and the network equipment
Technical field
The present invention relates to network communication field, relate in particular to a kind of method, device, aggregation port and network equipment of aggregation port flow equilibrium.
Background technology
Port trunking is meant a plurality of trunkings is formed a virtual port that converges together, to realize out/to go into load sharing in each member port in converging port, also provides higher connection reliability simultaneously.The formed port that converges is commonly referred to aggregation port (Aggregate Port), and the member who forms aggregation port is called the polymerization member port.
The great advantage that port trunking in contrast to common port is the bandwidth that can provide bigger, as shown in Figure 1, have on the device A 8 100,000,000 mouthfuls with equipment B on 8 100,000,000 mouthfuls be connected, each is connected can only provide one 100,000,000 bandwidth in logic.If 8 mouths of device A are formed an aggregation port, 8 mouths are also formed an aggregation port on the equipment B, just being equivalent to two equipment connects by an aggregation port, can logically simulate the bandwidth that approaches a gigabit mouth like this, just exist 8 Member Links to bear the flow of this aggregation port jointly.
Flow equilibrium configuration on the aggregation port is meant that aggregation port can be assigned to flow in its Member Link fifty-fifty according to the feature field of message, concentrates on indivedual member ports to avoid flow.
At present several strategies commonly used of the flow equilibrium of aggregation port comprise: based on source MAC, based on target MAC (Media Access Control) address, based on source MAC+target MAC (Media Access Control) address, based on source IP address, based on purpose IP address and based on the strategy of source IP address+aggregation port flow equilibriums such as purpose IP address.
With the flow equilibrium strategy based on source MAC is example, and its specific practice is that the source MAC according to message is assigned to message in each member port of aggregation port and transmits.The message of homology MAC not, the member port difference of forwarding, the message of identical sources MAC is transmitted from same member port.By the flow equilibrium strategy, the flow on the AP mouth can be assigned on each member port fifty-fifty by certain rule, avoid transmitting from certain member port in all flow sets, improve the service efficiency of aggregation port.
The flow equilibrium strategy of aggregation port commonly used can only be selected a configuration in advance by the keeper at present, in case network traffics change, the flow equilibrium strategy on the aggregation port may no longer be optimum, therefore can't play the effect of preferable balanced flow.
For instance, application scenarios as shown in Figure 2, device A is connected by an aggregation port with equipment B, and device A has also connected equipment X and equipment Y simultaneously.Aggregation port between device A and the equipment B comprises two member ports.Suppose that the keeper is based on the flow equilibrium strategy of source MAC to the flow equilibrium strategy of aggregation port configuration between device A and the equipment B, when equipment X and Y needs and outer net communication, the MAC Address of supposing equipment X is 00-00-00-00-00-01, the MAC Address of equipment Y is 00-00-00-00-00-02, flow equilibrium strategy according to configuration, the flow of equipment X is from link 1 transmission, and the flow of equipment Y is from link 2 transmission.In case equipment Y breaks down, when only remaining equipment X and outer net communication, still from link 1 transmission, this has just caused the waste of link 2 to all flows.
Summary of the invention
The embodiment of the invention provides a kind of aggregation port flow equilibrium method, device, aggregation port and the network equipment, can not be according to the variation of network traffics and accommodation causes reaching the problem of the effect of balanced flow in order to the flow equilibrium strategy that solves aggregation port in the prior art.
The method of a kind of aggregation port flow equilibrium that the embodiment of the invention provides comprises:
The flow equilibrium strategy of each member port flow difference minimum is as the employed flow equilibrium strategy of aggregation port in selection unit's time;
In the unit interval, judge this aggregation port under the situation of using selected flow equilibrium strategy periodically, whether each member port flow difference becomes big and amplitude of variation exceeds the scope of setting;
If the flow equilibrium strategy that redefines each member port flow difference minimum in the unit interval is as the presently used flow equilibrium strategy of described aggregation port;
If not, it is constant to keep described aggregation port present flow rate equilibrium strategy.
The device of a kind of aggregation port flow equilibrium that the embodiment of the invention provides comprises:
Policy selection and adjusting module, the flow equilibrium strategy that is used for each member port flow difference minimum in selection unit's time is as the employed flow equilibrium strategy of aggregation port; And in the judge module judged result when being, the flow equilibrium strategy that redefines each member port flow difference minimum in the unit interval is as the presently used flow equilibrium strategy of described aggregation port; And in judged result for not the time, it is constant to keep aggregation port present flow rate equilibrium strategy;
Judge module, be used for after the flow equilibrium strategy of selecting described flow difference minimum, in the unit interval, judge this aggregation port under the situation of using selected flow equilibrium strategy periodically, whether each member port flow difference becomes big and amplitude of variation exceeds the scope of setting.
A kind of aggregation port that the embodiment of the invention provides comprises the device of the aggregation port flow equilibrium that the embodiment of the invention provides.
A kind of network equipment that the embodiment of the invention provides, this network equipment comprise the above-mentioned aggregation port that the embodiment of the invention provides.
The beneficial effect of the embodiment of the invention comprises:
A kind of system and method that the embodiment of the invention provides, problem.
Method, device, aggregation port and the network equipment of the aggregation port flow equilibrium that the embodiment of the invention provides, at first the flow equilibrium strategy of interior each member port flow difference minimum of selection unit's time is as the employed flow equilibrium strategy of aggregation port; Periodically in the unit interval, judge aggregation port under the situation of using selected flow equilibrium strategy subsequently, whether each member port flow difference becomes big and amplitude of variation exceeds the scope of setting; If the flow equilibrium strategy that then redefines each member port flow difference minimum in the unit interval is as the presently used flow equilibrium strategy of this aggregation port, otherwise it is constant to keep the present flow rate equilibrium strategy.The embodiment of the invention does not need in advance to aggregation port configuration flow equilibrium strategy, automatically realize the configuration of optimal flux equilibrium strategy, and, can be between member port during the difference in flow mutation, in real time the flow equilibrium strategy is adjusted, optimal flux equilibrium strategy with after the acquisition changes in flow rate makes the flow equilibrium strategy can really play the effectiveness of flow equilibrium along with the aggregation port changes in flow rate.
Description of drawings
Fig. 1 is the schematic diagram of aggregation port in the prior art;
Fig. 2 is a kind of connection diagram by the aggregation port application scenarios in the prior art;
The flow chart of the method for the aggregation port flow equilibrium that Fig. 3 provides for the embodiment of the invention;
The connection diagram of the example that Fig. 4 provides for the embodiment of the invention;
The structural representation of the device of the aggregation port flow equilibrium that Fig. 5 provides for the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing, the embodiment of method, device, aggregation port and the network equipment of a kind of aggregation port flow equilibrium that the embodiment of the invention is provided is described in detail.
The method of the aggregation port flow equilibrium that the embodiment of the invention provides as shown in Figure 3, comprising:
The flow equilibrium strategy of each member port flow difference minimum is as the employed flow equilibrium strategy of aggregation port in S301, selection unit's time;
S302, periodically in the unit interval, judge this aggregation port under the situation of using selected flow equilibrium strategy, whether each member port flow difference becomes big and amplitude of variation exceeds the scope of setting; If carry out following step S303; If not, carry out following step S304;
S303, redefine the flow equilibrium strategy of each member port flow difference minimum in the unit interval, and the described flow equilibrium strategy that will redefine turns to execution in step S302 then as the presently used flow equilibrium strategy of described aggregation port;
S304, to keep described aggregation port present flow rate equilibrium strategy constant, turns to execution in step S302 then.
Below above steps is described in detail.
In above-mentioned steps S301~S304, aggregation port start working initial, do not adopt the method for the pre-configured flow equilibrium strategy of keeper, but the size of each member port flow difference of this aggregation port elects the flow equilibrium strategy of a difference minimum as the employed flow equilibrium strategy of current aggregation port under the various flow equilibrium strategies of supporting according to this aggregation port, follow-up or else being completely cured according to the situation of change of each member port flow difference of this aggregation port that obtains in each cycle carried out suitable adjustment.
Specifically, the step of the flow equilibrium strategy of each member port flow difference minimum in selection unit's time among the above-mentioned steps S301, and among the step S303, redefine the flow equilibrium strategy of each member port flow difference minimum in the unit interval, realize by following manner:
At each flow equilibrium strategy that this aggregation port is supported, this aggregation port uses under the situation of this flow equilibrium strategy the deviation ratio of speed in the unit interval in the unit of account time;
Every kind of resulting deviation ratio of flow equilibrium strategy is compared, select the flow equilibrium strategy of the flow equilibrium strategy of deviation ratio minimum as each member port flow difference minimum in the unit interval.
In above-mentioned steps S302, aggregation port is under the situation of using selected flow equilibrium strategy, and each member port flow difference in the unit interval also realizes by the deviation ratio that calculates this aggregation port speed in this cycle.
Specifically, among above-mentioned steps S301~S303, the deviation ratio of aggregation port speed has reflected the size of flow difference between each member port of this aggregation port, prove that then flow differs greatly between each member port of this aggregation port greatly more, there is the unbalanced phenomenon of flow each other, more for a short time, prove that then flow difference is less between each member port of aggregation port, flow is comparatively balanced each other.Its computational methods are as follows:
1, in the unit interval, calculate the standard deviation of the speed of this each member port of aggregation port, and the summation of each member port speed;
2,, obtain the deviation ratio of speed in this aggregation port unit interval with the summation of standard deviation divided by each member port speed.
For instance, supposing has N member port in this aggregation port, and in the unit interval, the speed of each member port is respectively X 1, X 2... X n, the formula of the standard deviation of the speed of this each member port of aggregation port is as follows in the unit of account time:
Figure BDA0000047077050000051
Wherein:
W is X 1, X 2... X nMean value;
X 1, X 2... X nBe the speed of N member port in the unit interval.
The deviation ratio of each member port speed of aggregation port
Figure BDA0000047077050000061
Wherein:
Figure BDA0000047077050000062
Summation for N member port speed.
Why adopt the standard deviation of each member port speed to weigh the size of each member port flow difference, be because standard deviation is used for the discrete degree of characterization data, in the formula of aforementioned calculation rate variance, the standard deviation of each member port speed is to eliminate the influence that the interface rate absolute value is brought divided by the purpose of aggregation port speed (each member port speed summation), make the aggregation port of different bandwidth to weigh the scope whether the deviation ratio variation surpasses setting by a unified threshold value, for aggregation port can be distributed to different flow on each member port more equably, the flow equilibrium strategy of deviation ratio minimum of speed that need choose each member port is as the presently used flow equilibrium strategy of aggregation port.
Preferably, the method for the aggregation port flow equilibrium that the embodiment of the invention provides after above-mentioned steps S301, also comprises the step of preserving selected flow equilibrium strategy deviation ratio of speed in the unit interval.
Thus, in above-mentioned steps S302, big and the amplitude of variation of each member port difference in flow mutation exceeds the scope of setting in this unit interval, can judge by following manner: at first calculate the deviation ratio of this aggregation port speed in this unit interval, whether the deviation ratio of judging aggregation port speed in this unit interval is greater than the deviation ratio of preserving before; In judged result is under the situation that is, whether the difference between the deviation ratio of further judging aggregation port speed in this unit interval and the deviation ratio of preservation is greater than the first threshold of setting; If can judge then in this unit interval that the big and amplitude of variation of each member port difference in flow mutation has exceeded setting range.
Preferably, above-mentioned steps S303 redefine the flow equilibrium strategy of each member port flow difference minimum in the unit interval and with its step as the presently used flow equilibrium strategy of described aggregation port after, the method of the aggregation port flow equilibrium that the embodiment of the invention provides, can also carry out following step:
The deviation ratio of flow equilibrium strategy speed in the unit interval that step S303 is redefined and the deviation ratio of preservation compare; If the deviation ratio that the deviation ratio of the flow equilibrium strategy speed in the unit interval that redefines is preserved is little, use the deviation ratio of the flow equilibrium strategy speed in the unit interval that redefines to upgrade the deviation ratio of being preserved so.
If the flow equilibrium strategy that redefines deviation ratio of speed in the unit interval is not less than the deviation ratio of being preserved, do not carry out the operation that the deviation ratio of preserving is upgraded so.
The benefit of doing like this is, if the deviation ratio that the deviation ratio of the flow equilibrium strategy speed in the unit interval that redefines is preserved is little, illustrate that then current network flow changes towards the direction that more meets the present flow rate equilibrium strategy, use the flow of each member port of this port under this flow equilibrium strategy more to be tending towards even in other words, if upgrade the deviation ratio of preserving this moment, make that next time adjustment is being the adjustment of carrying out after the basis is judged based on the deviation ratio after the current renewal, so because the deviation ratio of preserving is before littler, adjustment next time for the flow equilibrium strategy, its trigger condition then seems more strict and (can imagine, if there is the trend that constantly diminishes in the deviation ratio of preserving, extreme perfect condition is that the deviation ratio of being preserved is zero, as long as the unbalanced state of each port flow promptly occurring just need adjust accordingly), under the constant situation of first threshold, the deviation ratio that triggers the flow equilibrium strategy reduces, improved the sensitivity of adjusting, made that the adjustment of flow equilibrium strategy is more flexible.
Preferably, for fear of the related operation of the network continuous initiation flow equilibrium strategy that the Traffic Anomaly shake causes in the short time and the concussion of adjustment, in the method for the above-mentioned aggregation port flow equilibrium that the embodiment of the invention provides, can also be in S302, when judging in this unit interval the big and amplitude of variation of each member port difference in flow mutation at every turn and exceeding the scope of setting, the number of times of situation that the big and amplitude of variation of each member port difference in flow mutation in the unit interval exceeds the scope of setting appears in statistics; And whether the number of times of judging current period statistics reaches second threshold value of setting, and when reaching described second threshold value, just turns to the step of carrying out the flow equilibrium strategy that redefines interior member port flow difference minimum of unit interval.By setting the number of times that specific appearance difference in flow mutationization exceeds setting range, when this situation of appearance reaches preset threshold, just initiation redefines the step of the flow equilibrium strategy of flow difference minimum, can avoid the concussion problem that the Traffic Anomaly shake is caused in the short time.
In order to be illustrated more clearly in the method for the above-mentioned aggregation port flow equilibrium that the embodiment of the invention provides, simple example of following mask describes:
As shown in Figure 4, device A is connected by an aggregation port with equipment B, and this aggregation port is made up of 2 member ports.3 equipment X, Y, Z and A are connected, and 2 equipment M, N are connected with equipment B.Suppose that device A only supports based on source MAC, based on these two kinds of flow equilibrium strategies of purpose MAC.The source MAC that supposes equipment X, Y, Z is respectively 00-00-00-00-00-01,00-00-00-00-00-02 and 00-00-00-00-00-03.The source MAC that supposes equipment M, N is respectively 01-23-45-00-00-01 and 01-23-45-00-00-02.Unit interval default on the device A is 1 minute, and first threshold is 0.2.
The selection and the adjustment process of aggregation port flow equilibrium strategy are described as follows:
Suppose when initial, equipment X, Y, Z per minute respectively send 100 messages to equipment M, N respectively, and the flow of per minute aggregation port is 600 messages so.
1, in order to select the flow equilibrium strategy of each member port flow difference minimum, aggregation port on the device A at first selects first equilibrium strategy to be the flow equilibrium strategy based on source MAC, aggregation port uses this strategy that the message of X equipment and the transmission of Z equipment is sent from link 1, and the message that Y equipment is sent sends from link 2.When expiring in first minute, adding up the last transmission of one of them member port port1 message number is 400, and another member port port2 goes up and sends the message number is 200.The standard deviation that calculates speed under this flow equilibrium strategy is 100, and deviation ratio S is 0.16.
2, in second minute, second the flow equilibrium strategy of aggregation port selection on the device A is the flow equilibrium strategy based on purpose MAC, and this strategy is that the message of M sends from link 1 with destination device, is that the message of N sends from link 2 with destination device.When expiring in second minute, statistics member port port1 goes up and sends the message number is 300, and another member port port2 goes up and sends the message number is 300.Calculate that the speed standard difference is 0 under this flow equilibrium strategy, deviation ratio S is 0.
3, compare by the deviation ratio that two unit interval are obtained respectively, aggregation port is chosen based on the flow equilibrium strategy of purpose MAC and is used on the device A, and preserves current deviation rate S=0.
After, every one minute, calculate a deviation ratio S` on the device A, if calculate deviation ratio S` diminish or becomes greatly but amplitude of variation less than 0.2, then do not revise the flow equilibrium strategy of using on the aggregation port, otherwise then need to carry out again the election of flow equilibrium strategy.
4, suppose in the running that equipment N breaks down and closes, then network traffics become X, Y, and the Z per minute sends 100 messages towards equipment M.
This moment, device A was when the computation rate standard deviation, because all message purpose MAC are M, so only transmission on link 1.Statistics member port port1 goes up and sends the message number is 300, and another member port port2 goes up and sends the message number is 0.Calculate under this flow equilibrium strategy based on purpose MAC, the standard deviation of each member port speed is 150, and deviation ratio is S`=0.5.Contrast S` becomes big than S and amplitude of variation surpasses 0.2, and need re-elect the flow equilibrium strategy this moment.
The selected flow equilibrium strategy of aggregation port on the device A is based on source MAC, and when expiring in one minute, statistics port1 goes up and sends the message number is 200, and the last transmission of port2 message number is 100.Calculate that the speed variance is 50 under this flow equilibrium strategy, deviation ratio S is 0.16.
2 kinds of flow equilibrium strategies being supported of contrast, less based on the flow equilibrium strategy deviation ratio of source MAC, be flow equilibrium strategy with the flow equilibrium strategy modification of aggregation port based on source MAC.
Based on same inventive concept, the embodiment of the invention also provides a kind of device, aggregation port and network equipment of aggregation port flow equilibrium, because this device, aggregation port are similar to the method for aforementioned a kind of aggregation port flow equilibrium with the principle that the network equipment is dealt with problems, therefore the enforcement of these devices, aggregation port and the network equipment can repeat part and repeat no more referring to the enforcement of preceding method.
The device of the aggregation port flow equilibrium that the embodiment of the invention provides as shown in Figure 5, comprising:
Policy selection and adjusting module 501, the flow equilibrium strategy that is used for each member port flow difference minimum in selection unit's time is as the employed flow equilibrium strategy of aggregation port; And in the judge module judged result when being, the flow equilibrium strategy that redefines each member port flow difference minimum in the unit interval is as the presently used flow equilibrium strategy of described aggregation port; And in judged result for not the time, it is constant to keep aggregation port present flow rate equilibrium strategy;
Judge module 502, be used for after the flow equilibrium strategy of selecting described flow difference minimum, in the unit interval, judge this aggregation port under the situation of using selected flow equilibrium strategy periodically, whether each member port flow difference becomes big and amplitude of variation exceeds the scope of setting.
Further, above-mentioned policy selection and adjusting module 501, each the flow equilibrium strategy that is further used for supporting at described aggregation port, described aggregation port uses under the situation of this flow equilibrium strategy the deviation ratio of speed in the unit interval in the unit of account time; Every kind of resulting described deviation ratio of flow equilibrium strategy is compared, select the flow equilibrium strategy of the flow equilibrium strategy of described deviation ratio minimum as each member port flow difference minimum in the described unit interval.
Further, above-mentioned policy selection and adjusting module 501 specifically were used for calculating the standard deviation of the speed of this each member port of aggregation port in the unit interval, and the summation of each member port speed; Described standard deviation divided by described summation, is obtained the deviation ratio of speed in this aggregation port unit interval.
Further, the device of the aggregation port flow equilibrium that the embodiment of the invention provides as shown in Figure 5, also comprises: memory module 503 is used to store the deviation ratio of described policy selection and the selected flow equilibrium strategy of adjusting module speed in the unit interval.
Correspondingly, above-mentioned judge module 502 is further used for calculating the deviation ratio of this aggregation port speed in this our unit time; Whether the deviation ratio of judging aggregation port speed in this unit interval is greater than the described deviation ratio of preserving; In judged result is under the situation that is, whether the difference between the deviation ratio of further judging aggregation port speed in this unit interval and the described deviation ratio of preservation is greater than the first threshold of setting; If judge then in this unit interval that the big and amplitude of variation of each member port difference in flow mutation has exceeded setting range.
Preferably, memory module in the device of the aggregation port flow equilibrium that the embodiment of the invention provides, also be used for after the flow equilibrium strategy that redefines each member port flow difference minimum in the unit interval, the deviation ratio of the described flow equilibrium strategy speed in the unit interval that redefines and the deviation ratio of preservation being compared; When the deviation ratio of preserving is big, use the deviation ratio of the described flow equilibrium strategy speed in the unit interval that redefines to upgrade the deviation ratio of preserving.
The device of the above-mentioned aggregation port flow equilibrium that the embodiment of the invention provides, in the specific implementation, the mode that can adopt hardware or hardware to combine with software, for example be designed to a module that is independent of outside each member port of aggregation port, the device of this aggregation port flow equilibrium, link to each other with each member port of aggregation port respectively, the flow difference of each member port under the employed various flow equilibrium strategies of aggregation port is monitored, calculated and the strategy of aggregation port flow equilibrium adjusted in good time.
Correspondingly, the embodiment of the invention also provides a kind of aggregation port, and this aggregation port can also comprise the device of the above-mentioned aggregation port flow equilibrium that the embodiment of the invention provides except comprising each member port.
Further, the embodiment of the invention also provides a kind of network equipment, and this network equipment comprises the above-mentioned aggregation port that the embodiment of the invention provides.
Method, device, aggregation port and the network equipment of the aggregation port flow equilibrium that the embodiment of the invention provides, at first the flow equilibrium strategy of interior each member port flow difference minimum of selection unit's time is as the employed flow equilibrium strategy of aggregation port; Periodically in the unit interval, judge aggregation port under the situation of using selected flow equilibrium strategy subsequently, whether each member port flow difference becomes big and amplitude of variation exceeds the scope of setting; If the flow equilibrium strategy that then redefines each member port flow difference minimum in the unit interval is as the presently used flow equilibrium strategy of this aggregation port, otherwise it is constant to keep the present flow rate equilibrium strategy.The embodiment of the invention does not need in advance to aggregation port configuration flow equilibrium strategy, automatically realize the configuration of optimal flux equilibrium strategy, and, can be between member port during the difference in flow mutation, in real time the flow equilibrium strategy is adjusted, optimal flux equilibrium strategy with after the acquisition changes in flow rate makes the flow equilibrium strategy can really play the effectiveness of flow equilibrium along with the aggregation port changes in flow rate.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (15)

1. the method for an aggregation port flow equilibrium is characterized in that, comprising:
The flow equilibrium strategy of each member port flow difference minimum is as the employed flow equilibrium strategy of aggregation port in selection unit's time;
In the unit interval, judge this aggregation port under the situation of using selected flow equilibrium strategy periodically, whether each member port flow difference becomes big and amplitude of variation exceeds the scope of setting;
If the flow equilibrium strategy that redefines each member port flow difference minimum in the unit interval is as the presently used flow equilibrium strategy of described aggregation port;
If not, it is constant to keep described aggregation port present flow rate equilibrium strategy.
2. the method for claim 1 is characterized in that, the flow equilibrium strategy of each member port flow difference minimum in the unit interval is determined by following method:
At each flow equilibrium strategy that described aggregation port is supported, described aggregation port uses under the situation of this flow equilibrium strategy the deviation ratio of speed in the unit interval in the unit of account time;
Every kind of resulting described deviation ratio of flow equilibrium strategy is compared, select the flow equilibrium strategy of the flow equilibrium strategy of described deviation ratio minimum as each member port flow difference minimum in the described unit interval.
3. method as claimed in claim 2 is characterized in that, calculates the deviation ratio of speed in the aggregation port unit interval, comprising:
In the unit interval, calculate the standard deviation of the speed of this each member port of aggregation port, and the summation of each member port speed;
Described standard deviation divided by described summation, is obtained the deviation ratio of speed in this aggregation port unit interval.
4. as claim 2 or 3 described methods, it is characterized in that, the flow equilibrium strategy of selecting the deviation ratio minimum as the described unit interval in after the flow equilibrium strategy of each member port flow difference minimum, also comprise:
Preserve the deviation ratio of selected flow equilibrium strategy speed in the unit interval.
5. method as claimed in claim 4 is characterized in that, described should the unit interval in the big and amplitude of variation of each the member port difference in flow mutation scope that exceeds setting judge by following manner:
Calculate the deviation ratio of this aggregation port speed in this unit interval;
Whether the deviation ratio of judging aggregation port speed in this unit interval is greater than the described deviation ratio of preserving;
In judged result is under the situation that is, whether the difference between the deviation ratio of further judging aggregation port speed in this unit interval and the described deviation ratio of preservation is greater than the first threshold of setting; If judge then in this unit interval that the big and amplitude of variation of each member port difference in flow mutation has exceeded setting range.
6. method as claimed in claim 4 is characterized in that, redefines after the flow equilibrium strategy of each member port flow difference minimum in the unit interval, also comprises:
The deviation ratio of the described flow equilibrium strategy speed in the unit interval that redefines and the deviation ratio of preservation are compared;
When the deviation ratio of preserving is big, use the deviation ratio of the described flow equilibrium strategy speed in the unit interval that redefines to upgrade the deviation ratio of preserving.
7. as each described method of claim 1-3, it is characterized in that, when judging in this unit interval that the big and amplitude of variation of each member port difference in flow mutation exceeds the scope of setting, also comprise:
The number of times of situation that the big and amplitude of variation of each member port difference in flow mutation in unit interval exceeds the scope of setting appears in statistics;
Judge whether the number of times of current period statistics reaches second threshold value of setting, and when reaching described second threshold value, turn to and carry out the step that redefines the flow equilibrium strategy of member port flow difference minimum in the unit interval.
8. the device of an aggregation port flow equilibrium is characterized in that, comprising:
Policy selection and adjusting module, the flow equilibrium strategy that is used for each member port flow difference minimum in selection unit's time is as the employed flow equilibrium strategy of aggregation port; And in the judge module judged result when being, the flow equilibrium strategy that redefines each member port flow difference minimum in the unit interval is as the presently used flow equilibrium strategy of described aggregation port; And in judged result for not the time, it is constant to keep aggregation port present flow rate equilibrium strategy;
Judge module, be used for after the flow equilibrium strategy of selecting described flow difference minimum, in the unit interval, judge this aggregation port under the situation of using selected flow equilibrium strategy periodically, whether each member port flow difference becomes big and amplitude of variation exceeds the scope of setting.
9. device as claimed in claim 8, it is characterized in that, described policy selection and adjusting module, each the flow equilibrium strategy that is further used for supporting at described aggregation port, described aggregation port uses under the situation of this flow equilibrium strategy the deviation ratio of speed in the unit interval in the unit of account time; Every kind of resulting described deviation ratio of flow equilibrium strategy is compared, select the flow equilibrium strategy of the flow equilibrium strategy of described deviation ratio minimum as each member port flow difference minimum in the described unit interval.
10. device as claimed in claim 8 is characterized in that, described policy selection and adjusting module specifically were used for calculating the standard deviation of the speed of this each member port of aggregation port in the unit interval, and the summation of each member port speed; Described standard deviation divided by described summation, is obtained the deviation ratio of speed in this aggregation port unit interval.
11. device is characterized in that also comprise: memory module is used to store the deviation ratio of described policy selection and the selected flow equilibrium strategy of adjusting module speed in the unit interval as claimed in claim 8 or 9.
12. device as claimed in claim 10 is characterized in that, described judge module is further used for calculating the deviation ratio of this aggregation port speed in this our unit time; Whether the deviation ratio of judging aggregation port speed in this unit interval is greater than the described deviation ratio of preserving; In judged result is under the situation that is, whether the difference between the deviation ratio of further judging aggregation port speed in this unit interval and the described deviation ratio of preservation is greater than the first threshold of setting; If judge then in this unit interval that the big and amplitude of variation of each member port difference in flow mutation has exceeded setting range.
13. device as claimed in claim 11, it is characterized in that, described memory module, also be used for after the flow equilibrium strategy that redefines each member port flow difference minimum in the unit interval, the deviation ratio of the described flow equilibrium strategy speed in the unit interval that redefines and the deviation ratio of preservation being compared; When the deviation ratio of preserving is big, use the deviation ratio of the described flow equilibrium strategy speed in the unit interval that redefines to upgrade the deviation ratio of preserving.
14. an aggregation port is characterized in that described aggregation port comprises the device as each described aggregation port flow equilibrium of claim 8-13.
15. a network equipment is characterized in that the described network equipment comprises aggregation port as claimed in claim 14.
CN2011100396236A 2011-02-17 2011-02-17 Method and device for flow balance of aggregation port, aggregation port and network equipment Active CN102065022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100396236A CN102065022B (en) 2011-02-17 2011-02-17 Method and device for flow balance of aggregation port, aggregation port and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100396236A CN102065022B (en) 2011-02-17 2011-02-17 Method and device for flow balance of aggregation port, aggregation port and network equipment

Publications (2)

Publication Number Publication Date
CN102065022A true CN102065022A (en) 2011-05-18
CN102065022B CN102065022B (en) 2012-07-25

Family

ID=44000128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100396236A Active CN102065022B (en) 2011-02-17 2011-02-17 Method and device for flow balance of aggregation port, aggregation port and network equipment

Country Status (1)

Country Link
CN (1) CN102065022B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102437956A (en) * 2011-12-16 2012-05-02 福建星网锐捷网络有限公司 Method, device and equipment for balancing traffic of uplink aggregation port
CN106599563A (en) * 2016-12-07 2017-04-26 华北电力科学研究院有限责任公司 Verification method and apparatus for powder manufacturing equipment
CN109831388A (en) * 2017-11-23 2019-05-31 中国电信股份有限公司 Method and apparatus for optimizing flow load balance
CN113709053A (en) * 2021-08-03 2021-11-26 杭州迪普科技股份有限公司 Flow distribution method and device based on flow definition

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1366402A (en) * 2002-02-05 2002-08-28 威盛电子股份有限公司 Load balancing device for packet switching
US6498781B1 (en) * 1999-08-13 2002-12-24 International Business Machines Corporation Self-tuning link aggregation system
CN101605091A (en) * 2009-02-13 2009-12-16 华为技术有限公司 A kind of multi-port load sharing method, device and network system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6498781B1 (en) * 1999-08-13 2002-12-24 International Business Machines Corporation Self-tuning link aggregation system
CN1366402A (en) * 2002-02-05 2002-08-28 威盛电子股份有限公司 Load balancing device for packet switching
CN101605091A (en) * 2009-02-13 2009-12-16 华为技术有限公司 A kind of multi-port load sharing method, device and network system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102437956A (en) * 2011-12-16 2012-05-02 福建星网锐捷网络有限公司 Method, device and equipment for balancing traffic of uplink aggregation port
CN102437956B (en) * 2011-12-16 2014-07-30 福建星网锐捷网络有限公司 Method, device and equipment for equalizing flow of uplink aggregation port
CN106599563A (en) * 2016-12-07 2017-04-26 华北电力科学研究院有限责任公司 Verification method and apparatus for powder manufacturing equipment
CN106599563B (en) * 2016-12-07 2019-01-25 华北电力科学研究院有限责任公司 A kind of powder manufacturing apparatus method of calibration and device
CN109831388A (en) * 2017-11-23 2019-05-31 中国电信股份有限公司 Method and apparatus for optimizing flow load balance
CN113709053A (en) * 2021-08-03 2021-11-26 杭州迪普科技股份有限公司 Flow distribution method and device based on flow definition
CN113709053B (en) * 2021-08-03 2023-05-26 杭州迪普科技股份有限公司 Flow definition-based flow dividing method and device

Also Published As

Publication number Publication date
CN102065022B (en) 2012-07-25

Similar Documents

Publication Publication Date Title
EP3082309B1 (en) Sdn controller, data centre system and router connection method
US10484289B2 (en) Adjusting connection validating control signals in response to changes in network traffic
CA3139533A1 (en) Rate-optimized congestion management
CN107634912B (en) Load balancing method, device and equipment
CN110337121B (en) Method and system for evaluating network performance of aggregated connections
CN103401801A (en) Method and device for realizing dynamic load balance
US9491105B2 (en) Method and apparatus for adaptive fast start in link aggregation
CN104243337A (en) Method and device for cross-cluster load balancing
CN102065022B (en) Method and device for flow balance of aggregation port, aggregation port and network equipment
CA2779415A1 (en) Systems and methods to control energy consumption efficiency
CN109379297B (en) Method and device for realizing flow load balance
CN109451534A (en) A kind of dynamic control method and device for QoS flow in the management of 5G system session
CN102404224B (en) Self-adaptive balanced load shunting equipment and method
CN105100142A (en) Transmission control method and device of software defined network (SDN) protocol message
CN106059942A (en) Flow control method based on load prediction in SDN network
CN103560971A (en) Network flow balancing control method and device
CN109714267A (en) Manage the transfer control method and system of reversed queue
CN102025644A (en) Method and device for load sharing
CN108768781A (en) Avoid deadlock without losing flow control methods and device
CN102223311A (en) Queue scheduling method and device
CN102469018A (en) Method and device for realizing equipment priority in virtual router redundancy protocol backup group
CN107770818A (en) Control the methods, devices and systems of network section bandwidth
CN105072053A (en) Flow control method for Ethernet switch
CN106209633B (en) Message forwarding method and device
CN109039938A (en) Load-balancing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor

Patentee after: RUIJIE NETWORKS Co.,Ltd.

Address before: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor

Patentee before: Beijing Star-Net Ruijie Networks Co.,Ltd.