CN100596359C - Traffic control method and device for switch service flow - Google Patents
Traffic control method and device for switch service flow Download PDFInfo
- Publication number
- CN100596359C CN100596359C CN200710145689A CN200710145689A CN100596359C CN 100596359 C CN100596359 C CN 100596359C CN 200710145689 A CN200710145689 A CN 200710145689A CN 200710145689 A CN200710145689 A CN 200710145689A CN 100596359 C CN100596359 C CN 100596359C
- Authority
- CN
- China
- Prior art keywords
- business stream
- total flow
- value
- flow
- switch
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000012544 monitoring process Methods 0.000 claims description 27
- 230000007812 deficiency Effects 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 5
- 239000002699 waste material Substances 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 241001522296 Erithacus rubecula Species 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a switch service flow capacity controlling method. The invention comprises that a real time value of a total flow capacity of a switch outlet service flow is monitored; whetherthe total flow capacity of the service flow is congested or not is judged according to the real time value of the total flow capacity; a flow capacity speed limiting value of the switch inlet serviceflow is adjusted according to a weighting ratio of the service flow and the judging results, which realizes the flow capacity control of the service flow. The invention also discloses a switch service flow capacity controlling device. With the invention, when the service flow with a high priority has a lower flow capacity, the flow capacity speed limiting value of each switch inlet service flow is adjusted dynamically, and the remained bandwidth of the high priority service flow is used to provide extra bandwidth for other service flow, which effectively utilizes the bandwidth resources inside the switch. And due to the limitation of the flow capacity of each service flow at the inlet, a forwarding channel during a cross-chip retransmission and the backplane bandwidth during a cross-service retransmission are saved.
Description
Technical field
The present invention relates to communication technical field, particularly a kind of switch service flow capacity controlling method and device.
Background technology
Traditional control mode to the switch ports themselves flow adopts fixed form.Promptly produce when congested when the flow of the multi-business flow of transmitting by certain switch, by the flow of different business stream being carried out CAR (Committed Access Rate, committed access rate) speed limit at the switch inbound port.Congested schematic diagram takes place in conjunction with switch traffic shown in Figure 1, wherein Business Stream A and Business Stream B are the Business Stream of two different priorities, they are all up by outbound port Y, suppose the priority of the priority of Business Stream B greater than Business Stream A, and Business Stream A arrives inbound port X prior to Business Stream B, this moment is if flow congestion appears in outbound port Y, then this switch is according to the tail drop principle of acquiescence, a part of flow of Business Stream B is abandoned, thisly cause Business Stream by the high priority of same switch easily at congested flow control mode, for example voice flow and video flowing etc. produce packet loss.
Existing a kind of method that adopts the inbound port Limit Rate at congested flow control.This method is according to the priority of different business stream and in conjunction with the total bandwidth of uplink traffic, and the Business Stream that is respectively different customizes corresponding uplink traffic speed limit.Before the Business Stream of different priorities passes through inbound port, according to each the self-corresponding uplink traffic speed limit that customizes in advance, these Business Streams are carried out speed limit, it is congested to guarantee that with this uplink traffic can not produce when the outbound port, makes the business of high priority can obtain effective bandwidth in advance and guarantees.In conjunction with Fig. 1, suppose that the priority of Business Stream B is higher than the priority of Business Stream A, and the uplink traffic bandwidth of this switch is 100M, according to the priority level of Business Stream A and Business Stream B in conjunction with uplink traffic bandwidth 100M, the uplink traffic speed limit of custom service stream A is 40M respectively, the uplink traffic speed limit of Business Stream B is 60M, this moment is if the Business Stream A at inbound port place and the service traffics of Business Stream B are respectively 50M, then according to they uplink traffic speed limits separately, Business Stream A is 40M from the actual offered traffic of inbound port X, practical business flow less than Business Stream A, and Business Stream B is 50M from the actual offered traffic of inbound port X, less than the uplink traffic speed limit of Business Stream B, at this moment, inbound port uplink traffic summation after the speed limit is 90M, less than the total bandwidth of uplink traffic.Hence one can see that, above-mentioned method based on the inbound port Limit Rate, though can not cause the flow congestion at outbound port place, but when certain higher priority business stream flow at inbound port place does not reach its uplink traffic speed limit, and the lower Business Stream flow of certain priority can cause the waste of switch traffic bandwidth when having surpassed its uplink traffic speed limit.
Existing another kind adopts the method for outbound port WRR (Weight RoundRobin, weighted round robin) queue scheduling at congested flow control.This method is according to the message number customized weightings ratio of different business stream, and at the outbound port configuration WRR of switch queue scheduling, this scheduling mode is to distribute bandwidth at the Business Stream of outbound port according to the weight proportion of customization, make these Business Streams according to separately bandwidth from the outbound port output flow.Above-mentioned WRR array dispatching method based on outbound port is primarily aimed at the constant single message traffic stream of message size, can obtain rational bandwidth according to the weight proportion of customization to the flow of these Business Streams; But flow for the different business that message size does not wait, such as data traffic flow and speech business stream, the weight ratio of tentation data Business Stream and speech business stream is 1 to 2, and data traffic flow and speech business to flow the size ratio of each message be 2 to 1, then final data bandwidth ratio professional and the speech business flow should be 1 to 1, therefore is not inconsistent than the bandwidth ratio of distribution and actual bandwidth ratio according to weight.Hence one can see that, at the diverse Business Stream of message, easily causes some Business Stream because the bandwidth deficiency of distributing and discarded part separate service flow at outbound port; For the partial service flow that abandons, owing to be forwarded to outbound port from inbound port, therefore when Business Stream being striden chip or stride the business board forwarding, this part service traffics that abandon can be wasted the interior forwarding passage of chip or the Gbps at business board place.
Summary of the invention
The object of the present invention is to provide a kind of switch service flow capacity controlling method, waste flow bandwidth easily or transmit problem of resource to overcome flow control methods of the prior art.
Another object of the present invention is to provide a kind of volume control device of exchange service stream, waste flow bandwidth easily or transmit problem of resource to overcome volume control device of the prior art.
For solving the problems of the technologies described above, the invention provides following technical scheme:
A kind of switch service flow capacity controlling method comprises:
The total flow instantaneous value of monitoring switch outbound port Business Stream;
Whether the total flow of judging described Business Stream according to the total flow instantaneous value of described Business Stream is congested;
According to described judged result, when the total flow of described Business Stream congested, or when the total flow of described Business Stream is not enough, the total flow adjusted value that distributes described Business Stream according to the weight ratio of described Business Stream, and change the Limit Rate value of described switch inbound port Business Stream according to described total flow adjusted value, realize flow control to described Business Stream.
The total flow instantaneous value of described monitoring switch outbound port Business Stream comprises:
The time interval of described monitoring is set;
Obtain the total flow instantaneous value of described switch outbound port Business Stream according to the described time interval.
Whether the total flow that described total flow instantaneous value according to Business Stream is judged described Business Stream congested comprising:
Preestablish the total flow speed limit of described switch outbound port Business Stream and the total flow adjusted value of Business Stream;
The total flow speed limit of more described Business Stream and the total flow instantaneous value of described Business Stream, when the difference of described speed limit and described instantaneous value less than zero the time, the total flow of described Business Stream is congested; When described difference greater than zero and during less than described adjusted value, the total flow of described Business Stream is normal; When described difference during greater than described adjusted value, the total flow deficiency of described Business Stream.
When the inbound port of described switch is single inbound port,
The total flow adjusted value of the described Business Stream weight ratio according to described each Business Stream of inbound port of definition is distributed;
Change the Limit Rate value of described each Business Stream of inbound port according to the adjusted value of described distribution.
When the inbound port of described switch is the port set of being made up of a plurality of inbound ports,
The total flow adjusted value of the described Business Stream weight ratio according to described each inbound port Business Stream of definition is distributed;
Change the Limit Rate value of this inbound port Business Stream according to the adjusted value of each inbound port of described distribution.
The inbound port of described switch is during based on the sets of ports of different virtual LAN VLAN,
The total flow adjusted value of the described Business Stream weight ratio according to Business Stream in the described different VLAN of definition is distributed;
Change the Limit Rate value of Business Stream in this VLAN according to the adjusted value of each VLAN of described distribution.
The Limit Rate value of described change Business Stream comprises:
When the total flow of described Business Stream is congested, reduce the Limit Rate value of described Business Stream; When the total flow of described Business Stream is not enough, improve the Limit Rate value of described Business Stream.
The Limit Rate value of described reduction Business Stream is specially:
The weight of described Business Stream is obtained the total flow adjusted value of this Business Stream than multiplying each other with the fiducial value that sets in advance;
The Limit Rate value of described inbound port Business Stream is deducted described total flow adjusted value, obtain the present flow rate speed limit;
The Limit Rate value of described raising Business Stream is specially:
The weight of described Business Stream is obtained the total flow adjusted value of this Business Stream than multiplying each other with the fiducial value that sets in advance;
The Limit Rate value of described inbound port Business Stream is added the above total flow adjusted value, obtain the present flow rate speed limit.
Further comprise:
When the flow change rate of described inbound port Business Stream surpassed threshold value, it was insincere Business Stream that described Business Stream is set, and the Limit Rate value of described insincere Business Stream is not adjusted.
A kind of volume control device of exchange service stream comprises:
Monitoring unit is used to monitor the total flow instantaneous value of switch outbound port Business Stream;
Judging unit is used for judging according to the total flow instantaneous value of described Business Stream whether the total flow of described Business Stream is congested;
Adjustment unit, further comprise allocation units and performance element: described allocation units are used for the judged result according to described judging unit, when the total flow of described Business Stream congested, or when the total flow of described Business Stream is not enough, according to the weight of described Business Stream than the total flow adjusted value that distributes described Business Stream; Described performance element is used for changing according to described total flow adjusted value the Limit Rate value of described switch inbound port Business Stream, realizes the flow control to described Business Stream.
Described monitoring unit comprises:
The unit is set, is used to be provided with the time interval of monitoring;
Acquiring unit is used for obtaining according to the described time interval total flow instantaneous value of described switch outbound port Business Stream.
Described judging unit comprises:
Default unit is used to preestablish the total flow speed limit of described switch outbound port Business Stream and the total flow adjusted value of Business Stream;
Comparing unit is used for the total flow speed limit of more described Business Stream and the total flow instantaneous value of described Business Stream, when the difference of described speed limit and described instantaneous value less than zero the time, the total flow of described Business Stream is congested; When described difference greater than zero and during less than described adjusted value, the total flow of described Business Stream is normal; When described difference during greater than described adjusted value, the total flow deficiency of described Business Stream.
Further comprise:
Recognition unit is used for when the flow change rate of described inbound port Business Stream surpasses threshold value, and the insincere Business Stream of described Business Stream for not participating in dynamically adjusting is set.
By above description to technical solution of the present invention as can be known, the present invention is by the total flow instantaneous value of monitoring switch outbound port Business Stream, whether the total flow of judging Business Stream according to the total flow instantaneous value of Business Stream is congested, and, realize flow control to Business Stream according to the Limit Rate value of judged result according to the weight ratio adjustment switch inbound port Business Stream of Business Stream.Use the present invention when the flow of the Business Stream of high priority hangs down, can be by dynamically adjusting the Limit Rate value of each Business Stream of switch inbound port, utilize the remaining bandwidth of the Business Stream of this high priority to provide extra bandwidth, effectively utilized the bandwidth resources in the switch for the Business Stream of other priority; And owing to limit at the flow of inbound port to each Business Stream, so avoided to transmit in switch inside owing to the congested Business Stream that abandons the Gbps when having saved the forwarding passage when striding the chip forwarding and having striden the business board forwarding at outbound port.
Description of drawings
Fig. 1 is that congested schematic diagram takes place switch traffic in the prior art;
Fig. 2 is the first embodiment flow chart of the inventive method;
Fig. 3 is the second embodiment flow chart of the inventive method;
Fig. 4 is the 3rd embodiment flow chart of the inventive method;
Fig. 5 is the 4th embodiment flow chart of the inventive method;
Fig. 6 is the first embodiment block diagram of apparatus of the present invention;
Fig. 7 is the second embodiment block diagram of apparatus of the present invention.
Embodiment
Core of the present invention provides a kind of switch traffic control method, this method is by the total flow instantaneous value of monitoring switch outbound port Business Stream, total flow instantaneous value according to the Business Stream of monitoring judges whether the total flow of Business Stream is congested, and, realize flow control to Business Stream according to the Limit Rate value of judged result according to the weight ratio adjustment switch inbound port Business Stream of Business Stream.
In order to make those skilled in the art person understand the present invention program better, and above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
The first embodiment flow chart of the inventive method as shown in Figure 2, this embodiment shows and uses the basic flow sheet that flow control methods of the present invention is adjusted Business Stream:
Step 201: the total flow instantaneous value of monitoring switch outbound port Business Stream.
By the time interval of monitoring is set, and obtain the total flow instantaneous value of switch outbound port Business Stream according to this time interval.
Step 202: whether the total flow of judging Business Stream according to the total flow instantaneous value of Business Stream is congested.
Set in advance the total flow speed limit and the total flow adjusted value of switch outbound port Business Stream,, illustrate that the total flow of switch outbound port is congested when total flow speed limit during less than the total flow instantaneous value; When the total flow speed limit greater than the total flow instantaneous value, and their difference illustrates that the total flow of switch outbound port is normal during less than the total flow adjusted value, reached stable state; When the total flow speed limit greater than the total flow instantaneous value, and their difference illustrates the total flow deficiency of switch outbound port during greater than the total flow adjusted value.
Step 203: the Limit Rate value of adjusting switch inbound port Business Stream according to judged result according to the weight ratio of Business Stream.
The weight ratio of total flow adjusted value according to the inbound port place Business Stream of definition distributed, when the total flow of switch outbound port is congested, according to the Limit Rate value of the corresponding reduction inbound port of the adjusted value that is traffic flow assignment place Business Stream; When the total flow of switch outbound port is not enough, according to the Limit Rate value of the corresponding raising inbound port of the adjusted value that is traffic flow assignment place Business Stream.
The second embodiment flow chart of the inventive method as shown in Figure 3, this embodiment shows the single inbound port from switch is entered the process that each Business Stream of switch carries out flow control:
Step 301: the time interval of monitoring, the total flow speed limit of outbound port Business Stream and the total flow adjusted value of Business Stream are set.
Wherein, the time interval of monitoring can be provided with according to the changes in flow rate size of each Business Stream of switch inbound port, when the time interval that is provided with hour, the flow of each Business Stream of inbound port reaches stable state fast because each time interval of adjusting is short; When the time interval that is provided with was big, the flow of each Business Stream of inbound port reached stable state more slowly because each time interval of adjusting is long.
The total flow speed limit of outbound port Business Stream is the value of setting according to the bandwidth ability of switch outbound port; The total flow adjusted value of outbound port Business Stream is the priority level according to each Business Stream, the weight ratio of pre-defined each Business Stream flow, the weight of supposing each Business Stream flow is W than sum, fiducial value is S, then the total flow adjusted value is weight than the product of sum W with fiducial value S, and wherein fiducial value S can be understood as the step value of adjustment.
Wherein, fiducial value S also can be provided with according to the changes in flow rate size of each Business Stream of switch inbound port place, when the S that is provided with hour, the flow of each Business Stream of inbound port can reach stable state more slowly because each adjusted value is less; When the S that is provided with was big, the flow of each Business Stream of inbound port was because each adjusted value can reach stable state more greatly fast.
Step 302: the total flow adjusted value of the Business Stream weight ratio according to each Business Stream of inbound port of definition is distributed.
Suppose that inbound port has the Business Stream of N bar different business grade, the weight of every Business Stream is than being Wi, and then every Business Stream Ni adjusts the product that the total flow adjusted value that is assigned to is Wi and fiducial value S at every turn, and establishing this product is Mi, and wherein i represents i bar Business Stream.
Step 303: judge whether to arrive the time interval of setting, if then execution in step 304; Otherwise, return step 303.
Step 304: the total flow instantaneous value that obtains switch outbound port Business Stream.
The flow instantaneous value addition of each Business Stream of switch outbound port is promptly obtained the total flow instantaneous value of this outbound port Business Stream.
Step 305: whether the difference of judging the total flow speed limit of Business Stream and total flow instantaneous value is greater than zero, if then execution in step 307; Otherwise, execution in step 306.
Step 306:, return step 303 according to the Limit Rate value of each Business Stream of adjusted value reduction inbound port that distributes.
At this moment, the total flow speed limit of outbound port Business Stream is less than the total flow instantaneous value of Business Stream, the total flow that the switch outbound port is described is congested, according to the Limit Rate value of each Business Stream of the corresponding reduction inbound port of the adjusted value that is each traffic flow assignment place, promptly every Business Stream Ni reduces the Mi size with the Limit Rate value at its inbound port place.
At initial time, the Limit Rate value of each Business Stream of inbound port place is that the weight of total flow speed limit and each Business Stream of outbound port is than being weighted the value that obtains after the calculating, be every Business Stream Ni the initial flow speed limit at inbound port place for the total flow speed limit divided by weight than sum W, the value that obtains after multiplying each other than Wi with the weight of this Business Stream Ni then.
Step 307: whether the difference of instantaneous value of judging the total flow speed limit of Business Stream and total flow is less than the flow adjusted value, if then return step 303; Otherwise, execution in step 308.
Step 308:, return step 303 according to the Limit Rate value of each Business Stream of adjusted value raising inbound port that distributes.
At this moment, the total flow speed limit of outbound port Business Stream is greater than the total flow instantaneous value of Business Stream, and their difference is greater than the total flow adjusted value, the total flow deficiency of switch outbound port is described, according to the Limit Rate value of this Business Stream of the corresponding raising inbound port of the adjusted value that is each traffic flow assignment place, promptly every Business Stream Ni improves the Mi size with the Limit Rate value at its inbound port place.
Second embodiment to the invention described above method is described in detail below in conjunction with a concrete application example.
Suppose the Business Stream of two kinds of different priorities of transmission in the single inbound port of switch, Business Stream 1 and Business Stream 2, the flow of these two kinds of Business Streams is respectively 100M and 60M when initial, the total flow speed limit of supposing the outbound port Business Stream is 100M, the weight ratio of Business Stream 1 and Business Stream 2 is 2: 3, and fiducial value S is 1M, and the time interval of setting is 10 seconds, then the flow adjusted value of Business Stream is 5M, and the Limit Rate value of the inbound port of initial time Business Stream 1 and Business Stream 2 is respectively 40M and 60M.The process that following table 1 is adjusted the flow instantaneous value of inbound port Business Stream 1 and Business Stream 2 according to the total flow instantaneous value of outbound port Business Stream:
Table 1
Initial time T0=0 is during second, and the flow of switch inbound port and outbound port is a stable state;
T1=10 is during second, the flow of inbound port Business Stream 1 and Business Stream 2 changes, Business Stream 2 reduces to 50M, the total flow speed limit of outbound port and the difference of total flow instantaneous value are 10M at this moment, greater than total flow adjusted value 5M, therefore will be added to the Limit Rate value of these two kinds of Business Streams of port according to the weight ratio of Business Stream 1 and Business Stream 2 respectively in next time interval, promptly the Limit Rate value of Business Stream 1 increases 2M, and the Limit Rate value of Business Stream 2 increases 3M;
T2=20 is during second, the flow of inbound port Business Stream 1 and Business Stream 2 does not change, the inbound port Limit Rate value of Business Stream 1 and Business Stream 2 increases 2M and 3M respectively, the total flow speed limit of outbound port and the difference of total flow instantaneous value are 8M at this moment, still greater than total flow adjusted value 5M, therefore still to be added to the Limit Rate value of these two kinds of Business Streams of port respectively according to the weight ratio of Business Stream 1 and Business Stream 2 in next time interval;
T3=30 is during second, the flow of inbound port Business Stream 1 and Business Stream 2 does not change, the inbound port Limit Rate value of Business Stream 1 and Business Stream 2 increases 2M and 3M respectively, the total flow speed limit of outbound port and the difference of total flow instantaneous value are 6M at this moment, still greater than total flow adjusted value 5M, therefore still to be added to the Limit Rate value of these two kinds of Business Streams of port respectively according to the weight ratio of Business Stream 1 and Business Stream 2 in next time interval;
T4=40 is during second, the flow of inbound port Business Stream 1 and Business Stream 2 does not change, the inbound port Limit Rate value of Business Stream 1 and Business Stream 2 increases 2M and 3M respectively, the total flow speed limit of outbound port and the difference of total flow instantaneous value are 4M at this moment, less than total flow adjusted value 5M, the flow of current switch outbound port and inbound port reaches stable state;
T5=50 second, the flow of inbound port Business Stream 1 and Business Stream 2 changes, Business Stream 2 is increased to 70M, the difference of the total flow speed limit of outbound port and total flow instantaneous value is less than zero at this moment, therefore to reduce the Limit Rate value of these two kinds of Business Streams of inbound port place respectively according to the weight ratio of Business Stream 1 and Business Stream 2 in next time interval, the Limit Rate value that is Business Stream 1 reduces 2M, and the Limit Rate value of Business Stream 2 reduces 3M;
T6=60 is during second, the flow of inbound port Business Stream 1 and Business Stream 2 does not change, the inbound port Limit Rate value of Business Stream 1 and Business Stream 2 reduces 2M and 3M respectively, therefore the difference of the total flow speed limit of outbound port and total flow instantaneous value still will reduce the Limit Rate value of these two kinds of Business Streams of inbound port place according to the weight ratio of Business Stream 1 and Business Stream 2 respectively less than zero in next time interval at this moment;
T7=70 is during second, the flow of inbound port Business Stream 1 and Business Stream 2 does not change, the inbound port Limit Rate value of Business Stream 1 and Business Stream 2 reduces 2M and 3M respectively, therefore the difference of the total flow speed limit of outbound port and total flow instantaneous value still will reduce the Limit Rate value of these two kinds of Business Streams of inbound port place according to the weight ratio of Business Stream 1 and Business Stream 2 respectively still less than zero in next time interval at this moment;
T8=80 is during second, the flow of inbound port Business Stream 1 and Business Stream 2 does not change, the inbound port Limit Rate value of Business Stream 1 and Business Stream 2 reduces 2M and 3M respectively, the total flow speed limit of outbound port and the difference of total flow instantaneous value are 0M at this moment, so the flow of switch outbound port and inbound port reaches stable state.
The 3rd embodiment flow chart of the inventive method as shown in Figure 4, this embodiment shows enter the process that the Business Stream of switch carries out flow control based on the inbound port of vlan port collection from switch:
Step 401: will transmit the sets of ports of the port composition of Business Stream of the same race based on same VLAN in a plurality of inbound ports of switch at this VLAN.
At the different business stream of a plurality of inbound port transmission in the switch, Business Stream wherein of the same race can carry the label based on same VLAN, all inbound ports of Business Stream in the same VLAN of transmission is formed the sets of ports of this VLAN.
Step 402: the time interval, the total flow speed limit of outbound port Business Stream and the total flow adjusted value of Business Stream that each sets of ports of monitoring is set.
Step 403: the total flow adjusted value of the Business Stream weight ratio according to Business Stream in the different VLAN of definition is distributed.
Suppose that inbound port has the sets of ports based on N VLAN, the weight of transmission bar Business Stream is than being Wi in each vlan port collection, then the total flow adjusted value that the each adjustment of Business Stream Ni is assigned in each vlan port collection is the product of Wi and fiducial value S, if this product is Mi, wherein i represents i VLAN.
Step 404: judge whether to arrive the time interval of setting, if then execution in step 405; Otherwise, return step 404.
Step 405: the total flow instantaneous value that obtains switch outbound port Business Stream.
Step 406: whether the difference of instantaneous value of judging the total flow speed limit of Business Stream and total flow is greater than zero, if then execution in step 408; Otherwise, execution in step 407.
Step 407:, return step 404 according to the Limit Rate value of Business Stream in each VLAN of adjusted value reduction inbound port that distributes.
At this moment, the total flow speed limit of outbound port Business Stream is less than the total flow instantaneous value of Business Stream, the total flow that the switch outbound port is described is congested, according to the Limit Rate value that is this sets of ports Business Stream of the corresponding reduction inbound port of adjusted value place of each vlan port collection distribution, promptly the interior Business Stream Ni of each vlan port collection reduces the Mi size with the Limit Rate value of its inbound port place sets of ports.
Step 408: whether the difference of judging the total flow speed limit of Business Stream and total flow instantaneous value is less than the flow adjusted value, if then return step 404; Otherwise, execution in step 409.
Step 409:, return step 404 according to the Limit Rate value of Business Stream in each VLAN of adjusted value raising inbound port that distributes.
At this moment, the total flow speed limit of outbound port Business Stream is greater than the total flow instantaneous value of Business Stream, the total flow that the switch outbound port is described is congested, according to the Limit Rate value that is the Business Stream of each vlan port collection this sets of ports of the corresponding raising inbound port of adjusted value place of distributing, promptly Business Stream Ni improves the Mi size with the Limit Rate value of its inbound port place sets of ports in each vlan port collection.
The 3rd embodiment to the invention described above method is described in detail below in conjunction with a concrete application example.
Suppose that switch includes port A and inbound port B, and two kinds of Business Streams of transmission in above-mentioned inbound port A and the inbound port B, wherein the Business Stream 1 of low priority carries the label of VLAN1, the Business Stream 2 of high priority carries the label of VLAN2, when initial in two ports the flow of two kinds of Business Streams be respectively 50M and 30M, Business Stream flow based on the sets of ports of VLAN1 when being initial is 100M, Business Stream flow based on the sets of ports of VLAN2 is 60M, the total flow speed limit of supposing the outbound port Business Stream is 100M, among the VLAN1 among Business Stream 1 and the VLAN2 weight of Business Stream 2 ratio be 2: 3, fiducial value S is 1M, the time interval that is provided with is 10 seconds, then the flow adjusted value of Business Stream is 5M, the inbound port Limit Rate value difference 40M and the 60M of the interior Business Stream 2 of Business Stream 1 and VLAN2 in the initial time VLAN1.The process of following table 2 for the flow instantaneous value of Business Stream 2 in Business Stream 1 and the VLAN2 in the inbound port VLAN1 being adjusted according to the total flow instantaneous value of outbound port Business Stream:
Table 2
The detailed adjustment process of the detailed process of adjusting according to the Limit Rate value of above-mentioned table 2 couple inbound port VLAN1 and VLAN2 and the Limit Rate value of his-and-hers watches 1 inbound port Business Stream 1 and Business Stream 2 is similar, does not repeat them here.
Further, when the inbound port of switch is the port set of being made up of a plurality of inbound ports, suppose to comprise in this port set port one and port 2, then the total flow adjusted value with Business Stream distributes according to the port one of definition and the weight ratio of port 2 Business Streams, though port one and port 2 can transmit multiple business stream separately, but at this port set, with the total flow of the multiple business transmitted in each port stream as the object of adjusting, it is each time interval, change these two ports Limit Rate value of total Business Stream separately according to adjusted value for port one and port 2 distribution, its adjustment process is consistent with the description of the foregoing description two and embodiment three, also repeats no more at this.
The 4th embodiment flow chart of the inventive method as shown in Figure 5, this embodiment shows the process of in flow control process insincere Business Stream being operated:
Step 501: the total flow instantaneous value of monitoring switch outbound port Business Stream.
Step 502: whether the total flow of judging described Business Stream according to the total flow instantaneous value of Business Stream is congested.
Step 503: whether the flow change rate of judging the inbound port Business Stream surpasses threshold value, if then execution in step 504; Otherwise, execution in step 505.
Step 504: the Business Stream that the switch inbound port is set is insincere Business Stream, finishes current flow process.
Too frequent when the changes in flow rate of inbound port Business Stream, when its rate of change surpassed threshold value, it was insincere Business Stream that this Business Stream is set, and for insincere Business Stream, can make it not participate in the adjustment of switch dynamic flow its Limit Rate value locking.After the flow change rate of this insincere Business Stream is normal, can unlock the same and participate in once more the dynamic adjustment of Business Stream in the switch.
Step 505: the Limit Rate value of adjusting switch inbound port Business Stream according to judged result according to the weight ratio of Business Stream.
Corresponding with the inventive method, the present invention also provides a kind of volume control device of exchange service stream.
The first embodiment block diagram of the volume control device of Business Stream of the present invention is as shown in Figure 6:
This device comprises: monitoring unit 610, judging unit 620 and adjustment unit 630.
Wherein, monitoring unit 610 is used to monitor the total flow instantaneous value of switch outbound port Business Stream; Judging unit 620 is used for judging according to the total flow instantaneous value of described Business Stream whether the total flow of described Business Stream is congested; Adjustment unit 630 is used for according to the judged result of described judging unit according to the weight of described Business Stream realizing the flow control to described Business Stream than the Limit Rate value of adjusting described switch inbound port Business Stream.
The second embodiment block diagram of the volume control device of Business Stream of the present invention is as shown in Figure 7:
This device comprises: monitoring unit 710 is used to monitor the total flow instantaneous value of switch outbound port Business Stream; Judging unit 720 is used for judging according to the total flow instantaneous value of described Business Stream whether the total flow of described Business Stream is congested; Adjustment unit 730 is used for according to the judged result of described judging unit according to the weight of described Business Stream realizing the flow control to described Business Stream than the Limit Rate value of adjusting described switch inbound port Business Stream.
Wherein, monitoring unit 710 comprises unit 711 is set, and is used to be provided with the time interval of monitoring; Acquiring unit 712 is used for obtaining according to the described time interval total flow instantaneous value of described switch outbound port Business Stream.Judging unit 720 comprises default unit 721, is used to preestablish the total flow speed limit of described switch outbound port Business Stream and the flow adjusted value of Business Stream; Comparing unit 722 is used for the total flow speed limit of more described Business Stream and the total flow instantaneous value of described Business Stream, when the difference of described speed limit and described instantaneous value less than zero the time, the total flow of described Business Stream is congested; When described difference greater than zero and during less than described adjusted value, the total flow of described Business Stream is normal; When described difference during greater than described adjusted value, the total flow deficiency of described Business Stream.Adjustment unit 730 comprises allocation units 731, is used for distributing according to the weight ratio of the described Business Stream that defines the total flow adjusted value of described Business Stream; Performance element 732 is used for changing according to the adjusted value of described distribution the Limit Rate value of described inbound port Business Stream.
By the description of the above embodiment of the invention as can be known, the present invention is by the total flow instantaneous value of monitoring switch outbound port Business Stream, whether the total flow of judging Business Stream according to the total flow instantaneous value of Business Stream is congested, and adjusts the Limit Rate value of switch inbound port Business Stream according to judged result.Use the present invention when the flow of the Business Stream of high priority hangs down, can be by dynamically adjusting the Limit Rate value of each Business Stream of switch inbound port, utilize the remaining bandwidth of the Business Stream of this high priority to provide extra bandwidth, effectively utilized the bandwidth resources in the switch for the Business Stream of other priority; And owing to limit at the flow of inbound port to each Business Stream, so avoided to transmit in switch inside owing to the congested Business Stream that abandons the Gbps when having saved the forwarding passage when striding the chip forwarding and having striden the business board forwarding at outbound port.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wish that appended claim comprises these distortion and variation and do not break away from spirit of the present invention.
Claims (13)
1, a kind of switch service flow capacity controlling method is characterized in that, comprising:
The total flow instantaneous value of monitoring switch outbound port Business Stream;
Whether the total flow of judging described Business Stream according to the total flow instantaneous value of described Business Stream is congested;
According to described judged result, when the total flow of described Business Stream congested, or when the total flow of described Business Stream is not enough, the total flow adjusted value that distributes described Business Stream according to the weight ratio of described Business Stream, and change the Limit Rate value of described switch inbound port Business Stream according to described total flow adjusted value, realize flow control to described Business Stream.
2, method according to claim 1 is characterized in that, the total flow instantaneous value of described monitoring switch outbound port Business Stream comprises:
The time interval of described monitoring is set;
Obtain the total flow instantaneous value of described switch outbound port Business Stream according to the described time interval.
3, method according to claim 1 is characterized in that, whether the total flow that described total flow instantaneous value according to Business Stream is judged described Business Stream congested comprising:
Preestablish the total flow speed limit of described switch outbound port Business Stream and the total flow adjusted value of Business Stream;
The total flow speed limit of more described Business Stream and the total flow instantaneous value of described Business Stream, when the difference of described speed limit and described instantaneous value less than zero the time, the total flow of described Business Stream is congested; When described difference greater than zero and during less than described adjusted value, the total flow of described Business Stream is normal; When described difference during greater than described adjusted value, the total flow deficiency of described Business Stream.
4, method according to claim 1 is characterized in that, when the inbound port of described switch is single inbound port,
The total flow adjusted value of the described Business Stream weight ratio according to described each Business Stream of inbound port of definition is distributed;
Change the Limit Rate value of described each Business Stream of inbound port according to the adjusted value of described distribution.
5, method according to claim 1 is characterized in that, when the inbound port of described switch is the port set of being made up of a plurality of inbound ports,
The total flow adjusted value of the described Business Stream weight ratio according to described each inbound port Business Stream of definition is distributed;
Change the Limit Rate value of this inbound port Business Stream according to the adjusted value of each inbound port of described distribution.
6, method according to claim 1 is characterized in that, the inbound port of described switch is during based on the sets of ports of different virtual LAN VLAN,
The total flow adjusted value of the described Business Stream weight ratio according to Business Stream in the described different VLAN of definition is distributed;
Change the Limit Rate value of Business Stream in this VLAN according to the adjusted value of each VLAN of described distribution.
7, according to any described method of claim 4 to 6, it is characterized in that the Limit Rate value of described change Business Stream comprises:
When the total flow of described Business Stream is congested, reduce the Limit Rate value of described Business Stream; When the total flow of described Business Stream is not enough, improve the Limit Rate value of described Business Stream.
8, method according to claim 7 is characterized in that, the Limit Rate value of described reduction Business Stream is specially:
The weight of described Business Stream is obtained the total flow adjusted value of this Business Stream than multiplying each other with the fiducial value that sets in advance;
The Limit Rate value of described inbound port Business Stream is deducted described total flow adjusted value, obtain the present flow rate speed limit;
The Limit Rate value of described raising Business Stream is specially:
The weight of described Business Stream is obtained the total flow adjusted value of this Business Stream than multiplying each other with the fiducial value that sets in advance;
The Limit Rate value of described inbound port Business Stream is added the above total flow adjusted value, obtain the present flow rate speed limit.
9, method according to claim 1 is characterized in that, further comprises:
When the flow change rate of described inbound port Business Stream surpassed threshold value, it was insincere Business Stream that described Business Stream is set, and the Limit Rate value of described insincere Business Stream is not adjusted.
10, a kind of volume control device of exchange service stream is characterized in that, comprising:
Monitoring unit is used to monitor the total flow instantaneous value of switch outbound port Business Stream;
Judging unit is used for judging according to the total flow instantaneous value of described Business Stream whether the total flow of described Business Stream is congested;
Adjustment unit, further comprise allocation units and performance element: described allocation units are used for the judged result according to described judging unit, when the total flow of described Business Stream congested, or when the total flow of described Business Stream is not enough, according to the weight of described Business Stream than the total flow adjusted value that distributes described Business Stream; Described performance element is used for changing according to described total flow adjusted value the Limit Rate value of described switch inbound port Business Stream, realizes the flow control to described Business Stream.
11, device according to claim 10 is characterized in that, described monitoring unit comprises:
The unit is set, is used to be provided with the time interval of monitoring;
Acquiring unit is used for obtaining according to the described time interval total flow instantaneous value of described switch outbound port Business Stream.
12, device according to claim 10 is characterized in that, described judging unit comprises:
Default unit is used to preestablish the total flow speed limit of described switch outbound port Business Stream and the total flow adjusted value of Business Stream;
Comparing unit is used for the total flow speed limit of more described Business Stream and the total flow instantaneous value of described Business Stream, when the difference of described speed limit and described instantaneous value less than zero the time, the total flow of described Business Stream is congested; When described difference greater than zero and during less than described adjusted value, the total flow of described Business Stream is normal; When described difference during greater than described adjusted value, the total flow deficiency of described Business Stream.
13, device according to claim 10 is characterized in that, further comprises:
Recognition unit is used for when the flow change rate of described inbound port Business Stream surpasses threshold value, and the insincere Business Stream of described Business Stream for not participating in dynamically adjusting is set.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200710145689A CN100596359C (en) | 2007-09-13 | 2007-09-13 | Traffic control method and device for switch service flow |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200710145689A CN100596359C (en) | 2007-09-13 | 2007-09-13 | Traffic control method and device for switch service flow |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101123587A CN101123587A (en) | 2008-02-13 |
CN100596359C true CN100596359C (en) | 2010-03-31 |
Family
ID=39085766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200710145689A Expired - Fee Related CN100596359C (en) | 2007-09-13 | 2007-09-13 | Traffic control method and device for switch service flow |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100596359C (en) |
Families Citing this family (29)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101741690B (en) * | 2008-11-11 | 2012-08-29 | 华为软件技术有限公司 | Control method of service interface flow and gateway |
CN101483547B (en) * | 2009-02-12 | 2011-05-11 | 中国人民解放军信息工程大学 | Evaluation method and system for network burst affair |
CN101640644B (en) * | 2009-09-01 | 2011-11-16 | 杭州华三通信技术有限公司 | Method and equipment for flow equilibrium based on flexible link group |
CN102075407B (en) * | 2009-11-24 | 2012-12-19 | 中兴通讯股份有限公司 | Method and device for processing mixed business flow |
CN101808033B (en) * | 2010-03-09 | 2013-04-17 | 杭州华三通信技术有限公司 | Method and apparatus for allocating reservation bandwidth of traffic |
CN101997776B (en) * | 2010-11-18 | 2013-01-09 | 无锡源清高新技术研究所有限公司 | Router queue control system based on congestion identification and control method thereof |
CN102014061B (en) * | 2010-11-25 | 2012-11-21 | 福建星网锐捷网络有限公司 | Upstream flow control method and device for intranet core switch |
CN102761572B (en) * | 2011-04-28 | 2016-07-27 | 腾讯科技(深圳)有限公司 | The method and system of dynamic adjusting data flow |
CN102394805B (en) * | 2011-06-30 | 2017-03-15 | 中兴通讯股份有限公司 | A kind of method and device of Business Stream speed limit dynamic adjustment |
CN102647339B (en) * | 2012-03-20 | 2015-02-11 | 杭州华三通信技术有限公司 | Port configuration method of access switch and access switching equipment |
CN103997522B (en) * | 2014-05-16 | 2018-01-23 | 广州金山网络科技有限公司 | A kind of content delivery network flow control method and terminal |
CN105703928A (en) * | 2014-11-25 | 2016-06-22 | 中兴通讯股份有限公司 | Traffic adjustment method and traffic adjustment device |
CN106302200B (en) * | 2015-05-14 | 2019-06-21 | 华为技术有限公司 | A kind of method and interchanger handling network congestion |
CN105072053A (en) * | 2015-08-31 | 2015-11-18 | 安徽欧迈特数字技术有限责任公司 | Flow control method for Ethernet switch |
CN105376231A (en) * | 2015-11-18 | 2016-03-02 | 浪潮(北京)电子信息产业有限公司 | Method and device for realizing service isolation |
CN108282507B (en) * | 2017-01-06 | 2021-02-02 | 阿里巴巴集团控股有限公司 | Method and device for application release in CaaS environment and electronic equipment |
CN108512768B (en) * | 2017-02-23 | 2021-12-10 | 苏宁易购集团股份有限公司 | Access amount control method and device |
CN107332785B (en) * | 2017-05-23 | 2019-11-29 | 国家电网公司 | A kind of effective discharge control method based on dynamic duty threshold value |
CN107547423B (en) * | 2017-06-05 | 2020-04-28 | 新华三技术有限公司 | Flow forwarding control method and device |
CN109428830B (en) * | 2017-08-31 | 2022-10-14 | 深圳市中兴微电子技术有限公司 | Device and method for dynamically adjusting speed limit threshold of ONU (optical network Unit) equipment port |
CN109756426A (en) * | 2017-11-01 | 2019-05-14 | 南京烽火软件科技有限公司 | Customer flow control device |
CN107689901B (en) * | 2017-11-13 | 2020-12-18 | 锐捷网络股份有限公司 | Method and device for monitoring traffic message flow |
CN108900420B (en) * | 2018-06-26 | 2019-09-13 | 新华三云计算技术有限公司 | Ductility limit speed method, apparatus and server |
CN109614354B (en) * | 2018-12-13 | 2020-08-25 | 锐捷网络股份有限公司 | Interface distribution method, board card, equipment and storage medium |
CN109787910B (en) * | 2019-03-01 | 2021-01-15 | 烽火通信科技股份有限公司 | Traffic management method, system and fabric network processor |
CN110401603B (en) * | 2019-07-25 | 2023-07-28 | 北京百度网讯科技有限公司 | Method and device for processing information |
CN111970210B (en) * | 2020-08-24 | 2022-08-26 | 苏州盛科科技有限公司 | Flow control method and device between line card and backplane in centralized switching system |
CN116094979A (en) * | 2022-12-23 | 2023-05-09 | 华能信息技术有限公司 | Policy route management method |
CN118337733B (en) * | 2024-06-13 | 2024-09-20 | 苏州元脑智能科技有限公司 | Bandwidth compensation method, device, equipment and computer readable storage medium |
-
2007
- 2007-09-13 CN CN200710145689A patent/CN100596359C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN101123587A (en) | 2008-02-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100596359C (en) | Traffic control method and device for switch service flow | |
CN101557340B (en) | Method for realizing multilevel queue scheduling in data network and device | |
CN101848167B (en) | Weighted fair queue dispatching method and device based on category | |
US11516151B2 (en) | Dynamically switching queueing systems for network switches | |
CN101692648B (en) | Method and system for queue scheduling | |
US10225195B2 (en) | Telecommunication systems and methods using dynamic shaping for allocating network bandwidth | |
CN102726009B (en) | Data flow exchange control method and relative device | |
CN103905336B (en) | Method for scheduling QoS sensing in SIEPON based on network coding technology | |
CN101478491A (en) | Method and apparatus for implementing packet differential service | |
CN102611605B (en) | Scheduling method, device and system of data exchange network | |
CN109905330B (en) | Dynamic weighted fair queue train network scheduling method based on queue length | |
CN101621460A (en) | Packet scheduling method and device | |
CN102752192B (en) | Bandwidth allocation method of forwarding and control element separation (ForCES) transmission mapping layer based on stream control transmission protocol (SCTP) | |
CN101562841A (en) | Service scheduling method, device and system thereof | |
CN103581056A (en) | Method for achieving congestion management in network communication through layered queue scheduling | |
EP1526686B1 (en) | Switching unit with scalable and QoS aware flow control | |
CN107332785B (en) | A kind of effective discharge control method based on dynamic duty threshold value | |
CN101478486B (en) | Method, equipment and system for switch network data scheduling | |
CN103929374A (en) | Multilevel queue scheduling method based on service type | |
CN101616096B (en) | Method and device for scheduling queue | |
CN104718735A (en) | Congestion notification in a network | |
CN110247859B (en) | Data sending method and device based on AIRT-ROS node | |
CN102769566A (en) | Method and device for configuring multilevel scheduling system, and method and device for changing configuration of multilevel scheduling system | |
Ma et al. | Adaptive scheduling for differentiated services in an Ethernet passive optical network | |
CN103166875B (en) | A kind of double-layer isolation method of the Internet resources based on programmable switch |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd. Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100331 |