CN105763482B - Bandwidth adjusting method and device - Google Patents
Bandwidth adjusting method and device Download PDFInfo
- Publication number
- CN105763482B CN105763482B CN201410802887.6A CN201410802887A CN105763482B CN 105763482 B CN105763482 B CN 105763482B CN 201410802887 A CN201410802887 A CN 201410802887A CN 105763482 B CN105763482 B CN 105763482B
- Authority
- CN
- China
- Prior art keywords
- bandwidth
- message
- adjustment
- information
- request message
- 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
Images
Abstract
The invention discloses a bandwidth adjusting method, which comprises the following steps: when detecting that the bandwidth used by the data traffic of the tunnel exceeds a set bandwidth value, sending a bandwidth request message to a downstream node; the bandwidth request message comprises application bandwidth information; receiving a bandwidth adjustment message corresponding to the bandwidth request message sent by a downstream node, and exiting if the bandwidth adjustment message comprises a bandwidth adjustment success message; if the bandwidth adjustment message contains a bandwidth adjustment failure message and the frequency of sending the bandwidth request message does not exceed the set frequency, updating the bandwidth application information and sending the bandwidth request message containing the updated bandwidth application information to the downstream node; and if the application times exceed the set times, quitting. The invention also discloses a bandwidth adjusting device.
Description
Technical Field
The present invention relates to the field of network data communication technologies, and in particular, to a bandwidth adjusting method and apparatus.
Background
When establishing a multi-protocol Label switching-Traffic engineering (MPLS-TE) tunnel, a certain bandwidth can be allocated. Based on the traffic statistics on the conventional Label Switched Path (LSP) tunnel, the bandwidth occupied by the tunnel may be adjusted by using an automatic bandwidth adjustment technique. The main idea of automatic bandwidth adjustment is to monitor the flow rate on the tunnel interface and periodically adjust the bandwidth on the tunnel interface to make it closer to the actual traffic transmitted along the tunnel. Such adjustments do not affect the current traffic through the tunnel.
Terms related to automatic bandwidth adjustment include: automatic bandwidth adjustment: a tunnel automatic bandwidth adjusting function; the application frequency is as follows: how often the tunnel bandwidth changes; tunnel bandwidth: a bandwidth value configured on the tunnel; sampling frequency: inquiring the output rate of the tunnel once, wherein the output rate cannot be greater than the application frequency; maximum sampling bandwidth: the highest sampling bandwidth within the last application frequency; percent change in bandwidth: a percentage of a highest sampling bandwidth to an existing bandwidth; bandwidth variation value: the difference between the highest sampling bandwidth and the existing bandwidth.
The existing automatic bandwidth adjusting technology is divided into the following four types:
1) ordinary automatic bandwidth adjustment: configuring a certain application frequency for the tunnel (the application frequency has a default value and is generally 24 hours), and triggering one adjustment when the application frequency expires;
2) and (3) tunnel instant adjustment: after configuring the immediate adjustment command, the adjustment is triggered immediately without waiting for the expiration of the current application frequency. A certain tunnel may be specified, or all tunnels may be specified. This adjustment must be manually configured once before each action is effected.
3) Triggering and adjusting a tunnel bandwidth change threshold: when the percentage of bandwidth change is greater than the configured percentage of bandwidth change, or the value of bandwidth change exceeds the configured value of bandwidth change, an adjustment is triggered.
4) Detecting and triggering adjustment through tunnel overflow: this technique only detects for the case of increased bandwidth. When the bandwidth increase value exceeds the configured bandwidth change value, or the bandwidth increase percentage exceeds the configured bandwidth change percentage, even if an overflow is detected; when the number of consecutive detected overflows reaches the configured number of overflows, an adjustment is triggered.
In the above 4 methods, when the bandwidth is adjusted, the outgoing interface through which the tunnel passes is required to meet the bandwidth requirement, and the adjustment is successful, otherwise, the adjustment fails. Such an approach is prone to a loss of a portion of the traffic. This will be further described with reference to fig. 1 as an example. Fig. 1 is a diagram illustrating a tunnel topology of a general MPLS domain. Two TE tunnels are created on the head node R1, wherein one TE tunnel is named as a first tunnel (TE _ tunnel1), passes through the node R2 and the node R3, and finally reaches the node R4, and the configured tunnel bandwidth of TE _ tunnel1 is 30 mb; the other tunnel is named as a second tunnel (Te _ tunnel2), passes through a node R5 and a node R6, and finally reaches a node R4, wherein the bandwidth of the configured tunnel of the Te _ tunnel2 is 20 million; the outgoing interfaces of the two tunnels on the head node R1 are the same, named fei1, and the allocable bandwidth reserved on fei1 is 100 megabits.
Taking the structure diagram shown in fig. 1 as an example, the existing steps for adjusting the tunnel traffic are as follows:
(1) the highest sampling bandwidth of the actual traffic of the Te _ tunnel1 is increased to 50 Mm, automatic bandwidth adjustment is carried out, 50 Mm is distributed to the Te _ tunnel1 by fei1, and the bandwidth available for the Te _ tunnel2 on fei1 is 50 Mm;
(2) te _ tunnel2 performs automatic bandwidth adjustment after Te _ tunnel1, its actual traffic has a maximum sample bandwidth of 60 megabits, and the bandwidth on current fei1 is not enough to allocate, so that, if the automatic bandwidth adjustment fails, Te _ tunnel2 still maintains 20 megabits of bandwidth, which results in Te _ tunnel2 losing a lot of data traffic.
(3) When Te _ tunnel2 fails the automatic bandwidth adjustment and Te _ tunnel1 for some reason has reduced bandwidth demand, Te _ tunnel1 releases the 50 mb of occupied bandwidth, and the automatic bandwidth adjustment time has not yet been reached, then Te _ tunnel2 still occupies only 20 mb of bandwidth, and 80 mb of bandwidth is left unused on fei1, and these free bandwidths are likely to be used when the next time Te _ tunnel2 is performed the automatic bandwidth adjustment.
As can be seen from the above description, when Te _ tunnel2 performs automatic bandwidth adjustment in step (2), directly allocating 50 mb of the bandwidth available on fei1 port to Te _ tunnel2 can reduce the traffic loss, but this approach is unreasonable and has no general applicability. The reasons are mainly that: tunnel automatic bandwidth adjustment is for the entire tunnel (the tunnel may pass through multiple egress interfaces) rather than for a certain egress interface. The common egress interface of multiple tunnels is not necessarily the head node, but may also be an intermediate node. Here, two tunnels are taken as an example, and the case of more than two tunnels is also similar. As shown in fig. 2, the common egress interface of the two tunnels is fei2, located on the intermediate node R2; as shown in fig. 3, the common egress interfaces of the two tunnels are fei1, fei2 and fei3, located on the head node R1 and intermediate nodes R2 and R3. In both cases, it may be that the bandwidth of the intermediate node is insufficient. Now taking fig. 3 as an example, the total bandwidth of egress interface fei1 is 200 megabits, the bandwidth of egress interface fei2 is 100 megabits, and the bandwidth of egress interfaces fei3, fei4, and fei5 is 80 megabits. The original Te _ tunnel1 bandwidth is 30 megabits and the original Te _ tunnel2 bandwidth is 20 megabits. When Te _ tunnel1 traffic increases to 50 megabits and Te _ tunnel2 traffic increases to 60 megabits, the bandwidth of fei1 can meet the bandwidth requirement, while the bandwidth over egress interfaces fei2 and fei3 is not.
In summary, when the traffic of the tunnel egress interface does not meet the requirement of automatic bandwidth adjustment, we cannot apply for bandwidth adjustment by using the remaining bandwidth of a certain egress interface to achieve the purpose of reducing traffic loss.
Disclosure of Invention
In view of this, embodiments of the present invention are to provide a bandwidth adjusting method and apparatus, which can at least solve the problem of low bandwidth utilization rate in the prior art.
The technical scheme of the embodiment of the invention is realized as follows:
a bandwidth adjustment method, comprising:
when detecting that the bandwidth used by the data traffic of the tunnel exceeds a set bandwidth value, sending a bandwidth request message to a downstream node; the bandwidth request message comprises application bandwidth information;
receiving a bandwidth adjustment message corresponding to the bandwidth request message sent by a downstream node, and exiting if the bandwidth adjustment message comprises a bandwidth adjustment success message; if the bandwidth adjustment message contains a bandwidth adjustment failure message and the frequency of sending the bandwidth request message does not exceed the set frequency, updating the bandwidth application information and sending the bandwidth request message containing the updated bandwidth application information to the downstream node; and if the application times exceed the set times, quitting.
Wherein, when it is detected that the bandwidth used by the data traffic of the tunnel exceeds a set bandwidth value, sending a bandwidth request message to a downstream node includes: when detecting that the bandwidth used by the data traffic of the tunnel exceeds a set bandwidth value, checking whether the current time belongs to a bandwidth adjustment period, if so, sending a bandwidth request message to a downstream node, wherein the bandwidth request message comprises application bandwidth information, and the request bandwidth corresponding to the application bandwidth information is the maximum value of the data traffic; otherwise, sending a bandwidth request message to the downstream node when the bandwidth adjustment period comes.
Wherein the updating of the application bandwidth information and the sending of the bandwidth request message containing the updated application bandwidth information to the downstream node comprises: circularly sending a bandwidth request message to the downstream node; the bandwidth request message comprises updated application bandwidth information, and the request bandwidth corresponding to the updated application bandwidth information is smaller than the request bandwidth corresponding to the last bandwidth request message according to a set proportion.
Further, the method further comprises: if the link condition improvement information sent by the route is received and the current moment does not belong to the bandwidth adjustment period, inquiring whether the last bandwidth adjustment message is a bandwidth adjustment success message and has no alarm information, and if so, exiting; otherwise, sending a bandwidth request message to the downstream node again, wherein the request bandwidth corresponding to the bandwidth request message is the maximum value of the data traffic.
A bandwidth adjustment method, comprising: receiving a bandwidth request message sent by a tunnel head node, and checking application bandwidth information in the bandwidth request message; inquiring the current available bandwidth, if the current available bandwidth is larger than the request bandwidth corresponding to the application bandwidth information, allocating the bandwidth to the tunnel according to the size of the request bandwidth, and sending a bandwidth adjustment message containing a bandwidth adjustment success message to the tunnel head node; otherwise, sending a bandwidth adjustment message containing a bandwidth adjustment failure message to the tunnel head node.
A bandwidth adjustment apparatus comprising:
a bandwidth request sending unit, configured to send a bandwidth request message to a downstream node when detecting that a bandwidth used by data traffic of a tunnel exceeds a set bandwidth value; the bandwidth request message comprises application bandwidth information;
a first bandwidth adjusting unit, configured to receive a bandwidth adjusting message corresponding to the bandwidth request message sent by a downstream node, and exit if the bandwidth adjusting message includes a bandwidth adjusting success message; if the bandwidth adjustment message contains a bandwidth adjustment failure message and the frequency of sending the bandwidth request message does not exceed the set frequency, updating the bandwidth application information and sending the bandwidth request message containing the updated bandwidth application information to the downstream node; and if the application times exceed the set times, quitting.
Wherein the bandwidth request transmitting unit includes:
a bandwidth request sending module, configured to check whether a current time belongs to a bandwidth adjustment period when it is detected that a bandwidth used by data traffic of a tunnel exceeds a set bandwidth value, and if so, send a bandwidth request message to a downstream node, where the bandwidth request message includes application bandwidth information, and a request bandwidth corresponding to the application bandwidth information is a maximum value of the data traffic; otherwise, sending a bandwidth request message to the downstream node when the bandwidth adjustment period comes.
Wherein the first bandwidth adjusting unit includes:
a bandwidth adjusting module, configured to circularly send a bandwidth request message to the downstream node; the bandwidth request message comprises updated application bandwidth information, and the request bandwidth corresponding to the updated application bandwidth information is smaller than the request bandwidth corresponding to the last bandwidth request message according to a set proportion.
Further, the apparatus further comprises:
the first link information processing unit is used for inquiring whether the last bandwidth adjustment message is a successful bandwidth adjustment message and has no alarm information when the link condition improvement message sent by the route is received and the current time does not belong to the bandwidth adjustment period, and quitting if the last bandwidth adjustment message is the successful bandwidth adjustment message and has no alarm information; otherwise, sending a bandwidth request message to the downstream node again, wherein the request bandwidth corresponding to the bandwidth request message is the maximum value of the data traffic.
A bandwidth adjustment apparatus comprising:
a bandwidth request receiving unit, configured to receive a bandwidth request message sent by a tunnel head node, and check application bandwidth information in the bandwidth request message;
a second bandwidth adjusting unit, configured to query a current available bandwidth, and if the current available bandwidth is greater than a requested bandwidth corresponding to the bandwidth application information, allocate a bandwidth to the tunnel according to a size of the requested bandwidth, and send a bandwidth adjustment message including a bandwidth adjustment success message to the tunnel head node; otherwise, sending a bandwidth adjustment message containing a bandwidth adjustment failure message to the tunnel head node.
According to the bandwidth adjusting method and device provided by the embodiment of the invention, after the bandwidth adjustment fails, the tunnel head node can recalculate the applied bandwidth for many times, and the bandwidth amount can be automatically reduced for each bandwidth application, so that the bandwidth can be applied, the bandwidth requirement can be met as much as possible, and the bandwidth utilization rate of each downstream node can be improved to the maximum extent.
Drawings
FIG. 1 is a topology diagram of a conventional multi-protocol label switching;
FIG. 2 is a topology diagram of a first type of multi-protocol label switching;
FIG. 3 is a topology diagram of a second type of multi-protocol label switching;
fig. 4 is a schematic flow chart of an implementation of a bandwidth adjusting method according to embodiment 1 of the present invention;
fig. 5 is a schematic flow chart of an implementation of a bandwidth adjustment method according to embodiment 2 of the present invention;
fig. 6 is a schematic structural diagram of a bandwidth adjusting method according to embodiment 3 of the present invention;
fig. 7 is a schematic structural diagram of a bandwidth adjusting method according to embodiment 4 of the present invention.
Detailed Description
The technical solution of the present invention is further described in detail with reference to the drawings and the specific embodiments of the specification.
Example 1
In order to solve the defects of low bandwidth utilization rate and the like in the prior art, the present embodiment provides a bandwidth adjusting method, as shown in fig. 4, the method includes:
step S101: when detecting that the bandwidth used by the data traffic of the tunnel exceeds a set bandwidth value, sending a bandwidth request message to a downstream node; the bandwidth request message comprises application bandwidth information;
data flow is in continuous change, in order to ensure smooth data transmission, the bandwidth required when the data flow is maximum is usually compared with a set bandwidth value, and if the bandwidth does not exceed the set bandwidth value, the data flow is kept unchanged; and if the bandwidth exceeds the set bandwidth value, the tunnel head node sends a bandwidth request message to the downstream node, wherein the bandwidth request message comprises the bandwidth application information.
Step S102: receiving a bandwidth adjustment message corresponding to the bandwidth request message sent by a downstream node, and exiting if the bandwidth adjustment message comprises a bandwidth adjustment success message; if the bandwidth adjustment message contains a bandwidth adjustment failure message and the frequency of sending the bandwidth request message does not exceed the set frequency, updating the bandwidth application information and sending the bandwidth request message containing the updated bandwidth application information to the downstream node; and if the application times exceed the set times, quitting. Wherein the bandwidth adjustment message is sent by the downstream node in response to the received bandwidth request message.
The tunnel head node may provide bandwidth for a plurality of downstream nodes at the same time, and the adjustable bandwidth value of the tunnel head node is also fixed, so that when a bandwidth request needs to be issued to a plurality of downstream nodes, or other downstream nodes are allocated with bandwidth before, the available bandwidth of the tunnel head node may be very small. There are thus two cases: when the bandwidth applied to the downstream node is smaller than the available bandwidth of the downstream node, the downstream node allocates bandwidth to the tunnel according to the bandwidth application requirement, and sends a bandwidth adjustment success message to the tunnel head node, and the bandwidth adjustment of the downstream node is successful; when the bandwidth applied by the tunnel head node is greater than the available bandwidth of the downstream node, in order to improve the utilization rate of the bandwidth, the tunnel head node can actively reduce the applied bandwidth and continue to send a bandwidth request message to the downstream node, if the available bandwidth of the downstream node meets the bandwidth request at the moment, the downstream node allocates the corresponding bandwidth to the tunnel and sends a bandwidth adjustment success message to the tunnel head node; otherwise, the tunnel head node continues to reduce the applied bandwidth and sends a bandwidth request message to the downstream node; if the bandwidth adjustment is still unsuccessful after the set number of times, it indicates that the difference between the available bandwidth of the downstream node and the bandwidth applied by the tunnel head node is too large, and the bandwidth utilization rate of the downstream node is already high, so that the bandwidth application can be abandoned.
According to the method, when the application of the tunnel head node to the downstream node bandwidth fails, the tunnel head node reduces the applied bandwidth, and multiple bandwidth applications are carried out, so that the utilization rate of the bandwidth can be improved.
Specifically, step S101 includes:
when detecting that the bandwidth used by the data traffic of the tunnel exceeds a set bandwidth value, checking whether the current time belongs to a bandwidth adjustment period, if so, sending a bandwidth request message to a downstream node, wherein the bandwidth request message comprises application bandwidth information, and in order to ensure the transmission of data, the request bandwidth corresponding to the application bandwidth information is the maximum value of the data traffic; otherwise, sending a bandwidth request message to the downstream node when the bandwidth adjustment period comes.
The updating of the application bandwidth information in step S102, sending a bandwidth request message containing the updated application bandwidth information to the downstream node, includes:
circularly sending a bandwidth request message to the downstream node; the bandwidth request message comprises updated application bandwidth information, and the request bandwidth corresponding to the updated application bandwidth information is smaller than the request bandwidth corresponding to the last bandwidth request message according to a set proportion; if the bandwidth adjustment is successful and the used application bandwidth adopts the updated request bandwidth, in order to mark the current bandwidth adjustment success state, the tunnel head node needs to record an alarm message.
In order to improve the utilization rate of the bandwidth as much as possible and simultaneously satisfy the bandwidth application of the tunnel head node, the method of the embodiment applies the bandwidth by circularly sending the bandwidth request message to the downstream node, and the bandwidth request message sent to the downstream node each time is gradually reduced, and the gradually reducing mode can be realized by adopting various methods. For convenience, this embodiment may adopt a reduction method similar to "ladder type", that is, the current requested bandwidth is proportionally smaller than the requested bandwidth corresponding to the last bandwidth request message. The tapering of the bandwidth may also be other methods, as desired.
As can be seen from the above description, the above bandwidth adjustment is performed in the bandwidth adjustment period, and in practice, there is another situation that the adjustment is not successful with the maximum value of the data traffic in the bandwidth adjustment period, and in the time other than the bandwidth adjustment period, some nodes release the bandwidth, so that the bandwidth adjustment is not successful or the tunnel with the alarm information has more available bandwidth. At this time, the tunnel head node will receive the link condition improvement information, and because the current does not belong to the bandwidth adjustment period, the tunnel head node is only allowed to initiate a bandwidth application to the downstream node, if the bandwidth application is unsuccessful, the tunnel head node waits for the next bandwidth adjustment period to perform the above bandwidth application steps, specifically: if the link condition improvement information sent by the route is received and the current moment does not belong to the bandwidth adjustment period, inquiring whether the last bandwidth adjustment message is a bandwidth adjustment success message and no alarm message, and if so, exiting; otherwise, sending a bandwidth request message to the downstream node again, wherein the request bandwidth corresponding to the bandwidth request message is the maximum value of the data traffic.
Example 2
The present embodiment and embodiment 1 belong to the same inventive concept, and the present embodiment provides a bandwidth adjusting method, as shown in fig. 5, the method of the present embodiment includes:
step S201: receiving a bandwidth request message sent by a tunnel head node, and checking application bandwidth information in the bandwidth request message;
in the bandwidth adjustment period, after receiving a bandwidth request message sent by a tunnel head node, a downstream node of the embodiment checks application bandwidth information in the bandwidth request message; the application bandwidth information includes a requested bandwidth of the tunnel head node.
Step S202: inquiring the current available bandwidth, if the current available bandwidth is larger than the request bandwidth corresponding to the application bandwidth information, allocating the bandwidth to the tunnel according to the size of the request bandwidth, and sending a bandwidth adjustment message containing a bandwidth adjustment success message to the tunnel head node; otherwise, sending a bandwidth adjustment message containing a bandwidth adjustment failure message to the tunnel head node.
Example 3
This embodiment is a bandwidth adjusting apparatus proposed in the method of embodiment 1, and as shown in fig. 6, the apparatus of this embodiment includes:
a bandwidth request sending unit 301, configured to send a bandwidth request message to a downstream node when detecting that a bandwidth used by data traffic of a tunnel exceeds a set bandwidth value; the bandwidth request message comprises application bandwidth information;
data flow is in continuous change, in order to ensure smooth data transmission, the bandwidth required when the data flow is maximum is usually compared with a set bandwidth value, and if the bandwidth does not exceed the set bandwidth value, the data flow is kept unchanged; and if the bandwidth exceeds the set bandwidth value, sending a bandwidth request message to the downstream node, wherein the bandwidth request message comprises a bandwidth application message.
A first bandwidth adjusting unit 302, configured to receive a bandwidth adjustment message corresponding to the bandwidth request message sent by a downstream node, and exit if the bandwidth adjustment message includes a bandwidth adjustment success message; if the bandwidth adjustment message contains a bandwidth adjustment failure message and the frequency of sending the bandwidth request message does not exceed the set frequency, updating the bandwidth application information and sending the bandwidth request message containing the updated bandwidth application information to the downstream node; and if the application times exceed the set times, quitting.
The tunnel head node may provide bandwidth for a plurality of downstream nodes at the same time, and the adjustable bandwidth value of the tunnel head node is also fixed, so that when a bandwidth request needs to be issued to a plurality of downstream nodes, or other downstream nodes are allocated with bandwidth before, the available bandwidth of the tunnel head node may be very small. There are thus two cases: when the bandwidth applied to the downstream node is smaller than the available bandwidth of the downstream node, the downstream node allocates bandwidth to the tunnel according to the bandwidth application requirement, and sends a bandwidth adjustment success message to the tunnel head node, so that the bandwidth adjustment is successful; when the bandwidth applied by the tunnel head node is greater than the available bandwidth of the downstream node, in order to improve the utilization rate of the bandwidth, the tunnel head node can actively reduce the applied bandwidth and continue to send a bandwidth request message to the downstream node, if the available bandwidth of the downstream node meets the bandwidth request at the moment, the downstream node allocates the corresponding bandwidth to the tunnel and sends a bandwidth adjustment success message to the tunnel head node; otherwise, the tunnel head node continues to reduce the applied bandwidth and sends a bandwidth request message to the downstream node; if the bandwidth adjustment is still unsuccessful after the set number of times, it indicates that the difference between the available bandwidth of the node passing through the tunnel and the bandwidth applied by the tunnel head node is too large, and the bandwidth utilization rate of the node is already high, so that the bandwidth application can be abandoned. (the tunnel head node is also responsible for allocating bandwidth to the tunnel, not just downstream nodes, e.g. port fei in FIG. 1)
Specifically, the bandwidth request sending unit 301 includes: the bandwidth request sending module is used for checking whether the current time belongs to a bandwidth adjustment period or not when detecting that the bandwidth used by the data traffic of the tunnel exceeds a set bandwidth value, if so, sending a bandwidth request message to a downstream node, wherein the bandwidth request message comprises application bandwidth information, and in order to ensure the transmission of data, the request bandwidth corresponding to the application bandwidth information is the maximum value of the data traffic; otherwise, sending a bandwidth request message to the downstream node when the bandwidth adjustment period comes.
The first bandwidth adjustment unit 302 includes: a bandwidth adjusting module, configured to circularly send a bandwidth request message to the downstream node; the bandwidth request message comprises updated application bandwidth information, and the request bandwidth corresponding to the updated application bandwidth information is smaller than the request bandwidth corresponding to the last bandwidth request message according to a set proportion.
As can be seen from the above description, the above bandwidth adjustment is performed in the bandwidth adjustment period, and in practice, there is another situation that the adjustment is not successful with the maximum value of the data traffic in the bandwidth adjustment period, and in the time other than the bandwidth adjustment period, some nodes release the bandwidth, so that the bandwidth adjustment is not successful or the tunnel with the alarm information has more available bandwidth. At this time, the tunnel head node will receive the link condition improvement information, and because the current does not belong to the bandwidth adjustment period, the tunnel head node is only allowed to initiate a bandwidth application to the downstream node, and if the bandwidth application is unsuccessful, the tunnel head node waits for the next bandwidth adjustment period to perform the above bandwidth application steps. Thus, the apparatus further comprises: a first link information processing unit 303, configured to, when receiving link condition improvement information sent by a route and a current time does not belong to a bandwidth adjustment period, query whether the last bandwidth adjustment message is a bandwidth adjustment success message and has no alarm information, and if yes, exit; otherwise, sending a bandwidth request message to the downstream node again, wherein the request bandwidth corresponding to the bandwidth request message is the maximum value of the data traffic.
Example 4
This embodiment is a bandwidth adjusting apparatus proposed in the method of embodiment 2, and as shown in fig. 7, the apparatus of this embodiment includes:
a bandwidth request receiving unit 401, configured to receive a bandwidth request message sent by a tunnel head node, and check bandwidth application information in the bandwidth request message;
a second bandwidth adjusting unit 402, configured to query a current available bandwidth, if the current available bandwidth is greater than a requested bandwidth corresponding to the bandwidth application information, allocate a bandwidth to the tunnel according to the size of the requested bandwidth, and send a bandwidth adjustment message including a bandwidth adjustment success message to the tunnel head node; otherwise, sending a bandwidth adjustment message containing a bandwidth adjustment failure message to the tunnel head node.
Example 5
The present embodiment describes the present invention in detail through an actual scenario.
To facilitate an understanding of the following schemes, the following list is used in this example:
req _ bw: calculating an expected bandwidth according to the highest sampling bandwidth of the actual flow;
n: when the application frequency (bandwidth adjustment period) is up, the total times of automatic bandwidth adjustment application can be carried out, and when the best-effort automatic bandwidth adjustment function is not configured, the default value of N is 1;
m: the device is used for controlling and calculating the application bandwidth, the initial value is 0, and the maximum value is N-1;
d: percentage of bandwidth degradation per application;
old _ bw: the bandwidth configured on the original tunnel, which corresponds to the node, can be understood as the bandwidth on the node;
des _ req _ bw: and adjusting the bandwidth of the application, namely the degraded expected bandwidth, according to the value calculated by the expected bandwidth Req _ bw.
The steps of this embodiment include:
step A: when the bandwidth used by the data flow exceeds a set bandwidth value, the tunnel head node sends a bandwidth request message to a downstream node; the bandwidth request message includes information of applying for bandwidth.
And B: if the available bandwidth of the node where the tunnel passes can meet the bandwidth application requirement of the tunnel head node, allocating the applied bandwidth to the tunnel, returning a bandwidth adjustment success message to the tunnel head node, determining whether to alarm according to whether the application is the first application (M is 0), and printing related information; if the available bandwidth of the node where the tunnel passes does not meet the bandwidth application requirement of the tunnel head node, the adjustment is unsuccessful, the sending times of the bandwidth request message is judged to exceed the set times (M is equal to N-1), and if the bandwidth request message reaches the set times, a bandwidth adjustment failure message is returned to the tunnel head node; if the number of times of sending the bandwidth request message does not exceed the set number of times, calculating the application bandwidth according to the expected bandwidth (request bandwidth) in the application bandwidth information: the formula is as follows:
Des_req_bw=Req_bw×(1-M×D%)
here, the Des _ req _ bw is ensured to be larger than the Old _ bw to apply for automatic bandwidth adjustment, the step B is entered, otherwise, failure is returned; (the first calculated value is Req _ bw);
the method of this embodiment is illustrated by way of example in fig. 1:
te _ tunnel 1: the original configured bandwidth is 30 megabits, and the allocable bandwidth across egress interfaces fei1, fei2, and fei3 is 100 megabits, 80 megabits, and 80 megabits, respectively;
te _ tunnel 2: the original configured bandwidth on the tunnel is 20 megabits, and the allocatable bandwidth of the outgoing interfaces fei1, fei4 and fei5 through which it passes is 100 megabits, 80 megabits and 80 megabits, respectively;
te _ tunnel1 and Te _ tunnel2 share one egress interface fei 1.
When the data traffic of Te _ tunnel1 and Te _ tunnel2 changes, the bandwidth of Te _ tunnel1 and Te _ tunnel2 needs to be adjusted:
te _ tunnel 1: if the highest sampling bandwidth reaches 50 million and is prior to Te _ tunnel2 to perform automatic bandwidth adjustment, and after the adjustment is successful, the bandwidth is adjusted to 50 million;
te _ tunnel 2: if the highest sampling bandwidth reaches 60M, the original bandwidth is 20M, and 40M is needed, and during adjustment, it is found that fei1 ports are only distributed with 30M, and the bandwidth requirement is not met, and the adjustment fails.
At this time, Te _ tunnel2 is configured with the degradation percentage of the application bandwidth being 10% (D ═ 10), and the adjustable number of times is set to 3(N ═ 3). The bandwidth of the first application is Des _ Req _ bw which is 60 million Req _ bw, 40 million bandwidth is needed after the original 20 million bandwidth is subtracted, and fei1 ports only have 30 million bandwidth and cannot be adjusted successfully.
Following the second attempt, Des _ Req _ bw (1-10%) 60 × 0.9 × 54 megabytes still requires 34 megabytes, still greater than fei1 credits of available bandwidth, and cannot be successfully accommodated.
And a third attempt is made, the Des _ Req _ bw (1-2 × 10%) is 60 × 0.8 to 48 million, 28 million bandwidth is needed, the bandwidth is less than fei1 ports available, the adjustment is successful, and an alarm message is printed to indicate that the adjustment is successful. After the adjustment is successful, the bandwidth of the tunnel is 48 million, compared with the original 20 million, the lost flow of the tunnel is much less, the residual bandwidth of the tunnel outlet interface is fully utilized, and the waste is reduced.
And when the next time the automatic bandwidth adjustment application frequency is reached, repeating the step A and the step B.
In order to improve the utilization rate of the bandwidth as much as possible, the method of this embodiment further includes:
when some nodes release the bandwidth, the available bandwidth of the node where the tunnel passes is increased, the tunnel head node receives the link condition improvement information, and in order to improve the utilization rate of the bandwidth, the tunnel head node initiates a bandwidth adjustment application again.
Because the current bandwidth does not belong to the bandwidth adjustment period, only allowing the tunnel head node to initiate a bandwidth application to the downstream node, if the bandwidth application is unsuccessful, waiting for the next bandwidth adjustment period and then performing the above bandwidth application steps, specifically: if the link condition improvement information sent by the route is received and the current moment does not belong to the bandwidth adjustment period, inquiring whether the last bandwidth adjustment message is a bandwidth adjustment success message and has no alarm information, and if so, exiting; otherwise, sending a bandwidth request message to the downstream node again, wherein the request bandwidth corresponding to the bandwidth request message is the maximum value of the data traffic.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media capable of storing program codes, such as a removable Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (10)
1. A method of bandwidth adjustment, the method comprising:
when detecting that the bandwidth used by the data traffic of the tunnel exceeds a set bandwidth value, sending a bandwidth request message to a downstream node; the bandwidth request message comprises application bandwidth information;
receiving a bandwidth adjustment message corresponding to the bandwidth request message sent by a downstream node, and exiting if the bandwidth adjustment message comprises a bandwidth adjustment success message; if the bandwidth adjustment message contains a bandwidth adjustment failure message and the frequency of sending the bandwidth request message does not exceed the set frequency, updating the bandwidth application information and sending the bandwidth request message containing the updated bandwidth application information to the downstream node; and if the application times exceed the set times, quitting.
2. The method of claim 1, wherein when detecting that the bandwidth used by the data traffic of the tunnel exceeds a set bandwidth value, sending a bandwidth request message to a downstream node comprises:
when detecting that the bandwidth used by the data traffic of the tunnel exceeds a set bandwidth value, checking whether the current time belongs to a bandwidth adjustment period, if so, sending a bandwidth request message to a downstream node, wherein the bandwidth request message comprises application bandwidth information, and the request bandwidth corresponding to the application bandwidth information is the maximum value of the data traffic; otherwise, sending a bandwidth request message to the downstream node when the bandwidth adjustment period comes.
3. The method of claim 1, wherein the updating the bandwidth application information and sending a bandwidth request message containing the updated bandwidth application information to the downstream node comprises:
circularly sending a bandwidth request message to the downstream node; the bandwidth request message comprises updated application bandwidth information, and the request bandwidth corresponding to the updated application bandwidth information is smaller than the request bandwidth corresponding to the last bandwidth request message according to a set proportion.
4. The method of claim 1, further comprising:
if the link condition improvement information sent by the route is received and the current moment does not belong to the bandwidth adjustment period, inquiring whether the last bandwidth adjustment message is a bandwidth adjustment success message and has no alarm information, and if so, exiting; otherwise, sending a bandwidth request message to the downstream node again, wherein the request bandwidth corresponding to the bandwidth request message is the maximum value of the data traffic.
5. A method of bandwidth adjustment, the method comprising:
receiving a bandwidth request message sent by a tunnel head node, and checking application bandwidth information in the bandwidth request message;
inquiring the current available bandwidth, if the current available bandwidth is larger than the request bandwidth corresponding to the application bandwidth information, allocating the bandwidth to the tunnel according to the size of the request bandwidth, and sending a bandwidth adjustment message containing a bandwidth adjustment success message to the tunnel head node, and if the tunnel head node receives the bandwidth adjustment success message, exiting; otherwise, sending a bandwidth adjustment message containing a bandwidth adjustment failure message to the tunnel head node, receiving the bandwidth adjustment failure message by the tunnel head node, updating the application bandwidth information if the frequency of sending the bandwidth request information by the tunnel head node does not exceed the set frequency, and sending the bandwidth request information containing the updated application bandwidth information to a downstream node; and if the application times exceed the set times, quitting.
6. A bandwidth adjustment apparatus, the apparatus comprising:
a bandwidth request sending unit, configured to send a bandwidth request message to a downstream node when detecting that a bandwidth used by data traffic of a tunnel exceeds a set bandwidth value; the bandwidth request message comprises application bandwidth information;
a first bandwidth adjusting unit, configured to receive a bandwidth adjusting message corresponding to the bandwidth request message sent by a downstream node, and exit if the bandwidth adjusting message includes a bandwidth adjusting success message; if the bandwidth adjustment message contains a bandwidth adjustment failure message and the frequency of sending the bandwidth request message does not exceed the set frequency, updating the bandwidth application information and sending the bandwidth request message containing the updated bandwidth application information to the downstream node; and if the application times exceed the set times, quitting.
7. The apparatus of claim 6, wherein the bandwidth request sending unit comprises:
a bandwidth request sending module, configured to check whether a current time belongs to a bandwidth adjustment period when it is detected that a bandwidth used by data traffic of a tunnel exceeds a set bandwidth value, and if so, send a bandwidth request message to a downstream node, where the bandwidth request message includes application bandwidth information, and a request bandwidth corresponding to the application bandwidth information is a maximum value of the data traffic; otherwise, sending a bandwidth request message to the downstream node when the bandwidth adjustment period comes.
8. The apparatus of claim 6, wherein the first bandwidth adjustment unit comprises:
a bandwidth adjusting module, configured to circularly send a bandwidth request message to the downstream node; the bandwidth request message comprises updated application bandwidth information, and the request bandwidth corresponding to the updated application bandwidth information is smaller than the request bandwidth corresponding to the last bandwidth request message according to a set proportion.
9. The apparatus of claim 6, further comprising:
the first link information processing unit is used for inquiring whether the last bandwidth adjustment message is a successful bandwidth adjustment message and has no alarm information when the link condition improvement message sent by the route is received and the current time does not belong to the bandwidth adjustment period, and quitting if the last bandwidth adjustment message is the successful bandwidth adjustment message and has no alarm information; otherwise, sending a bandwidth request message to the downstream node again, wherein the request bandwidth corresponding to the bandwidth request message is the maximum value of the data traffic.
10. A bandwidth adjustment apparatus, the apparatus comprising:
a bandwidth request receiving unit, configured to receive a bandwidth request message sent by a tunnel head node, and check application bandwidth information in the bandwidth request message;
a second bandwidth adjusting unit, configured to query a current available bandwidth, if the current available bandwidth is greater than a requested bandwidth corresponding to the bandwidth application information, allocate a bandwidth to the tunnel according to a size of the requested bandwidth, and send a bandwidth adjustment message including a bandwidth adjustment success message to the tunnel head node, where the tunnel head node receives the bandwidth adjustment success message and exits; otherwise, sending a bandwidth adjustment message containing a bandwidth adjustment failure message to the tunnel head node, receiving the bandwidth adjustment failure message by the tunnel head node, updating the application bandwidth information if the frequency of sending the bandwidth request information by the tunnel head node does not exceed the set frequency, and sending the bandwidth request information containing the updated application bandwidth information to a downstream node; and if the application times exceed the set times, quitting.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410802887.6A CN105763482B (en) | 2014-12-19 | 2014-12-19 | Bandwidth adjusting method and device |
PCT/CN2015/074308 WO2016095351A1 (en) | 2014-12-19 | 2015-03-16 | Bandwidth adjustment method, device, and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410802887.6A CN105763482B (en) | 2014-12-19 | 2014-12-19 | Bandwidth adjusting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105763482A CN105763482A (en) | 2016-07-13 |
CN105763482B true CN105763482B (en) | 2020-03-10 |
Family
ID=56125729
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410802887.6A Active CN105763482B (en) | 2014-12-19 | 2014-12-19 | Bandwidth adjusting method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105763482B (en) |
WO (1) | WO2016095351A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107948097B (en) * | 2017-12-01 | 2021-09-14 | 中国联合网络通信集团有限公司 | Bandwidth adjusting method and equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103379551A (en) * | 2012-04-20 | 2013-10-30 | 中兴通讯股份有限公司 | Method and equipment for allocating high-level data link control link bandwidths |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070248007A1 (en) * | 2006-04-25 | 2007-10-25 | Rajan Govinda N | Broadband access network capacity management |
CN100484079C (en) * | 2007-03-31 | 2009-04-29 | 华为技术有限公司 | Method for assuring second-level runner public-network bandwidth, route and system thereof |
CN101686177B (en) * | 2008-09-26 | 2012-05-23 | 华为技术有限公司 | Dynamic bandwidth allocation method, equipment and system of multi-service transport network |
-
2014
- 2014-12-19 CN CN201410802887.6A patent/CN105763482B/en active Active
-
2015
- 2015-03-16 WO PCT/CN2015/074308 patent/WO2016095351A1/en active Application Filing
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103379551A (en) * | 2012-04-20 | 2013-10-30 | 中兴通讯股份有限公司 | Method and equipment for allocating high-level data link control link bandwidths |
Also Published As
Publication number | Publication date |
---|---|
WO2016095351A1 (en) | 2016-06-23 |
CN105763482A (en) | 2016-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9699092B2 (en) | Systems and methods for dynamically adjusting QoS parameters | |
CN110650002B (en) | Method for adjusting PHY in Flexe group, related equipment and storage medium | |
US11785113B2 (en) | Client service transmission method and apparatus | |
CN102143052A (en) | Method, equipment and system for lossless bandwidth | |
CN101316233B (en) | Flow control method and system, bearing layer equipment | |
EP2685758A1 (en) | Method, device and system for scheduling data flow | |
US20060153233A1 (en) | Automated backhaul network control for supporting multiplexed control traffic and bearer traffic in a wireless communication system | |
US20120076154A1 (en) | Method, apparatus and system for adjusting resource delegation in network | |
CN109428780B (en) | Traffic monitoring scheduling method and device, server and storage medium | |
WO2012070127A1 (en) | Communication apparatus | |
CN110896365B (en) | Traffic scheduling method in network node, server and storage medium | |
US10735129B2 (en) | Bandwidth allocation apparatus and method for providing low-latency service in optical network | |
JP2008270898A (en) | Optical subscriber line terminal | |
CN102201966A (en) | Method, device and system for controlling network service data flow | |
CN101282297A (en) | Method and device for regulating bandwidth | |
CN101188554B (en) | A method for dynamically establishing label switching path tunnel and allocating resource | |
EP2220568B1 (en) | Methods and systems for providing efficient provisioning of data flows | |
WO2010095315A1 (en) | Pon system, optical network unit used for same, and method for controlling transmission thereof | |
CN105763482B (en) | Bandwidth adjusting method and device | |
CN101282298A (en) | Method and device for regulating bandwidth | |
CN113542144A (en) | Network equipment resource processing method and device | |
WO2017000478A1 (en) | Method and device for transmitting service data with microwave link | |
JP6603644B2 (en) | Optical concentrator network system and signal transmission method | |
CN104618257A (en) | Traffic control method, optical network unit (ONU) and optical line terminal (OLT) device | |
CN112787944B (en) | Flow control method, apparatus and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |