CN104901902B - A kind of flow control methods and device - Google Patents
A kind of flow control methods and device Download PDFInfo
- Publication number
- CN104901902B CN104901902B CN201510284721.4A CN201510284721A CN104901902B CN 104901902 B CN104901902 B CN 104901902B CN 201510284721 A CN201510284721 A CN 201510284721A CN 104901902 B CN104901902 B CN 104901902B
- Authority
- CN
- China
- Prior art keywords
- channel
- bandwidth
- credit
- line
- traffic requests
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/52—Queue scheduling by attributing bandwidth to queues
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a kind of flow control methods, comprising: obtains the line bandwidth and route flow of broadband line;According to the line bandwidth of the broadband line and route flow, the bandwidth availability ratio of the broadband line is determined;If the bandwidth availability ratio of the broadband line is less than or equal to preset Tidle threshold, the traffic requests information in the channel of the broadband line is obtained, the traffic requests information indicates required information to be offered when request adjustment bandwidth credit;According to the traffic requests information in the channel, the Tidle threshold and the line bandwidth, the bandwidth credit distributed for the channel is determined.The embodiment of the present invention further simultaneously discloses a kind of volume control device.
Description
Technical field
The present invention relates to traffic management technologies, more particularly, to a kind of flow control methods and device.
Background technique
With Internet application prosperity, application (such as ERP, CRM, OA system, video conference system of the various key businesses of enterprise
System etc.) impact increasingly by other network applications, it cannot be ensured so as to cause the application of these key businesses.Therefore,
For guaranteeing the unobstructed method of key business --- the flow control mode of fixed limit is also come into being.
The flow control mode of fixed limit is drawn according to user type, tool terminal, request time and request application type etc.
It is divided into different channels, and the bandwidth credit fixed for the distribution of each channel.It is exemplary, all workers of certain company section at work
(9:00 to 18:00 of Mon-Fri) carries out file transmission using PC (PC, Personal Computer) request
Protocol type is File Transfer Protocol (FTP, File Transfer Protocol), and corresponding channel is the channel FTP.Assuming that line
Road bandwidth is 10Mbps, and the bandwidth credit of the channel FTP distribution is 2Mbps, then, all employees in the said firm section at work
The interior 2Mbps by being assigned to carries out ftp file transmission.
Although the flow control mode of fixed limit can ensure the normal use of specific transactions to a certain extent, if at this time
Other flows are not present in route, the flow of the business can still be limited in fixed limit.If there is only FTP in route at this time
The flow of file transmission, and the request flow in the channel FTP is greater than 2M, and the channel FTP cannot use remaining 8Mpbs, instead
Limit the transmission rate of ftp file transmission.Therefore, the flow control mode of traditional fixation limit is likely to result in bandwidth resources
Waste.
Summary of the invention
To solve existing technical problem, an embodiment of the present invention is intended to provide a kind of flow control methods and device,
The waste of bandwidth resources can be reduced while controlling flow.
The technical solution of the embodiment of the present invention is achieved in that
In a first aspect, the present invention provides a kind of flow control methods, comprising:
Obtain the line bandwidth and route flow of broadband line;
According to the line bandwidth of the broadband line and route flow, the bandwidth availability ratio of the broadband line is determined;
When the bandwidth availability ratio of the broadband line is less than or equal to preset Tidle threshold, the broadband line is obtained
The traffic requests information in channel, the traffic requests information required information to be offered when including request adjustment bandwidth credit;
According to the traffic requests information in the channel, the Tidle threshold and the line bandwidth, determine to be described logical
The bandwidth credit of road distribution.
With reference to first aspect, can be in realization mode at the first, the traffic requests information includes the request in each channel
Adjust the bandwidth credit of bandwidth credit and each channel;
It is described according to the traffic requests information in the channel, the Tidle threshold and the line bandwidth, determine described
Channel distribution bandwidth credit include:
According to the Tidle threshold and the line bandwidth, idle bandwidth is determined;
One or more request flows are less than or equal to the first passage of the bandwidth credit of own channels if it exists, then by institute
State new bandwidth credit of the request flow of first passage as corresponding channel;
One or more request flows are greater than the second channel of the bandwidth credit of own channels if it exists, then by the free time
Bandwidth subtract the constant or reduced bandwidth credit of value as a result, distributing to described second according to the preset ratio of the second channel
Channel, the bandwidth that the second channel is assigned to is as the new bandwidth credit of corresponding channel.
Mode can be realized in conjunction with the first, and in second of achievable mode, the traffic requests information further includes described
The floating in each channel identifies, and the mark that floats indicates whether the bandwidth credit in channel can adjust;
It is described according to the Tidle threshold and the line bandwidth, after determining idle bandwidth, the method also includes:
The floating mark in w channel indicates that the bandwidth credit in channel can adjust if it exists, then judge be in the w channel
The no channel that there is request flow and be greater than the bandwidth credit of own channels, the w are less than or equal to the natural number of channel number.
, can be in realization mode at the third in conjunction with second of achievable mode, the traffic requests information further includes described
The floating priority in each channel;
In the judgement w channel with the presence or absence of request flow greater than the bandwidth credit of own channels channel it
Afterwards, the method also includes:
X request flow is greater than the channel of the bandwidth credit of own channels if it exists, then the idle bandwidth is subtracted value
Constant or reduced bandwidth credit as a result, according to floating priority order of priority, be followed successively by the logical of same floating priority
Road is distributed according to the preset ratio in the channel of the same floating priority;The bandwidth that each channel is assigned to is as corresponding logical
The new bandwidth credit in road, the x, which is less than or equal to float, identifies the natural number of number.
With reference to first aspect, the first can realize mode to the third, in the 4th kind of achievable mode, the default ratio
Example is to need the ratio between bandwidth credit of assignment channel.
With reference to first aspect, in the 5th kind of achievable mode, the method also includes:
When the bandwidth availability ratio of the broadband line is greater than preset Tidle threshold, the channel of the broadband line is kept
Bandwidth credit.
Second aspect, the present invention provide a kind of volume control device, comprising:
Line information obtains module, for obtaining the line bandwidth and route flow of broadband line;
The line information obtains module, is also used to the line bandwidth and route flow according to the broadband line, determines
The bandwidth availability ratio of the broadband line;
Traffic requests data obtaining module obtains the bandwidth usage for the broadband line that module determines for the line information
When rate is less than or equal to preset Tidle threshold, the traffic requests information in the channel of the broadband line is obtained, the flow is asked
Seeking information includes that request adjusts required information to be offered when bandwidth credit;
Distribution module, for according to the traffic requests information in the channel, the Tidle threshold and the line bandwidth, really
Make the bandwidth credit for channel distribution.
, can be in realization mode at the first in conjunction with second aspect, the traffic requests information includes the request in each channel
The bandwidth credit of flow and each channel;
The distribution module is specifically used for:
According to the Tidle threshold and the line bandwidth, idle bandwidth is determined;
One or more request flows are less than or equal to the first passage of the bandwidth credit of own channels if it exists, then by institute
State new bandwidth credit of the request flow of first passage as corresponding channel;
One or more request flows are greater than the second channel of the bandwidth credit of own channels if it exists, then by the free time
It is that bandwidth subtracts reduction or constant bandwidth credit as a result, to distribute to described second according to the preset ratio of the second channel logical
Road, the bandwidth that the second channel is assigned to is as the new bandwidth credit of corresponding channel.
Mode can be realized in conjunction with the first, and in second of achievable mode, the traffic requests information further includes described
The floating in each channel identifies, and the mark that floats indicates whether the bandwidth credit in channel can adjust;
The distribution module is also used to:
The floating mark in w channel indicates that the bandwidth credit in channel can adjust if it exists, then judge be in the w channel
The no channel that there is request flow and be greater than the bandwidth credit of own channels, the w are less than or equal to the natural number of channel number.
, can be in realization mode at the third in conjunction with second of achievable mode, the traffic requests information further includes described
The floating priority in each channel;
The distribution module is also used to:
X request flow is greater than the channel of the bandwidth credit of own channels if it exists, then the idle bandwidth is subtracted value
Constant or reduced bandwidth credit as a result, according to floating priority order of priority, be followed successively by the logical of same floating priority
Road is distributed according to the preset ratio in the channel of the same floating priority;The bandwidth that each channel is assigned to is as corresponding logical
The new bandwidth credit in road, the x, which is less than or equal to float, identifies the natural number of number.
In conjunction with second aspect, the first can realize mode to the third, in the 4th kind of achievable mode, the default ratio
Example is to need the ratio between bandwidth credit of assignment channel.
In conjunction with second aspect, in the 5th kind of achievable mode, the allocation unit is also used to:
When the bandwidth availability ratio of the broadband line is greater than preset Tidle threshold, the channel of the broadband line is kept
Bandwidth credit.
Flow control methods and device provided by the embodiment of the present invention first obtain the line bandwidth and route of broadband line
Flow;The bandwidth availability ratio of the broadband line is determined according to the line bandwidth of broadband line and route flow;The broadband line
When the bandwidth availability ratio on road is less than or equal to preset Tidle threshold, the traffic requests letter in the channel of the broadband line is obtained
Breath, the traffic requests information required information to be offered when including request adjustment bandwidth credit;According to the flow in the channel
Solicited message, the Tidle threshold and the line bandwidth determine the bandwidth credit distributed for the channel.As can be seen that
The embodiment of the present invention can be that is, empty in the case where the bandwidth availability ratio of broadband line is less than or equal to preset Tidle threshold
It is that channel is true according to the traffic requests information in channel, the Tidle threshold and the line bandwidth in the case that not busy bandwidth is more
More particularly suitable bandwidth is made, using the bandwidth as the bandwidth credit in channel, thus broken the limitation of original bandwidth credit, it will
Idle bandwidth uses, in this way, reducing the waste of bandwidth resources, improves the network speed in each channel.
Detailed description of the invention
Fig. 1 is a kind of flow chart of flow control methods provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another flow control methods provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of volume control device provided in an embodiment of the present invention.
Specific embodiment
Embodiment one
The embodiment of the present invention provides a kind of flow control methods, as shown in Figure 1, the flow control methods may include:
Step 101, the line bandwidth and route flow for obtaining broadband line.
Here, the broadband line refers to the route of band width service, for example, certain company, which has handled 4M in operator, line width
Band business, the route of this 4M cable broadband is exactly the broadband line;Line bandwidth refers to the available bandwidth of the broadband line;Line
Road flow refers to the present flow rate size of the broadband line.
Step 102, line bandwidth and route flow according to broadband line, determine the bandwidth availability ratio of broadband line.
Preferably, bandwidth availability ratio can be the quotient of route flow Yu line bandwidth.
Step 103, broadband line bandwidth availability ratio be less than or equal to preset Tidle threshold when, obtain broadband line
The traffic requests information in channel, the traffic requests information required information to be offered when including request adjustment bandwidth credit.
Wherein, Tidle threshold is that operation maintenance personnel is arranged according to the service condition of actual bandwidth, and range is 10% to 90%
Between;The channel can be according to application come what is divided, be also possible to according to data type division;The division in channel is O&M
Personnel are pre-set, specifically how to divide and belong to the prior art, are no longer described in detail in the present embodiment.
Step 104, according to the traffic requests information in channel, Tidle threshold and the line bandwidth, determine as channel point
The bandwidth credit matched.
So, the embodiment of the present invention can be less than or equal to preset idle threshold in the bandwidth availability ratio of broadband line
In the case where value, that is, in the case that idle bandwidth is more, according to the traffic requests information in channel, the Tidle threshold and institute
Line bandwidth is stated, more particularly suitable bandwidth is determined for channel, using the bandwidth as the bandwidth credit in channel, to break original
The limitation of bandwidth credit, idle bandwidth is used, in this way, reducing the waste of bandwidth resources, improves each channel
Network speed.
The different content that the present embodiment can include according to traffic requests information determines the bandwidth distributed for the channel
Amount.For example, the first traffic requests information may include the bandwidth credit of the request flow and each channel in each channel;The
Two kinds of traffic requests information may include request flow, the bandwidth credit in each channel and the floating in each channel in each channel
Mark;The third traffic requests information may include the request flow, the bandwidth credit in each channel, each channel in each channel
Floating mark and each channel floating priority.Wherein, request flow refers to the maximum bandwidth amount of channel demand.
Preferably, above-mentioned preset ratio is to need the ratio between bandwidth credit of assignment channel.
For the first traffic requests information, step 103 may include: to be determined according to Tidle threshold and line bandwidth
Idle bandwidth, wherein idle bandwidth is equal to Tidle threshold multiplied by line bandwidth;If it exists one or more request flows be less than or
Equal to the first passage of the bandwidth credit of own channels, then using the request flow of first passage as the new bandwidth of corresponding channel
Amount;One or more request flows are greater than the second channel of the bandwidth credit of own channels if it exists, then subtract idle bandwidth
Go reduce or constant bandwidth credit as a result, the preset ratio according to second channel distributes to second channel, by second channel
New bandwidth credit of the bandwidth being assigned to as corresponding channel.It is worth noting that passing through above-mentioned tunnel data transport process
In need poll to give out a contract for a project.Herein, reduction or constant bandwidth credit refer to the new bandwidth credit of first passage.
Exemplary, as shown in table 1, t moment a, broadband line includes two channels channel QQ and the channel FTP, and the two
Request flow be both greater than bandwidth credit;Due to there is no the case where requesting flow to be less than or equal to bandwidth credit, two are logical
Road will distribute idle bandwidth (10*60%) according to bandwidth credit ratio, be based on this, the new bandwidth credit in the channel QQ is 2M, FTP
The new bandwidth credit in channel is 4M.
Table 1
For second of traffic requests information, step 103 may include: to be determined according to Tidle threshold and line bandwidth
Idle bandwidth, wherein idle bandwidth is equal to Tidle threshold multiplied by line bandwidth;The floating mark in w channel indicates logical if it exists
The bandwidth credit in road can adjust, then judge to be greater than the logical of the bandwidth credit of own channels with the presence or absence of request flow in w channel
Road, w are less than or equal to the natural number of channel number;One or more request flows are less than or equal to own channels if it exists
The first passage of bandwidth credit, then using the request flow of first passage as the new bandwidth credit of corresponding channel;If it exists one
It is a or it is multiple request flows be greater than own channels bandwidth credits second channels, then by idle bandwidth subtract reduction or it is constant
Bandwidth credit as a result, the preset ratio according to second channel distributes to second channel, the bandwidth that second channel is assigned to is made
For the new bandwidth credit of corresponding channel.It is worth noting that reduction or constant bandwidth credit, which refer to, is unable to adjust band broad forehead
The channel of degree and the bandwidth credit of first passage.
It is exemplary, it is assumed that the mark that floats can be 1 or 0 two identifier, wherein 1 indicates the ability with adjustment, 0 table
Show the ability without adjustment, as shown in table 2, t moment a, route includes two channels channel QQ and the channel FTP, and the two
Request flow be both greater than bandwidth credit, but only the channel QQ has upper floating capacity, and therefore, the only channel QQ can float broad forehead
Degree is based on this, and the new bandwidth credit in the channel QQ is 4M, and the new bandwidth credit in the channel FTP is 2M.
Table 2
Idle bandwidth is determined according to Tidle threshold and line bandwidth for the third traffic requests information, wherein empty
Not busy bandwidth is equal to Tidle threshold multiplied by line bandwidth;The floating mark in w channel indicates that the bandwidth credit in channel can be adjusted if it exists
It is whole, then judge in w channel with the presence or absence of request flow be greater than own channels bandwidth credit channel, the w be less than or
Equal to the natural number of channel number;X request flow is greater than the channel of the bandwidth credit of own channels if it exists, then by idle band
Width subtract the constant or reduced bandwidth credit of value as a result, according to floating priority order of priority, be followed successively by it is same float it is excellent
The channel of first grade is distributed according to the preset ratio in the channel of same floating priority;The bandwidth that each channel is assigned to as pair
The new bandwidth credit in channel is answered, the x, which is less than or equal to float, identifies the natural number of number, i.e., in the process of bandwidth allocation
In, the channel of highest priority is first distributed, then the channel distribution of secondary high priority, until being assigned to the logical of lowest priority
Road or idle bandwidth distribute.Here, reduce or constant bandwidth credit refers to the channel for being unable to adjust bandwidth credit and the
The bandwidth credit of the bandwidth credit in one channel.
It is exemplary, the identifier of floating priority is 0,1 ..., n, wherein 0 indicates highest priority, and 1 indicates time high
Priority, n indicate that lowest priority, n are greater than 1 integer, and as shown in table 3, t moment a, route includes two channel QQ
Channel and the channel FTP, and the request flow of the two is both greater than bandwidth credit, and has floating capacity on the channel QQ, wherein QQ floats
Priority 1 is lower than FTP floating priority 0, and the bandwidth so the channel FTP can preferentially float, the channel QQ is in the channel FTP floating bandwidth
Could float bandwidth later, be based on this, and the new bandwidth credit in the channel FTP is 5M, and the new bandwidth credit in the channel QQ is idle
Remaining 1M in bandwidth.
Table 3
Further, the method also includes: if the bandwidth availability ratio of the broadband line be greater than preset Tidle threshold,
Then keep the bandwidth credit in the channel of the broadband line.
Embodiment two
The embodiment of the present invention provides a kind of flow control methods, is applied to volume control device, as illustrated in fig. 2, it is assumed that certain
Section (9:00 to 18:00 of Mon-Fri) carries out flow control to the broadband line of corporate networks at work for company, wherein
The broadband line can be divided into three channels: the channel FTP, the channel QQ and IE browser channel, and in t moment, t is greater than 0, this method
May include:
Step 201, the line bandwidth and route flow for obtaining broadband line.
Step 202, line bandwidth and route flow according to broadband line, determine the bandwidth availability ratio of broadband line.
Step 203 judges whether the bandwidth availability ratio of broadband line is less than or equal to preset Tidle threshold, if so,
Execute step 204;If it is not, thening follow the steps 210.
If the bandwidth availability ratio of step 204, broadband line is less than or equal to preset Tidle threshold, broadband line is obtained
Channel traffic requests information.
Wherein, traffic requests information may include the bandwidth credit, each of the request flow in each channel, each channel
The floating priority of the floating mark and each channel in channel.The content of traffic requests information, which can be, repeatedly to be obtained, and is not necessarily to
It must once obtain.
Step 205, according to Tidle threshold and line bandwidth, determine idle bandwidth.
Specifically, idle bandwidth is equal to Tidle threshold multiplied by line bandwidth.For example, Tidle threshold is 60%, line bandwidth
It is 10M, correspondingly, idle bandwidth is 6M;Tidle threshold is 90%, and line bandwidth is 10M, correspondingly, idle bandwidth is 9M.
Step 206, to judge that the floating in each channel identifies whether be 1, if so, thening follow the steps 207;If it is not, then executing
Step 210.
In the present embodiment, the mark that floats can be 1 or 0 two identifier, wherein 1 indicates the ability with adjustment, 0 table
Show the ability without adjustment.
The floating mark in step 207, if it exists w channel is all 1, then judges in w channel with the presence or absence of request flow
Less than the channel of the bandwidth credit of own channels, if so, thening follow the steps 208;If it is not, thening follow the steps 209.
Step 208, request flow is less than or equal to the channel of the bandwidth credit of own channels if it exists, then asking channel
Seek new bandwidth credit of the flow as corresponding channel.
For example, as shown in table 4, in t moment, it is 20*60%=12M, the band broad forehead in the channel FTP that idle bandwidth, which is calculated,
Degree 2M is greater than request flow 1M and the 1M in 12M is therefore distributed to the channel FTP.
Table 4
Step 209, idle bandwidth is subtracted above-mentioned channel new bandwidth credit as a result, by idle bandwidth dispensing remaining
The high channel of floating priority in channel, the bandwidth that the high channel of the priority that floats is assigned to, will as new bandwidth credit
Remaining idle bandwidth distributes to the low channel of floating priority.
In the present embodiment, the identifier of floating priority is 0 or 1, wherein 0 indicates high priority, and 1 indicates low priority.
As shown in table 4, the floating priority in the channel QQ is higher than the channel IE, and the bandwidth credit in the channel IE cannot float, therefore, by (12-1)
10M in M distributes to the channel QQ, finally, the idle bandwidth of (12-10-1) M is distributed to the channel IE as new bandwidth credit.
It is worth noting that when request flow is less than or equal to the bandwidth credit of own channels, without considering that priority is asked
In other words topic requests the priority for the case where flow is less than or equal to own bandwidth amount to be higher than any priority-level;When
It is above-mentioned logical there is no when the channel for the bandwidth credit for requesting flow to be less than or equal to own channels, no longer needing to subtract idle bandwidth
The new bandwidth credit in road as a result, direct dispense idle bandwidth.
Step 210, channel bandwidth credit remain unchanged.
The embodiment of the invention provides a kind of more careful flow control methods, pass through the request stream to each channel
Amount, the bandwidth credit in each channel, the floating mark in each channel and the floating priority in each channel are handled, and are determined
The bandwidth of adjustment is needed most, to meet the demand for needing most the channel of flow at this time.
Embodiment three
The embodiment of the present invention provides a kind of volume control device 30, as shown in figure 3, may include:
Line information obtains module 301, for obtaining the line bandwidth and route flow of broadband line.
The line information obtains module 301, is also used to the line bandwidth and route flow according to the broadband line, really
The bandwidth availability ratio of the fixed broadband line.
Traffic requests data obtaining module 302 obtains the bandwidth for the broadband line that module determines for the line information
When utilization rate is less than or equal to preset Tidle threshold, the traffic requests information in the channel of the broadband line, the stream are obtained
Measure required information to be offered when solicited message includes request adjustment bandwidth credit.
Distribution module 303, for according to the traffic requests information in the channel, the Tidle threshold and the route band
Width determines the bandwidth credit distributed for the channel.
So, the embodiment of the present invention can be less than or equal to preset idle threshold in the bandwidth availability ratio of broadband line
In the case where value, that is, in the case that idle bandwidth is more, according to the traffic requests information in channel, the Tidle threshold and institute
Line bandwidth is stated, more particularly suitable bandwidth is distributed for channel, to break the limitation of original bandwidth credit, idle bandwidth is utilized
Get up, in this way, reducing the waste of bandwidth resources, improves the network speed in each channel.
Specifically, the traffic requests information includes the request flow in each channel and the band broad forehead in each channel
Degree, the distribution module 303 are specifically used for:
According to the Tidle threshold and the line bandwidth, idle bandwidth is determined;
One or more request flows are less than or equal to the first passage of the bandwidth credit of own channels if it exists, then by institute
State new bandwidth credit of the request flow of first passage as corresponding channel;
One or more request flows are greater than the second channel of the bandwidth credit of own channels if it exists, then by the free time
Bandwidth subtract reduction or constant bandwidth credit as a result, the second channel is distributed to according to preset ratio, by described second
New bandwidth credit of the bandwidth that channel is assigned to as corresponding channel.
Further, the traffic requests information further includes the floating mark in each channel, and the floating identifies table
Show whether the bandwidth credit in channel can adjust, the distribution module 303 is also used to:
When indicating that the bandwidth credit in channel can adjust there are the floating mark in w channel, judge in the w channel whether
It is greater than the channel of the bandwidth credit of own channels in the presence of request flow, the w is less than or equal to the natural number of channel number.
Further, the traffic requests information further includes the floating priority in each channel, the distribution module
303 are also used to:
X request flow is greater than the channel of the bandwidth credit of own channels if it exists, then the idle bandwidth is subtracted value
Constant or reduced bandwidth credit as a result, according to floating priority order of priority, be followed successively by the logical of same floating priority
Road is distributed according to the preset ratio in the channel of the same floating priority;The bandwidth that each channel is assigned to is as corresponding logical
The new bandwidth credit in road, the x, which is less than or equal to float, identifies the natural number of number.Preferably, preset ratio is desirable
The ratio between bandwidth credit of assignment channel.
Further, the allocation unit is also used to:
When the bandwidth availability ratio of the broadband line is greater than preset Tidle threshold, then the channel of the broadband line is kept
Bandwidth credit.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (8)
1. a kind of flow control methods characterized by comprising
Obtain the line bandwidth and route flow of broadband line;
According to the line bandwidth of the broadband line and route flow, the bandwidth availability ratio of the broadband line is determined;
When the bandwidth availability ratio of the broadband line is less than or equal to preset Tidle threshold, the channel of the broadband line is obtained
Traffic requests information, required information to be offered when the traffic requests information includes request flow;
According to the traffic requests information in the channel, the Tidle threshold and the line bandwidth, determine as the channel point
The bandwidth credit matched;
Also, the traffic requests information includes the bandwidth credit of the request flow and each channel in each channel;
It is described according to the traffic requests information in the channel, the Tidle threshold and the line bandwidth, determine the channel
The bandwidth credit of distribution includes:
According to the Tidle threshold and the line bandwidth, idle bandwidth is determined;
One or more request flows are less than or equal to the first passages of the bandwidth credits of own channels if it exists, then by described the
New bandwidth credit of the request flow in one channel as corresponding channel;
One or more request flows are greater than the second channel of the bandwidth credit of own channels if it exists, then by the idle bandwidth
Subtract leading to as a result, distributing to described second according to the preset ratio of the second channel for the constant or reduced bandwidth credit of value
Road, the bandwidth that the second channel is assigned to is as the new bandwidth credit of corresponding channel.
2. the method according to claim 1, wherein the traffic requests information further includes each channel
Float mark, and the mark that floats indicates whether the bandwidth credit in channel can adjust;
It is described according to the Tidle threshold and the line bandwidth, after determining idle bandwidth, the method also includes:
The floating mark in w channel indicates that the bandwidth credit in channel can adjust if it exists, then judges whether deposit in the w channel
It is greater than the channel of the bandwidth credit of own channels in request flow, the w is less than or equal to the natural number of channel number.
3. according to the method described in claim 2, it is characterized in that, the traffic requests information further includes each channel
Floating priority;
After the channel for the bandwidth credit for being greater than own channels with the presence or absence of request flow in the judgement w channel, institute
State method further include:
X request flow is greater than the channel of the bandwidth credit of own channels if it exists, then it is constant the idle bandwidth to be subtracted value
Or reduced bandwidth credit as a result, according to floating priority order of priority, be followed successively by the channel of same floating priority by
According to the preset ratio distribution in the channel of the same floating priority;The bandwidth that each channel is assigned to is as corresponding channel
New bandwidth credit, the x, which is less than or equal to float, identifies the natural number of number.
4. method according to any one of claims 1 to 3, which is characterized in that the preset ratio is to need assignment channel
The ratio between bandwidth credit;And the method also includes:
When the bandwidth availability ratio of the broadband line is greater than preset Tidle threshold, the bandwidth in the channel of the broadband line is kept
Amount.
5. a kind of volume control device characterized by comprising
Line information obtains module, for obtaining the line bandwidth and route flow of broadband line;
The line information obtains module, is also used to the line bandwidth and route flow according to the broadband line, determine described in
The bandwidth availability ratio of broadband line;
Traffic requests data obtaining module, the bandwidth availability ratio for obtaining the broadband line that module determines for the line information are small
When preset Tidle threshold, the traffic requests information in the channel of the broadband line, the traffic requests letter are obtained
Breath required information to be offered when including request flow;
Distribution module, for determining according to the traffic requests information in the channel, the Tidle threshold and the line bandwidth
For the bandwidth credit of channel distribution;
Also, the traffic requests information includes the bandwidth credit of the request flow and each channel in each channel;
The distribution module is specifically used for:
According to the Tidle threshold and the line bandwidth, idle bandwidth is determined;
One or more request flows are less than or equal to the first passages of the bandwidth credits of own channels if it exists, then by described the
New bandwidth credit of the request flow in one channel as corresponding channel;
One or more request flows are greater than the second channel of the bandwidth credit of own channels if it exists, then by the idle bandwidth
Subtract reduction or constant bandwidth credit as a result, distribute to the second channel according to the preset ratio of the second channel,
The bandwidth that the second channel is assigned to is as the new bandwidth credit of corresponding channel.
6. device according to claim 5, which is characterized in that the traffic requests information further includes each channel
Float mark, and the mark that floats indicates whether the bandwidth credit in channel can adjust;
The distribution module is also used to:
The floating mark in w channel indicates that the bandwidth credit in channel can adjust if it exists, then judges whether deposit in the w channel
It is greater than the channel of the bandwidth credit of own channels in request flow, the w is less than or equal to the natural number of channel number.
7. device according to claim 6, which is characterized in that the traffic requests information further includes each channel
Floating priority;
The distribution module is also used to:
X request flow is greater than the channel of the bandwidth credit of own channels if it exists, then it is constant the idle bandwidth to be subtracted value
Or reduced bandwidth credit as a result, according to floating priority order of priority, be followed successively by the channel of same floating priority by
According to the preset ratio distribution in the channel of the same floating priority;The bandwidth that each channel is assigned to is as corresponding channel
New bandwidth credit, the x, which is less than or equal to float, identifies the natural number of number.
8. according to the described in any item devices of claim 5 to 7, which is characterized in that the preset ratio is to need assignment channel
The ratio between bandwidth credit;Also, the distribution module is also used to:
When the bandwidth availability ratio of the broadband line is greater than preset Tidle threshold, the bandwidth in the channel of the broadband line is kept
Amount.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510284721.4A CN104901902B (en) | 2015-05-28 | 2015-05-28 | A kind of flow control methods and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510284721.4A CN104901902B (en) | 2015-05-28 | 2015-05-28 | A kind of flow control methods and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104901902A CN104901902A (en) | 2015-09-09 |
CN104901902B true CN104901902B (en) | 2019-04-16 |
Family
ID=54034301
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510284721.4A Active CN104901902B (en) | 2015-05-28 | 2015-05-28 | A kind of flow control methods and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104901902B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106507436A (en) * | 2016-12-30 | 2017-03-15 | 努比亚技术有限公司 | A kind of band width control method and terminal |
CN107094122A (en) * | 2017-05-18 | 2017-08-25 | 武汉烽火技术服务有限公司 | A kind of method and system of the adjust automatically network bandwidth |
CN108259221A (en) * | 2017-12-04 | 2018-07-06 | 山石网科通信技术有限公司 | Flow control methods, device, system, storage medium and processor |
CN108304288B (en) * | 2018-01-26 | 2021-09-07 | 北京小米松果电子有限公司 | Method, device and storage medium for acquiring bandwidth utilization rate |
CN114598649B (en) * | 2022-03-17 | 2023-08-04 | 苏州浪潮智能科技有限公司 | Kernel bandwidth management method, device, storage equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101232449A (en) * | 2008-02-27 | 2008-07-30 | 福建星网锐捷网络有限公司 | Method and apparatus for distributing bandwidth |
CN101360063A (en) * | 2008-09-10 | 2009-02-04 | 中国科学院计算技术研究所 | Service stream transmission control method and system in IP network |
CN103067306A (en) * | 2012-12-28 | 2013-04-24 | 苏州山石网络有限公司 | Method and device for bandwidth allocation |
CN103701722A (en) * | 2014-01-02 | 2014-04-02 | 网神信息技术(北京)股份有限公司 | Network bandwidth allocation method, device and system |
EP2849386A1 (en) * | 2012-05-07 | 2015-03-18 | ZTE Corporation | Self-adaptive bandwidth distribution method and system |
-
2015
- 2015-05-28 CN CN201510284721.4A patent/CN104901902B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101232449A (en) * | 2008-02-27 | 2008-07-30 | 福建星网锐捷网络有限公司 | Method and apparatus for distributing bandwidth |
CN101360063A (en) * | 2008-09-10 | 2009-02-04 | 中国科学院计算技术研究所 | Service stream transmission control method and system in IP network |
EP2849386A1 (en) * | 2012-05-07 | 2015-03-18 | ZTE Corporation | Self-adaptive bandwidth distribution method and system |
CN103067306A (en) * | 2012-12-28 | 2013-04-24 | 苏州山石网络有限公司 | Method and device for bandwidth allocation |
CN103701722A (en) * | 2014-01-02 | 2014-04-02 | 网神信息技术(北京)股份有限公司 | Network bandwidth allocation method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN104901902A (en) | 2015-09-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104901902B (en) | A kind of flow control methods and device | |
CN101232449B (en) | Method and apparatus for distributing bandwidth | |
US6917591B2 (en) | Methods, systems and computer program products for bandwidth allocation in a multiple access system | |
CN105933064A (en) | Dynamic bandwidth allocation method and apparatus | |
CN102142990B (en) | Business consumption monitoring method and apparatus | |
CN103532873B (en) | flow control policy applied to distributed file system | |
JP4142045B2 (en) | Dynamic bandwidth allocation circuit, dynamic bandwidth allocation method, dynamic bandwidth allocation program, and recording medium | |
US20170041248A1 (en) | Time allocation for network transmission | |
CN106506043A (en) | Data transmission method, control device and equipment in a kind of PLC system | |
CN106254259B (en) | A kind of method and device of flow control | |
HK1126052A1 (en) | Aggregated resource reservation for data flows | |
CN109218216A (en) | Chain polymerization traffic distribution method, device, equipment and storage medium | |
CN102469504A (en) | Network congestion decision method and equipment for wireless communication system | |
EP2503762A1 (en) | Method, apparatus and system for cache collaboration | |
CN105764091B (en) | A method of effective use wireless bandwidth | |
CN103874133A (en) | Method and device for bandwidth control and access point | |
JP2015529409A (en) | Speed control system and method based on WLAN network | |
CN103441943B (en) | A kind of traffic messages control method and device | |
CN101753449A (en) | Resource management system supporting the probability guarantee of end-to-end delay and the method thereof | |
CN105577563B (en) | flow management method | |
CN107370686A (en) | A kind of flow control methods and device | |
WO2011024930A1 (en) | Content distribution system, content distribution method and content distribution-use program | |
CN114828050B (en) | Method, device, equipment and medium for determining service capacity | |
CN105933167A (en) | Method and device for improving utilization rates of link bandwidths | |
US20220201634A1 (en) | Time Allocation For Network Transmission |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |