CN102638406A - Flow control method, device and network equipment - Google Patents

Flow control method, device and network equipment Download PDF

Info

Publication number
CN102638406A
CN102638406A CN2012101116631A CN201210111663A CN102638406A CN 102638406 A CN102638406 A CN 102638406A CN 2012101116631 A CN2012101116631 A CN 2012101116631A CN 201210111663 A CN201210111663 A CN 201210111663A CN 102638406 A CN102638406 A CN 102638406A
Authority
CN
China
Prior art keywords
flow control
downlink traffic
congestion level
cycle
current flow
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.)
Pending
Application number
CN2012101116631A
Other languages
Chinese (zh)
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.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks 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 Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN2012101116631A priority Critical patent/CN102638406A/en
Publication of CN102638406A publication Critical patent/CN102638406A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a flow control method, device and network equipment, wherein the method comprises the following steps of: determining downlink flow and getting the rate of the downlink flow; when the current flow control cycle is achieved, judging whether the flow rate is larger than a preset flow rate threshold or not, if so, increasing the congestion level of the downlink flow, and otherwise, reducing the congestion level of the downlink flow; getting an uplink bandwidth threshold in the current flow control cycle according to the corresponding relation among the congestion level of the downlink flow after increase or reduction, the preset congestion level and the uplink bandwidth threshold; and performing speed limitation on uplink flow corresponding to the downlink flow according to the uplink bandwidth threshold in the current flow control cycle within the current flow control cycle so as to realize flow control. In the technical scheme provided by the invention, the used uplink bandwidth threshold is fixed, thus the uplink flow of a P2P (peer-to-peer) application can be fast controlled, and the flow control rate is improved.

Description

Flow control methods, device and the network equipment
Technical field
The present invention relates to the network communications technology, relate in particular to a kind of flow control methods, device and the network equipment.
Background technology
Point-to-point (Point to Point, P2P) application in the network is quite extensive in modern times for the network transmission protocol, and the maximum characteristics that P2P uses are exactly occupied bandwidth as far as possible, and this can not get guaranteeing with regard to the bandwidth that causes other key application.In order to make other key application, being guaranteed of the bandwidth of for example mail service, W3C service etc. need be used P2P and carried out flow control.
A kind of method to P2P application carrying out flow control is specially in the prior art: detect the actual downstream flow of the network equipment, calculate the error e between actual downstream flow and the predefined downlink traffic; According to proportional-integral-differential (Proportional-Integral-Derivative; PID) the control formula carries out the calculating of PID output variable to error; Then according to the scaling of the PID output variable of calculating with downlink traffic calculating uplink traffic; According to scaling adjustment uplink traffic threshold value, realize control to uplink traffic.
Wherein, Pid algorithm is bad for the control effect of " non linear system "; And the P2P application belongs to the typical nonlinear system; Its discharge model changes along with the variation of resource and online number, and then the adjustment that causes pid parameter not stop, and makes that the control speed of uplink traffic that P2P is used is slower.
Summary of the invention
The present invention provides a kind of flow control methods, device and the network equipment, in order to improve the Flow Control speed that P2P is used.
The present invention provides a kind of flow control methods, comprising:
Detect downlink traffic, obtain first flow speed, said first flow speed is the speed of current downlink traffic;
When the current Flow Control cycle arrives; Whether judge said first flow speed greater than preset flow rate speed thresholding, if judged result is for being increase downlink traffic congestion level; Obtain the downlink traffic congestion level in the current Flow Control cycle; If judged result reduces the downlink traffic congestion level for not, obtain the downlink traffic congestion level in the current Flow Control cycle; And, obtain the upstream bandwidth threshold value in the current Flow Control cycle according to the downlink traffic congestion level of current Flow Control in the cycle and the corresponding relation of predefined congestion level and upstream bandwidth threshold value; Wherein, in the corresponding relation of said predefined congestion level and upstream bandwidth threshold value, congestion level is high more, and the upstream bandwidth threshold value of said congestion level correspondence is more little;
In cycle, the corresponding uplink traffic of said downlink traffic is carried out speed limit in current Flow Control, to realize flow control according to the upstream bandwidth threshold value of current Flow Control in the cycle.
The present invention provides a kind of volume control device, comprising:
First acquisition module is used to detect downlink traffic, obtains first flow speed, and said first flow speed is the speed of current downlink traffic;
First judge module is used for when the current Flow Control cycle arrives, and judges that whether said first flow speed is greater than preset flow rate speed thresholding;
Second acquisition module is used in the judged result of said first judge module increasing the downlink traffic congestion level when being, obtains the downlink traffic congestion level in the current Flow Control cycle;
The 3rd acquisition module is used in the judged result of said first judge module reducing the downlink traffic congestion level for not the time, obtains the downlink traffic congestion level in the current Flow Control cycle;
The 4th acquisition module is used for according to the downlink traffic congestion level of current Flow Control in the cycle and the corresponding relation of predefined congestion level and upstream bandwidth threshold value, obtains the upstream bandwidth threshold value in the current Flow Control cycle; Wherein, in the corresponding relation of said predefined congestion level and upstream bandwidth threshold value, congestion level is high more, and the upstream bandwidth threshold value of said congestion level correspondence is more little;
The Flow Control module was used in current Flow Control in the cycle, according to the upstream bandwidth threshold value of current Flow Control in the cycle the corresponding uplink traffic of said downlink traffic was carried out speed limit, to realize flow control.
The present invention provides a kind of network equipment, comprising: arbitrary volume control device provided by the invention.
Flow control methods provided by the invention, device and the network equipment; It is congested that speed through downlink traffic and preset flow rate thresholding judge whether current downlink traffic takes place; According to judged result adjustment downlink traffic congestion level; Obtain the downlink traffic congestion level in the current Flow Control cycle,, confirm the upstream bandwidth threshold value in the current Flow Control cycle then according to the downlink traffic congestion level of current Flow Control in the cycle and the corresponding relation of predefined congestion level and upstream bandwidth threshold value; According to the upstream bandwidth threshold value of obtaining uplink traffic is carried out speed limit in current Flow Control in cycle, reach the purpose of flow control.Upstream bandwidth threshold value in the technical scheme of the present invention is predefined fixed value, does not need to adjust in real time, and the uplink traffic that therefore after getting access to the upstream bandwidth threshold value, can use P2P is fast controlled, and has improved Flow Control speed; In addition; Technical scheme of the present invention is periodically adjusted the upstream bandwidth threshold value based on downlink traffic speed and downlink traffic congestion level; Can improve Flow Control precision based on the upstream bandwidth threshold value; This shows, carry out the scheme of Flow Control with the available technology adopting pid algorithm and compare that technical scheme of the present invention provides high the effect of Flow Control.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply; Obviously, the accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
The flow chart of the flow control methods that Fig. 1 provides for one embodiment of the invention;
The flow chart of the flow control methods that Fig. 2 provides for another embodiment of the present invention;
The flow chart of the flow control methods that Fig. 3 provides for further embodiment of this invention;
The structural representation of the volume control device that Fig. 4 provides for one embodiment of the invention;
The structural representation of the volume control device that Fig. 5 provides for another embodiment of the present invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The flow chart of the flow control methods that Fig. 1 provides for one embodiment of the invention.As shown in Figure 1, the method for present embodiment comprises:
Step 101, detection downlink traffic obtain first flow speed, and said first flow speed is the speed of current downlink traffic.
The executive agent of present embodiment is a volume control device, and it can be the equipment that various use P2P use in the communication network, for example server, router, personal computer etc.
In the present embodiment, through real-time detection downlink traffic, obtain the speed of downlink traffic in real time.Wherein, to downlink traffic detect in real time except can being the volume control device of present embodiment or being built in the flow detector in the volume control device, can also be flow monitoring device independently.Current downlink traffic is a benchmark with the Flow Control cycle, the speed of the downlink traffic that for example obtains at Flow Control cycle due in, and this Flow Control cycle is the speed of current downlink traffic relatively, that is first flow speed.
In various embodiments of the present invention, described downlink traffic can be the downlink traffic that any needs carry out flow control, and is not limited in the downlink traffic that P2P uses.
Step 102, when the current Flow Control cycle arrives, judge that whether first flow speed is greater than preset flow rate speed thresholding; When judged result when being, execution in step 103; When judged result for not the time, execution in step 104.
Step 103, increase downlink traffic congestion level are obtained the downlink traffic congestion level in the current Flow Control cycle, and execution in step 105 then.
Step 104, reduce the downlink traffic congestion level, obtain the downlink traffic congestion level in the current Flow Control cycle, execution in step 105 then.
Step 105, according to the downlink traffic congestion level of current Flow Control in the cycle and the corresponding relation of predefined congestion level and upstream bandwidth threshold value, obtain the upstream bandwidth threshold value in the current Flow Control cycle.
Wherein, in the corresponding relation of predefined congestion level and upstream bandwidth threshold value, congestion level is high more, and the upstream bandwidth threshold value of congestion level correspondence is more little.Various embodiments of the present invention are not done qualification to the concrete numerical value of the upstream bandwidth threshold value of congestion level and congestion level correspondence.The corresponding upstream bandwidth threshold value of the division of congestion level and value and each congestion level all can be provided with according to practical application scene adaptability.
In the present embodiment, volume control device periodically carries out flow control.In cycle, volume control device adopts identical Flow Control dynamics to carry out flow control, promptly adopts identical upstream bandwidth threshold value that uplink traffic is carried out speed limit a Flow Control.And in different Flow Control in the cycle, the Flow Control dynamics (being the upstream bandwidth threshold value) that volume control device adopts maybe be different.
Wherein, volume control device can preestablish the flow rate thresholding, and this flow rate thresholding is for to judge whether downlink traffic congested standard takes place.Based on this, volume control device compares first flow speed and flow rate thresholding after obtaining first flow speed, judges that whether first flow speed is greater than the flow rate thresholding; If judged result is for being, promptly first flow speed thresholding is greater than the flow rate thresholding, and it is congested to explain that current downlink traffic takes place; If judged result is that promptly first flow speed is not less than or equal to the flow rate thresholding, it is congested to explain that current downlink traffic does not take place.Wherein, the flow rate thresholding can combine the practical application scene to carry out the adaptability setting, and various embodiments of the present invention are not done qualification to its value.
If it is congested that judged result is that current downlink traffic has taken place, then need strengthen the Flow Control dynamics, therefore, need to increase the downlink traffic congestion level, and the downlink traffic congestion level after will increasing is as the downlink traffic congestion level of current Flow Control in the cycle.
If it is congested that judged result is that current downlink traffic does not take place, then can reduce the Flow Control dynamics, therefore, need reduce the downlink traffic congestion level, and the downlink traffic congestion level after will reducing is as the downlink traffic congestion level of current Flow Control in the cycle.
Optional, current downlink traffic congestion level can be predefined fixed value.Like this when each arrives in Flow Control cycle, take place congestedly if judge downlink traffic, then this is preestablished and downlink traffic congestion level that value is fixing increases, obtain the downlink traffic congestion level in the current Flow Control cycle; Do not take place congestedly if judge downlink traffic, then this is preestablished and downlink traffic congestion level that value is fixing reduces, obtain the downlink traffic congestion level in the current Flow Control cycle.Wherein, do not do qualification, and increase or reduce other degree of downlink congestion level that this preestablishes and value is fixing and can be the same or different the different Flow Control cycle to increasing or reducing other degree of downlink congestion level that this preestablishes and value is fixing.
Optional, volume control device can independently obtain the downlink traffic congestion level in each Flow Control cycle, i.e. and the downlink traffic congestion level in latter two Flow Control cycle earlier is incoherent.
Optional; Can react the congestion situation and the Flow Control dynamics that needs to adopt of downlink traffic more accurately in order to make the downlink traffic congestion level of each stream Flow Control in the cycle of obtaining; Volume control device obtains in the process of the downlink traffic congestion level of current Flow Control in the cycle in that whether congested situation takes place according to current downlink traffic, can consider the congestion situation of the downlink traffic in the Flow Control cycle on it simultaneously.Wherein, the downlink traffic congestion level that the congestion situation of downlink traffic can be used in the Flow Control cycle in the last Flow Control cycle is represented.Based on this, concerning the current Flow Control cycle, congested if current downlink traffic takes place; And downlink traffic in Flow Control cycle does not take place congestedly on it, explain that the downlink traffic congested time of generation also is not very long, and Congestion Level SPCC also is not very serious; Therefore; Adopting increase downlink traffic congestion level, can adopt less relatively increase degree when obtaining the downlink traffic congestion level in the current Flow Control cycle, promptly adopt less relatively Flow Control dynamics.Illustrate; Suppose to have the increase degree of Three Estate, be respectively first and increase step-length, the second increase step-length and the 3rd increase step-length, and first increases step-length less than the second increase step-length; Second increases step-length increases step-length less than the 3rd; Then congested in current downlink traffic generation, and downlink traffic in Flow Control cycle does not take place under the congested situation on it, volume control device can increase first with current downlink traffic congestion level and increase step-length.
If it is congested that current downlink traffic takes place; And the downlink traffic on it in Flow Control cycle also takes place congested; Then volume control device can confirm that the lasting generation of downlink traffic is congested, and explaining needs bigger Flow Control dynamics, so adopting increase downlink traffic congestion level; Can adopt relatively large increase degree when obtaining the downlink traffic congestion level in the current Flow Control cycle, promptly adopt relatively large Flow Control dynamics.Illustrate in conjunction with above-mentioned; Then take place congested at current downlink traffic; And downlink traffic in Flow Control cycle also takes place under the congested situation on it, and volume control device can increase current downlink traffic congestion level the 3rd and increase step-length, can reach the purpose of Flow Control so fast.
Optional, current downlink traffic congestion level can also be dynamic change except being the predefined fixed value, for example can change along with the variation in Flow Control cycle.For example, current downlink traffic congestion level can be the downlink traffic congestion level in the last Flow Control cycle.Based on this; Increase the downlink traffic congestion level, a kind of optional execution mode that obtains the downlink traffic congestion level in the current Flow Control cycle can be: will go up downlink traffic congestion level in the Flow Control cycle and add preset step value and obtain the downlink traffic congestion level in the current Flow Control cycle.Wherein, preset step value can be any non-0 integer, should preset step value can be 1 comparatively preferably.Take place when congested at current downlink traffic like this; Downlink traffic congestion level in the current Flow Control cycle of obtaining will be higher than the downlink traffic congestion level in the Flow Control cycle; The Flow Control dynamics of then current Flow Control cycle employing is than the Flow Control great efforts in a last Flow Control cycle; It is congested to be particularly useful for current downlink traffic generation, and congested situation also takes place the downlink traffic in the last Flow Control cycle.Through increasing the Flow Control dynamics, can reach the purpose of Flow Control more fast.
Optional, it is congested that the volume control device of present embodiment can represent whether current downlink traffic takes place through the value of downlink traffic congestion level.If it is congested that for example current downlink traffic does not take place, it is 0 that volume control device can be set the downlink traffic congestion level; Otherwise, set the downlink traffic congestion level and be non-0 integer value, and along with the rising of congestion level, its value is also just big more.
Based on this, reduce the downlink traffic congestion level, a kind of optional execution mode that obtains the downlink traffic congestion level in the current Flow Control cycle is: the downlink traffic congestion level of current Flow Control in the cycle is set to 0.Optional; If it is congested that current downlink traffic does not take place; Then no matter on it downlink traffic in Flow Control cycle whether take place congestedly, volume control device can not carry out flow control in current Flow Control in the cycle, be about to the upstream bandwidth threshold value and reverted to the default value that disposes for uplink traffic in advance by currency; Can improve bandwidth availability ratio like this, and help improving the sensitivity of volume control device.
Based on above-mentioned, in the corresponding relation of predefined congestion level and upstream bandwidth threshold value, when the downlink traffic congestion level of current Flow Control in the cycle was 0, the upstream bandwidth threshold value in the current Flow Control cycle was the default value that disposes for uplink traffic in advance.
In this explanation, the mode of obtaining the downlink traffic congestion level of current Flow Control in the cycle according to the downlink traffic congestion level of a last Flow Control in the cycle is not limited to the downlink traffic congestion level of a last Flow Control in the cycle added preset this a kind of mode of step value.For example, can be that the downlink traffic congestion level of a last Flow Control in the cycle multiply by weighted value or the like.But the downlink traffic congestion level that gets access to need be present in the corresponding relation of predefined congestion level and upstream bandwidth threshold value.
After getting access to the downlink traffic congestion level of current Flow Control in the cycle; Can the downlink traffic congestion level of current Flow Control in the cycle be mated in the corresponding relation of predefined congestion level and upstream bandwidth threshold value; Obtain the corresponding upstream bandwidth threshold value of congestion level in the quilt coupling in the corresponding relation, this upstream bandwidth threshold value is the upstream bandwidth threshold value in the current Flow Control cycle.
In corresponding relation, the upstream bandwidth threshold value of the high more correspondence of congestion level is more little, and the dynamics of promptly carrying out Flow Control is just big more.
Step 106, in current Flow Control in the cycle, according to the upstream bandwidth threshold value of current Flow Control in the cycle the corresponding uplink traffic of downlink traffic is carried out speed limit, to realize flow control.
After getting access to the upstream bandwidth threshold value of current Flow Control in the cycle; Volume control device is in current Flow Control in the cycle; Upstream bandwidth threshold value in the current Flow Control cycle that use gets access to is carried out speed limit to the corresponding uplink traffic of downlink traffic, thereby reaches the purpose of flow control.Wherein, the concrete mode of speed limit can be the various modes that can reach the speed limit purpose such as packet loss, restriction linking number.
The uplink traffic that the downlink traffic of various embodiments of the present invention is corresponding is meant that downlink traffic belongs to the uplink traffic of application.Be that uplink traffic and downlink traffic belong to same application.
In this explanation, if the downlink traffic in the various embodiments of the present invention is made up of the downlink traffic of a plurality of application, the uplink traffic that then downlink traffic is corresponding also is made up of the uplink traffic of said a plurality of application.
In the present embodiment; It is congested that the speed of volume control device through downlink traffic and preset flow rate thresholding judge whether current downlink traffic takes place; According to judged result adjustment downlink traffic congestion level; Obtain the downlink traffic congestion level in the current Flow Control cycle,, confirm the upstream bandwidth threshold value in the current Flow Control cycle then according to the downlink traffic congestion level of current Flow Control in the cycle and the corresponding relation of predefined congestion level and upstream bandwidth threshold value; According to the upstream bandwidth threshold value of obtaining uplink traffic is carried out speed limit in current Flow Control in cycle, reach the purpose of flow control.Upstream bandwidth threshold value in the present embodiment is predefined fixed value, does not need to adjust in real time, and the uplink traffic that therefore after getting access to the upstream bandwidth threshold value, can use P2P is fast controlled, and improves Flow Control speed; In addition; Present embodiment is based on downlink traffic speed and the downlink traffic congestion level is periodically adjusted the upstream bandwidth threshold value; The Congestion Level SPCC of Flow Control dynamics and downlink traffic is adapted, improved Flow Control precision, this shows based on the upstream bandwidth threshold value; Carry out the scheme of Flow Control with the available technology adopting pid algorithm and compare, present embodiment provides high the effect of Flow Control.
The flow chart of the flow control methods that Fig. 2 provides for another embodiment of the present invention.Present embodiment can be based on realization embodiment illustrated in fig. 1.As shown in Figure 2, the method for present embodiment comprised before step 101:
Step 100, downlink traffic is used identification, judge whether downlink traffic belongs to non-fluidic applications; When judged result for not the time, execution in step 101; When being judged as when being end operation.
In practical application, some key application of user, the bandwidth of for example mail service, W3C service, QQ video, speech business etc. are need be guaranteed.Bandwidth for the key application that guarantees the user in the present embodiment, has defined non-fluidic applications in advance, promptly need not carry out the application of flow control, mainly comprises some key application of user.Volume control device identifies the affiliated applicating category of downlink traffic, and judges whether downlink traffic belongs to non-fluidic applications through downlink traffic is used identification.
When descending flow does not belong to non-fluidic applications, explain that this downlink traffic need carry out flow control, so volume control device carries out speed limit to the corresponding uplink traffic of downlink traffic.
Optional, when descending flow belonged to non-fluidic applications, volume control device can not carry out speed limit to the corresponding uplink traffic of downlink traffic, promptly non-fluidic applications is not carried out flow control, to guarantee the bandwidth demand of non-fluidic applications.
Wherein, The method that volume control device is used identification to downlink traffic can adopt various application and identification method of the prior art to realize; Deep-packet detection (DeepPacketInspection for example; DPI) or the degree of depth/dynamic flow detects that (Deep/DynamicFlow Inspection, DFI) etc., concrete identifying is not described in detail in this.
Optional, whether need carry out speed limit for the ease of distinguishing to the corresponding uplink traffic of downlink traffic, volume control device can be when judging downlink traffic and not belonging to non-fluidic applications, and the priority of configurating downlink flow is lower than preset priority threshold; When judging downlink traffic and belong to non-fluidic applications, the priority of configurating downlink flow is higher than preset priority threshold.Wherein, preset priority threshold can be used as another standard of whether the corresponding uplink traffic of downlink traffic being carried out flow control.
Optional; Volume control device can also judge whether the priority (priority of the downlink traffic of uplink traffic correspondence just) of uplink traffic is lower than preset priority threshold before according to the upstream bandwidth threshold value of current Flow Control in the cycle of obtaining uplink traffic being carried out speed limit; When judged result for being, when promptly being lower than, according to the upstream bandwidth threshold value in the current Flow Control cycle of obtaining uplink traffic is carried out speed limit again; Otherwise, uplink traffic is not carried out speed limit.Can further improve the accuracy and the precision of uplink traffic being carried out speed limit like this, and then can evade significantly uplink traffic is carried out the side effect that speed limit is brought.
In the present embodiment; Volume control device only just carries out speed limit according to downlink traffic to uplink traffic at first through downlink traffic is discerned when downlink traffic does not belong to non-fluidic applications, reach the purpose of flow control; And do not carry out speed limit for the uplink traffic that belongs to non-fluidic applications; Guaranteed the bandwidth demand of non-fluidic applications, compared with prior art, reduced flow control non-fluidic applications is carried out the adverse effect that speed limit causes.
The flow chart of the flow control methods that Fig. 3 provides for further embodiment of this invention.As shown in Figure 3, the method for present embodiment comprises:
Step 301, downlink traffic is used identification, judge whether downlink traffic belongs to non-fluidic applications; When judged result for not the time, execution in step 302; Otherwise, end operation.
Step 302, detection downlink traffic obtain first flow speed, and said first flow speed is the speed of current downlink traffic.
Step 303, judge whether timer regularly finishes; When judged result for being execution in step 304; When judged result for not the time, return execution in step 302.
Wherein, the timing length of timer is the Flow Control cycle.A Flow Control cycle arrives on the timer timing no end, and the current Flow Control cycle arrives.
Step 304, restart timer, and judge that whether first flow speed is less than preset flow rate speed thresholding; When judged result for not the time, execution in step 305; When judged result when being, execution in step 307.
Step 305, will go up downlink traffic congestion level in a Flow Control cycle and add preset step value and obtain the downlink traffic congestion level in the current Flow Control cycle, execution in step 306 then.
Wherein, preset step value is preferably 1, but is not limited thereto.
Step 306, according to the downlink traffic congestion level of current Flow Control in the cycle and the corresponding relation of predefined congestion level and upstream bandwidth threshold value, obtain the upstream bandwidth threshold value in the current Flow Control cycle, execution in step 308 then.
For example, suppose that congestion level is 1, corresponding upstream bandwidth threshold value is 1/2 of a default configuration, just means that also needs limit 1/2 upstream bandwidth; Congestion level is 2, and corresponding upstream bandwidth threshold value is 1/3 of a default configuration, just means that also needs limit 2/3 upstream bandwidth; Congestion level is 3, and then corresponding upstream bandwidth threshold value is 1/4 of a default configuration, just means that also needs limit 3/4 upstream bandwidth.
Step 307, confirm that the downlink traffic congestion level in the current Flow Control cycle is 0, and the upstream bandwidth threshold value of current Flow Control in the cycle reverted to the default value that disposes for uplink traffic in advance, execution in step 308 then.
Step 308, in current Flow Control in the cycle, according to the upstream bandwidth threshold value of current Flow Control in the cycle the corresponding uplink traffic of downlink traffic is carried out speed limit, realizing flow control, and return execution in step 302.
When forwarding step 308 to by step 306, volume control device is done further speed limit according to the upstream bandwidth threshold value after reducing to uplink traffic and is handled.
When forwarding step 308 to by step 307, volume control device no longer carries out speed limit to uplink traffic, reaches the purpose of disposable recovery, rather than slowly recovers.
By above-mentioned visible, the upstream bandwidth threshold value in the present embodiment is predefined fixed value, does not need to adjust in real time; Therefore the uplink traffic that after getting access to the upstream bandwidth threshold value, can use P2P is fast controlled; In addition, present embodiment is based on downlink traffic speed and the downlink traffic congestion level is periodically adjusted the upstream bandwidth threshold value, and the Congestion Level SPCC of Flow Control dynamics and downlink traffic is adapted; Improved Flow Control precision based on the upstream bandwidth threshold value; This shows, carry out the scheme of Flow Control with the available technology adopting pid algorithm and compare that present embodiment provides high the effect of Flow Control.
The structural representation of the volume control device that Fig. 4 provides for one embodiment of the invention.As shown in Figure 4, the device of present embodiment comprises: first acquisition module 41, first judge module 42, second acquisition module 43, the 3rd acquisition module 44, the 4th acquisition module 45 and Flow Control module 46.
Wherein, first acquisition module 41 is used to detect downlink traffic, obtains first flow speed, and said first flow speed is the speed of current downlink traffic.First judge module 42 is connected with first acquisition module 41, is used for when the current Flow Control cycle arrives, and judges that whether first flow speed that first acquisition module 41 obtains is greater than preset flow rate speed thresholding.Second acquisition module 43 is connected with first judge module 42, is used in the judged result of first judge module 42 increasing the downlink traffic congestion level when being, obtains the downlink traffic congestion level in the current Flow Control cycle.The 3rd acquisition module 44 is connected with first judge module 42, is used in the judged result of first judge module 42 reducing the downlink traffic congestion level for not the time, obtains the downlink traffic congestion level in the current Flow Control cycle.
The 4th acquisition module 45; Be connected with the 3rd acquisition module 44 with second acquisition module 43; Be used for the downlink traffic congestion level of current Flow Control in the cycle and the corresponding relation of predefined congestion level and upstream bandwidth threshold value that obtain according to second acquisition module 43 or the 3rd acquisition module 44, obtain the upstream bandwidth threshold value in the current Flow Control cycle.Wherein, in the corresponding relation of said predefined congestion level and upstream bandwidth threshold value, congestion level is high more, and the upstream bandwidth threshold value of said congestion level correspondence is more little.
Flow Control module 46 is connected with the 4th acquisition module 45, is used in current Flow Control in the cycle, according to the upstream bandwidth threshold value of current Flow Control in the cycle that the 4th acquisition module 45 obtains the corresponding uplink traffic of downlink traffic is carried out speed limit, to realize flow control.
Each functional module of the volume control device of present embodiment can be used for carrying out the flow process of flow control methods shown in Figure 1, and its concrete operation principle repeats no more, and sees the description of method embodiment for details.
The volume control device of present embodiment; It is congested that speed through downlink traffic and preset flow rate thresholding judge whether current downlink traffic takes place; According to judged result adjustment downlink traffic congestion level; Obtain the downlink traffic congestion level in the current Flow Control cycle,, confirm the upstream bandwidth threshold value in the current Flow Control cycle then according to the downlink traffic congestion level of current Flow Control in the cycle and the corresponding relation of predefined congestion level and upstream bandwidth threshold value; According to the upstream bandwidth threshold value of obtaining uplink traffic is carried out speed limit in current Flow Control in cycle, reach the purpose of flow control.The upstream bandwidth threshold value that the volume control device of present embodiment uses is predefined fixed value, does not need to adjust in real time, and the uplink traffic that therefore after getting access to the upstream bandwidth threshold value, can use P2P is fast controlled, and has improved Flow Control speed; In addition; The volume control device of present embodiment is periodically adjusted the upstream bandwidth threshold value based on downlink traffic speed and downlink traffic congestion level; Can improve Flow Control precision based on the upstream bandwidth threshold value; This shows, carry out the scheme of Flow Control with the available technology adopting pid algorithm and compare that the volume control device of present embodiment provides high the effect of Flow Control.
The structural representation of the volume control device that Fig. 5 provides for another embodiment of the present invention.Present embodiment can be based on realization embodiment illustrated in fig. 4.As shown in Figure 5; The device of present embodiment also comprises: first acquisition module 41, first judge module 42, second acquisition module 43, the 3rd acquisition module 44, the 4th acquisition module 45 and Flow Control module 46, and each module also has the function of describing in embodiment illustrated in fig. 4.
Further, second acquisition module 43 of present embodiment can be used for that specifically the downlink traffic congestion level of a last Flow Control in the cycle added preset step value and obtains the downlink traffic congestion level of current Flow Control in the cycle.Wherein, preset step value can be any non-0 integer, and comparatively preferred value is 1.
The 3rd acquisition module 44 of present embodiment specifically can be used for the downlink traffic congestion level of current Flow Control in the cycle and is set to 0.
Optional, when the downlink traffic congestion level of current Flow Control in the cycle was 0, the upstream bandwidth threshold value in the current Flow Control cycle was the default value that disposes for said uplink traffic in advance.Can improve bandwidth availability ratio like this, and help improving the sensitivity of volume control device.
The volume control device of present embodiment also comprises: second judge module 47.
Second judge module 47; Be connected with first acquisition module 41, be used for before first acquisition module 41 obtains first flow speed, downlink traffic being used identification; Judge whether downlink traffic belongs to non-fluidic applications; And in judged result for not the time, trigger first acquisition module 41 and carry out and detect downlink traffics, the operation of obtaining first flow speed.Can guarantee that so non-fluidic applications not by speed limit, guarantees the bandwidth demand of non-fluidic applications, evading to a great extent carried out the side effect that speed limit is brought to uplink traffic.
Further, the volume control device of present embodiment also comprises: configuration module 48 and the 3rd judge module 49.
Configuration module 48; Be connected with second judge module 47; Be used in the judged result of second judge module 47 when being; The priority of configurating downlink flow is lower than preset priority threshold, and for not the time, the priority of configurating downlink flow is higher than preset priority threshold in the judged result of second judge module 47.
The 3rd judge module 49; Be connected with configuration module 48 with Flow Control module 46, be used for before the corresponding uplink traffic of 46 pairs of downlink traffics of Flow Control module is carried out speed limit, judging whether the priority of the downlink traffic of configuration module 48 configurations is lower than preset priority threshold; And in judged result when being; Trigger Flow Control module 46 and carry out in current Flow Control in the cycle, according to the upstream bandwidth threshold value of current Flow Control in the cycle the corresponding uplink traffic of downlink traffic is carried out speed limit, to realize the operation of flow control.Can further improve the accuracy and the precision of uplink traffic being carried out speed limit like this, and then evade greatly uplink traffic is carried out the side effect that speed limit is brought.
Above-mentioned each functional module can be used for the corresponding flow process among the execution graph 1-method embodiment shown in Figure 3, and its concrete operation principle repeats no more, and sees the description of method embodiment for details.
In sum; The volume control device of present embodiment; It is congested that speed through downlink traffic and preset flow rate thresholding judge whether current downlink traffic takes place, and according to judged result adjustment downlink traffic congestion level, obtains the downlink traffic congestion level in the current Flow Control cycle; Then according to the downlink traffic congestion level of current Flow Control in the cycle and the corresponding relation of predefined congestion level and upstream bandwidth threshold value; Confirm the upstream bandwidth threshold value in the current Flow Control cycle, according to the upstream bandwidth threshold value of obtaining uplink traffic is carried out speed limit in the cycle, reach the purpose of flow control in current Flow Control.The upstream bandwidth threshold value that the volume control device of present embodiment uses is predefined fixed value, does not need to adjust in real time, and the uplink traffic that therefore after getting access to the upstream bandwidth threshold value, can use P2P is fast controlled, and has improved Flow Control speed; In addition; The volume control device of present embodiment is periodically adjusted the upstream bandwidth threshold value based on downlink traffic speed and downlink traffic congestion level; Can improve Flow Control precision based on the upstream bandwidth threshold value; This shows, carry out the scheme of Flow Control with the available technology adopting pid algorithm and compare that the volume control device of present embodiment provides high the effect of Flow Control.
One embodiment of the invention provides a kind of network equipment, comprises the volume control device that the above embodiment of the present invention provides.The network equipment of present embodiment can be the equipment that various use P2P use, for example server, router, personal computer etc.
The network equipment of present embodiment comprises the volume control device that the embodiment of the invention provides, and can carry out the flow control methods that the embodiment of the invention provides, and therefore, the uplink traffic that can use P2P is fast equally controlled, and has improved Flow Control speed; In addition, can improve Flow Control precision, the effect of high Flow Control is provided on the whole based on the upstream bandwidth threshold value.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each method embodiment can be accomplished through the relevant hardware of program command.Aforesaid program can be stored in the computer read/write memory medium.This program the step that comprises above-mentioned each method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
What should explain at last is: above each embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although the present invention has been carried out detailed explanation with reference to aforementioned each embodiment; Those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, perhaps to wherein part or all technical characteristic are equal to replacement; And these are revised or replacement, do not make the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.

Claims (11)

1. a flow control methods is characterized in that, comprising:
Detect downlink traffic, obtain first flow speed, said first flow speed is the speed of current downlink traffic;
When the current Flow Control cycle arrives; Whether judge said first flow speed greater than preset flow rate speed thresholding, if judged result is for being increase downlink traffic congestion level; Obtain the downlink traffic congestion level in the current Flow Control cycle; If judged result reduces the downlink traffic congestion level for not, obtain the downlink traffic congestion level in the current Flow Control cycle; And, obtain the upstream bandwidth threshold value in the current Flow Control cycle according to the downlink traffic congestion level of current Flow Control in the cycle and the corresponding relation of predefined congestion level and upstream bandwidth threshold value; Wherein, in the corresponding relation of said predefined congestion level and upstream bandwidth threshold value, congestion level is high more, and the upstream bandwidth threshold value of said congestion level correspondence is more little;
In cycle, the corresponding uplink traffic of said downlink traffic is carried out speed limit in current Flow Control, to realize flow control according to the upstream bandwidth threshold value of current Flow Control in the cycle.
2. flow control methods according to claim 1 is characterized in that, said increase downlink traffic congestion level, and the downlink traffic congestion level of obtaining in the current Flow Control cycle comprises:
The downlink traffic congestion level of a last Flow Control in the cycle added preset step value obtain the downlink traffic congestion level of current Flow Control in the cycle.
3. flow control methods according to claim 1 is characterized in that, the said downlink traffic congestion level that reduces, and the downlink traffic congestion level of obtaining in the current Flow Control cycle comprises:
The downlink traffic congestion level of current Flow Control in the cycle is set to 0.
4. according to claim 1 or 2 or 3 described flow control methods, it is characterized in that said detection downlink traffic obtains first flow speed and comprises before:
Said downlink traffic is used identification, judge whether said downlink traffic belongs to non-fluidic applications;
When judged result is a said downlink traffic when not belonging to said non-fluidic applications, carry out and detect downlink traffic, the operation of obtaining first flow speed.
5. flow control methods according to claim 4 is characterized in that, also comprises:
When judged result is a said downlink traffic when not belonging to said non-fluidic applications, the priority that disposes said downlink traffic is lower than preset priority threshold;
When judged result is a said downlink traffic when belonging to said key application, the priority that disposes said downlink traffic is higher than said preset priority threshold;
Said in current Flow Control in the cycle, according to the upstream bandwidth threshold value of current Flow Control in the cycle the corresponding uplink traffic of said downlink traffic is carried out speed limit, comprise before the flow control realizing:
Whether the priority of judging said downlink traffic is lower than said preset priority threshold;
If judged result is then carried out in current Flow Control in the cycle for being, according to the upstream bandwidth threshold value of current Flow Control in the cycle the corresponding uplink traffic of said downlink traffic is carried out speed limit, to realize the operation of flow control.
6. a volume control device is characterized in that, comprising:
First acquisition module is used to detect downlink traffic, obtains first flow speed, and said first flow speed is the speed of current downlink traffic;
First judge module is used for when the current Flow Control cycle arrives, and judges that whether said first flow speed is greater than preset flow rate speed thresholding;
Second acquisition module is used in the judged result of said first judge module increasing the downlink traffic congestion level when being, obtains the downlink traffic congestion level in the current Flow Control cycle;
The 3rd acquisition module is used in the judged result of said first judge module reducing the downlink traffic congestion level for not the time, obtains the downlink traffic congestion level in the current Flow Control cycle;
The 4th acquisition module is used for according to the downlink traffic congestion level of current Flow Control in the cycle and the corresponding relation of predefined congestion level and upstream bandwidth threshold value, obtains the upstream bandwidth threshold value in the current Flow Control cycle; Wherein, in the corresponding relation of said predefined congestion level and upstream bandwidth threshold value, congestion level is high more, and the upstream bandwidth threshold value of said congestion level correspondence is more little;
The Flow Control module was used in current Flow Control in the cycle, according to the upstream bandwidth threshold value of current Flow Control in the cycle the corresponding uplink traffic of said downlink traffic was carried out speed limit, to realize flow control.
7. volume control device according to claim 6 is characterized in that, said second acquisition module is used for that specifically the downlink traffic congestion level of a last Flow Control in the cycle added preset step value and obtains the downlink traffic congestion level of current Flow Control in the cycle.
8. volume control device according to claim 6 is characterized in that, said the 3rd acquisition module specifically is used for the downlink traffic congestion level of current Flow Control in the cycle and is set to 0.
9. according to claim 6 or 7 or 8 described volume control devices, it is characterized in that, also comprise:
Second judge module; Be used for before said first acquisition module obtains said first flow speed; Said downlink traffic is used identification, judges whether said downlink traffic belongs to non-fluidic applications, and in judged result for not the time; Trigger said first acquisition module and carry out detection downlink traffic, the operation of obtaining first flow speed.
10. volume control device according to claim 9 is characterized in that, also comprises:
Configuration module; Be used in the judged result of said second judge module when being; The priority that disposes said downlink traffic is lower than preset priority threshold, and for not the time, the priority that disposes said downlink traffic is higher than said preset priority threshold in the judged result of said second judge module;
The 3rd judge module; Be used for before said Flow Control module is carried out speed limit to the corresponding uplink traffic of said downlink traffic; Whether the priority of judging said downlink traffic is lower than said preset priority threshold, and in judged result when being, trigger said Flow Control module and carry out in current Flow Control in the cycle; According to the upstream bandwidth threshold value of current Flow Control in the cycle the corresponding uplink traffic of said downlink traffic is carried out speed limit, to realize the operation of flow control.
11. a network equipment is characterized in that, comprising: like each described volume control device of claim 6-10.
CN2012101116631A 2012-04-16 2012-04-16 Flow control method, device and network equipment Pending CN102638406A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101116631A CN102638406A (en) 2012-04-16 2012-04-16 Flow control method, device and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101116631A CN102638406A (en) 2012-04-16 2012-04-16 Flow control method, device and network equipment

Publications (1)

Publication Number Publication Date
CN102638406A true CN102638406A (en) 2012-08-15

Family

ID=46622659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101116631A Pending CN102638406A (en) 2012-04-16 2012-04-16 Flow control method, device and network equipment

Country Status (1)

Country Link
CN (1) CN102638406A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532866A (en) * 2013-10-28 2014-01-22 曙光云计算技术有限公司 Flow control method and system for virtual machine
CN103634226A (en) * 2012-08-20 2014-03-12 凌群电脑股份有限公司 An operation module which automatically adjusts a data throughput and a method thereof
CN104113922A (en) * 2014-07-29 2014-10-22 中国科学院上海微系统与信息技术研究所 Wireless network distribution method
CN105163352A (en) * 2015-10-15 2015-12-16 厦门雅迅网络股份有限公司 Network traffic control method and device, and network device
CN106470167A (en) * 2015-08-17 2017-03-01 阿里巴巴集团控股有限公司 The control method of network transfer speeds and device
CN110278232A (en) * 2018-03-16 2019-09-24 腾讯科技(深圳)有限公司 A kind of method and device, the system of the downloading of control data
CN111174841A (en) * 2019-12-30 2020-05-19 金卡智能集团股份有限公司 Oscillatory flow filtering method for electronic meter at zero flow point
CN113660173A (en) * 2021-08-16 2021-11-16 北京字节跳动网络技术有限公司 Flow control method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355425A (en) * 2011-10-26 2012-02-15 深信服网络科技(深圳)有限公司 Network traffic control method and device
CN102413056A (en) * 2011-12-21 2012-04-11 北京星网锐捷网络技术有限公司 Method and device for controlling network flow as well as breakout gateway equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355425A (en) * 2011-10-26 2012-02-15 深信服网络科技(深圳)有限公司 Network traffic control method and device
CN102413056A (en) * 2011-12-21 2012-04-11 北京星网锐捷网络技术有限公司 Method and device for controlling network flow as well as breakout gateway equipment

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634226A (en) * 2012-08-20 2014-03-12 凌群电脑股份有限公司 An operation module which automatically adjusts a data throughput and a method thereof
CN103634226B (en) * 2012-08-20 2016-12-21 凌群电脑股份有限公司 Automatically computing module and the method thereof of data throughout are adjusted
CN103532866A (en) * 2013-10-28 2014-01-22 曙光云计算技术有限公司 Flow control method and system for virtual machine
CN104113922A (en) * 2014-07-29 2014-10-22 中国科学院上海微系统与信息技术研究所 Wireless network distribution method
CN106470167B (en) * 2015-08-17 2020-09-01 阿里巴巴集团控股有限公司 Method and device for controlling network transmission speed
CN106470167A (en) * 2015-08-17 2017-03-01 阿里巴巴集团控股有限公司 The control method of network transfer speeds and device
CN105163352A (en) * 2015-10-15 2015-12-16 厦门雅迅网络股份有限公司 Network traffic control method and device, and network device
CN110278232A (en) * 2018-03-16 2019-09-24 腾讯科技(深圳)有限公司 A kind of method and device, the system of the downloading of control data
CN110278232B (en) * 2018-03-16 2021-08-17 腾讯科技(深圳)有限公司 Method, device and system for controlling data downloading
CN111174841A (en) * 2019-12-30 2020-05-19 金卡智能集团股份有限公司 Oscillatory flow filtering method for electronic meter at zero flow point
CN111174841B (en) * 2019-12-30 2021-10-19 金卡智能集团股份有限公司 Oscillatory flow filtering method for electronic meter at zero flow point
CN113660173A (en) * 2021-08-16 2021-11-16 北京字节跳动网络技术有限公司 Flow control method and device, computer equipment and storage medium
CN113660173B (en) * 2021-08-16 2024-04-26 抖音视界有限公司 Flow control method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102638406A (en) Flow control method, device and network equipment
CN113315700B (en) Computing resource scheduling method, device and storage medium
CN101873640B (en) Flow processing method, device and mobile terminal
CN102594675A (en) Traffic control system and method
CN102142990A (en) Traffic monitoring method and device
CN104468253A (en) Deep packet inspection control method and device
CN102724123A (en) Network traffic control method and network traffic control device
CN103096385A (en) Method and device and terminal of flow control
EP3310093B1 (en) Traffic control method and apparatus
CN103793316A (en) Software performance determining method and system
CN108206788B (en) Traffic service identification method and related equipment
CN102055677A (en) Method and device for reducing network congestion
Cvitic et al. Definition of the IoT device classes based on network traffic flow features
CN104734905A (en) Data flow detection method and device
CN104270362A (en) Request handling method and device
CN104901897A (en) Determination method and device of application type
CN102802214A (en) System and method for rate self-adaptation based on WLAN (Wireless Local Area Network)
CN103152794A (en) Service access method and access controller
CN103312540A (en) User service requirement parameter determining method and device
CN106341339A (en) End-to-end network flow control method
CN102710502A (en) Network speed-limiting method and device based on time wasting
JP2020521395A (en) Method, apparatus and system for monitoring data traffic
CN101170496B (en) An identification method and device for point-to-point media stream
CN105530302A (en) Method and system for controlling uplink bandwidth
Ramana et al. Multipath transmission control protocol for live virtual machine migration in the cloud environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120815