CN102065022B - 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
CN102065022B
CN102065022B CN2011100396236A CN201110039623A CN102065022B CN 102065022 B CN102065022 B CN 102065022B CN 2011100396236 A CN2011100396236 A CN 2011100396236A CN 201110039623 A CN201110039623 A CN 201110039623A CN 102065022 B CN102065022 B CN 102065022B
Authority
CN
China
Prior art keywords
flow
unit interval
aggregation port
port
equilibrium strategy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2011100396236A
Other languages
Chinese (zh)
Other versions
CN102065022A (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, higher connection reliability also is provided 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, and is 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 through 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 according to the feature field of message fifty-fifty, concentrates on indivedual member ports to avoid flow.
At present several kinds of 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 of forwarding is different, and the message of identical sources MAC is transmitted from same member port.Through the flow equilibrium strategy, can the flow on the AP mouth be assigned on each member port by certain rule fifty-fifty, 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 possibly 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 through 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, and the MAC Address of equipment Y is 00-00-00-00-00-02, according to the flow equilibrium strategy of 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 of confirming each member port flow difference minimum in the unit interval again is as the presently used flow equilibrium strategy of said aggregation port;
If not, it is constant to keep said aggregation port present flow rate equilibrium strategy;
The minimum flow equilibrium strategy of each member port flow difference in the said unit interval, confirm through following method:
To each flow equilibrium strategy that said aggregation port is supported, under the situation of unit of account said this flow equilibrium strategy of aggregation port use in the time, the deviation ratio of speed in the unit interval;
Every kind of resulting said deviation ratio of flow equilibrium strategy is compared, select the minimum flow equilibrium strategy of said deviation ratio as the minimum flow equilibrium strategy of each member port flow difference in the said unit interval.
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, confirm that again the minimum flow equilibrium strategy of each member port flow difference in the unit interval is as the presently used flow equilibrium strategy of said aggregation port; And in judged result for not the time, it is constant to keep aggregation port present flow rate equilibrium strategy; The minimum flow equilibrium strategy of each member port flow difference in the said unit interval; Confirm through following method: be directed against each flow equilibrium strategy that said aggregation port is supported; Under the situation of unit of account said this flow equilibrium strategy of aggregation port use in the time, the deviation ratio of speed in the unit interval; Every kind of resulting said deviation ratio of flow equilibrium strategy is compared, select the minimum flow equilibrium strategy of said deviation ratio as the minimum flow equilibrium strategy of each member port flow difference in the said unit interval;
Judge module; Be used for after selecting the minimum flow equilibrium strategy of said flow difference; 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:
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 of then confirming each member port flow difference minimum in the unit interval again 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 sketch map of aggregation port in the prior art;
Fig. 2 is a kind of connection sketch map through 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 sketch map of the instance 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 at length explained.
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, confirm the minimum flow equilibrium strategy of each member port flow difference in the unit interval again, and the said flow equilibrium strategy that will confirm again turns to execution in step S302 then as the presently used flow equilibrium strategy of said aggregation port;
S304, to keep said aggregation port present flow rate equilibrium strategy constant, turns to execution in step S302 then.
At length explain in the face of above-mentioned each step down.
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 minimum flow equilibrium strategy of a difference 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, confirm the minimum flow equilibrium strategy of each member port flow difference in the unit interval again, realize through following manner:
To each flow equilibrium strategy that this aggregation port is supported, this aggregation port uses under the situation of this flow equilibrium strategy in the unit of account time, the deviation ratio of speed in the unit interval;
Every kind of resulting deviation ratio of flow equilibrium strategy is compared, select the minimum flow equilibrium strategy of deviation ratio as the minimum flow equilibrium strategy of each member port flow difference 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 through 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, proves that more greatly then flow differs greatly between each member port of this aggregation port, has 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 following:
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 following in the unit of account time:
Figure GDA0000131590940000061
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.
Figure GDA0000131590940000062
Wherein:
Figure GDA0000131590940000063
is the summation of 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 through a unified threshold value; For aggregation port can be distributed to different flow on each member port more equably, need choose the minimum flow equilibrium strategy of the deviation ratio of speed of each member port 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 through 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, then can judge should the unit interval in the big and amplitude of variation of each member port difference in flow mutation exceeded setting range.
Preferably; At the flow equilibrium strategy of above-mentioned steps S303 each member port flow difference minimum in definite again unit interval and after with its step as the presently used flow equilibrium strategy of said aggregation port; The method of the aggregation port flow equilibrium that the embodiment of the invention provides, can also carry out following step:
The step S303 deviation ratio of definite flow equilibrium strategy speed in the unit interval again and the deviation ratio of preservation are compared; If the deviation ratio that the deviation ratio of flow equilibrium strategy speed in the unit interval of confirming is again preserved is little, use the deviation ratio of flow equilibrium strategy speed in the unit interval of confirming again to upgrade the deviation ratio of being preserved so.
If flow equilibrium strategy deviation ratio of speed in the unit interval of confirming again 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 flow equilibrium strategy speed in the unit interval of confirming is again preserved is little, explain that then current network flow changes towards the direction that more meets the present flow rate equilibrium strategy, uses 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 adjustment next time is to be 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, for the adjustment next time of 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, just need adjust accordingly as long as the unbalanced state of each port flow promptly occurs); Under the constant situation of first threshold; The deviation ratio that triggers the flow equilibrium strategy reduces, and has improved the sensitivity of adjustment, makes 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 said second threshold value, just turns to execution to confirm the step of the flow equilibrium strategy of member port flow difference minimum in the unit interval again.Through setting the number of times that specific appearance difference in flow mutationization exceeds setting range; When this situation of appearance reaches preset threshold; Just initiate to confirm again the step of the flow equilibrium strategy that flow difference is 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 instance of following mask describes:
As shown in Figure 4, device A is connected through 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 and equipment B are connected.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 preset on the device A is 1 minute, and first threshold is 0.2.
The selection of aggregation port flow equilibrium strategy and adjustment process are explained 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 minimum flow equilibrium strategy of each member port flow difference; 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, it is the flow equilibrium strategy based on purpose MAC that the aggregation port on the device A is selected second flow equilibrium strategy, 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 through 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 at a distance from one minute, calculate a deviation ratio S` on the device A, if calculate deviation ratio S` diminish or become 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 carry out the election of flow equilibrium strategy again.
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 with 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, confirm that again the minimum flow equilibrium strategy of each member port flow difference in the unit interval is as the presently used flow equilibrium strategy of said 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 selecting the minimum flow equilibrium strategy of said flow difference; 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; Be further used for being directed against each flow equilibrium strategy that said aggregation port is supported, under the situation of unit of account said this flow equilibrium strategy of aggregation port use in the time, the deviation ratio of speed in the unit interval; Every kind of resulting said deviation ratio of flow equilibrium strategy is compared, select the minimum flow equilibrium strategy of said deviation ratio as the minimum flow equilibrium strategy of each member port flow difference in the said unit interval.
Further, above-mentioned policy selection and adjusting module 501 specifically are used in the unit interval, calculating the standard deviation of the speed of this each member port of aggregation port, and the summation of each member port speed; Said standard deviation divided by said 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 comprise: memory module 503 is used to store the deviation ratio of said 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 said 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 said deviation ratio of preservation is greater than the first threshold of setting; If, then judge should be in the unit interval the big and amplitude of variation of each member port difference in flow mutation 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 of confirming each member port flow difference minimum in the unit interval again, the deviation ratio of said flow equilibrium strategy speed in the unit interval of confirming again and the deviation ratio of preservation being compared; When the deviation ratio of preserving is big, use the deviation ratio of said flow equilibrium strategy speed in the unit interval of confirming again 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 is 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 of then confirming each member port flow difference minimum in the unit interval again 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, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (13)

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 of confirming each member port flow difference minimum in the unit interval again is as the presently used flow equilibrium strategy of said aggregation port;
If not, it is constant to keep said aggregation port present flow rate equilibrium strategy;
The minimum flow equilibrium strategy of each member port flow difference in the said unit interval, confirm through following method:
To each flow equilibrium strategy that said aggregation port is supported, under the situation of unit of account said this flow equilibrium strategy of aggregation port use in the time, the deviation ratio of speed in the unit interval;
Every kind of resulting said deviation ratio of flow equilibrium strategy is compared, select the minimum flow equilibrium strategy of said deviation ratio as the minimum flow equilibrium strategy of each member port flow difference in the said unit interval.
2. the method for claim 1 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;
Said standard deviation divided by said summation, is obtained the deviation ratio of speed in this aggregation port unit interval.
3. according to claim 1 or claim 2 method is characterized in that, select the minimum flow equilibrium strategy of deviation ratio as the said unit interval in after the minimum flow equilibrium strategy of each member port flow difference, also comprise:
Preserve the deviation ratio of selected flow equilibrium strategy speed in the unit interval.
4. method as claimed in claim 3 is characterized in that, said 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 through 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 said 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 said deviation ratio of preservation is greater than the first threshold of setting; If, then judge should be in the unit interval the big and amplitude of variation of each member port difference in flow mutation exceeded setting range.
5. method as claimed in claim 3 is characterized in that, confirms again also to comprise after the flow equilibrium strategy of each member port flow difference minimum in the unit interval:
The deviation ratio of said flow equilibrium strategy speed in the unit interval of confirming again and the deviation ratio of preservation are compared;
When the deviation ratio of preserving is big, use the deviation ratio of said flow equilibrium strategy speed in the unit interval of confirming again to upgrade the deviation ratio of preserving.
6. according to claim 1 or claim 2 method 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 comprises:
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 said second threshold value, turn to execution to confirm the step of the flow equilibrium strategy that member port flow difference in the unit interval is minimum again.
7. 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, confirm that again the minimum flow equilibrium strategy of each member port flow difference in the unit interval is as the presently used flow equilibrium strategy of said aggregation port; And in judged result for not the time, it is constant to keep aggregation port present flow rate equilibrium strategy; The minimum flow equilibrium strategy of each member port flow difference in the said unit interval; Confirm through following method: be directed against each flow equilibrium strategy that said aggregation port is supported; Under the situation of unit of account said this flow equilibrium strategy of aggregation port use in the time, the deviation ratio of speed in the unit interval; Every kind of resulting said deviation ratio of flow equilibrium strategy is compared, select the minimum flow equilibrium strategy of said deviation ratio as the minimum flow equilibrium strategy of each member port flow difference in the said unit interval;
Judge module; Be used for after selecting the minimum flow equilibrium strategy of said flow difference; 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.
8. device as claimed in claim 7 is characterized in that, said policy selection and adjusting module specifically are used in the unit interval, calculating the standard deviation of the speed of this each member port of aggregation port, and the summation of each member port speed; Said standard deviation divided by said summation, is obtained the deviation ratio of speed in this aggregation port unit interval.
9. like claim 7 or 8 described devices, it is characterized in that, also comprise: memory module is used to store the deviation ratio of said policy selection and the selected flow equilibrium strategy of adjusting module speed in the unit interval.
10. device as claimed in claim 8 is characterized in that, said 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 said 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 said deviation ratio of preservation is greater than the first threshold of setting; If, then judge should be in the unit interval the big and amplitude of variation of each member port difference in flow mutation exceeded setting range.
11. device as claimed in claim 9; It is characterized in that; Said memory module; Also be used for after the flow equilibrium strategy of confirming each member port flow difference minimum in the unit interval again, the deviation ratio of said flow equilibrium strategy speed in the unit interval of confirming again and the deviation ratio of preservation being compared; When the deviation ratio of preserving is big, use the deviation ratio of said flow equilibrium strategy speed in the unit interval of confirming again to upgrade the deviation ratio of preserving.
12. an aggregation port is characterized in that said aggregation port comprises the device like each described aggregation port flow equilibrium of claim 7-11.
13. a network equipment is characterized in that the said network equipment comprises aggregation port as claimed in claim 12.
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 CN102065022A (en) 2011-05-18
CN102065022B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102437956B (en) * 2011-12-16 2014-07-30 福建星网锐捷网络有限公司 Method, device and equipment for equalizing flow of uplink aggregation port
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
CN113709053B (en) * 2021-08-03 2023-05-26 杭州迪普科技股份有限公司 Flow definition-based flow dividing method and device

Family Cites Families (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
CN1366402B (en) * 2002-02-05 2010-10-13 威盛电子股份有限公司 Load balancing device for packet switching
CN101605091B (en) * 2009-02-13 2012-02-22 华为技术有限公司 Method, device and network system for multi-port load sharing

Also Published As

Publication number Publication date
CN102065022A (en) 2011-05-18

Similar Documents

Publication Publication Date Title
CN110337121B (en) Method and system for evaluating network performance of aggregated connections
EP3082309B1 (en) Sdn controller, data centre system and router connection method
JP5271876B2 (en) Device having packet distribution function and packet distribution method
CN103401801A (en) Method and device for realizing dynamic load balance
CA3139533A1 (en) Rate-optimized congestion management
CN102065022B (en) Method and device for flow balance of aggregation port, aggregation port and network equipment
JP2013543692A5 (en)
CN109379297B (en) Method and device for realizing flow load balance
CN112202848B (en) Unmanned system network self-adaptive routing method and system based on deep reinforcement learning
CN103560971A (en) Network flow balancing control method and device
CN102025644B (en) Method and device for load sharing
CN106059942A (en) Flow control method based on load prediction in SDN network
CN109714267A (en) Manage the transfer control method and system of reversed queue
US20210099377A1 (en) Method and apparatus for controlling network traffic path
EP3253007A1 (en) Data message transmission method and edge routing bridge device
CN102223311A (en) Queue scheduling method and device
US9473357B2 (en) Guaranteeing bandwidth for dual-homed hosts in fabric extender topologies
CN106209633B (en) Message forwarding method and device
CN105072053A (en) Flow control method for Ethernet switch
CN109039938A (en) Load-balancing method and device
KR101610031B1 (en) Method for controlling openflow switch embedded controller in software defined network and apparatus thereof
Mukaidani et al. Stable queue management for supporting TCP flows over wireless networks
CN106685849A (en) Method and system of WRED message dropping based on SDN
CN104821895A (en) Energy-saving method and device
KR101589553B1 (en) Method and apparatus for controlling bandwidth for quality of service in software defined network

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.