WO2017036179A1 - 带宽调整方法及装置 - Google Patents

带宽调整方法及装置 Download PDF

Info

Publication number
WO2017036179A1
WO2017036179A1 PCT/CN2016/082355 CN2016082355W WO2017036179A1 WO 2017036179 A1 WO2017036179 A1 WO 2017036179A1 CN 2016082355 W CN2016082355 W CN 2016082355W WO 2017036179 A1 WO2017036179 A1 WO 2017036179A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
bandwidth
state
risk coefficient
determined
Prior art date
Application number
PCT/CN2016/082355
Other languages
English (en)
French (fr)
Inventor
赵佳博
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017036179A1 publication Critical patent/WO2017036179A1/zh

Links

Images

Definitions

  • This document relates to, but is not limited to, the field of communications, and relates to a bandwidth adjustment method and apparatus.
  • a plurality of links are generally deployed between two data communication devices in an IP (Internet Protocol) network to form load balancing.
  • IP Internet Protocol
  • the sum of the bandwidths of the links between the two devices is between the two devices.
  • each link is static load balancing.
  • any link has an intermittent fault or the link state is unstable, A lot of packet loss will occur.
  • the embodiment of the invention provides a bandwidth adjustment method and device, which dynamically adjusts the bandwidth of the link, thereby reducing packet loss.
  • An embodiment of the present invention provides a bandwidth adjustment method, where the method includes:
  • the bandwidth of the link is adjusted according to a preset rule.
  • adjusting the bandwidth of the link according to the preset rule includes:
  • the bandwidth of the link is adjusted to the bandwidth corresponding to the current risk factor.
  • the determining, according to the status of the link, the current risk coefficient of the link includes:
  • Determining the current risk system of the link when it is determined that the state of the link is unstable for the first time The number is the first risk factor and starts the timer;
  • determining that the current risk coefficient of the link is a second risk coefficient; wherein the second risk coefficient is the first risk coefficient plus And a preset risk threshold, where the bandwidth corresponding to the first risk coefficient is greater than the bandwidth corresponding to the second risk coefficient.
  • the method further includes:
  • the method further includes:
  • the detecting the status of the link and obtaining the status information of the link includes:
  • Detecting a state of the link by detecting an optical strength of an interface of the link, and obtaining state information of the link;
  • adjusting the bandwidth of the link according to the preset rule includes:
  • the bandwidth of the link is adjusted according to the preset rule.
  • the method further includes: when the state of the link is determined to be unstable according to the state information of the link, before the bandwidth of the link is adjusted according to a preset rule, the method further includes:
  • the step of adjusting the bandwidth of the link according to the preset rule includes:
  • the link is The bandwidth of the link is adjusted according to a preset rule based on the initial bandwidth.
  • the embodiment of the invention further provides a bandwidth adjustment device, the device comprising:
  • a first obtaining module configured to detect a state of the link, and obtain state information of the link
  • the adjusting module is configured to adjust the bandwidth of the link according to a preset rule when it is determined that the state of the link is unstable according to the state information of the link.
  • the adjusting module includes:
  • Determining a unit configured to determine a current risk coefficient of the link according to a state of the link
  • An adjustment unit configured to adjust a bandwidth of the link to a bandwidth corresponding to a current risk factor.
  • the determining unit includes:
  • a first determining subunit configured to determine that the current risk coefficient of the link is the first risk coefficient and start a timer when determining that the state of the link is unstable for the first time;
  • Determining a subunit configured to determine whether the state of the link is stable within a preset time
  • a second determining subunit configured to determine that the current risk coefficient of the link is a second risk coefficient if it is determined that the state of the link is unstable within a preset time; wherein the second risk factor is The first risk coefficient is added to a preset risk threshold, and the bandwidth corresponding to the first risk coefficient is greater than the bandwidth corresponding to the second risk coefficient.
  • the determining unit further includes:
  • the third determining subunit is configured to determine that the current risk coefficient of the link is the previous risk coefficient if it is determined that the state of the link is stable within a preset time.
  • the device further includes:
  • a processing module configured to: after the adjusting module adjusts a bandwidth of the link according to a preset rule, clear the timer.
  • the first obtaining module is configured to detect a state of the link by detecting an optical strength of an interface of the link, and obtain state information of the link;
  • the adjusting module is configured to determine that the light intensity of the interface of the link is lower than a preset light intensity When the threshold is reached, the bandwidth of the link is adjusted according to a preset rule.
  • the device further includes:
  • a second obtaining module configured to obtain an initial bandwidth of the link based on a setting command of the initial bandwidth of the link, where an initial bandwidth of the link is less than or equal to a physical bandwidth of the link;
  • the adjustment module is configured to adjust a bandwidth of the link according to a preset rule based on an initial bandwidth of the link when determining that the state of the link is unstable according to status information of the link.
  • the embodiment of the invention further provides a computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions, and the computer executable instructions are implemented to implement a bandwidth adjustment method.
  • the embodiment of the present invention obtains the state information of the link by detecting the state of the link.
  • the link is adjusted according to a preset rule. Bandwidth.
  • the foregoing technical solution determines whether the state of the link is stable. If the state of the link is unstable, the bandwidth of the link is adjusted according to a preset rule, for example, the bandwidth of the link is reduced, so that the link is unstable.
  • the link bears less load and increases the bandwidth of the stable link accordingly, thereby reducing the packet loss of network data.
  • FIG. 1 is a schematic flowchart of a bandwidth adjustment method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic flowchart of adjusting bandwidth of the link according to a preset rule when it is determined that the state of the link is unstable according to the state information of the link according to the second embodiment of the present invention
  • FIG. 3 is a schematic flowchart of determining a current risk coefficient of the link according to the state of the link according to Embodiment 2 of the present invention
  • FIG. 4 is a schematic diagram of functional blocks of a bandwidth adjustment apparatus according to Embodiment 3 of the present invention.
  • FIG. 5 is a schematic diagram of a refinement function module of an adjustment module according to Embodiment 3 of the present invention.
  • FIG. 6 is a schematic diagram of a refinement function module of a determining unit according to Embodiment 3 of the present invention.
  • Embodiment 1 is a schematic flowchart of a bandwidth adjustment method according to Embodiment 1 of the present invention.
  • the bandwidth adjustment method includes:
  • Step S10 detecting a state of the link, and obtaining state information of the link.
  • the embodiment of the present invention is mainly applied to a state network that can identify a link, such as an IPV4 network and an MPLS (Multi-Protocol Label Switching) network.
  • a state network that can identify a link
  • MPLS Multi-Protocol Label Switching
  • the bandwidth of the corresponding link is set to be an initial bandwidth of *10%;
  • the bandwidth of the link is set to be restored to an initial bandwidth
  • the user can also set the initial bandwidth of each link through the network management or OAM interface.
  • the initial bandwidth of each link is not greater than the physical bandwidth of the link.
  • the ratio of allocated bandwidth is 4:2:1.
  • the initial bandwidth through link 1 is 4/7
  • the initial bandwidth through link 2 is 2/7
  • the initial bandwidth through link 3 is 1/7.
  • the load distribution ratio can be preset, or it can support user-defined modifications.
  • the initial bandwidth of each link may not be set. If the initial bandwidth of each link is not set, the initial bandwidth of each link is the physical bandwidth of each link.
  • the state of the link is detected in real time, and the current state of the link is obtained.
  • the state information of the link is obtained by detecting the light intensity of the interface of the link.
  • the current state information of the link may also be obtained by other means, such as by sensing the interface state, thereby obtaining state information of the link.
  • Step S20 When it is determined that the state of the link is unstable according to the state information of the link, adjust the bandwidth of the link according to a preset rule.
  • Determining whether the state of the link is stable according to the state information of the link obtained in step S10 includes determining whether the link is faulty.
  • the process returns to step S10 to obtain the state information of the link.
  • the bandwidth of the link is adjusted according to a preset rule.
  • the user sets the initial bandwidth of the link, when it is determined that the state of the link is unstable according to the state information of the link, according to the initial bandwidth of the link, according to the pre-pre
  • the rule adjusts the bandwidth of the link; if the user does not set the initial bandwidth of the link, the bandwidth of the link is adjusted according to a preset rule based on the physical bandwidth of the link. For example, the bandwidth of the link is directly adjusted to a bandwidth of *10%. It can also be adjusted to other bandwidths, and the link with unstable state is less than the bandwidth before adjustment.
  • the user sets the initial bandwidth of the link, when it is determined that the state of the link is unstable according to the state information of the link, according to the initial bandwidth of the link, according to the pre-pre
  • the rule adjusts the bandwidth of the link and adjusts the bandwidth of the link with stable state so that the entire bandwidth remains unchanged. For example, the bandwidth of a state-stable link is adjusted to an initial bandwidth of *110%. It is also possible not to adjust the bandwidth of a link that is stable in state. It is also possible to directly adjust the bandwidth of the link with unstable state to 0. For example, when it is determined that the link is faulty, it is adjusted to the initial bandwidth after determining that the state of the link is stable.
  • the embodiment of the present invention obtains the state information of the link by detecting the state of the link.
  • the link is adjusted according to a preset rule. Bandwidth.
  • the above technical solution determines whether the state of the link is stable, if If the state of the link is unstable, the bandwidth of the link is adjusted according to a preset rule, for example, the bandwidth of the link is reduced, so that the unstable link bears less load and the bandwidth of the stable link is increased accordingly. Reduce the packet loss of network data.
  • FIG. 2 is a flowchart of adjusting bandwidth of the link according to a preset rule when it is determined that the state of the link is unstable according to the state information of the link according to the second embodiment of the present invention. schematic diagram.
  • step S20 may include:
  • Step S21 determining a current risk coefficient of the link according to the state of the link
  • the user may also preset a corresponding risk coefficient and a bandwidth corresponding to the risk coefficient according to the state of the link through a network management or an OAM interface in the network deployment, for example, according to a state preset of the link.
  • the risk factor is 0-3, where 0 is the initial value, ie the physical bandwidth of each link or the initial bandwidth set by the user.
  • the bandwidth of the link is the initial bandwidth *60%.
  • the risk coefficient may not be set. For example, when it is determined that the state of the link changes, the bandwidth of the link is set to be an initial bandwidth of *10% or 0.
  • the bandwidth of the link may be set within a preset time, if the state of the link is stable, the bandwidth of the link is set to be restored to an initial bandwidth or set to a previous bandwidth. In this embodiment, if the state of the link is stable within a preset time, the bandwidth of the link is set to the previous bandwidth.
  • the risk coefficient corresponding to the state of the initial bandwidth of the link may be set to 0, and when the state of the link is unstable, for example, the number of times the state of the link is changed may be determined.
  • the state of the link is set to 1, 2 or 3. If the number of times the state of the link changes is more frequent, the higher the risk factor of the link is set. If the status of the link is determined Stable, the bandwidth of the link is not set.
  • Step S22 adjusting the bandwidth of the link to a bandwidth corresponding to the current risk coefficient.
  • step S21 Determining, according to step S21, the current risk coefficient of the link, correspondingly adjusting the bandwidth corresponding to the current risk coefficient of the link, for example, when the current risk coefficient of the link is 1, the bandwidth of the link is Adjust to the bandwidth corresponding to the risk factor 1, for example, adjust the bandwidth of the link to the initial bandwidth *80%.
  • FIG. 3 is a schematic flowchart of determining a current risk coefficient of the link according to a state of the link according to Embodiment 2 of the present invention.
  • step S21 may include:
  • Step S211 when it is determined that the state of the link is unstable for the first time, determining that the current risk coefficient of the link is the first risk coefficient, and starting a timer;
  • the user may preset the corresponding risk coefficient and the bandwidth corresponding to the risk coefficient according to the state of the link through the network management or the OAM interface in the network deployment, and may set only the first risk coefficient, and the second risk.
  • the coefficient is the first risk coefficient plus a preset risk threshold, and the bandwidth corresponding to the first risk coefficient is greater than the bandwidth corresponding to the second risk coefficient.
  • the preset risk threshold is 1.
  • the link when it is determined that the state of the link is unstable for the first time, determining that the current risk coefficient of the link is the first risk coefficient, and simultaneously starting the timer .
  • the risk coefficient of the link may be set to the zeroth risk coefficient, or the risk coefficient may not be set, and the corresponding risk coefficient is 0.
  • the bandwidth of the link cannot be set, that is, the bandwidth of the link is an initial value.
  • the bandwidth of the risk coefficient is set correspondingly.
  • the bandwidth of the link is set to be an initial bandwidth of 80% in this embodiment.
  • the timer is cleared when the state of the link is unstable or the bandwidth of the link is adjusted.
  • the timer can also be started all the time, and the first time is determined.
  • the timer is cleared and retimed.
  • Step S212 determining whether the state of the link is stable within a preset time
  • step S211 when the risk coefficient of the link is the first risk coefficient, it is determined whether the state of the link is stable within a preset time, for example, determining whether the state of the link changes again. If the change occurs, the degree of instability of the link is considered to be large; or by detecting the current light intensity of the link interface, if the current light intensity of the link interface is lower than a preset threshold, it may also be considered The degree of instability of the link becomes large.
  • the state of the link is determined not to be determined. stable. For example, if it is determined that the state of the link changes within 3 minutes, it is determined that the current risk coefficient of the link is the second risk coefficient. Assume that the second risk factor is 2, and the bandwidth of the link is set to be the initial bandwidth *70%.
  • the risk coefficient of the link is 2, and it is determined that the state of the link changes again within a preset time, it is determined that the current risk coefficient of the link is 3, and so on, if the link The risk factor is 3, and it is determined that the state of the link changes again within a preset time, and the bandwidth of the link can be directly adjusted to be 0.
  • the method may further include:
  • Step S214 if it is determined that the state of the link does not change within a preset time, it is determined that the current risk coefficient of the link is the previous risk coefficient.
  • the link state is stable.
  • the current risk factor of the link is set to the previous risk factor. For example, when the current risk coefficient of the link is the second risk coefficient, if it is determined that the state of the link is stable within the first preset time, the current risk coefficient of the link is set to be the first. Risk factor; if it is determined in the second preset time that the state of the link has not changed, the current risk coefficient of the link is set as the initial risk coefficient, that is, the risk coefficient is 0, and corresponding Adjust the bandwidth of the link.
  • the state of the link is determined to determine whether the current state of the link is normal.
  • the state of the link may include a down state and an up state, and is normal when the state of the link is in an up state. That is, it can be determined whether the current state of the link is up. If the current state of the link is up, the current risk coefficient of the link is the previous risk coefficient.
  • FIG. 4 is a schematic diagram of functional modules of a bandwidth adjustment apparatus according to Embodiment 3 of the present invention.
  • the bandwidth adjustment apparatus includes:
  • the first obtaining module 10 is configured to detect a state of the link and obtain state information of the link.
  • the embodiments of the present invention are mainly applied to a state network that can identify a link, such as an IPV4 network and an MPLS network. You can set load balancing parameters through the NMS or OAM interface in network deployment, including:
  • the bandwidth of the corresponding link is set to be an initial bandwidth of *10%;
  • the bandwidth of the link is set to be restored to the initial bandwidth.
  • the apparatus may further include a second obtaining module (not shown) configured to obtain an initial bandwidth of the link based on a setting command of the initial bandwidth of the link, where the link is The initial bandwidth is less than or equal to the physical bandwidth of the link.
  • a second obtaining module (not shown) configured to obtain an initial bandwidth of the link based on a setting command of the initial bandwidth of the link, where the link is The initial bandwidth is less than or equal to the physical bandwidth of the link.
  • the initial bandwidth of each link is not greater than the physical bandwidth of the link. You can set the initial bandwidth of each link according to the actual situation. For example, if there are three links, the physical bandwidth of the three links is 1G, but link 1 is more stable than link 2, and link 2 is more stable than link 3. According to the physical bandwidth and stability of the three links, The ratio of allocated bandwidth is 4:2:1. When the traffic comes, the initial bandwidth through link 1 is 4/7, and the initial bandwidth through link 2 is 2/7. The initial bandwidth is 1/7.
  • the load distribution ratio can be preset, or it can support user-defined modifications. In the implementation of the present invention, the initial bandwidth of each link may not be set. If the initial bandwidth of each link is not set, the initial bandwidth of each link is the physical bandwidth of each link.
  • the embodiment of the present invention detects the state of the link in real time, and obtains the current state of the link.
  • the first obtaining module 10 obtains the state information of the link by detecting the light intensity of the interface of the link.
  • the current state information of the link may also be obtained by other means, such as by sensing the interface state, thereby obtaining state information of the link.
  • the adjusting module 20 is configured to adjust the bandwidth of the link according to a preset rule when it is determined that the state of the link is unstable according to the state information of the link.
  • Determining whether the status of the link is stable according to the status information of the link obtained by the first obtaining module 10 includes determining whether the link is faulty.
  • determining The state of the link is unstable.
  • the status of the link may be determined by other methods, such as comparing the current state of the obtained link with the previously obtained state. If the two states are different, the state of the link is considered to be changed. That is, it is determined that the state of the link is unstable. If it is determined that the state of the link is stable, the first obtaining module 10 regains the state information of the link.
  • the bandwidth of the link is adjusted according to a preset rule.
  • the user sets the initial bandwidth of the link, when it is determined that the state of the link is unstable according to the state information of the link, according to the initial bandwidth of the link, according to the pre-pre
  • the rule adjusts the bandwidth of the link; if the user does not set the initial bandwidth of the link, the bandwidth of the link is adjusted according to a preset rule based on the physical bandwidth of the link. For example, the bandwidth of the link is directly adjusted to an initial bandwidth of *10%. It can also be adjusted to other bandwidths, and the link with unstable state is less than the bandwidth before adjustment.
  • the user sets the initial bandwidth of the link, when it is determined that the state of the link is unstable according to the state information of the link, according to the initial bandwidth of the link, according to the pre-pre
  • the rule adjusts the bandwidth of the link and adjusts the bandwidth of the link with stable state so that the entire bandwidth remains unchanged. For example, the bandwidth of a state-stable link is adjusted to an initial bandwidth of *110%. and also The bandwidth of a state-stable link may not be adjusted. It is also possible to directly adjust the bandwidth of the link with unstable state to 0. For example, when it is determined that the link is faulty, it is adjusted to the initial bandwidth after determining that the state of the link is stable.
  • the embodiment of the present invention obtains the state information of the link by detecting the state of the link.
  • the link is adjusted according to a preset rule. Bandwidth.
  • the foregoing technical solution determines whether the state of the link is stable. If the state of the link is unstable, the bandwidth of the link is adjusted according to a preset rule, for example, the bandwidth of the link is reduced, so that the link is unstable. The link bears less load and increases the bandwidth of the stable link accordingly, thereby reducing the packet loss of network data.
  • FIG. 5 is a schematic diagram of a refinement function module of an adjustment module according to Embodiment 3 of the present invention.
  • the adjustment module 20 may include:
  • the determining unit 21 is configured to determine a current risk coefficient of the link according to a state of the link.
  • the user may also preset a corresponding risk coefficient and a bandwidth corresponding to the risk coefficient according to the state of the link through the network management or the OAM interface in the network deployment, for example, preset the corresponding risk according to the state of the link.
  • the coefficient is 0-3, where 0 is the initial value, that is, the physical bandwidth of each link or the initial bandwidth set by the user. Setting the bandwidth of the link according to the risk value, for example, when determining that the risk coefficient of the link is 1, the bandwidth of the link that needs to be adjusted correspondingly is the initial bandwidth *80%; When the risk coefficient of the link is 2, the bandwidth of the link that needs to be adjusted correspondingly is the initial bandwidth *70%; when it is determined that the risk coefficient of the link is 3, the corresponding setting needs to be adjusted.
  • the bandwidth of the link is the initial bandwidth *60%.
  • the risk coefficient may not be set. For example, when it is determined that the state of the link changes, the bandwidth of the link is set to be an initial bandwidth of *10% or 0. The bandwidth corresponding to the first risk coefficient is greater than the bandwidth corresponding to the second risk coefficient.
  • the bandwidth of the link may be set within a preset time, if the state of the link is stable, the bandwidth of the link is restored to the initial bandwidth or set to the previous bandwidth. In the present embodiment, if the state of the link is stable within the preset time, the bandwidth of the link is set to the previous bandwidth.
  • the risk coefficient corresponding to the state of the initial bandwidth of the link may be set to 0.
  • the state of the link is unstable, for example, determining the number of times the state of the link changes, setting the state of the link to 1, 2, or 3, if the state of the link changes The more frequently, the higher the current risk factor for setting the link. If it is determined that the state of the link is stable, the bandwidth of the link is not set.
  • the adjusting unit 22 is configured to adjust the bandwidth of the link to a bandwidth corresponding to the current risk factor.
  • the current risk coefficient of the link correspondingly adjusting the bandwidth corresponding to the current risk coefficient of the link, for example, when the current risk coefficient of the link is 1, the link is The bandwidth is adjusted to the bandwidth corresponding to the risk factor 1, for example, the bandwidth of the link is adjusted to an initial bandwidth of *80%.
  • FIG. 6 is a schematic diagram of a refinement function module of a determining unit according to Embodiment 3 of the present invention.
  • the determining unit 21 may include:
  • the first determining subunit 211 is configured to determine that the current risk coefficient of the link is the first risk coefficient and start the timer when it is determined that the state of the link is unstable for the first time.
  • the user may preset a corresponding risk coefficient and a bandwidth corresponding to the risk coefficient according to the state of the link through the network management or the OAM interface in the network deployment, and may only set the first risk coefficient, and the second risk coefficient. Adding a preset risk threshold to the first risk coefficient, where the bandwidth corresponding to the first risk coefficient is greater than the bandwidth corresponding to the second risk coefficient. Assume that the preset risk threshold is 1.
  • the link when it is determined that the state of the link is unstable for the first time, determining that the current risk coefficient of the link is the first risk coefficient, and simultaneously starting the timer .
  • the risk coefficient of the link may be set to the zeroth risk coefficient, or the risk coefficient may not be set, and the corresponding risk coefficient is 0.
  • the bandwidth of the link cannot be set, that is, the bandwidth of the link is an initial value.
  • the bandwidth of the risk coefficient is set correspondingly, for example, In the example, the bandwidth of the link is set to be an initial bandwidth of *80%.
  • the apparatus further includes: a processing module (not shown) configured to clear the timer when the state of the link is unstable or the bandwidth of the link is adjusted.
  • a processing module (not shown) configured to clear the timer when the state of the link is unstable or the bandwidth of the link is adjusted.
  • the timer is cleared when the state of the link changes.
  • timer all the time, and when it is judged that the state of the link is unstable for the first time, the timer is cleared and re-timed.
  • the determining subunit 212 is configured to determine whether the state of the link is stable within a preset time.
  • the timer that is started by the first determining subunit 211 when the risk coefficient of the link is the first risk coefficient, it is determined whether the state of the link is stable within a preset time, for example, determining the state of the link. Whether the change occurs again, if the change occurs, the degree of instability of the link is considered to be large; or by detecting the current light intensity of the link interface, if the current light intensity of the link interface changes again, It can be considered that the degree of instability of the link becomes large.
  • the second determining sub-unit 213 is configured to determine that the current risk coefficient of the link is a second risk coefficient, if the state of the link is determined to be unstable within a preset time, where the first risk coefficient corresponds to The bandwidth is greater than the bandwidth corresponding to the second risk factor.
  • the state of the link is determined. Unstable, for example, determining that the state of the link changes within 3 minutes, determining that the current risk factor of the link is the second risk factor. Assume that the second risk factor is 2, and the bandwidth of the link is set to be the initial bandwidth *70%.
  • the risk coefficient of the link is 2, and it is determined that the state of the link changes again within a preset time, it is determined that the current risk coefficient of the link is 3, and so on, if the link The risk factor is 3, and it is determined that the state of the link changes again within a preset time, and the bandwidth of the link can be directly adjusted to be 0.
  • the third determining subunit 214 is configured to determine that the current risk coefficient of the link is the previous risk coefficient if it is determined that the state of the link has not changed within a preset time.
  • the judging unit 212 if it is determined that the state of the link does not change within a preset time or the current light intensity of the link interface is equal to the preset light intensity threshold, the link state is stable. , the current risk factor of the link is set to the previous risk factor. For example, when the current risk coefficient of the link is the second risk coefficient, if it is determined that the state of the link is stable within the first preset time, the current risk coefficient of the link is set to be the first. Risk factor; if it is determined in the second preset time that the state of the link has not changed, the current risk coefficient of the link is set as the initial risk coefficient, that is, the risk coefficient is 0, and corresponding Adjust the bandwidth of the link.
  • the state of the link may be determined to determine whether the current state of the link is normal.
  • the state of the link includes a down state and an up state, and is normal when the state of the link is in an up state. That is, it can be determined whether the current state of the link is up. If the current state of the link is up, the current risk coefficient of the link is the previous risk coefficient.
  • the embodiment of the invention further provides a computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions, and the computer executable instructions are implemented to implement a bandwidth adjustment method.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • This application is not limited to any specific combination of hardware and software.
  • the above technical solution can reduce packet loss of network data.

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种带宽调整方法,包括:检测链路的状态,获得所述链路的状态信息;当根据所述链路的状态信息判断到所述链路的状态不稳定时,根据预置规则调整所述链路的带宽。上述技术方案通过判断所述链路的状态是否稳定,如果所述链路的状态不稳定,则根据预置规则调整所述链路的带宽,比如减少所述链路的带宽,使得不稳定的链路承担的负载少,并相应增加稳定链路的带宽,从而实现减少网络数据的丢包现象。

Description

带宽调整方法及装置 技术领域
本文涉及但不限于通信领域,涉及一种带宽调整方法及装置。
背景技术
在IP(Internet Protocol,网络互连协议)网络中的两台数据通信设备之间一般会部署多条链路形成负载均衡,两台设备之间的链路的带宽的总和为两台设备之间可以承担的最大流量值。
目前,在两台数据通信设备之间的每条链路承载的带宽是固定的,并且每条链路为静态负载均衡,当任一条链路出现间隔性的故障或链路状态不稳定时,就会产生大量的丢包。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提出一种带宽调整方法及装置,实现了动态调整链路的带宽,从而减少丢包。
本发明实施例提供一种带宽调整方法,所述方法包括:
检测链路的状态,获得所述链路的状态信息;
当根据所述链路的状态信息判断到所述链路的状态不稳定时,根据预置规则调整所述链路的带宽。
可选地,所述当根据所述链路的状态信息判断到所述链路的状态不稳定时,根据预置规则调整所述链路的带宽包括:
根据所述链路的状态确定所述链路当前的风险系数;
将所述链路的带宽调整为与当前的风险系数对应的带宽。
可选地,所述根据所述链路的状态确定所述链路当前的风险系数包括:
在第一次判断到所述链路的状态不稳定时,确定所述链路当前的风险系 数为第一风险系数,并启动计时器;
在预置时间内判断所述链路的状态是否稳定;
如果在预置时间内判断到所述链路的状态不稳定,则确定所述链路当前的风险系数为第二风险系数;其中,所述第二风险系数为所述第一风险系数加上预设风险阈值,所述第一风险系数对应的带宽大于所述第二风险系数对应的带宽。
可选地,所述在预置时间内判断所述链路的状态是否稳定之后,所述方法还包括:
如果在预置时间内判断到所述链路的状态稳定,则确定所述链路当前的风险系数为前一次的风险系数。
可选地,所述当根据所述链路的状态信息判断到所述链路的状态不稳定时,根据预置规则调整所述链路的带宽之后,所述方法还包括:
将所述计时器清零。
可选地,所述检测链路的状态,获得所述链路的状态信息包括:
通过检测所述链路的接口的光强度检测所述链路的状态,获得所述链路的状态信息;
所述当根据所述链路的状态信息判断到所述链路的状态不稳定时,根据预置规则调整所述链路的带宽包括:
当判断到所述链路的接口的光强度低于预设光强度阈值时,根据所述预置规则调整所述链路的带宽。
可选地,所述当根据所述链路的状态信息判断所述链路的状态不稳定时,根据预置规则调整所述链路的带宽之前,所述方法还包括:
基于用户对所述链路初始带宽的设置命令,获得所述链路的初始带宽;其中,所述链路的初始带宽小于或等于所述链路的物理带宽;
当根据所述链路的状态信息判断所述链路的状态不稳定时,根据预置规则调整所述链路的带宽的步骤包括:
当根据所述链路的状态信息判断所述链路的状态不稳定时,在所述链路 的初始带宽的基础上根据预置规则调整所述链路的带宽。
本发明实施例还提供一种带宽调整装置,所述装置包括:
第一获得模块,设置为检测链路的状态,获得所述链路的状态信息;
调整模块,设置为当根据所述链路的状态信息判断所述链路的状态不稳定时,根据预置规则调整所述链路的带宽。
可选地,所述调整模块包括:
确定单元,设置为根据所述链路的状态确定所述链路当前的风险系数;
调整单元,设置为将所述链路的带宽调整为与当前的风险系数对应的带宽。
可选地,所述确定单元包括:
第一确定子单元,设置为在第一次判断到所述链路的状态不稳定时,确定所述链路当前的风险系数为第一风险系数,并启动计时器;
判断子单元,设置为在预置时间内判断所述链路的状态是否稳定;
第二确定子单元,设置为如果在预置时间内判断到所述链路的状态不稳定,则确定所述链路当前的风险系数为第二风险系数;其中,所述第二风险系数为所述第一风险系数加上预设风险阈值,所述第一风险系数对应的带宽大于所述第二风险系数对应的带宽。
可选地,所述确定单元还包括:
第三确定子单元,设置为如果在预置时间内判断到所述链路的状态稳定,则确定所述链路当前的风险系数为前一次的风险系数。
可选地,所述装置还包括:
处理模块,设置为所述调整模块根据预置规则调整所述链路的带宽之后,将所述计时器清零。
可选地,所述第一获得模块是设置为通过检测所述链路的接口的光强度检测所述链路的状态,获得所述链路的状态信息;
所述调整模块是设置为当判断到所述链路的接口的光强度低于预设光强 度阈值时,根据预置规则调整所述链路的带宽。
可选地,所述装置还包括:
第二获得模块,设置为基于用户对所述链路初始带宽的设置命令,获得所述链路的初始带宽,其中,所述链路的初始带宽小于或等于所述链路的物理带宽;
所述调整模块是设置为当根据所述链路的状态信息判断所述链路的状态不稳定时,在所述链路的初始带宽的基础上根据预置规则调整所述链路的带宽。
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行时实现带宽调整方法。
本发明实施例通过检测链路的状态,获得所述链路的状态信息;当根据所述链路的状态信息判断到所述链路的状态不稳定时,根据预置规则调整所述链路的带宽。上述技术方案通过判断所述链路的状态是否稳定,如果所述链路的状态不稳定,则根据预置规则调整所述链路的带宽,比如减少所述链路的带宽,使得不稳定的链路承担的负载少,并相应增加稳定链路的带宽,从而实现减少网络数据的丢包现象。在阅读并理解了附图和详细描述后,可以明白其它方面。
附图说明
图1为本发明实施例一的带宽调整方法的流程示意图;
图2为本发明实施例二中当根据所述链路的状态信息判断到所述链路的状态不稳定时,根据预置规则调整所述链路的带宽的一种流程示意图;
图3为本发明实施例二中根据所述链路的状态确定所述链路当前的风险系数的一种流程示意图;
图4为本发明实施例三的带宽调整装置的功能模块示意图;
图5为本发明实施例三中的调整模块的细化功能模块示意图;
图6为本发明实施例三中的确定单元的细化功能模块示意图。
具体实施方式
下面结合附图和实施例说明本申请的技术方案,应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
实施例一
参照图1,图1为本发明实施例一的带宽调整方法的流程示意图。
在本实施例中,该带宽调整方法包括:
步骤S10,检测链路的状态,获得所述链路的状态信息;
其中,本发明实施例主要应用在可以识别链路的状态网络中,比如IPV4网络和MPLS(Multi-Protocol Label Switching,多协议标签交换)网络。用户可以在网络部署中通过网管或OAM(Operation Administration and Maintenance,网络管理)界面设定负载均衡的相关参数,包括:
根据所述链路的状态预置对应的需要调整的所述链路的带宽。比如在判断到所述链路的状态不稳定时,对应设置所述链路的带宽为初始带宽*10%;
在预置时间内,如果所述链路的状态稳定,则设置所述链路的带宽恢复为初始带宽;
可选地,用户还可以通过网管或OAM界面设置每条链路的初始带宽。需要说明的是,设置的每条链路的初始带宽不大于链路的物理带宽,用户可以根据实际情况,设置每个链路的初始带宽。比如,假设有三条链路,三条链路的物理带宽都是1G的,但链路1比链路2稳定,链路2比链路3稳定,根据三条链路的物理带宽和稳定情况,设置分配带宽比例为4:2:1,流量过来的时候,通过链路1的初始带宽为4/7,通过链路2的初始带宽为2/7,通过链路3的初始带宽为1/7。负载分配比例可以预置,也可以支持用户自定义修改。本发明实施例中也可以不设置每条链路的初始带宽,如果不设置每条链路的初始带宽,则默认每条链路的初始带宽为每条链路的物理带宽。
在本发明实施例中,实时检测所述链路的状态,获得所述链路当前的状态,可选地,通过检测所述链路的接口的光强度获得所述链路的状态信息, 还可以通过其他方式获得所述链路当前的状态信息,比如通过感知接口状态,从而获得所述链路的状态信息。
步骤S20,当根据所述链路的状态信息判断到所述链路的状态不稳定时,根据预置规则调整所述链路的带宽。
根据在步骤S10获得的所述链路的状态信息,判断所述链路的状态是否稳定,包括判断所述链路是否发生故障。
可选地,根据在步骤S10检测的所述链路接口的光强度,与预设光强度阈值进行对比,如果所述链路接口的光强度低于预设光强度阈值,则判定所述链路的状态不稳定。也可以通过其他方式判断所述链路的状态,比如将获得的所述链路当前的状态与前一次获得的状态进行对比,如果两个状态不同,则认为所述链路的状态发生改变,即判定所述链路的状态不稳定。如果判断到所述链路的状态稳定,则返回步骤S10重新获得所述链路的状态信息。
如果判断到所述链路的状态不稳定,则根据预置规则调整所述链路的带宽。可选地,如果用户设置了所述链路的初始带宽,则当根据所述链路的状态信息判断所述链路的状态不稳定时,在所述链路的初始带宽的基础上根据预置规则调整所述链路的带宽;如果用户没有设置所述链路的初始带宽,则在所述链路的物理带宽的基础上根据预置规则调整所述链路的带宽。比如直接将所述链路的带宽调整为带宽*10%。还可以调整为其他的带宽,状态不稳定的链路在调整后的带宽小于其在调节之前的带宽。
可选地,如果用户设置了所述链路的初始带宽,则当根据所述链路的状态信息判断所述链路的状态不稳定时,在所述链路的初始带宽的基础上根据预置规则调整所述链路的带宽,并相应调整状态稳定的链路的带宽,使得整个带宽保持不变。比如将状态稳定的链路的带宽调整为初始带宽*110%。也可以不调整状态稳定的链路的带宽。还可以将状态不稳定的链路的带宽直接调整为0,比如当判断到链路发生故障时,在判断到该链路的状态稳定后再调整为初始带宽。
本发明实施例通过检测链路的状态,获得所述链路的状态信息;当根据所述链路的状态信息判断到所述链路的状态不稳定时,根据预置规则调整所述链路的带宽。上述技术方案通过判断所述链路的状态是否稳定,如果所述 链路的状态不稳定,则根据预置规则调整所述链路的带宽,比如减少所述链路的带宽,使得不稳定的链路承担的负载少,并相应增加稳定链路的带宽,从而实现减少网络数据的丢包现象。
实施例二
参照图2,图2为本发明实施例二中的当根据所述链路的状态信息判断到所述链路的状态不稳定时,根据预置规则调整所述链路的带宽的一种流程示意图。
基于本发明实施例一的带宽调整方法,步骤S20可以包括:
步骤S21,根据所述链路的状态确定所述链路当前的风险系数;
其中,用户还可以在网络部署中通过网管或OAM界面,根据所述链路的状态预置对应的风险系数以及与所述风险系数对应的带宽,比如根据所述链路的状态预置对应的风险系数为0-3,其中0为初始值,即每条链路的物理带宽或者用户设置的初始带宽。根据所述风险系数对应设置所述链路的带宽,比如在判断出所述链路的风险系数为1时,对应设置需要调整的所述链路的带宽为初始带宽*80%;在判断出所述链路的风险系数为2时,对应设置需要调整的所述链路的带宽为初始带宽*70%;在判断到所述链路的风险系数为3时,对应设置需要调整的所述链路的带宽为初始带宽*60%。也可以不设置风险系数,比如在判断出所述链路的状态发生改变时,对应设置所述链路的带宽为初始带宽*10%或者为0。
可选地,可以设置在预置时间内,如果所述链路的状态稳定,则设置所述链路的带宽恢复为初始带宽或设置为上一次的带宽。在本实施例中,在预置时间内,如果所述链路的状态稳定,则将所述链路的带宽设置为上一次的带宽。
在本实施例中,可以将所述链路初始带宽的状态对应的风险系数设为0,在所述链路的状态不稳定时,比如判断所述链路的状态发生改变的次数,将所述链路的状态设置为1、2或者3,如果所述链路的状态发生改变的次数越频繁,则设置所述链路当前的风险系数就越高。如果判断出所述链路的状态 稳定,则不设置所述链路的带宽。
步骤S22,将所述链路的带宽调整为与当前的风险系数对应的带宽。
根据步骤S21确定所述链路当前的风险系数,对应调整为与所述链路当前的风险系数对应的带宽,比如在所述链路当前的风险系数为1时,将所述链路的带宽调整为风险系数1对应的带宽,例如,将所述链路的带宽调整为初始带宽*80%。
参照图3,图3为本发明实施例二中根据所述链路的状态确定所述链路当前的风险系数的一种流程示意图。
基于本发明实施例二的带宽调整方法,步骤S21可以包括:
步骤S211,在第一次判断到所述链路的状态不稳定时,确定所述链路当前的风险系数为第一风险系数,并启动计时器;
其中,用户可以在网络部署中通过网管或OAM界面,根据所述链路的状态预置对应的风险系数以及与所述风险系数对应的带宽,可以只设置第一风险系数,所述第二风险系数为所述第一风险系数加上预设风险阈值,所述第一风险系数对应的带宽大于所述第二风险系数对应的带宽。本实施例中,假设预设风险阈值为1。
可选地,在所述链路开始使用过程中,在第一次判断到所述链路的状态不稳定时,确定所述链路当前的风险系数为第一风险系数,并同时启动计时器。
假设第一风险系数为1。在第一次判断到所述链路的状态不稳定之前,所述链路的风险系数则可以设为第零风险系数,也可以不设置风险系数,对应的风险系数为0,此时所述链路的带宽不可设置,即所述链路的带宽为初始值。
在所述链路的状态不稳定时,对应设置所述风险系数的带宽,比如本实施例中设置所述链路的带宽为初始带宽*80%。可选地,在所述链路的状态不稳定或者调整所述链路的带宽时,将所述计时器清零。
可选地,在本发明实施中,还可以一直启动计时器,在第一次判断出所 述链路的状态不稳定时,将计时器清零,并重新计时。
步骤S212,在预置时间内判断所述链路的状态是否稳定;
根据步骤S211启动的计时器,在所述链路的风险系数为第一风险系数时,判断在预置时间内所述链路的状态是否稳定,比如判断所述链路的状态是否再次发生改变,如果发生改变,则认为所述链路不稳定的程度变大;或者通过检测所述链路接口当前的光强度,如果所述链路接口当前的光强度低于预设阈值,也可以认为所述链路不稳定的程度变大。
步骤S213,如果在预置时间内判断到所述链路的状态不稳定,则确定所述链路当前的风险系数为第二风险系数;
根据步骤S212判断结果,如果在预置时间内判断所述链路的状态发生改变或所述链路接口当前的光强度小于或等于预设光强度阈值,即判断到所述链路的状态不稳定。比如在3分钟内判断所述链路的状态发生改变,则确定所述链路当前的风险系数为第二风险系数。假设第二风险系数为2,并对应设置所述链路的带宽为初始带宽*70%。如果所述链路的风险系数为2,在预置时间内判断所述链路的状态再次发生改变,则确定所述链路当前的风险系数为3,可以以此类推,如果所述链路的风险系数为3,在预置时间内判断所述链路的状态再次发生改变,则可以直接调整所述链路的带宽为0。
可选地,所述方法还可以包括:
步骤S214,如果在预置时间内判断所述链路的状态没有发生改变,则确定所述链路当前的风险系数为前一次的风险系数。
根据步骤S212判断结果,如果在预置时间内判断所述链路的状态没有发生改变或所述链路接口当前的光强度大于预设光强度阈值,则说明所述链路状态稳定了,则将所述链路当前的风险系数设为前一次的风险系数。比如在所述链路当前的风险系数为第二风险系数时,在第一个预置时间内判断出所述链路的状态稳定,则将将所述链路当前的风险系数设为第一风险系数;如果在第二个预置时间内判断到所述链路的状态没有发生改变,则将将所述链路当前的风险系数设为初始的风险系数,即风险系数为0,并相应调整所述链路的带宽。
可选地,如果在预置时间内根据所述链路的状态是否发生改变从而判断所述链路是否稳定,则确定所述链路当前的风险系数为前一次的风险系数之前,还可以对所述链路的状态进行判断,判断所述链路当前的状态是否正常,所述链路的状态可以包括down状态和up状态,在所述链路的状态处于up状态时为正常。即可以判断所述链路当前的状态是否为up状态,如果所述链路当前的状态为up状态,则将所述链路当前的风险系数为前一次的风险系数。
实施例三
参照图4,图4为本发明实施例三的带宽调整装置的功能模块示意图。
在本实施例中,该带宽调整装置包括:
第一获得模块10,设置为检测链路的状态,获得所述链路的状态信息。
其中,本发明实施例主要应用在可以识别链路的状态网络中,比如IPV4网络和MPLS网络。用户可以在网络部署中通过网管或OAM界面设定负载均衡的相关参数,包括:
根据所述链路的状态预置对应的需要调整的所述链路的带宽。比如在判断到所述链路的状态不稳定时,对应设置所述链路的带宽为初始带宽*10%;
在预置时间内,如果所述链路的状态稳定,则设置所述链路的带宽恢复为初始带宽。
可选地,所述装置还可以包括第二获得模块(图未示),设置为基于用户对所述链路初始带宽的设置命令,获得所述链路的初始带宽,其中所述链路的初始带宽小于或等于所述链路的物理带宽。
用户还可以通过网管或OAM界面设置每条链路的初始带宽。需要说明的是,设置的每条链路的初始带宽不大于链路的物理带宽,用户可以根据实际情况,设置每个链路的初始带宽。比如,假设有三条链路,三条链路的物理带宽都是1G的,但链路1比链路2稳定,链路2比链路3稳定,根据三条链路的物理带宽和稳定情况,设置分配带宽比例为4:2:1,流量过来的时候,通过链路1的初始带宽为4/7,通过链路2的初始带宽为2/7,通过链路3的 初始带宽为1/7。负载分配比例可以预置,也可以支持用户自定义修改。本发明实施中也可以不设置每条链路的初始带宽,如果不设置每条链路的初始带宽,则默认每条链路的初始带宽为每条链路的物理带宽。
本发明实施例实时检测所述链路的状态,获得所述链路当前的状态,可选地,第一获得模块10通过检测所述链路的接口的光强度获取所述链路的状态信息,还可以通过其他方式获得所述链路当前的状态信息,比如通过感知接口状态,从而获得所述链路的状态信息。
调整模块20,设置为当根据所述链路的状态信息判断到所述链路的状态不稳定时,根据预置规则调整所述链路的带宽。
根据第一获得模块10获得的所述链路的状态信息,判断所述链路的状态是否稳定,包括判断所述链路是否发生故障。
可选地,根据第一获得模块10检测的所述链路接口的光强度,与预设光强度阈值进行对比,如果所述链路接口的光强度低于预设光强度阈值,则判断所述链路的状态不稳定。也可以通过其他方式判断所述链路的状态,比如将获得的所述链路当前的状态与前一次获得的状态进行对比,如果两个状态不同,则认为所述链路的状态发生改变,即判定所述链路的状态不稳定。如果判断所述链路的状态稳定,则第一获得模块10重新获得所述链路的状态信息。
如果判断到所述链路的状态不稳定,则根据预置规则调整所述链路的带宽。可选地,如果用户设置了所述链路的初始带宽,则当根据所述链路的状态信息判断所述链路的状态不稳定时,在所述链路的初始带宽的基础上根据预置规则调整所述链路的带宽;如果用户没有设置所述链路的初始带宽,则在所述链路的物理带宽的基础上根据预置规则调整所述链路的带宽。比如直接将所述链路的带宽调整为初始带宽*10%。还可以调整为其他的带宽,状态不稳定的链路在调整后的带宽小于其在调节之前的带宽。
可选地,如果用户设置了所述链路的初始带宽,则当根据所述链路的状态信息判断所述链路的状态不稳定时,在所述链路的初始带宽的基础上根据预置规则调整所述链路的带宽,并相应调整状态稳定的链路的带宽,使得整个带宽保持不变。比如将状态稳定的链路的带宽调整为初始带宽*110%。也 可以不调整状态稳定的链路的带宽。还可以将状态不稳定的链路的带宽直接调整为0,比如当判断到链路发生故障时,在判断到该链路的状态稳定后再调整为初始带宽。
本发明实施例通过检测链路的状态,获得所述链路的状态信息;当根据所述链路的状态信息判断到所述链路的状态不稳定时,根据预置规则调整所述链路的带宽。上述技术方案通过判断所述链路的状态是否稳定,如果所述链路的状态不稳定,则根据预置规则调整所述链路的带宽,比如减少所述链路的带宽,使得不稳定的链路承担的负载少,并相应增加稳定链路的带宽,从而实现减少网络数据的丢包现象。
参照图5,图5为本发明实施例三中的调整模块的细化功能模块示意图。
基于本发明实施例三的带宽调整装置,调整模块20可以包括:
确定单元21,设置为根据所述链路的状态确定所述链路当前的风险系数。
其中,用户还可以在网络部署中通过网管或OAM界面根据所述链路的状态预置对应的风险系数以及与所述风险系数对应的带宽,比如根据所述链路的状态预置对应的风险系数为0-3,其中0为初始值,即每条链路的物理带宽或者用户设置的初始带宽。根据所述风险值对应设置所述链路的带宽,比如在判断出所述链路的风险系数为1时,对应设置需要调整的所述链路的带宽为初始带宽*80%;在判断到所述链路的风险系数为2时,对应设置需要调整的所述链路的带宽为初始带宽*70%;在判断到所述链路的风险系数为3时,对应设置需要调整的所述链路的带宽为初始带宽*60%。也可以不设置风险系数,比如在判断出所述链路的状态发生改变时,对应设置所述链路的带宽为初始带宽*10%或者为0。其中,所述第一风险系数对应的带宽大于所述第二风险系数对应的带宽。
可选地,可以设置在预置时间内,如果所述链路的状态稳定,则所述链路的带宽恢复为初始带宽或设置为上一次的带宽。在本实施例中在预置时间内,如果所述链路的状态稳定,则将所述链路的带宽设置为上一次的带宽。
在本实施例中可以将所述链路初始带宽的状态对应的风险系数设为0, 在所述链路的状态不稳定时,比如判断所述链路的状态发生改变的次数,将所述链路的状态设置为1、2或者3,如果所述链路的状态发生改变的次数越频繁,则设置所述链路当前的风险系数就越高。如果判断到所述链路的状态稳定,则不设置所述链路的带宽。
调整单元22,设置为将所述链路的带宽调整为与当前的风险系数对应的带宽。
根据确定单元21确定所述链路当前的风险系数,对应调整为与所述链路当前的风险系数对应的带宽,比如在所述链路当前的风险系数为1时,将所述链路的带宽调整为风险系数1对应的带宽,例如,将所述链路的带宽调整为初始带宽*80%。
参照图6,图6为本发明实施例三中的确定单元的细化功能模块示意图。
基于本发明实施例三的带宽调整装置,确定单元21可以包括:
第一确定子单元211,设置为在第一次判断到所述链路的状态不稳定时,确定所述链路当前的风险系数为第一风险系数,并启动计时器
其中,用户可以在网络部署中通过网管或OAM界面根据所述链路的状态预置对应的风险系数以及与所述风险系数对应的带宽,可以只设置第一风险系数,所述第二风险系数为所述第一风险系数加上预设风险阈值,所述第一风险系数对应的带宽大于所述第二风险系数对应的带宽。假设预设风险阈值为1。
可选地,在所述链路开始使用过程中,在第一次判断到所述链路的状态不稳定时,确定所述链路当前的风险系数为第一风险系数,并同时启动计时器。
假设第一风险系数为1。在第一次判断到所述链路的状态不稳定之前,所述链路的风险系数则可以设为第零风险系数,也可以不设置风险系数,对应的风险系数为0,此时所述链路的带宽不可设置,即所述链路的带宽为初始值。
在所述链路的状态不稳定时,对应设置所述风险系数的带宽,比如本实 施例中设置所述链路的带宽为初始带宽*80%。
可选地,所述装置还包括:处理模块(图未示),设置为在所述链路的状态不稳定或者调整所述链路的带宽时,将所述计时器清零。
在所述链路的状态改变时,将所述计时器清零。
还可以一直启动计时器,在第一次判断到所述链路的状态不稳定时,将计时器清零,并重新计时。
判断子单元212,设置为在预置时间内判断所述链路的状态是否稳定。
根据第一确定子单元211启动的计时器,在所述链路的风险系数为第一风险系数时,判断在预置时间内所述链路的状态是否稳定,比如判断所述链路的状态是否再次发生改变,如果发生改变,则认为所述链路不稳定的程度变大;或者通过检测所述链路接口当前的光强度,如果所述链路接口当前的光强度再次发生变化,也可以认为所述链路不稳定的程度变大。第二确定子单元213,设置为如果在预置时间内判断到所述链路的状态不稳定,则确定所述链路当前的风险系数为第二风险系数,其中所述第一风险系数对应的带宽大于所述第二风险系数对应的带宽。
根据判断子单元212判断结果,如果在预置时间内判断所述链路的状态发生改变或所述链路接口当前的光强度低于预设光强度阈值,即判断到所述链路的状态不稳定,比如在3分钟内判断所述链路的状态发生改变,则确定所述链路当前的风险系数为第二风险系数。假设第二风险系数为2,并对应设置所述链路的带宽为初始带宽*70%。如果所述链路的风险系数为2,在预置时间内判断所述链路的状态再次发生改变,则确定所述链路当前的风险系数为3,可以以此类推,如果所述链路的风险系数为3,在预置时间内判断所述链路的状态再次发生改变,则可以直接调整所述链路的带宽为0。
第三确定子单元214,设置为如果在预置时间内判断所述链路的状态没有发生改变,则确定所述链路当前的风险系数为前一次的风险系数。
根据判断子单元212判断结果,如果在预置时间内判断所述链路的状态没有发生改变或所述链路接口当前的光强度等于预设光强度阈值,则说明所述链路状态稳定了,则将所述链路当前的风险系数设为前一次的风险系数。 比如在所述链路当前的风险系数为第二风险系数时,在第一个预置时间内判断出所述链路的状态稳定,则将将所述链路当前的风险系数设为第一风险系数;如果在第二个预置时间内判断到所述链路的状态没有发生改变,则将将所述链路当前的风险系数设为初始的风险系数,即风险系数为0,并相应调整所述链路的带宽。
可选地,如果在预置时间内根据所述链路的状态是否发生改变,从而判断所述链路是否稳定,则确定将所述链路当前的风险系数为前一次的风险系数之前,还可以对所述链路的状态进行判断,判断所述链路当前的状态是否正常,所述链路的状态包括down状态和up状态,在所述链路的状态处于up状态时为正常。即可以判断所述链路当前的状态是否为up状态,如果所述链路当前的状态为up状态,则将所述链路当前的风险系数为前一次的风险系数。
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行时实现带宽调整方法。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或者等同替换,而不脱离本申请技术方案的精神和范围,均应涵盖在本申请的权利要求范围当中。
工业实用性
上述技术方案可以减少网络数据的丢包现象。

Claims (14)

  1. 一种带宽调整方法,所述方法包括:
    检测链路的状态,获得所述链路的状态信息;
    当根据所述链路的状态信息判断到所述链路的状态不稳定时,根据预置规则调整所述链路的带宽。
  2. 如权利要求1所述的方法,其中,所述当根据所述链路的状态信息判断到所述链路的状态不稳定时,根据预置规则调整所述链路的带宽包括:
    根据所述链路的状态确定所述链路当前的风险系数;
    将所述链路的带宽调整为与当前的风险系数对应的带宽。
  3. 如权利要求2所述的方法,其中,所述根据所述链路的状态确定所述链路当前的风险系数包括:
    在第一次判断到所述链路的状态不稳定时,确定所述链路的当前的风险系数为第一风险系数,并启动计时器;
    在预置时间内判断所述链路的状态是否稳定;
    如果在预置时间内判断到所述链路的状态不稳定,则确定所述链路当前的风险系数为第二风险系数;其中,所述第二风险系数为所述第一风险系数加上预设风险阈值,所述第一风险系数对应的带宽大于所述第二风险系数对应的带宽。
  4. 如权利要求3所述的方法,所述在预置时间内判断所述链路的状态是否稳定之后,所述方法还包括:
    如果在预置时间内判断到所述链路的状态稳定,则确定所述链路当前的风险系数为前一次的风险系数。
  5. 如权利要求3或4所述的方法,所述当根据所述链路的状态信息判断到所述链路的状态不稳定时,根据预置规则调整所述链路的带宽之后,所述方法还包括:
    将所述计时器清零。
  6. 如权利要求1所述的方法,其中,
    所述检测链路的状态,获得所述链路的状态信息包括:
    通过检测所述链路的接口的光强度检测所述链路的状态,获得所述链路的状态信息;
    所述当根据所述链路的状态信息判断到所述链路的状态不稳定时,根据预置规则调整所述链路的带宽包括:
    当判断到所述链路的接口的光强度低于预设光强度阈值时,根据所述预置规则调整所述链路的带宽。
  7. 如权利要求1所述的方法,所述当根据所述链路的状态信息判断所述链路的状态不稳定时,根据预置规则调整所述链路的带宽之前,所述方法包括:
    基于用户对所述链路初始带宽的设置命令,获得所述链路的初始带宽;其中,所述链路的初始带宽小于或等于所述链路的物理带宽;
    当根据所述链路的状态信息判断所述链路的状态不稳定时,根据预置规则调整所述链路的带宽的步骤包括:
    当根据所述链路的状态信息判断所述链路的状态不稳定时,在所述链路的初始带宽的基础上根据预置规则调整所述链路的带宽。
  8. 一种带宽调整装置,所述装置包括:
    第一获得模块,设置为检测链路的状态,获得所述链路的状态信息;
    调整模块,设置为当根据所述链路的状态信息判断所述链路的状态不稳定时,根据预置规则调整所述链路的带宽。
  9. 如权利要求8所述的装置,其中,所述调整模块包括:
    确定单元,设置为根据所述链路的状态确定所述链路当前的风险系数;
    调整单元,设置为将所述链路的带宽调整为与当前的风险系数对应的带宽。
  10. 如权利要求9所述的装置,其中,所述确定单元包括:
    第一确定子单元,设置为在第一次判断到所述链路的状态不稳定时,确定所述链路当前的风险系数为第一风险系数,并启动计时器;
    判断子单元,设置为在预置时间内判断所述链路的状态是否稳定;
    第二确定子单元,设置为如果在预置时间内判断到所述链路的状态不稳定,则确定所述链路当前的风险系数为第二风险系数;其中,所述第二风险系数为所述第一风险系数加上预设风险阈值,所述第一风险系数对应的带宽大于所述第二风险系数对应的带宽。
  11. 如权利要求10所述的装置,其中,所述确定单元还包括:
    第三确定子单元,设置为如果在预置时间内判断到所述链路的状态稳定,则确定所述链路当前的风险系数为前一次的风险系数。
  12. 如权利要求10或11所述的装置,所述装置还包括:
    处理模块,设置为在所述调整模块根据预置规则调整所述链路的带宽之后,将所述计时器清零。
  13. 如权利要求8所述的装置,其中,
    所述第一获得模块是设置为通过检测所述链路的接口的光强度检测所述链路的状态,获得所述链路的状态信息;
    所述调整模块是设置为当判断到所述链路的接口的光强度低于预设光强度阈值时,根据预置规则调整所述链路的带宽。
  14. 如权利要求8所述的装置,所述装置还包括:
    第二获得模块,设置为基于用户对所述链路初始带宽的设置命令,获得所述链路的初始带宽,其中,所述链路的初始带宽小于或等于所述链路的物理带宽;
    所述调整模块是设置为当根据所述链路的状态信息判断所述链路的状态不稳定时,在所述链路的初始带宽的基础上根据预置规则调整所述链路的带宽。
PCT/CN2016/082355 2015-08-28 2016-05-17 带宽调整方法及装置 WO2017036179A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510543641.6A CN106487716A (zh) 2015-08-28 2015-08-28 带宽调整方法及装置
CN201510543641.6 2015-08-28

Publications (1)

Publication Number Publication Date
WO2017036179A1 true WO2017036179A1 (zh) 2017-03-09

Family

ID=58186576

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/082355 WO2017036179A1 (zh) 2015-08-28 2016-05-17 带宽调整方法及装置

Country Status (2)

Country Link
CN (1) CN106487716A (zh)
WO (1) WO2017036179A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1829370A (zh) * 2005-03-04 2006-09-06 上海华为技术有限公司 宽带码分多址移动通信系统的动态信道分配方法
CN1863066A (zh) * 2005-05-11 2006-11-15 华为技术有限公司 对链路带宽进行动态调整的方法和状态机
CN101146039A (zh) * 2007-08-14 2008-03-19 中兴通讯股份有限公司 自动调整带宽的装置及其调整方法
CN102098301A (zh) * 2011-01-06 2011-06-15 复旦大学 多链路自适应的数据传输方法与系统
WO2013163919A1 (zh) * 2012-05-04 2013-11-07 华为技术有限公司 一种多链路捆绑链路组中成员链路的处理方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1829370A (zh) * 2005-03-04 2006-09-06 上海华为技术有限公司 宽带码分多址移动通信系统的动态信道分配方法
CN1863066A (zh) * 2005-05-11 2006-11-15 华为技术有限公司 对链路带宽进行动态调整的方法和状态机
CN101146039A (zh) * 2007-08-14 2008-03-19 中兴通讯股份有限公司 自动调整带宽的装置及其调整方法
CN102098301A (zh) * 2011-01-06 2011-06-15 复旦大学 多链路自适应的数据传输方法与系统
WO2013163919A1 (zh) * 2012-05-04 2013-11-07 华为技术有限公司 一种多链路捆绑链路组中成员链路的处理方法及装置

Also Published As

Publication number Publication date
CN106487716A (zh) 2017-03-08

Similar Documents

Publication Publication Date Title
US10367740B2 (en) Method, system and apparatus for controlling flow detection, controller and detection device
US9338066B2 (en) Tunnel keep-alive timeout mechanism based on quality of service (QoS) value of received keep-alive messages
US9929897B2 (en) Performing a protocol, such as micro bidirectional forwarding detection, on member links of an aggregated link that uses an address of the aggregated link
CN105635084B (zh) 终端认证装置及方法
US10516599B1 (en) Link priority for loop-protect
US20170118074A1 (en) Private Network Driven Hosted Network Device Management
US20110312283A1 (en) Controlling data transmission over a network
CN107567706B (zh) 通信网络中的订户会话重新分发
Li et al. MPTCP incast in data center networks
US10530681B2 (en) Implementing forwarding behavior based on communication activity between a controller and a network device
US20130250763A1 (en) Method and Apparatus for Control Plane CPU Overload Protection
CN108322406B (zh) 一种基于链路性能和流分类的sdn数据平面故障恢复方法
US10404570B2 (en) Automatically detecting an error in a communication and automatically determining a source of the error
US20180248784A1 (en) Communication apparatus, communication method, and storage medium
WO2017000096A1 (zh) 一种链路恢复方法和网络设备
US10644985B1 (en) Device-contained data plane validation
EP2787699A1 (en) Data transmission method, device, and system
CN111130979A (zh) 一种sdwan场景下分支节点连接中心节点的方法和设备
CN106921576B (zh) 基于虚拟化系统的数据网与管理网的流量分离方法及装置
WO2018133801A1 (en) Apparatus and method for controlling usage of a non-optimal path
WO2017036179A1 (zh) 带宽调整方法及装置
WO2015135284A1 (zh) 数据流转发的控制方法及系统、计算机存储介质
US10771317B1 (en) Reducing traffic loss during link failure in an ethernet virtual private network multihoming topology
WO2016065925A1 (zh) 控制器替换方法及装置
US10498591B1 (en) Isolating service faults using loopbacks

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16840608

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16840608

Country of ref document: EP

Kind code of ref document: A1