WO2017024824A1 - Aggregated link-based traffic management method and device - Google Patents

Aggregated link-based traffic management method and device Download PDF

Info

Publication number
WO2017024824A1
WO2017024824A1 PCT/CN2016/081761 CN2016081761W WO2017024824A1 WO 2017024824 A1 WO2017024824 A1 WO 2017024824A1 CN 2016081761 W CN2016081761 W CN 2016081761W WO 2017024824 A1 WO2017024824 A1 WO 2017024824A1
Authority
WO
WIPO (PCT)
Prior art keywords
rate
aggregation group
link aggregation
member port
current
Prior art date
Application number
PCT/CN2016/081761
Other languages
French (fr)
Chinese (zh)
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 WO2017024824A1 publication Critical patent/WO2017024824A1/en

Links

Images

Definitions

  • This document relates to, but is not limited to, the field of communications, and relates to a method and apparatus for traffic management based on an aggregated link.
  • the link aggregation technology can be used to increase the link bandwidth by bundling multiple physical interfaces into one logical interface without hardware upgrade. Moreover, the mechanism of applying load balancing and backup links on the interface can further effectively improve the reliability of links between devices.
  • the device port resources are always limited. As long as the user robs the network resources, network congestion will occur. In severe cases, packet loss will still occur, resulting in degraded service quality or even unavailable. Therefore, how to increase the bandwidth of the link aggregation technology while ensuring the quality of service (QoS) has become a hotspot in the industry.
  • QoS quality of service
  • the rate limit is applied to the link aggregation group. That is, the rate of packets on each member port is monitored. The total rate is limited to a reasonable range to prevent network congestion caused by a large number of users.
  • the link aggregation load balancing is the same as the bandwidth rate of the actual member ports. The same bandwidth is balanced on the ports of different bandwidths.
  • the link aggregation application traffic rate limit and the total rate limit CIR (Committed Information) Rate, agreed rate) values are averaged or randomly assigned on each member port, which is bound to cause the member ports to load differently. For example, some member ports have sufficient bandwidth, but the actual data traffic exceeds the allocated rate, and the data is severely blocked, delayed, or even lost.
  • the embodiments of the present invention provide a traffic management method and device based on an aggregated link, and manage the rate limit rate of the member ports of the aggregation link group, thereby realizing effective and rational use of the broadband resources.
  • the embodiment of the invention provides a traffic management method based on an aggregated link, including:
  • the calculating the traffic of the feature flow of each member port includes:
  • i is a member port, i is greater than or equal to 1 and less than or equal to the number of member ports n of the link aggregation group; the j represents a statistical period, j is greater than or equal to 1 and less than or equal to the k, The k is greater than or equal to 2.
  • the method further includes: determining, according to the statistical result, whether the actual abnormal burst probability ⁇ sudden of the feature stream of the link aggregation group is greater than an abnormal burst probability threshold ⁇ sudden includes:
  • the determining, according to the statistical result, whether the actual abnormal burst probability ⁇ sudden of the feature stream of the link aggregation group is greater than an abnormal burst probability threshold ⁇ sudden includes:
  • the method further includes: determining, according to the statistics, whether the rate limit rate of the member ports of the link aggregation group is:
  • assigning a rate limit rate to each member port of the link aggregation group for a feature flow of the link aggregation group includes:
  • the total agreed rate divided by the link aggregation group R car_config member to obtain the n number of ports each member of the rate limit R carCur_i port, i represents the port member, the value i is greater than or equal to 1 and an integer less than or equal to the number n of member ports of the link aggregation group.
  • the adjusting the rate limit of the member ports of the link aggregation group includes:
  • the sum of the difference between the current rate limit rate of the member ports of the link aggregation group and the current actual rate in the link aggregation group is used as the total rate limit rate of the link aggregation group, and
  • the current rate limit rate of the member port of the link aggregation group that is limited to the rate limit is updated to the current actual rate of the member port.
  • the total margin rate rate is allocated to the link aggregation group except the speed limit.
  • Member ports outside the rate-capable member ports include:
  • the total margin rate rate amount is allocated to the selected member port.
  • the allocating the total margin rate rate amount to the selected member port includes:
  • the selected member ports are sequentially arranged in the order of the rate shortage, wherein the rate shortage is equal to the difference between the current actual rate of the member port and the currently set rate limit rate, or is a member port.
  • Average actual drop traffic rate
  • the total margin rate rate is compared with each rate shortage according to the rate shortage amount from small to large or from large to small, if the current total limited rate rate is greater than or equal to the current comparison. If the rate is short, the current rate limit rate of the member port corresponding to the rate shortage is updated to the original rate limit rate plus the rate shortage, and the current total rate limit rate is compared. After comparing the rate shortage of the current comparison with the next rate shortage; if the current ratio of the total margin rate of the comparison is less than the rate of the current comparison, or the rate of the current comparison is the last one, then The current rate limit rate of the member port corresponding to the rate shortage is directly updated to the original rate limit rate plus the total remaining rate limit rate currently being compared.
  • the embodiment of the invention further provides a device for managing traffic based on an aggregated link, comprising:
  • the configuration module is configured to allocate a rate limit rate to each member port of the link aggregation group for a feature flow of the link aggregation group;
  • a statistics module configured to collect statistics on the traffic of the feature stream of each member port
  • a management module configured to determine, according to the statistical result of the statistics module, that the feature flow actual abnormality probability ⁇ sudden of the link aggregation group is greater than an abnormal burst probability threshold ⁇ sudden , and the link aggregation group
  • the rate limit of at least one member port is limited, the rate limit of the member ports of the link aggregation group is adjusted.
  • the statistics module includes a traffic statistics sub-module and a drop traffic statistics sub-module;
  • the traffic statistics sub-module is configured to count the actual traffic rate R pass_ij of the feature stream of each member port in the consecutive k statistical periods T;
  • the discarding traffic statistics sub-module is configured to count the actual discard traffic rate R discard_ij of the feature stream of each member port in the consecutive k statistical periods T;
  • i is a member port, i is greater than or equal to 1 and less than or equal to the number of member ports n of the link aggregation group; the j represents a statistical period, j is greater than or equal to 1 and less than or equal to the k, The k is greater than or equal to 2.
  • the management module includes an abnormality determining sub-module, configured to acquire a total actual throughput R pass_j and a total actual discard amount R discard_j of the feature stream of the link aggregation group in the k cycles; ,
  • the management module includes a redundancy judgment sub-module, and is configured to acquire a current actual rate of the member port i.
  • the management module includes a calculation submodule and an adjustment submodule.
  • the calculation submodule is configured to: the member ports of the link aggregation group with a limited rate rate redundancy
  • the sum of the difference between the currently set rate limit rate and the current actual rate is used as the total margin rate rate of the link aggregation group, and the current limit of the member ports of the link aggregation group with the rate limit rate is redundant.
  • the set rate limit rate is updated to the current actual rate of the member port;
  • the adjustment submodule is configured to allocate the total margin rate rate amount to a member port of the link aggregation group except the member port with the rate limit rate redundancy.
  • the adjustment submodule includes a selection unit and an allocation unit
  • the selecting unit is configured to select, from the member ports of the link aggregation group, the member ports other than the member ports of the rate limiting rate, that the current actual rate is greater than the member port whose current rate limit is set;
  • the allocation unit is configured to allocate the total margin rate rate amount to the selected member port.
  • the allocating unit includes an average allocation subunit or a comparison allocation subunit
  • the average allocation subunit is configured to evenly distribute the total margin rate rate amount to each selected member port;
  • the comparison allocation sub-unit is configured to: arrange the selected member ports in descending order of the rate shortage, wherein the rate shortage is equal to the current actual rate of the member port and the currently set rate limit.
  • the difference between the rates is the average actual discarding traffic rate of the member ports; the total margin rate rate is compared with each rate shortage according to the rate shortage from small to large or from small to small. If the current rate limit rate of the current comparison is greater than or equal to the rate of the current comparison, the current rate limit of the member port corresponding to the rate shortage is updated to the original rate limit plus the rate shortage.
  • the embodiment of the invention further provides a computer readable storage medium, where the computer readable storage medium stores computer executable instructions, and the computer executable instructions are implemented based on the aggregation Link traffic management method method.
  • the aggregated link-based traffic management method and device provided by the embodiment of the present invention are configured to collect a rate limit rate for each member port of the link aggregation group, and collect a rate limit for each member port of the link aggregation group.
  • the feature stream streamA traffic when it is determined according to the statistical result that the actual abnormal burst probability ⁇ sudden of the feature stream streamA of the link aggregation group is greater than the abnormal burst probability threshold ⁇ sudden , and the rate limit of at least one member port in the link aggregation group When the rate is surplus, the rate limit of the member ports of the link aggregation group is adjusted.
  • the rate limit of each member port feature stream streamA is re-adjusted based on the actual traffic of each member port, so that each of the member ports can be fully utilized.
  • Bandwidth resources of member ports improve the forwarding efficiency of feature stream streamA and improve QoS guarantee.
  • FIG. 1 is a schematic flowchart of a method for managing traffic based on an aggregate link according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic structural diagram of an aggregate link-based traffic management apparatus according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic diagram of a network topology structure according to Embodiment 3 of the present invention.
  • Embodiment 4 is a schematic diagram of statistical data storage provided by Embodiment 3 of the present invention.
  • FIG. 5 is a schematic diagram of an adjustment effect according to Embodiment 3 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the aggregate link-based traffic management method includes:
  • Step 101 Allocating a rate limit rate to each member port of the link aggregation group for a feature stream (such as streamA) of the link aggregation group;
  • the pre-configuration phase may be further configured to enable or disable the link aggregation group-based rate-limiting adaptive adjustment function by configuring the corresponding configuration device, that is, configuring the aggregation link-based traffic management to be enabled or disabled;
  • a feature stream in step 101 refers to a matching type such as a packet type (such as broadcast broadcast, unicast unicast, etc.), a packet priority (such as DSCP (Differentiated Services Code Point), priority Precedence, A series of packet flows, such as an access control list (ACL), and an access control list (ACL); in this step, initially, a feature stream streamA for the link aggregation group is the link aggregation group.
  • the rate limit rate of each member port can be allocated in an average manner, or it can be allocated by random allocation or other allocation methods.
  • R carCur_1 +R carCur_2 +...R carCur_n R car_config ;
  • the rate limit rate allocated to each member port of the link aggregation group in the foregoing step 101 may be the rate limit rate adjusted by the subsequent step 103;
  • Step 102 Count the traffic of the feature stream streamA of each member port of the link aggregation group
  • the traffic of the feature stream streamA which is calculated in this embodiment, includes, but is not limited to, the actual traffic rate and the actual traffic rate of the feature stream streamA of each member port. In this embodiment, the actual situation of the network and the adjustment are ensured. The result is in line with the actual demand, and the actual passing traffic rate R pass_ij and the actual discarding traffic rate R discard_ij of each member port feature stream streamA in the consecutive k statistical periods T are counted ; where i is a member port, i is greater than or equal to 1 and less than Or equal to the number of member ports of the link aggregation group, n; j represents a statistical period, j is greater than or equal to 1 and less than or equal to k, and k is greater than or equal to 2.
  • the consecutive k statistical periods T in this embodiment may refer to k cycles that are completely re-stated, and the k-1 cycles before statistics may be multiplexed. The following examples are respectively illustrated:
  • K-1 cycles before multiplexing If n is still assumed to be 3, then after counting the three statistical periods t1, t2, and t3, the next round only needs to wait for the t4 statistical period statistics to be completed, then t2 and t3 can be used. And t4 three statistical cycles to perform the next round of operations;
  • the specific value of k can be flexibly set according to specific network conditions and specific application scenarios.
  • Step 103 When it is determined according to the statistical result, the characteristic abnormality probability ⁇ sudden of the characteristic stream streamA of the link aggregation group is greater than the abnormal burst probability threshold ⁇ sudden , and the rate limit rate of at least one member port in the link aggregation group is surplus The rate limit of the member ports of the link aggregation group is adjusted.
  • the method further includes: determining, according to the statistical result, whether the feature flow actual abnormality probability ⁇ sudden of the link aggregation group is greater than an abnormal burst probability threshold ⁇ sudden includes:
  • the determining, according to the statistical result, whether the actual abnormal burst probability ⁇ sudden of the feature stream of the link aggregation group is greater than an abnormal burst probability threshold ⁇ sudden includes:
  • the burst loss rate ⁇ discard is greater than the number M of the packet loss threshold ⁇ discard ; wherein Determining whether the actual abnormal burst probability ⁇ sudden of the characteristic stream of the link aggregation group is greater than an abnormal burst probability threshold ⁇ sudden , wherein
  • the value of the abnormal burst probability threshold ⁇ sudden may also be specifically set according to specific network conditions and specific application scenarios;
  • the method further includes: determining, according to the statistical result, whether a rate limit rate of the member ports of the link aggregation group is redundant;
  • R carCur_i -R vc_i is the margin of the rate limit of the member ports; the sum of the margins of such member ports (member ports with limited rate limit) is used as the total margin rate rate, and the member ports are currently The difference between the set rate limit rate and the current actual rate is summed, and the summed result is used as the total surplus rate rate;
  • R vc_i >R carCur_i , it is determined that the rate limit rate of the member port i is in short supply.
  • R vc_i -R carCur_i can be used as the rate shortage of the member port i, and the average actual value of such member ports can also be used. Drop rate As a rate shortage.
  • adjusting the rate limit of the member ports of the link aggregation group includes:
  • the sum of the difference between the current rate limit rate of the member ports of the link aggregation group and the current actual rate in the link aggregation group is used as the total rate limit rate of the link aggregation group, and The currently set rate limit rate of the member ports of the link aggregation group with the rate limit rate surplus is updated as described above.
  • the member ports of the link aggregation group except the member ports with the rate limit rate redundancy are included in the link aggregation group:
  • the total margin rate rate amount is allocated to the selected member port. Its distribution methods include but are not limited to:
  • Allocation method 1 Allocate the total surplus rate rate to the member port with the selected rate being evenly distributed;
  • Allocation method 2 The selected member ports are arranged in order from the smallest to the largest;
  • the total margin rate rate is compared with each rate shortage according to the rate shortage amount from small to large or from large to small, if the current total limited rate rate is greater than or equal to the current comparison. If the rate is short, the current rate limit rate of the member port corresponding to the rate shortage is updated to the original rate limit rate plus the rate shortage, and the current total rate limit rate is compared. After comparing the rate shortage of the current comparison with the next rate shortage;
  • the current rate limit set by the member port corresponding to the rate shortage is directly updated to the original rate limit plus the total margin limit.
  • the speed rate, the member port of the subsequent rate shortage is no longer updated;
  • the current rate limit set by the member port corresponding to the rate shortage is updated to the original rate limit rate plus the total margin rate.
  • R carCur_1 +R carCur_2 +...R carCur_n R car_config .
  • the total rate limit CIR value based on the feature stream is used in each A member port is fixedly allocated in a certain way, causing some member ports to have sufficient bandwidth.
  • the actual data traffic exceeds the allocated rate quota, the data is severely blocked, and packets are lost.
  • Some member ports are idle, and the data flow is far lower.
  • the actual rate of traffic passing through the feature flow of the forwarding plane is periodically collected, and the traffic is discarded, and the speed limit adjustment criterion and adjustment mode of the member ports in this embodiment are used.
  • the redistributed member port is based on the rate-based traffic of the feature stream.
  • the reserved rate limit of the idle member port is allocated to the member ports with large traffic and heavy packet loss.
  • the rate of bandwidth is increased and the packet loss rate is effectively reduced.
  • the rate limit value is unchanged, the forwarding efficiency of the feature stream is improved, and the bandwidth resource is further utilized to improve the QoS guarantee.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • This embodiment provides a traffic management device based on an aggregated link.
  • the method includes:
  • the configuration module 1 is configured to allocate a rate limit rate to each member port of the link aggregation group for the link aggregation group-feature stream streamA;
  • a feature stream streamA in this embodiment refers to a matching type such as a packet type (such as broadcast, unicast, etc.), a packet priority (such as DSCP, Precedence, 802.1p, etc.), an admission control list ACL, and the like.
  • a packet type such as broadcast, unicast, etc.
  • a packet priority such as DSCP, Precedence, 802.1p, etc.
  • an admission control list ACL and the like.
  • the number of member ports of the road aggregation group is an integer n.
  • R carCur_1 +R carCur_2 +...R carCur_n R car_config ;
  • the statistics module 2 is configured to collect the feature stream streamA traffic of each member port; optionally, the statistics module 2 includes a traffic statistics sub-module 21 and a drop traffic statistics sub-module 22;
  • the traffic statistics sub-module 21 is configured to count the actual traffic rate R pass_ij of the feature stream streamA of each member port in the k consecutive statistical periods T;
  • the discarding traffic statistics sub-module 22 is configured to count the actual discarding traffic rate R discard_ij of each member port feature stream streamA in consecutive k statistical periods T;
  • i is a member port, i is greater than or equal to 1 and less than or equal to the number of member ports n of the link aggregation group; the j represents a statistical period, j is greater than or equal to 1 and less than or equal to the k, k is greater than or equal to 2.
  • the traffic flow statistics sub-module 21 and the drop traffic statistics sub-module 22 are respectively set to count the statistical flow of each member port in the k consecutive statistical periods T, in order to ensure that the adjustment result meets the actual requirements.
  • the actual traffic rate R pass_ij and the actual discard traffic rate R discard_ij of the stream A ; the consecutive k statistical periods T in this embodiment may refer to k cycles that are completely re- stated , and the previously counted k-1 cycles may be multiplexed.
  • the management module 3 is configured to determine, according to the statistical result of the statistical module 2, that the feature stream streamA actual abnormal burst probability ⁇ sudden of the link aggregation group is greater than the abnormal burst probability threshold ⁇ sudden , and the rate limit of at least one member port of the member port When the rate is surplus, adjust the rate limit of the member ports of the link aggregation group.
  • the management module 3 includes an abnormality determining sub-module 31 configured to acquire the total actual throughput R pass_j and the total actual discard amount R discard_j of the link aggregation group feature stream streamA in k cycles;
  • the value of the abnormal burst probability threshold ⁇ sudden can also be specifically set according to specific network conditions and specific application scenarios.
  • the management module 3 includes a redundancy judgment sub-module 32 configured to acquire the current actual rate R vc_i of the member port i.
  • R carCur_i -R vc_i is the margin of the rate limit rate of the member ports with the limited rate rate; the sum of the margins of the member ports (all member ports with the limited rate rate surplus) is used as the total margin rate rate. The sum of the current rate limit set by the member port and the current actual rate difference is also taken as the total margin rate rate.
  • R vc_i >R carCur_i , it is determined that the rate limit rate of the member port i is in short supply.
  • R vc_i -R carCur_i can be used as the rate shortage of the member port i, and such member ports can also be used. Average actual drop rate for all member ports that are in short rate As a rate shortage.
  • the management module 3 further includes a calculation submodule 33 and an adjustment submodule 34.
  • the calculation sub-module 33 is configured to use, as the total surplus rate limit of the link aggregation group, the sum of the difference between the current rate limit rate of the member ports of the link aggregation group and the current actual rate. Rate the rate, and update the current rate limit rate of the member ports of the link aggregation group that are limited by the rate limit to the current actual rate of the member port;
  • the adjustment submodule is set to allocate the total margin rate rate amount to the link aggregation group except the speed limit. A member port outside the rate member port.
  • the adjustment submodule specifically includes a selection unit and an allocation unit
  • the selecting unit is configured to select, from the member ports of the link aggregation group, the member ports other than the member ports with the rate limit remaining; the current actual rate is greater than the member port whose current rate limit is set;
  • the allocation unit is arranged to allocate a total margin rate rate amount to each of the selected member ports.
  • the allocation unit comprises an average allocation subunit or a comparison allocation subunit
  • the average allocation subunit is set to evenly allocate the total surplus rate rate amount to each of the selected member ports;
  • the comparison allocation subunit is configured to sequentially arrange the selected member ports in descending order of the rate shortage, wherein the rate shortage is equal to the difference between the current actual rate of the member port and the currently set rate limit rate.
  • the value is the average actual discarding traffic rate of the member port;
  • the total margin rate rate is compared with each rate shortage according to the rate shortage amount from small to large or large to small, if the current current If the ratio of the total rate limit of the comparison is greater than or equal to the rate of the current comparison, the current rate limit of the member port corresponding to the rate shortage is updated to the original rate limit plus the rate shortage, and Comparing the current surplus rate limit rate of the current comparison with the current rate rate shortage amount and comparing with the next rate shortage amount;
  • the current rate limit set by the member port corresponding to the rate shortage is directly updated to the original rate limit plus the total margin limit.
  • the speed rate, the member port of the subsequent rate shortage is no longer updated;
  • the current rate limit set by the member port corresponding to the rate shortage is updated to the original rate limit rate plus the total margin rate.
  • R carCur_1 +R carCur_2 +...R carCur_n R car_config .
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • Routers R1 and R2 are connected through three Gigabit Ethernet ports (gei). Terminals PC1 and PC2 are connected to R1 and R2 through the megabit Ethernet port (fei).
  • the network segment where PC1 and R1 are configured is 1.1.1.x/24, the network segment for PC2 and R2 is 3.3.3.x/24, and the network segment for routing between R1 and R2 is 2.2.2.x/24.
  • the (Open Shortest Path First) protocol is connected, and the link aggregation between the ports is Inf SG , thus realizing the data transmission between PC1 and PC2.
  • the traffic management process for the network topology shown in Figure 3 is as follows:
  • the user configures the rate limit based on the aggregation port (Inf SG ).
  • the total agreed rate (CIR) of the feature stream streamA of the port is R car_config ; then the average pre-allocation according to the number of member ports of the link aggregation group is n.
  • the rate limit of each member port including the following:
  • i is a member port, i is greater than or equal to 1 and less than or equal to the number of member ports of the link aggregation group n;
  • the actual traffic rate R pass_ij and the actual drop traffic rate R discard_ij are obtained by the ratio of the data packet actually forwarded and discarded in each period T to the set period time interval T, respectively .
  • the total actual throughput R pass_j of the forwarding surface feature stream streamA collected by the storage device for the last consecutive k periods T the total actual discard amount R discard_j , where j represents a statistical period, and j is greater than Or equal to 1 and less than or equal to k; the total actual throughput R pass_j collected in any period, the total actual discard amount R discard_j is the passing rate and discard rate of the feature stream streamA collected by each member port in the current period.
  • the rate limit rate R carCur_i of the stream type streamA is defined for each member port of the aggregation port Inf SG , and an initial pre-allocation phase is created. See the formula.
  • the aggregation port Inf SG is bound to three member ports inf 1 , inf 2 , and inf 3 .
  • the average rate of the aggregation port is averaged to three member ports, that is, each.
  • the rate limit for each port is R car_config /3.
  • the internal rate limit adjustment algorithm is enabled, and the rate limit value R carCur_i of each member port in the link aggregation group is redistributed, and the excess rate rate quota of the idle member port is allocated to the traffic volume and packet loss.
  • Severe member ports, after adjustment, still need to meet R carCur_0 + R carCur_1 +...R carCur_n R car_config , that is, the total speed limit rate of each member port is unchanged.
  • the aggregation port Inf SG has one or more member ports.
  • the original finite rate rate quota has a vacancy. That is, the actual semaphore stream stream forwarding rate of some member ports is lower than the allocated rate limit rate.
  • Step 1 For traversing the member ports, the member ports are averaged at each discard rate. Size, from small to large.
  • Step 2.R abundant 0; / / each member port surplus speed limit quota
  • the rate limit of the associated link aggregation application is fixed, and the CIR value of the feature stream is fixedly allocated on each member port in any manner, so that some member ports have sufficient bandwidth, but actual data.
  • the traffic exceeds the allocated rate quota, the data is severely blocked, the packet is lost, some member ports are idle, and the data flow carried is far lower than the allocated rate limit.
  • the fast traffic quota is allocated to the member ports with large traffic and heavy packet loss, increasing the bandwidth of the pass rate, and effectively reducing the packet loss rate. This improves the forwarding efficiency of the feature stream when the overall rate limit is unchanged. Utilize bandwidth resources to improve QoS guarantee.
  • the embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores computer executable instructions, and when the computer executable instructions are executed, implements an aggregate link based traffic management 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.

Abstract

Provided are an aggregated link-based traffic management method and device. After allocating a rate-limited rate to each of member ports of a link aggregation group with respect to a feature flow of the link aggregation group, statistics are compiled on traffic of the feature flow of each of the member ports. If it is determined, according to a statistical result, that an actual sudden abnormality probability ηsudden of the feature flow of the link aggregation group is greater than a sudden abnormality probability threshold λsudden, and if the rate-limited rate of at least one of the member ports of the link aggregation group is under capacity, a rate-limited rate of a member port of the link aggregation group is adjusted. After allocating rate-limited rates to member ports of a link aggregation group, the above technical solution can reasonably re-adjust, on the basis of an actual traffic situation of each member port, a rate-limited rate of a feature flow of each member port, thereby making full use of bandwidth resources of each member port, enhancing a forwarding efficiency of the feature flow, and improving QoS guarantees.

Description

基于聚合链路的流量管理方法及装置Aggregation link based traffic management method and device 技术领域Technical field
本文涉及但不限于通信领域,涉及一种基于聚合链路的流量管理方法及装置。This document relates to, but is not limited to, the field of communications, and relates to a method and apparatus for traffic management based on an aggregated link.
背景技术Background technique
随着网络规模不断扩大,运营商对骨干链路的带宽和可靠性提出越来越高的要求。在传统技术中,常用更换高速率的接口板或更换支持高速率接口板的设备的方式来增加带宽,但这种方案需要付出高额的费用,而且不够灵活。采用链路聚合技术可以在不进行硬件升级的条件下,通过将多个物理接口捆绑为一个逻辑接口实现增大链路带宽的目的。并且,在接口上应用负载均衡、备份链路的机制,可以进一步有效地提高设备之间链路的可靠性。As the network scale continues to expand, operators are placing increasing demands on the bandwidth and reliability of backbone links. In the conventional technology, it is common to replace a high-speed interface board or replace a device that supports a high-rate interface board to increase bandwidth, but this solution requires a high cost and is not flexible enough. The link aggregation technology can be used to increase the link bandwidth by bundling multiple physical interfaces into one logical interface without hardware upgrade. Moreover, the mechanism of applying load balancing and backup links on the interface can further effectively improve the reliability of links between devices.
然而,设备端口资源总是有限的,只要存在用户抢夺网络资源的情况,就会出现网络拥塞,严重时仍会产生丢包,导致业务质量下降甚至不可用。因此,如何在应用链路聚合技术增加带宽的同时保证网络服务质量(QoS,Quality of Service)成了业界研究的热点,基于链路聚合组的限速就是其中一个重要课题。However, the device port resources are always limited. As long as the user robs the network resources, network congestion will occur. In severe cases, packet loss will still occur, resulting in degraded service quality or even unavailable. Therefore, how to increase the bandwidth of the link aggregation technology while ensuring the quality of service (QoS) has become a hotspot in the industry. The speed limit based on the link aggregation group is one of the important topics.
在链路聚合组上应用端口限速,即通过监管其下每个成员端口的报文速率,限制总的速率在一个合理的范围内,来防止大量用户不断突发的数据造成网络拥塞。由于链路聚合的负载均衡与实际成员端口之间的带宽速率不对称,不同带宽大小的端口上均衡分担了同样大小的流;此外,链路聚合应用流量限速,总限速CIR(Committed Information Rate,约定速率)值在每个成员端口上平均或随机分配,势必造成成员端口负载不一。例如,有的成员端口带宽充足,但实际数据流量超出分配的限定速率,数据被严重堵塞、延时、甚至丢包;而有的成员端口空闲,承载的数据流远低于分配的限速值,造成通过链路聚合组的每个成员端口的实际流量总和总是低于设定的链路聚合组的总限速值。为此,如何对聚合链路组的每个成员端口的限速值进行管理才能有效合理地利用宽带资源是需要解决的问题。 The rate limit is applied to the link aggregation group. That is, the rate of packets on each member port is monitored. The total rate is limited to a reasonable range to prevent network congestion caused by a large number of users. The link aggregation load balancing is the same as the bandwidth rate of the actual member ports. The same bandwidth is balanced on the ports of different bandwidths. In addition, the link aggregation application traffic rate limit and the total rate limit CIR (Committed Information) Rate, agreed rate) values are averaged or randomly assigned on each member port, which is bound to cause the member ports to load differently. For example, some member ports have sufficient bandwidth, but the actual data traffic exceeds the allocated rate, and the data is severely blocked, delayed, or even lost. Some member ports are idle, and the data flow carried is far lower than the allocated speed limit. The actual traffic sum of each member port passing through the link aggregation group is always lower than the total speed limit value of the set link aggregation group. Therefore, how to manage the rate limit value of each member port of the aggregation link group to effectively and reasonably utilize the broadband resources is a problem to be solved.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种基于聚合链路的流量管理方法及装置,通过对聚合链路组的成员端口的限速速率进行管理,从而实现了有效合理地利用宽带资源。The embodiments of the present invention provide a traffic management method and device based on an aggregated link, and manage the rate limit rate of the member ports of the aggregation link group, thereby realizing effective and rational use of the broadband resources.
本发明实施例提供一种基于聚合链路的流量管理方法,包括:The embodiment of the invention provides a traffic management method based on an aggregated link, including:
针对链路聚合组任一特征流为该链路聚合组的每个成员端口分配限速速率;Assigning a rate limit rate to each member port of the link aggregation group for any characteristic flow of the link aggregation group;
统计所述每个成员端口的所述特征流流量;Counting the characteristic flow of each member port;
根据统计结果判断所述链路聚合组的所述特征流的实际异常突发概率ηsudden大于异常突发概率阈值λsudden,且所述链路聚合组中至少一个成员端口的限速速率富余时,对所述链路聚合组的成员端口的限速速率进行调整。Determining, according to the statistical result, that the actual abnormal burst probability η sudden of the characteristic flow of the link aggregation group is greater than the abnormal burst probability threshold λ sudden , and the rate limit rate of at least one member port in the link aggregation group is surplus The rate limit of the member ports of the link aggregation group is adjusted.
可选地,所述统计所述每个成员端口的所述特征流的流量包括:Optionally, the calculating the traffic of the feature flow of each member port includes:
统计连续的k个统计周期T内所述每个成员端口的所述特征流的实际通过流量速率Rpass_ij和实际丢弃流量速率Rdiscard_ij Counting the actual passing traffic rate R pass_ij and the actual discarding traffic rate R discard_ij of the feature stream of each member port in the consecutive k statistical periods T;
其中,所述i表示成员端口,i大于或等于1且小于或等于所述链路聚合组的成员端口数n;所述j表示统计周期,j大于或等于1且小于或等于所述k,所述k大于或等于2。Where i is a member port, i is greater than or equal to 1 and less than or equal to the number of member ports n of the link aggregation group; the j represents a statistical period, j is greater than or equal to 1 and less than or equal to the k, The k is greater than or equal to 2.
可选地,所述方法还包括:根据统计结果判断所述链路聚合组的所述特征流的实际异常突发概率ηsudden是否大于异常突发概率阈值λsudden包括:Optionally, the method further includes: determining, according to the statistical result, whether the actual abnormal burst probability η sudden of the feature stream of the link aggregation group is greater than an abnormal burst probability threshold λ sudden includes:
其中,所述根据统计结果判断所述链路聚合组的所述特征流的实际异常突发概率ηsudden是否大于异常突发概率阈值λsudden包括:The determining, according to the statistical result, whether the actual abnormal burst probability η sudden of the feature stream of the link aggregation group is greater than an abnormal burst probability threshold λ sudden includes:
获取所述k个统计周期内所述链路聚合组的所述特征流的总实际通过量Rpass_j和总实际丢弃量Rdiscard_j;其中,Obtaining a total actual throughput R pass_j and a total actual discard amount R discard_j of the feature stream of the link aggregation group in the k statistical periods; wherein
Rpass_j=∑i=1,2,...,nRpass_ijR pass_j =∑ i=1,2,...,n R pass_ij ;
Rdiscard_j=∑i=1,2,...,nRdiscard_ijR discard_j =∑ i=1,2,...,n R discard_ij ;
获取所述链路聚合组的所述特征流在所述k个统计周期内出现突发丢包率σdiscard大于丢包率阈值λdiscard的次数M;其中,
Figure PCTCN2016081761-appb-000001
Obtaining, in the k statistical periods, the number of times that the burst loss rate σ discard is greater than the packet loss rate threshold λ discard in the k statistical periods;
Figure PCTCN2016081761-appb-000001
判断所述链路聚合组的所述特征流的实际异常突发概率ηsudden是否大于异常突发概率阈值λsudden;其中,
Figure PCTCN2016081761-appb-000002
Determining whether the actual abnormal burst probability η sudden of the characteristic stream of the link aggregation group is greater than an abnormal burst probability threshold λ sudden ;
Figure PCTCN2016081761-appb-000002
可选地,所述方法还包括:根据统计结果判断所述链路聚合组的成员端口的限速速率是否富余包括:Optionally, the method further includes: determining, according to the statistics, whether the rate limit rate of the member ports of the link aggregation group is:
获取所述成员端口i当前的实际速率
Figure PCTCN2016081761-appb-000003
Obtain the current actual rate of the member port i
Figure PCTCN2016081761-appb-000003
其中,
Figure PCTCN2016081761-appb-000004
among them,
Figure PCTCN2016081761-appb-000004
判断所述Rvc_i是否小于该成员端口i的当前设定的限速速率RcarCur_i,若是,则判定该成员端口i的限速速率富余。It is determined whether the R vc — i is smaller than a currently set rate limit rate R carCur — i of the member port i , and if yes, determining a rate limit rate surplus of the member port i.
可选地,针对链路聚合组的一特征流为该链路聚合组的每个成员端口分配好限速速率包括:Optionally, assigning a rate limit rate to each member port of the link aggregation group for a feature flow of the link aggregation group includes:
在初始时,设定所述链路聚合组的所述特征流的总约定速率Rcar_configInitially, setting a total agreed rate R car_config of the feature stream of the link aggregation group;
将所述总约定速率Rcar_config除以所述链路聚合组的成员端口数n得到所述每个成员端口的限速速率RcarCur_i,所述i表示成员端口,i的取值为大于或等于1且小于或等于所述链路聚合组的成员端口数n的整数。The total agreed rate divided by the link aggregation group R car_config member to obtain the n number of ports each member of the rate limit R carCur_i port, i represents the port member, the value i is greater than or equal to 1 and an integer less than or equal to the number n of member ports of the link aggregation group.
可选地,所述对所述链路聚合组的成员端口的限速速率进行调整包括:Optionally, the adjusting the rate limit of the member ports of the link aggregation group includes:
将所述链路聚合组中限速速率富余的成员端口的当前设定的限速速率与当前实际速率的差值之和作为所述链路聚合组的总富余限速速率量,并将所述链路聚合组中限速速率富余的成员端口的当前设定的限速速率更新为所述成员端口的当前实际速率;The sum of the difference between the current rate limit rate of the member ports of the link aggregation group and the current actual rate in the link aggregation group is used as the total rate limit rate of the link aggregation group, and The current rate limit rate of the member port of the link aggregation group that is limited to the rate limit is updated to the current actual rate of the member port.
将所述总富余限速速率量分配给所述链路聚合组中除所述限速速率富余的成员端口外的成员端口。Allocating the total margin rate rate to the member ports of the link aggregation group except the member ports with the rate limit rate redundancy.
可选地,将所述总富余限速速率量分配给所述链路聚合组中除所述限速 速率富余的成员端口外的成员端口包括:Optionally, the total margin rate rate is allocated to the link aggregation group except the speed limit. Member ports outside the rate-capable member ports include:
从所述链路聚合组中除所述限速速率富余的成员端口外的成员端口中选择出当前的实际速率大于其当前设定限速速率的成员端口;And selecting, from the member of the link aggregation group, a member port that is greater than the current rate limit of the member port except the member port with the rate limit rate;
将所述总富余限速速率量分配给所述选择出的成员端口。The total margin rate rate amount is allocated to the selected member port.
可选地,所述将所述总富余限速速率量分配给所述选择出的成员端口包括:Optionally, the allocating the total margin rate rate amount to the selected member port includes:
将所述总富余限速速率量平均分配给所述选择出的成员端口;Allocating the total surplus rate rate amount to the selected member port on average;
或,or,
将所述选择出的成员端口按照速率紧缺量从小到大的顺序依次排列,其中,所述速率紧缺量等于成员端口当前的实际速率与当前设定的限速速率的差值,或为成员端口的平均实际丢弃流量速率;The selected member ports are sequentially arranged in the order of the rate shortage, wherein the rate shortage is equal to the difference between the current actual rate of the member port and the currently set rate limit rate, or is a member port. Average actual drop traffic rate;
将所述总富余限速速率量按照速率紧缺量从小到大或从大到小的顺序依次与每个速率紧缺量进行比较,如果当前进行比较的总富余限速速率量大于或等于当前比较的速率紧缺量,则将该速率紧缺量对应的成员端口的当前设定的限速速率更新为原限速速率加上该速率紧缺量,并将所述当前进行比较的总富余限速速率量减去当前比较的速率紧缺量后与下一速率紧缺量进行比较;如果所述当前进行比较的总富余限速速率量小于当前比较的速率紧缺量,或当前比较的速率紧缺量为最后一个,则直接将该速率紧缺量对应的成员端口的当前设定的限速速率更新为原限速速率加上所述当前进行比较的总富余限速速率量。The total margin rate rate is compared with each rate shortage according to the rate shortage amount from small to large or from large to small, if the current total limited rate rate is greater than or equal to the current comparison. If the rate is short, the current rate limit rate of the member port corresponding to the rate shortage is updated to the original rate limit rate plus the rate shortage, and the current total rate limit rate is compared. After comparing the rate shortage of the current comparison with the next rate shortage; if the current ratio of the total margin rate of the comparison is less than the rate of the current comparison, or the rate of the current comparison is the last one, then The current rate limit rate of the member port corresponding to the rate shortage is directly updated to the original rate limit rate plus the total remaining rate limit rate currently being compared.
本发明实施例还提供了一种基于聚合链路的流量管理方法装置,包括:The embodiment of the invention further provides a device for managing traffic based on an aggregated link, comprising:
配置模块,设置为针对链路聚合组的一特征流为该链路聚合组的每个成员端口分配限速速率;The configuration module is configured to allocate a rate limit rate to each member port of the link aggregation group for a feature flow of the link aggregation group;
统计模块,设置为统计所述每个成员端口的所述特征流的流量;a statistics module, configured to collect statistics on the traffic of the feature stream of each member port;
管理模块,设置为当根据所述统计模块的统计结果判断所述链路聚合组的所述特征流实际异常突发概率ηsudden大于异常突发概率阈值λsudden,且所述链路聚合组的中至少一个成员端口的限速速率富余时,对所述链路聚合组的成员端口的限速速率进行调整。 a management module, configured to determine, according to the statistical result of the statistics module, that the feature flow actual abnormality probability η sudden of the link aggregation group is greater than an abnormal burst probability threshold λ sudden , and the link aggregation group When the rate limit of at least one member port is limited, the rate limit of the member ports of the link aggregation group is adjusted.
可选地,所述统计模块包括通过流量统计子模块和丢弃流量统计子模块;Optionally, the statistics module includes a traffic statistics sub-module and a drop traffic statistics sub-module;
所述流量统计子模块设置为统计连续的k个统计周期T内所述每个成员端口的所述特征流的实际通过流量速率Rpass_ijThe traffic statistics sub-module is configured to count the actual traffic rate R pass_ij of the feature stream of each member port in the consecutive k statistical periods T;
所述丢弃流量统计子模块设置为统计连续的k个统计周期T内所述每个成员端口的所述特征流的实际丢弃流量速率Rdiscard_ijThe discarding traffic statistics sub-module is configured to count the actual discard traffic rate R discard_ij of the feature stream of each member port in the consecutive k statistical periods T;
其中,所述i表示成员端口,i大于或等于1且小于或等于所述链路聚合组的成员端口数n;所述j表示统计周期,j大于或等于1且小于或等于所述k,所述k大于或等于2。Where i is a member port, i is greater than or equal to 1 and less than or equal to the number of member ports n of the link aggregation group; the j represents a statistical period, j is greater than or equal to 1 and less than or equal to the k, The k is greater than or equal to 2.
可选地,所述管理模块包括异常判断子模块,设置为获取所述k个周期内所述链路聚合组的所述特征流的总实际通过量Rpass_j和总实际丢弃量Rdiscard_j;其中,Optionally, the management module includes an abnormality determining sub-module, configured to acquire a total actual throughput R pass_j and a total actual discard amount R discard_j of the feature stream of the link aggregation group in the k cycles; ,
Rpass_j=∑i=1,2,...,nRpass_ijR pass_j =∑ i=1,2,...,n R pass_ij ;
Rdiscard_j=∑i=1,2,...,nRdiscard_ijR discard_j =∑ i=1,2,...,n R discard_ij ;
获取所述链路聚合组的所述特征流在所述k个统计周期内出现突发丢包率σdiscard大于丢包率阈值λdiscard的次数M;其中,
Figure PCTCN2016081761-appb-000005
Obtaining, in the k statistical periods, the number of times that the burst loss rate σ discard is greater than the packet loss rate threshold λ discard in the k statistical periods;
Figure PCTCN2016081761-appb-000005
以及,判断所述链路聚合组的所述特征流的实际异常突发概率ηsudden是否大于异常突发概率阈值
Figure PCTCN2016081761-appb-000006
And determining whether the actual abnormal burst probability η sudden of the characteristic stream of the link aggregation group is greater than an abnormal burst probability threshold
Figure PCTCN2016081761-appb-000006
其中,所述管理模块包括富余判断子模块,设置为获取所述成员端口i当前的实际速率
Figure PCTCN2016081761-appb-000007
The management module includes a redundancy judgment sub-module, and is configured to acquire a current actual rate of the member port i.
Figure PCTCN2016081761-appb-000007
其中,
Figure PCTCN2016081761-appb-000008
among them,
Figure PCTCN2016081761-appb-000008
以及,判断所述Rvc_i是否小于该成员端口i的当前设定的限速速率RcarCur_i,若是,则判定该成员端口i的限速速率富余。And determining whether the R vc — i is less than a current rate limit rate R carCur — i of the member port i, and if yes, determining a rate limit rate of the member port i.
可选地,所述管理模块包括计算子模块和调整子模块,Optionally, the management module includes a calculation submodule and an adjustment submodule.
所述计算子模块设置为:将所述链路聚合组中限速速率富余的成员端口 的当前设定的限速速率与当前实际速率的差值之和作为所述链路聚合组的总富余限速速率量,并将所述链路聚合组中限速速率富余的成员端口的当前设定的限速速率更新为所述成员端口的当前实际速率;The calculation submodule is configured to: the member ports of the link aggregation group with a limited rate rate redundancy The sum of the difference between the currently set rate limit rate and the current actual rate is used as the total margin rate rate of the link aggregation group, and the current limit of the member ports of the link aggregation group with the rate limit rate is redundant. The set rate limit rate is updated to the current actual rate of the member port;
所述调整子模块设置为将所述总富余限速速率量分配给所述链路聚合组中除所述限速速率富余的成员端口外的成员端口。The adjustment submodule is configured to allocate the total margin rate rate amount to a member port of the link aggregation group except the member port with the rate limit rate redundancy.
可选地,所述调整子模块包括选择单元和分配单元;Optionally, the adjustment submodule includes a selection unit and an allocation unit;
所述选择单元设置为从所述链路聚合组中除所述限速速率富余的成员端口外的成员端口中选择出当前的实际速率大于其当前设定的限速速率的成员端口;The selecting unit is configured to select, from the member ports of the link aggregation group, the member ports other than the member ports of the rate limiting rate, that the current actual rate is greater than the member port whose current rate limit is set;
所述分配单元设置为将所述总富余限速速率量分配给所述选择出成员端口。The allocation unit is configured to allocate the total margin rate rate amount to the selected member port.
可选地,所述分配单元包括平均分配子单元或比较分配子单元;Optionally, the allocating unit includes an average allocation subunit or a comparison allocation subunit;
所述平均分配子单元设置为将所述总富余限速速率量平均分配给所述选择出的每个成员端口;The average allocation subunit is configured to evenly distribute the total margin rate rate amount to each selected member port;
所述比较分配子单元设置为:将所述选择出的成员端口按照速率紧缺量从小到大的顺序依次排列,其中,所述速率紧缺量等于成员端口当前的实际速率与当前设定的限速速率的差值或为成员端口的平均实际丢弃流量速率;将所述总富余限速速率量按照速率紧缺量从小到大或从大到小的顺序依次与每个速率紧缺量进行比较,如果所述当前进行比较的总富余限速速率量大于或等于当前比较的速率紧缺量,则将该速率紧缺量对应的成员端口的当前设定的限速速率更新为原限速速率加上该速率紧缺量,并将所述当前进行比较的总富余限速速率减去当前比较的速率紧缺量后与下一速率紧缺量进行比较;如果所述当前进行比较的总富余限速速率量小于当前比较的速率紧缺量,或当前比较的速率紧缺量为最后一个,则直接将该速率紧缺量对应的成员端口的当前设定的限速速率更新为原限速速率加上所述当前进行比较的总富余限速速率量。The comparison allocation sub-unit is configured to: arrange the selected member ports in descending order of the rate shortage, wherein the rate shortage is equal to the current actual rate of the member port and the currently set rate limit. The difference between the rates is the average actual discarding traffic rate of the member ports; the total margin rate rate is compared with each rate shortage according to the rate shortage from small to large or from small to small. If the current rate limit rate of the current comparison is greater than or equal to the rate of the current comparison, the current rate limit of the member port corresponding to the rate shortage is updated to the original rate limit plus the rate shortage. And comparing the current surplus rate limit rate of the current comparison with the current rate rate shortage amount, and comparing with the next rate shortage amount; if the current total rate limit rate of the comparison is smaller than the current comparison The rate shortage, or the current comparison rate shortage is the last one, directly the current setting of the member port corresponding to the rate shortage The updated rate limit for the primary rate limit plus the current margin rate limit for the total amount of the comparison.
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行时实现基于聚 合链路的流量管理方法方法。The embodiment of the invention further provides a computer readable storage medium, where the computer readable storage medium stores computer executable instructions, and the computer executable instructions are implemented based on the aggregation Link traffic management method method.
本发明实施例的有益效果是:The beneficial effects of the embodiments of the present invention are:
本发明实施例提供的基于聚合链路的流量管理方法及装置,针对链路聚合组一特征流streamA为该链路聚合组的每个成员端口分配好限速速率后,统计每个成员端口的特征流streamA流量,当根据统计结果判断该链路聚合组该特征流streamA的实际异常突发概率ηsudden大于异常突发概率阈值λsudden,且该链路聚合组中至少一个成员端口的限速速率富余时,对该链路聚合组的成员端口的限速速率进行调整。本发明实施例可在为链路聚合组的成员端口分配好限速速率后,基于每个成员端口实际流量情况合理的重新调整每个成员端口特征流streamA的限速速率,因此可充分利用每个成员端口的带宽资源,提高特征流streamA的转发效率,完善QoS保障。The aggregated link-based traffic management method and device provided by the embodiment of the present invention are configured to collect a rate limit rate for each member port of the link aggregation group, and collect a rate limit for each member port of the link aggregation group. The feature stream streamA traffic, when it is determined according to the statistical result that the actual abnormal burst probability η sudden of the feature stream streamA of the link aggregation group is greater than the abnormal burst probability threshold λ sudden , and the rate limit of at least one member port in the link aggregation group When the rate is surplus, the rate limit of the member ports of the link aggregation group is adjusted. In the embodiment of the present invention, after the rate limit is configured for the member ports of the link aggregation group, the rate limit of each member port feature stream streamA is re-adjusted based on the actual traffic of each member port, so that each of the member ports can be fully utilized. Bandwidth resources of member ports improve the forwarding efficiency of feature stream streamA and improve QoS guarantee.
在阅读并理解了附图和详细描述后,可以明白其它方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图说明DRAWINGS
图1为本发明实施例一提供的基于聚合链路的流量管理方法的流程示意图;1 is a schematic flowchart of a method for managing traffic based on an aggregate link according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的基于聚合链路的流量管理装置的结构示意图;2 is a schematic structural diagram of an aggregate link-based traffic management apparatus according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的网络拓扑结构示意图;3 is a schematic diagram of a network topology structure according to Embodiment 3 of the present invention;
图4为本发明实施例三提供的统计数据存储示意图;4 is a schematic diagram of statistical data storage provided by Embodiment 3 of the present invention;
图5为本发明实施例三提供的调整效果示意图。FIG. 5 is a schematic diagram of an adjustment effect according to Embodiment 3 of the present invention.
具体实施方式Detailed ways
下面通过具体实施方式结合附图对本发明实施例作进一步详细说明。The embodiments of the present invention are further described in detail below with reference to the accompanying drawings.
实施例一:Embodiment 1:
请参见图1所示,本实施例提供的基于聚合链路的流量管理方法包括: Referring to FIG. 1 , the aggregate link-based traffic management method provided in this embodiment includes:
步骤101:针对链路聚合组一特征流(如streamA),为该链路聚合组的每个成员端口分配限速速率;Step 101: Allocating a rate limit rate to each member port of the link aggregation group for a feature stream (such as streamA) of the link aggregation group;
在该步骤101之前,还可包括预配置阶段,通过相应的配置设备配置开启或关闭基于链路聚合组的限速自适应调节功能,也即配置开启或关闭基于聚合链路的流量管理;Before the step 101, the pre-configuration phase may be further configured to enable or disable the link aggregation group-based rate-limiting adaptive adjustment function by configuring the corresponding configuration device, that is, configuring the aggregation link-based traffic management to be enabled or disabled;
步骤101中的一特征流是指一些匹配上诸如报文类型(如广播broadcast、单播unicast等)、报文优先级(如DSCP(Differentiated Services Code Point,差分服务代码点)、优先级Precedence、802.1p等)、准入控制列表ACL(Access Control List,访问控制列表)等一系列数据包流;在该步骤中,初始时,针对链路聚合组一特征流streamA为该链路聚合组的每个成员端口分配限速速率的方式可以采用平均分配的方式,也可以采用随机分配或其他分配方式进行分配。A feature stream in step 101 refers to a matching type such as a packet type (such as broadcast broadcast, unicast unicast, etc.), a packet priority (such as DSCP (Differentiated Services Code Point), priority Precedence, A series of packet flows, such as an access control list (ACL), and an access control list (ACL); in this step, initially, a feature stream streamA for the link aggregation group is the link aggregation group. The rate limit rate of each member port can be allocated in an average manner, or it can be allocated by random allocation or other allocation methods.
下面以平均分配和随机分配两种方式作为示例说明:The following is an example of the average allocation and random allocation:
1、平均分配的方式:1. The method of equal distribution:
设定链路聚合组该特征流streamA的总约定速率Rcar_configSet the total agreed rate R car_config of the feature stream streamA of the link aggregation group;
将总约定速率Rcar_config除以链路聚合组的成员端口数n得到每个成员端口的限速速率RcarCur_i,其中i表示成员端口,i的取值为大于或等于1且小于或等于链路聚合组的成员端口数n的整数。 R car_config total committed rate divided by the number of members of the link aggregation group to give each member port n rate limit R carCur_i port, where i represents the port member, the value i is greater than or equal to 1 and less than or equal to the link The integer number of member ports of the aggregation group.
2、随机分配:2, random allocation:
设定链路聚合组该特征流streamA的总约定速率Rcar_configSet the total agreed rate R car_config of the feature stream streamA of the link aggregation group;
将总约定速率
Figure PCTCN2016081761-appb-000009
随机拆分后分配给链路聚合组的每个成员端口得到各成员端口的限速速率RcarCur_i
Total agreed rate
Figure PCTCN2016081761-appb-000009
Each member port assigned to the link aggregation group is randomly split to obtain the rate limit rate R carCur_i of each member port.
不管采用哪种分配方式,都遵循以下原则:Regardless of which distribution method is used, the following principles are followed:
RcarCur_1+RcarCur_2+…RcarCur_n=Rcar_configR carCur_1 +R carCur_2 +...R carCur_n =R car_config ;
在后续阶段,上述步骤101中为链路聚合组的各成员端口分配的限速速率则可以是通过后续步骤103调整后的限速速率;In the subsequent stage, the rate limit rate allocated to each member port of the link aggregation group in the foregoing step 101 may be the rate limit rate adjusted by the subsequent step 103;
步骤102:统计链路聚合组每个成员端口的所述特征流streamA的流量; Step 102: Count the traffic of the feature stream streamA of each member port of the link aggregation group;
本实施例中所统计的特征流streamA的流量包括但不限于每个成员端口所述特征流streamA的实际通过流量速率和实际丢弃流量速率;本实施例中考虑到网络的实际情况和为了保证调整结果符合实际需求,统计连续的k个统计周期T内每个成员端口特征流streamA的实际通过流量速率Rpass_ij和实际丢弃流量速率Rdiscard_ij;其中,i表示成员端口,i大于或等于1且小于或等于所述链路聚合组的成员端口数n;j表示统计周期,j取值大于或等于1且小于或等于k,k大于或等于2。本实施例中的连续k个统计周期T可指完全重新统计的k个周期,可以复用之前统计的k-1个周期,下面分别举例进行说明:The traffic of the feature stream streamA, which is calculated in this embodiment, includes, but is not limited to, the actual traffic rate and the actual traffic rate of the feature stream streamA of each member port. In this embodiment, the actual situation of the network and the adjustment are ensured. The result is in line with the actual demand, and the actual passing traffic rate R pass_ij and the actual discarding traffic rate R discard_ij of each member port feature stream streamA in the consecutive k statistical periods T are counted ; where i is a member port, i is greater than or equal to 1 and less than Or equal to the number of member ports of the link aggregation group, n; j represents a statistical period, j is greater than or equal to 1 and less than or equal to k, and k is greater than or equal to 2. The consecutive k statistical periods T in this embodiment may refer to k cycles that are completely re-stated, and the k-1 cycles before statistics may be multiplexed. The following examples are respectively illustrated:
完全重新统计:例如假设n为3,则统计完t1、t2、t3三个统计周期后,下一轮则需要等t4、t5、t6三个统计周期统计完成后,进行下一轮操;Completely re-statistics: For example, if n is 3, then after counting the three statistical periods t1, t2, and t3, the next round needs to wait for the statistics of three statistical periods t4, t5, and t6 to complete the next round of operations;
复用之前统计的k-1个周期:仍假设n为3,则统计完t1、t2、t3三个统计周期后,下一轮则只需要等t4统计周期统计完成后,即可用t2、t3、t4三个统计周期执行下一轮的操作;K-1 cycles before multiplexing: If n is still assumed to be 3, then after counting the three statistical periods t1, t2, and t3, the next round only needs to wait for the t4 statistical period statistics to be completed, then t2 and t3 can be used. And t4 three statistical cycles to perform the next round of operations;
其中,k的具体取值可根据具体的网络情况和具体应用场景灵活设定。The specific value of k can be flexibly set according to specific network conditions and specific application scenarios.
步骤103;当根据统计结果判断链路聚合组该特征流streamA实际异常突发概率ηsudden大于异常突发概率阈值λsudden,且所述链路聚合组中至少一个成员端口的限速速率富余时,对该链路聚合组成员端口的限速速率进行调整。Step 103: When it is determined according to the statistical result, the characteristic abnormality probability η sudden of the characteristic stream streamA of the link aggregation group is greater than the abnormal burst probability threshold λ sudden , and the rate limit rate of at least one member port in the link aggregation group is surplus The rate limit of the member ports of the link aggregation group is adjusted.
可选地,所述方法还包括:根据统计结果判断链路聚合组的所述特征流实际异常突发概率ηsudden是否大于异常突发概率阈值λsudden包括:;Optionally, the method further includes: determining, according to the statistical result, whether the feature flow actual abnormality probability η sudden of the link aggregation group is greater than an abnormal burst probability threshold λ sudden includes:
其中,所述根据统计结果判断所述链路聚合组的所述特征流的实际异常突发概率ηsudden是否大于异常突发概率阈值λsudden包括:The determining, according to the statistical result, whether the actual abnormal burst probability η sudden of the feature stream of the link aggregation group is greater than an abnormal burst probability threshold λ sudden includes:
获取k个周期内链路聚合组特征流streamA的总实际通过量Rpass_j和总实际丢弃量Rdiscard_jObtaining the total actual throughput R pass_j and the total actual discard amount R discard_j of the link aggregation group feature stream streamA in k periods;
其中,among them,
Rpass_j=∑i=1,2,...,nRpass_ijR pass_j =∑ i=1,2,...,n R pass_ij ;
Rdiscard_j=∑i=1,2,...,nRdiscard_ijR discard_j =∑ i=1,2,...,n R discard_ij ;
获取链路聚合组的所述特征流在k个统计周期内出现的次数突发丢包率σdiscard大于丢包率阈值λdiscard的次数M;其中,
Figure PCTCN2016081761-appb-000010
判断所述链路聚合组的所述特征流的实际异常突发概率ηsudden是否大于异常突发概率阈值λsudden,其中,
Figure PCTCN2016081761-appb-000011
Obtaining the number of occurrences of the characteristic flow of the link aggregation group in the k statistical periods, the burst loss rate σ discard is greater than the number M of the packet loss threshold λ discard ; wherein
Figure PCTCN2016081761-appb-000010
Determining whether the actual abnormal burst probability η sudden of the characteristic stream of the link aggregation group is greater than an abnormal burst probability threshold λ sudden , wherein
Figure PCTCN2016081761-appb-000011
异常突发概率阈值λsudden的取值也可根据具体的网络情况和具体应用场景等因素具体设定;The value of the abnormal burst probability threshold λ sudden may also be specifically set according to specific network conditions and specific application scenarios;
可选地,所述方法还包括:根据统计结果判断所述链路聚合组的成员端口的限速速率是否富余;Optionally, the method further includes: determining, according to the statistical result, whether a rate limit rate of the member ports of the link aggregation group is redundant;
获取成员端口i当前的实际速率Rvc_iObtain the current actual rate R vc_i of the member port i;
其中,
Figure PCTCN2016081761-appb-000012
among them,
Figure PCTCN2016081761-appb-000012
判断获取到的Rvc_i是否小于该成员端口i的当前设定的限速速率RcarCur_i,若是,则判定该成员端口i的限速速率富余。It is determined whether the obtained R vc_i is smaller than the currently set rate limit rate R carCur_i of the member port i, and if yes, the rate limit rate of the member port i is determined to be surplus.
RcarCur_i-Rvc_i则为成员端口限速速率的富余量;将这类成员端口(限速速率富余的成员端口)的富余量之和作为总富余限速速率量,也即将这类成员端口当前设定的限速速率与当前实际速率的差值再求和,将求和所得结果作为总富余限速速率量;R carCur_i -R vc_i is the margin of the rate limit of the member ports; the sum of the margins of such member ports (member ports with limited rate limit) is used as the total margin rate rate, and the member ports are currently The difference between the set rate limit rate and the current actual rate is summed, and the summed result is used as the total surplus rate rate;
反之,如果Rvc_i>RcarCur_i,则判定该成员端口i的限速速率紧缺,本示例中可将Rvc_i-RcarCur_i作为成员端口i的速率紧缺量,也可将这类成员端口的平均实际丢弃流量速率
Figure PCTCN2016081761-appb-000013
作为速率紧缺量。
On the other hand, if R vc_i >R carCur_i , it is determined that the rate limit rate of the member port i is in short supply. In this example, R vc_i -R carCur_i can be used as the rate shortage of the member port i, and the average actual value of such member ports can also be used. Drop rate
Figure PCTCN2016081761-appb-000013
As a rate shortage.
可选地,步骤103中,对链路聚合组成员端口的限速速率进行调整包括:Optionally, in step 103, adjusting the rate limit of the member ports of the link aggregation group includes:
将所述链路聚合组中限速速率富余的成员端口的当前设定的限速速率与当前实际速率的差值之和作为所述链路聚合组的总富余限速速率量,并将所述链路聚合组中限速速率富余的成员端口的当前设定的限速速率更新为所述 成员端口的当前实际速率;The sum of the difference between the current rate limit rate of the member ports of the link aggregation group and the current actual rate in the link aggregation group is used as the total rate limit rate of the link aggregation group, and The currently set rate limit rate of the member ports of the link aggregation group with the rate limit rate surplus is updated as described above. The current actual rate of the member port;
将所述总富余限速速率量分配给所述链路聚合组中除所述限速速率富余的成员端口外的成员端口。Allocating the total margin rate rate to the member ports of the link aggregation group except the member ports with the rate limit rate redundancy.
其中,所述将所述总富余限速速率量分配给所述链路聚合组中除所述限速速率富余的成员端口外的成员端口包括:The member ports of the link aggregation group except the member ports with the rate limit rate redundancy are included in the link aggregation group:
从所述链路聚合组中除所述限速速率富余的成员端口外的成员端口中选择出当前的实际速率大于其当前设定的限速速率的成员端口;And selecting, from the member of the link aggregation group, a member port that is greater than the current rate limit rate of the member port except the member port with the rate limit rate;
将所述总富余限速速率量分配给所述选择出的成员端口。其分配方式包括但不限于:The total margin rate rate amount is allocated to the selected member port. Its distribution methods include but are not limited to:
分配方式一:将总富余限速速率量平均分配给选择出的速率紧缺的每个成员端口;Allocation method 1: Allocate the total surplus rate rate to the member port with the selected rate being evenly distributed;
分配方式二:将选择出的成员端口按照速率紧缺量从小到大的顺序依次排列;Allocation method 2: The selected member ports are arranged in order from the smallest to the largest;
将所述总富余限速速率量按照速率紧缺量从小到大或从大到小的顺序依次与每个速率紧缺量进行比较,如果当前进行比较的总富余限速速率量大于或等于当前比较的速率紧缺量,则将该速率紧缺量对应的成员端口的当前设定的限速速率更新为原限速速率加上该速率紧缺量,并将所述当前进行比较的总富余限速速率量减去当前比较的速率紧缺量后与下一速率紧缺量进行比较;The total margin rate rate is compared with each rate shortage according to the rate shortage amount from small to large or from large to small, if the current total limited rate rate is greater than or equal to the current comparison. If the rate is short, the current rate limit rate of the member port corresponding to the rate shortage is updated to the original rate limit rate plus the rate shortage, and the current total rate limit rate is compared. After comparing the rate shortage of the current comparison with the next rate shortage;
如果所述当前进行比较的总富余限速速率量小于当前比较的速率紧缺量,则直接将该速率紧缺量对应的成员端口当前设定的限速速率更新为原限速速率加上总富余限速速率,后面速率紧缺量的成员端口则不再更新;If the current rate limit rate of the current comparison is smaller than the rate of the current comparison, the current rate limit set by the member port corresponding to the rate shortage is directly updated to the original rate limit plus the total margin limit. The speed rate, the member port of the subsequent rate shortage is no longer updated;
如果当前比较的速率紧缺量为最后一个,则也直接将该速率紧缺量对应的成员端口当前设定的限速速率更新为原限速速率加上总富余限速速率。If the current rate of shortage is the last one, the current rate limit set by the member port corresponding to the rate shortage is updated to the original rate limit rate plus the total margin rate.
不管采用上述分配方式的哪种,经更新后,每个成员端口更新后的限速速率仍满足以下关系:Regardless of the above allocation method, after updating, the rate limit rate after updating each member port still satisfies the following relationship:
RcarCur_1+RcarCur_2+…RcarCur_n=Rcar_configR carCur_1 +R carCur_2 +...R carCur_n =R car_config .
可见,针对链路聚合应用端口限速,将基于特征流总限速CIR值在每个 成员端口上按某种方式固定分配,造成有的成员端口带宽充足,但实际数据流量超出分配的限定速率配额,数据被严重堵塞、丢包,有的成员端口空闲,承载的数据流远低于分配的限速速率等这类分担不合理现象,本实施例通过周期性采集转发面特征流的实际通过流量、丢弃流量,并结合本实施例的成员端口的限速调整准则和调整方式,合理重分配成员端口基于特征流的限速流量,将空闲成员端口的富余限速流量配额分配给流量大、丢包严重的成员端口,增加其通过速率带宽,有效降低丢包率,从而达到在整体限速值不变的情况下,提高该特征流的转发效率,进一步充分利用带宽资源,完善QoS保障。It can be seen that for the link aggregation application port rate limit, the total rate limit CIR value based on the feature stream is used in each A member port is fixedly allocated in a certain way, causing some member ports to have sufficient bandwidth. However, the actual data traffic exceeds the allocated rate quota, the data is severely blocked, and packets are lost. Some member ports are idle, and the data flow is far lower. In this embodiment, the actual rate of traffic passing through the feature flow of the forwarding plane is periodically collected, and the traffic is discarded, and the speed limit adjustment criterion and adjustment mode of the member ports in this embodiment are used. The redistributed member port is based on the rate-based traffic of the feature stream. The reserved rate limit of the idle member port is allocated to the member ports with large traffic and heavy packet loss. The rate of bandwidth is increased and the packet loss rate is effectively reduced. When the rate limit value is unchanged, the forwarding efficiency of the feature stream is improved, and the bandwidth resource is further utilized to improve the QoS guarantee.
实施例二:Embodiment 2:
本实施例提供了一种基于聚合链路的流量管理装置,请参见图2所示,包括:This embodiment provides a traffic management device based on an aggregated link. Referring to FIG. 2, the method includes:
配置模块1,设置为针对链路聚合组一特征流streamA为该链路聚合组的每个成员端口分配限速速率;The configuration module 1 is configured to allocate a rate limit rate to each member port of the link aggregation group for the link aggregation group-feature stream streamA;
本实施例中的一特征流streamA是指一些匹配上诸如报文类型(如broadcast、unicast等等)、报文优先级(如DSCP、Precedence、802.1p等等)、准入控制列表ACL等一系列数据包流;配置模块1针对链路聚合组某特征流streamA为该链路聚合组的每个成员端口分配限速速率的方式可以采用平均分配的方式,也可以采用随机分配或其他分配方式进行分配。A feature stream streamA in this embodiment refers to a matching type such as a packet type (such as broadcast, unicast, etc.), a packet priority (such as DSCP, Precedence, 802.1p, etc.), an admission control list ACL, and the like. A series of packet flows; the configuration module 1 allocates a rate limit rate to each member port of the link aggregation group for a feature stream streamA of the link aggregation group, and may adopt an average allocation manner, or may adopt a random allocation or other allocation manner. Make an assignment.
下面以平均分配和随机分配两种方式作为示例说明:The following is an example of the average allocation and random allocation:
1、平均分配的方式:1. The method of equal distribution:
先设定链路聚合组该特征流streamA的总约定速率Rcar_configFirst, set the total agreed rate R car_config of the feature stream streamA of the link aggregation group;
将总约定速率Rcar_config除以链路聚合组的成员端口数n得到各成员端口的限速速率RcarCur_i,其中i表示成员端口,i的取值为大于或等于1且小于或等于所述链路聚合组的成员端口数n的整数 R car_config total committed rate divided by the number of members of the LAG port n to give the members of the rate limit R carCur_i port, where i represents the port member, the value i is greater than or equal to 1 and less than or equal to the chain The number of member ports of the road aggregation group is an integer n.
2、随机分配方式:2, random distribution method:
先设定链路聚合组该特征流streamA的总约定速率Rcar_configFirst, set the total agreed rate R car_config of the feature stream streamA of the link aggregation group;
将总约定速率
Figure PCTCN2016081761-appb-000014
随机拆分后分配给链路聚合组的每个成员端口得到每个成员端口的限速速率RcarCur_i
Total agreed rate
Figure PCTCN2016081761-appb-000014
Each member port assigned to the link aggregation group after random splitting obtains the rate limit rate R carCur_i of each member port.
不管采用哪种分配方式,都遵循以下原则:Regardless of which distribution method is used, the following principles are followed:
RcarCur_1+RcarCur_2+…RcarCur_n=Rcar_configR carCur_1 +R carCur_2 +...R carCur_n =R car_config ;
统计模块2,设置为统计每个成员端口的特征流streamA流量;可选地,统计模块2包括通过流量统计子模块21和丢弃流量统计子模块22;The statistics module 2 is configured to collect the feature stream streamA traffic of each member port; optionally, the statistics module 2 includes a traffic statistics sub-module 21 and a drop traffic statistics sub-module 22;
通过流量统计子模块21设置为统计连续的k个统计周期T内每个成员端口的特征流streamA的实际通过流量速率Rpass_ijThe traffic statistics sub-module 21 is configured to count the actual traffic rate R pass_ij of the feature stream streamA of each member port in the k consecutive statistical periods T;
丢弃流量统计子模块22设置为统计连续的k个统计周期T内每个成员端口特征流streamA的实际丢弃流量速率Rdiscard_ijThe discarding traffic statistics sub-module 22 is configured to count the actual discarding traffic rate R discard_ij of each member port feature stream streamA in consecutive k statistical periods T;
其中,i表示成员端口,i大于或等于1且小于或等于所述链路聚合组的成员端口数n;所述j表示统计周期,j大于或等于1且小于或等于所述k,所述k大于或等于2。Where i is a member port, i is greater than or equal to 1 and less than or equal to the number of member ports n of the link aggregation group; the j represents a statistical period, j is greater than or equal to 1 and less than or equal to the k, k is greater than or equal to 2.
本实施例中考虑到网络的实际情况和为了保证调整结果符合实际需求,通过流量统计子模块21和丢弃流量统计子模块22分别设置为统计连续的k个统计周期T内每个成员端口特征流streamA的实际通过流量速率Rpass_ij和实际丢弃流量速率Rdiscard_ij;本实施例中的连续k个统计周期T可指完全重新统计的k个周期,可以复用之前统计的k-1个周期。In this embodiment, the traffic flow statistics sub-module 21 and the drop traffic statistics sub-module 22 are respectively set to count the statistical flow of each member port in the k consecutive statistical periods T, in order to ensure that the adjustment result meets the actual requirements. The actual traffic rate R pass_ij and the actual discard traffic rate R discard_ij of the stream A ; the consecutive k statistical periods T in this embodiment may refer to k cycles that are completely re- stated , and the previously counted k-1 cycles may be multiplexed.
管理模块3,设置为当根据统计模块2的统计结果判断链路聚合组的特征流streamA实际异常突发概率ηsudden大于异常突发概率阈值λsudden,且成员端口中至少一个成员端口的限速速率富余时,对链路聚合组成员端口的限速速率进行调整。The management module 3 is configured to determine, according to the statistical result of the statistical module 2, that the feature stream streamA actual abnormal burst probability η sudden of the link aggregation group is greater than the abnormal burst probability threshold λ sudden , and the rate limit of at least one member port of the member port When the rate is surplus, adjust the rate limit of the member ports of the link aggregation group.
可选地,管理模块3包括异常判断子模块31,设置为获取k个周期内链路聚合组特征流streamA的总实际通过量Rpass_j和总实际丢弃量Rdiscard_jOptionally, the management module 3 includes an abnormality determining sub-module 31 configured to acquire the total actual throughput R pass_j and the total actual discard amount R discard_j of the link aggregation group feature stream streamA in k cycles;
其中,Rpass_j=∑i=1,2,...,nRpass_ijWhere R pass_j = ∑ i = 1, 2, ..., n R pass_ij ;
Rdiscard_j=∑i=1,2,...,nRdiscard_ijR discard_j =∑ i=1,2,...,n R discard_ij ;
获取链路聚合组的所述特征流在k个统计周期内出现的次数突发丢包率 σdiscard大于丢包率阈值λdiscard的次数M;其中,
Figure PCTCN2016081761-appb-000015
Obtaining the number of occurrences of the burst loss rate of the characteristic flow of the link aggregation group in the k statistical periods σ discard is greater than the number M of the packet loss rate threshold λ discard ; wherein
Figure PCTCN2016081761-appb-000015
以及,判断所述链路聚合组的所述特征流的实际异常突发概率ηsudden是否大于异常突发概率阈值λsudden;其中,
Figure PCTCN2016081761-appb-000016
And determining whether the actual abnormal burst probability η sudden of the characteristic stream of the link aggregation group is greater than an abnormal burst probability threshold λ sudden ;
Figure PCTCN2016081761-appb-000016
异常突发概率阈值λsudden的取值也可根据具体的网络情况和具体应用场景等因素具体设定。The value of the abnormal burst probability threshold λ sudden can also be specifically set according to specific network conditions and specific application scenarios.
可选地,管理模块3包括富余判断子模块32,设置为获取成员端口i当前的实际速率Rvc_i Optionally, the management module 3 includes a redundancy judgment sub-module 32 configured to acquire the current actual rate R vc_i of the member port i.
其中,
Figure PCTCN2016081761-appb-000017
among them,
Figure PCTCN2016081761-appb-000017
以及,判断Rvc_i是否小于该成员端口i的当前设定的限速速率RcarCur_i,若是,则判定该成员端口i的限速速率富余。And determining whether R vc — i is less than a current rate limit rate R carCur — i of the member port i , and if yes, determining a rate limit rate of the member port i.
RcarCur_i-Rvc_i则为该限速速率富余的成员端口限速速率的富余量;将该这类成员端口(限速速率富余的所有成员端口)的富余量之和作为总富余限速速率量,也即将这类成员端口当前设定的限速速率与当前实际速率差值之和作为总富余限速速率量。R carCur_i -R vc_i is the margin of the rate limit rate of the member ports with the limited rate rate; the sum of the margins of the member ports (all member ports with the limited rate rate surplus) is used as the total margin rate rate The sum of the current rate limit set by the member port and the current actual rate difference is also taken as the total margin rate rate.
反之,如果Rvc_i>RcarCur_i,则判定该成员端口i的限速速率紧缺,本示例中可将Rvc_i-RcarCur_i作为成员端口i的速率紧缺量,也可将这类成员端口(限速速率紧缺的所有成员端口)的平均实际丢弃流量速率
Figure PCTCN2016081761-appb-000018
Figure PCTCN2016081761-appb-000019
作为速率紧缺量。
On the other hand, if R vc_i >R carCur_i , it is determined that the rate limit rate of the member port i is in short supply. In this example, R vc_i -R carCur_i can be used as the rate shortage of the member port i, and such member ports can also be used. Average actual drop rate for all member ports that are in short rate
Figure PCTCN2016081761-appb-000018
Figure PCTCN2016081761-appb-000019
As a rate shortage.
可选地,管理模块3还包括计算子模块33和调整子模块34,Optionally, the management module 3 further includes a calculation submodule 33 and an adjustment submodule 34.
计算子模块33设置为将所述链路聚合组中限速速率富余的成员端口的当前设定的限速速率与当前实际速率的差值之和作为所述链路聚合组的总富余限速速率量,并将所述链路聚合组中限速速率富余的成员端口的当前设定的限速速率更新为所述成员端口的当前实际速率;The calculation sub-module 33 is configured to use, as the total surplus rate limit of the link aggregation group, the sum of the difference between the current rate limit rate of the member ports of the link aggregation group and the current actual rate. Rate the rate, and update the current rate limit rate of the member ports of the link aggregation group that are limited by the rate limit to the current actual rate of the member port;
调整子模块设置为将总富余限速速率量分配给链路聚合组中除所述限速 速率富余的成员端口外的成员端口。The adjustment submodule is set to allocate the total margin rate rate amount to the link aggregation group except the speed limit. A member port outside the rate member port.
可选地,调整子模块具体包括选择单元和分配单元;Optionally, the adjustment submodule specifically includes a selection unit and an allocation unit;
选择单元设置为从所述链路聚合组中除所述限速速率富余的成员端口外的成员端口中选择出当前的实际速率大于其当前设定的限速速率的成员端口;The selecting unit is configured to select, from the member ports of the link aggregation group, the member ports other than the member ports with the rate limit remaining; the current actual rate is greater than the member port whose current rate limit is set;
分配单元设置为将总富余限速速率量分配给所述选择出的每个成员端口。The allocation unit is arranged to allocate a total margin rate rate amount to each of the selected member ports.
可选地,分配单元包括平均分配子单元或比较分配子单元;Optionally, the allocation unit comprises an average allocation subunit or a comparison allocation subunit;
平均分配子单元设置为将总富余限速速率量平均分配给所述选择出的每个成员端口;The average allocation subunit is set to evenly allocate the total surplus rate rate amount to each of the selected member ports;
比较分配子单元设置为将所述选择出的成员端口按照速率紧缺量从小到大的顺序依次排列,其中,所述速率紧缺量等于成员端口当前的实际速率与当前设定的限速速率的差值或为成员端口的平均实际丢弃流量速率;将所述总富余限速速率量按照速率紧缺量从小到大或从大到小的顺序依次与每个速率紧缺量进行比较,如果所述当前进行比较的总富余限速速率量大于或等于当前比较的速率紧缺量,则将该速率紧缺量对应的成员端口的当前设定的限速速率更新为原限速速率加上该速率紧缺量,并将所述当前进行比较的总富余限速速率减去当前比较的速率紧缺量后与下一速率紧缺量进行比较;The comparison allocation subunit is configured to sequentially arrange the selected member ports in descending order of the rate shortage, wherein the rate shortage is equal to the difference between the current actual rate of the member port and the currently set rate limit rate. The value is the average actual discarding traffic rate of the member port; the total margin rate rate is compared with each rate shortage according to the rate shortage amount from small to large or large to small, if the current current If the ratio of the total rate limit of the comparison is greater than or equal to the rate of the current comparison, the current rate limit of the member port corresponding to the rate shortage is updated to the original rate limit plus the rate shortage, and Comparing the current surplus rate limit rate of the current comparison with the current rate rate shortage amount and comparing with the next rate shortage amount;
如果所述当前进行比较的总富余限速速率量小于当前比较的速率紧缺量,则直接将该速率紧缺量对应的成员端口当前设定的限速速率更新为原限速速率加上总富余限速速率,后面速率紧缺量的成员端口则不再更新;If the current rate limit rate of the current comparison is smaller than the rate of the current comparison, the current rate limit set by the member port corresponding to the rate shortage is directly updated to the original rate limit plus the total margin limit. The speed rate, the member port of the subsequent rate shortage is no longer updated;
如果当前比较的速率紧缺量为最后一个,则也直接将该速率紧缺量对应的成员端口当前设定的限速速率更新为原限速速率加上总富余限速速率。If the current rate of shortage is the last one, the current rate limit set by the member port corresponding to the rate shortage is updated to the original rate limit rate plus the total margin rate.
不管采用上述分配方式的哪种,经更新后,每个成员端口更新后的限速速率仍满足以下关系:Regardless of the above allocation method, after updating, the rate limit rate after updating each member port still satisfies the following relationship:
RcarCur_1+RcarCur_2+…RcarCur_n=Rcar_configR carCur_1 +R carCur_2 +...R carCur_n =R car_config .
实施例三:Embodiment 3:
下面结合一个具体的应用场景对本发明实施例做进一步说明。 The embodiments of the present invention are further described below in conjunction with a specific application scenario.
本应用场景的网络拓扑结构请参见图3所示,路由器R1、R2通过三个千兆以太口(gei)相连,终端PC1、PC2分别通过百兆以太口(fei)与路由R1、R2相连,PC1与R1配置网段为1.1.1.x/24,PC2与R2配置网段为3.3.3.x/24,路由R1、R2之间配置网段为2.2.2.x/24,通过OSPF(Open Shortest Path First,开放式最短路径优先)协议进行连接,并且端口之间进行链路汇聚InfSG,如此实现PC1和PC2的数据传输。对图3所示网络拓扑结构的流量管理过程如下:For the network topology of this application scenario, see Figure 3. Routers R1 and R2 are connected through three Gigabit Ethernet ports (gei). Terminals PC1 and PC2 are connected to R1 and R2 through the megabit Ethernet port (fei). The network segment where PC1 and R1 are configured is 1.1.1.x/24, the network segment for PC2 and R2 is 3.3.3.x/24, and the network segment for routing between R1 and R2 is 2.2.2.x/24. The (Open Shortest Path First) protocol is connected, and the link aggregation between the ports is Inf SG , thus realizing the data transmission between PC1 and PC2. The traffic management process for the network topology shown in Figure 3 is as follows:
1.配置阶段,通过配置终端,配置开启基于链路聚合组的限速自适应调节功能。In the configuration phase, configure the terminal to enable the rate-based adaptive adjustment function based on the link aggregation group.
2.用户配置基于聚合端口(InfSG)的端口限速,限定该端口的特征流streamA的总约定速率(CIR)为Rcar_config;然后根据链路聚合组的成员端口个数n,平均预分配每个成员端口的限速速率,包括如下内容:2. The user configures the rate limit based on the aggregation port (Inf SG ). The total agreed rate (CIR) of the feature stream streamA of the port is R car_config ; then the average pre-allocation according to the number of member ports of the link aggregation group is n. The rate limit of each member port, including the following:
Figure PCTCN2016081761-appb-000020
其中,i表示成员端口,i大于或等于1且小于或等于链路聚合组的成员端口数n;
Figure PCTCN2016081761-appb-000020
Where i is a member port, i is greater than or equal to 1 and less than or equal to the number of member ports of the link aggregation group n;
3.针对在建立的基于该特征流的统计节点,周期性统计该特征流在链路聚合组内每个成员端口的实际通过流量速率Rpass_ij和实际丢弃流量速率Rdiscard_ij。对于采集周期时间间隔T,其具体值可根据实际应用场景灵活设置,但其不宜设置太小,否则会导致偶尔的流量突发造成限速的频繁调整,对流量转发产生波动;也不宜设置太大,否则导致长时的流量突发迟迟未得到调整响应,流量被严重堵塞。本实施例中分别通过每个周期T内实际转发和丢弃的数据包与设定的周期时间间隔T之比得到实际通过流量速率Rpass_ij和实际丢弃流量速率Rdiscard_ij3. For the statistical node based on the feature flow that is established, periodically calculate the actual traffic rate R pass_ij and the actual drop traffic rate R discard_ij of each member port in the link aggregation group. For the collection interval T, the specific value can be flexibly set according to the actual application scenario, but it should not be set too small. Otherwise, the occasional traffic burst will cause frequent adjustment of the rate limit, which will cause fluctuations in traffic forwarding. Large, otherwise the long-term traffic burst will not be adjusted and the traffic will be seriously blocked. In this embodiment, the actual traffic rate R pass_ij and the actual discard traffic rate R discard_ij are obtained by the ratio of the data packet actually forwarded and discarded in each period T to the set period time interval T, respectively .
4.得到连续的k个特征流streamA的统计数据,所需存储的统计数据信息和存储形式大致如图4所示:4. Obtain statistics of consecutive k feature streams streamA. The statistical information and storage form to be stored is roughly as shown in Figure 4:
图4的区域A所示存储结构中,存储聚合端口InfSG下限定流类型streamA配置的总约定速率Rcar_configIn the storage structure shown in area A of FIG. 4, the total agreed rate R car_config of the stream type streamA configuration under the aggregation port Inf SG is stored;
图4的区域B所示存储结构中,存储设备最新连续k个周期T采集的转发面特征流streamA的总实际通过量Rpass_j,总实际丢弃量Rdiscard_j,其中,j表示统计周期,j大于或等于1且小于或等于k;其中任一周期内采集的总实 际通过量Rpass_j,总实际丢弃量Rdiscard_j为当前周期内每个成员端口分别采集的特征流streamA的通过速率、丢弃速率之和,如下所示:In the storage structure shown in area B of FIG. 4, the total actual throughput R pass_j of the forwarding surface feature stream streamA collected by the storage device for the last consecutive k periods T, the total actual discard amount R discard_j , where j represents a statistical period, and j is greater than Or equal to 1 and less than or equal to k; the total actual throughput R pass_j collected in any period, the total actual discard amount R discard_j is the passing rate and discard rate of the feature stream streamA collected by each member port in the current period. And, as follows:
Rpass_j=∑i=1,2,...,nRpass_ijR pass_j =∑ i=1,2,...,n R pass_ij ;
Rdiscard_j=∑i=1,2,...,nRdiscard_ijR discard_j =∑ i=1,2,...,n R discard_ij ;
图4的区域C所示存储结构中,存储聚合端口InfSG下每个成员端口限定流类型streamA的限速速率RcarCur_i,创建初始预分配阶段
Figure PCTCN2016081761-appb-000021
Figure PCTCN2016081761-appb-000022
见公式。
In the storage structure shown in area C of FIG. 4, the rate limit rate R carCur_i of the stream type streamA is defined for each member port of the aggregation port Inf SG , and an initial pre-allocation phase is created.
Figure PCTCN2016081761-appb-000021
Figure PCTCN2016081761-appb-000022
See the formula.
图4的区域D所示存储结构,存储设备最新连续k个统计周期T采集的转发面特征流streamA在每个成员端口上的实际通过流量速率Rpass_ij和实际丢弃流量速率Rdiscard_ijThe storage structure shown in area D of FIG. 4, the actual passing traffic rate R pass_ij and the actual discarding traffic rate R discard_ij of the forwarding surface feature stream streamA collected by the storage device in the latest consecutive k statistical periods T on each member port;
如图5所示,假设聚合端口InfSG下绑定三个成员端口inf1、inf2、inf3,调整前状态中,平均分配聚合端口总限速速率给三个成员端口,也就是每个每端口分配的限速速率为Rcar_config/3。在调整条件满足时,启用内部限速调整算法,对链路聚合组内每个成员端口限速值RcarCur_i重新分配下发,将空闲成员端口的富余限速速率配额分配给流量大、丢包严重的成员端口,调整后仍需满足RcarCur_0+RcarCur_1+…RcarCur_n=Rcar_config,即每个成员端口调整后的总限速速率不变。As shown in Figure 5, the aggregation port Inf SG is bound to three member ports inf 1 , inf 2 , and inf 3 . In the pre-adjustment state, the average rate of the aggregation port is averaged to three member ports, that is, each. The rate limit for each port is R car_config /3. When the adjustment condition is met, the internal rate limit adjustment algorithm is enabled, and the rate limit value R carCur_i of each member port in the link aggregation group is redistributed, and the excess rate rate quota of the idle member port is allocated to the traffic volume and packet loss. Severe member ports, after adjustment, still need to meet R carCur_0 + R carCur_1 +...R carCur_n =R car_config , that is, the total speed limit rate of each member port is unchanged.
此处触发调整需满足以下两个条件:Here you need to meet the following two conditions to trigger the adjustment:
1)聚合端口InfSG下成员端口特征流streamA转发延迟、阻塞、丢包严重;1) Aggregation port Inf SG member port stream streamA forwarding delay, blocking, and packet loss are serious;
在本实施例中可以采用如下衡量方式:In this embodiment, the following measurement methods can be adopted:
当连续采集k个周期,特征流streamA的实际异常突发概率ηsudden是否大于异常突发概率阈值λsuddenWhen k cycles are continuously collected, whether the actual abnormal burst probability η sudden of the feature stream streamA is greater than the abnormal burst probability threshold λ sudden ;
;;当实际异常突发概率ηsudden大于异常突发概率阈值λsudden超过这个阈值时,表示现阶段特征流streamA持续突发,数据丢包较为严重;M为所述链路聚合组在k个周期内出现出现突发丢包率σdiscard大于丢包率阈值λdiscard的 次数。When the actual abnormal burst probability η sudden is greater than the abnormal burst probability threshold λ sudden exceeds this threshold, it indicates that the current feature stream streamA is continuously bursting, and data packet loss is serious; M is the link aggregation group at k The number of times when the burst loss rate σ discard is greater than the packet loss rate threshold λ discard occurs in the period.
2)聚合端口InfSG下存在一个或多个成员端口原有限速速率配额有空余,即存在部分成员端口实际特征流streamA转发量低于分配的限速速率;2) The aggregation port Inf SG has one or more member ports. The original finite rate rate quota has a vacancy. That is, the actual semaphore stream stream forwarding rate of some member ports is lower than the allocated rate limit rate.
在本实施例中,可以通过以下方式衡量:In this embodiment, it can be measured in the following ways:
在k个采集周期T内,存在成员端口特征流streamA的限速速率RcarCur_i相较平均通过速率
Figure PCTCN2016081761-appb-000023
与平均丢弃速率
Figure PCTCN2016081761-appb-000024
之和Rvc_i仍很充裕,其中,
During the k acquisition periods T, there is a rate limit rate R carCur_i of the member port feature stream streamA compared to the average throughput rate
Figure PCTCN2016081761-appb-000023
Average drop rate
Figure PCTCN2016081761-appb-000024
And R vc_i is still abundant, among them,
Figure PCTCN2016081761-appb-000025
Figure PCTCN2016081761-appb-000025
Figure PCTCN2016081761-appb-000026
Figure PCTCN2016081761-appb-000026
Figure PCTCN2016081761-appb-000027
Figure PCTCN2016081761-appb-000027
其中,涉及的限速调整算法逻辑如下:Among them, the speed limit adjustment algorithm logic involved is as follows:
步骤1.for遍历成员端口,将成员端口按每个平均丢弃速率
Figure PCTCN2016081761-appb-000028
大小,由小到大排列。
Step 1. For traversing the member ports, the member ports are averaged at each discard rate.
Figure PCTCN2016081761-appb-000028
Size, from small to large.
步骤2.Rabundant=0;//每个成员端口富余限速配额Step 2.R abundant =0; / / each member port surplus speed limit quota
Figure PCTCN2016081761-appb-000029
Figure PCTCN2016081761-appb-000029
Figure PCTCN2016081761-appb-000030
Figure PCTCN2016081761-appb-000030
在本示例中,通过上述调整过程,图5所示调整前状态表示调整前每个成员端口预分配的限速速率RcarCur_i=平均速率限速Rcar_avr;统计状态表示在k个统计周期T内,每个成员端口采集上报的实际通过流量速率Rpass_ij和实际丢弃流量速率Rdiscard_ij;调整后状态表示在统计结果状态展示的数据满足了调整所需的两个条件时,通过上述调整算法对每个成员端口限速速率重分配后的结果,冲分配后仍满足RcarCur_1+RcarCur_2+RcarCur_3= Rcar_configIn the present example, the above adjustment process, the state before adjustment shown in FIG. 5 represent the rate limit pre-assigned port on the front of each member of R carCur_i = average rate adjustment speed R car_avr; k statistics statistical state is shown in the periods T Each member port collects the actual passing traffic rate R pass_ij and the actual discarding traffic rate R discard_ij ; the adjusted state indicates that when the data displayed in the statistical result state satisfies the two conditions required for the adjustment, the above adjustment algorithm is used for each After the member port rate limit rate is redistributed, R carCur_1 +R carCur_2 +R carCur_3 = R car_config is still satisfied after the allocation.
可见,本发明实施例针对相关链路聚合应用端口限速,将基于特征流总限速CIR值在每个成员端口上按任一种方式固定分配,造成有的成员端口带宽充足,但实际数据流量超出分配的限定速率配额,数据被严重堵塞、丢包,有的成员端口空闲,承载的数据流远低于分配的限速速率等这类分担不合理现象。通过周期性采集转发面特征流实际通过流量、丢弃流量,并结合本实施例的成员限速调整准则和调整方式,合理重分配成员端口基于特征流的限速流量,将空闲成员端口的富余限速流量配额分配给流量大,丢包严重的成员端口,增加其通过速率带宽,有效降低丢包率,从而达到在整体限速值不变的情况下,提高该特征流的转发效率,进一步充分利用带宽资源,完善QoS保障。It can be seen that, in the embodiment of the present invention, the rate limit of the associated link aggregation application is fixed, and the CIR value of the feature stream is fixedly allocated on each member port in any manner, so that some member ports have sufficient bandwidth, but actual data. The traffic exceeds the allocated rate quota, the data is severely blocked, the packet is lost, some member ports are idle, and the data flow carried is far lower than the allocated rate limit. By periodically collecting the traffic passing through the feature flow of the forwarding plane, discarding the traffic, and combining the rate limit adjustment rule and the adjustment mode of the member in this embodiment, the rate limit of the member port based on the feature flow is reasonably redistributed, and the margin of the idle member port is limited. The fast traffic quota is allocated to the member ports with large traffic and heavy packet loss, increasing the bandwidth of the pass rate, and effectively reducing the packet loss rate. This improves the forwarding efficiency of the feature stream when the overall rate limit is unchanged. Utilize bandwidth resources to improve QoS guarantee.
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行时实现基于聚合链路的流量管理方法。The embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores computer executable instructions, and when the computer executable instructions are executed, implements an aggregate link based traffic management method.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或者等同替换,而不脱离本申请技术方案的精神和范围,均应涵盖在本申请的权利要求范围当中。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, 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. A person skilled in the art should understand that the technical solutions of the present application can be modified or equivalent, without departing from the spirit and scope of the technical solutions of the present application, and should be included in the scope of the claims of the present application.
工业实用性Industrial applicability
上述技术方案实现了有效合理地利用宽带资源。 The above technical solutions achieve efficient and rational use of broadband resources.

Claims (15)

  1. 一种基于聚合链路的流量管理方法,包括:A method for traffic management based on an aggregated link, comprising:
    针对链路聚合组任一特征流为该链路聚合组的每个成员端口分配限速速率;Assigning a rate limit rate to each member port of the link aggregation group for any characteristic flow of the link aggregation group;
    统计所述每个成员端口的所述特征流的流量;Counting the traffic of the feature stream of each member port;
    根据统计结果判断所述链路聚合组的所述特征流的实际异常突发概率ηsudden大于异常突发概率阈值λsudden,且所述链路聚合组中至少一个成员端口的限速速率富余时,对所述链路聚合组的成员端口的限速速率进行调整。Determining, according to the statistical result, that the actual abnormal burst probability η sudden of the characteristic flow of the link aggregation group is greater than the abnormal burst probability threshold λ sudden , and the rate limit rate of at least one member port in the link aggregation group is surplus The rate limit of the member ports of the link aggregation group is adjusted.
  2. 如权利要求1所述的基于聚合链路的流量管理方法,其中,所述统计所述每个成员端口的所述特征流的流量包括:The aggregate link-based traffic management method according to claim 1, wherein the calculating the traffic of the feature stream of each member port comprises:
    统计连续的k个统计周期T内所述每个成员端口的所述特征流的实际通过流量速率Rpass_ij和实际丢弃流量速率Rdiscard_ij Counting the actual passing traffic rate R pass_ij and the actual discarding traffic rate R discard_ij of the feature stream of each member port in the consecutive k statistical periods T;
    其中,所述i表示成员端口,i大于或等于1且小于或等于所述链路聚合组的成员端口数n;所述j表示统计周期,j大于或等于1且小于或等于所述k,所述k大于或等于2。Where i is a member port, i is greater than or equal to 1 and less than or equal to the number of member ports n of the link aggregation group; the j represents a statistical period, j is greater than or equal to 1 and less than or equal to the k, The k is greater than or equal to 2.
  3. 如权利要求2所述的基于聚合链路的流量管理方法,所述方法还包括:根据统计结果判断所述链路聚合组的所述特征流的实际异常突发概率ηsudden是否大于异常突发概率阈值λsudden包括:;The aggregate link-based traffic management method according to claim 2, wherein the method further comprises: determining, according to a statistical result, whether an actual abnormal burst probability η sudden of the characteristic stream of the link aggregation group is greater than an abnormal burst The probability threshold λ sudden includes:
    其中,所述根据统计结果判断所述链路聚合组的所述特征流的实际异常突发概率ηsudden是否大于异常突发概率阈值λsudden包括:The determining, according to the statistical result, whether the actual abnormal burst probability η sudden of the feature stream of the link aggregation group is greater than an abnormal burst probability threshold λ sudden includes:
    获取所述k个统计周期内所述链路聚合组的所述特征流的总实际通过量Rpass_j和总实际丢弃量Rdiscard_jObtaining a total actual throughput R pass_j and a total actual discard amount R discard_j of the feature stream of the link aggregation group in the k statistical periods;
    其中,Rpass_j=∑i=1,2,...,nRpass_ijWhere R pass_j = ∑ i = 1, 2, ..., n R pass_ij ;
    Rdiscard_j=∑i=1,2,...,nRdiscard_ijR discard_j =∑ i=1,2,...,n R discard_ij ;
    获取所述链路聚合组的所述特征流在所述k个统计周期内出现突发丢包率σdiscard大于丢包率阈值λdiscard的次数M;其中,
    Figure PCTCN2016081761-appb-100001
    Obtaining, in the k statistical periods, the number of times that the burst loss rate σ discard is greater than the packet loss rate threshold λ discard in the k statistical periods;
    Figure PCTCN2016081761-appb-100001
    判断所述链路聚合组的所述特征流的实际异常突发概率ηsudden是否大于异常突发概率阈值λsudden,其中,
    Figure PCTCN2016081761-appb-100002
    Determining whether the actual abnormal burst probability η sudden of the characteristic stream of the link aggregation group is greater than an abnormal burst probability threshold λ sudden , wherein
    Figure PCTCN2016081761-appb-100002
  4. 如权利要求2所述的基于聚合链路的流量管理方法,所述方法还包括:根据统计结果判断所述链路聚合组的成员端口的限速速率是否富余;其中,根据统计结果判断所述链路聚合组的成员端口的限速速率是否富余包括:The aggregate link-based traffic management method of claim 2, the method further comprising: judging whether a rate limit rate of the member ports of the link aggregation group is redundant according to a statistical result; Whether the rate limit rate of the member ports of the link aggregation group is sufficient includes:
    获取成员端口i当前的实际速率Rvc_iObtain the current actual rate R vc_i of the member port i;
    其中,among them,
    Figure PCTCN2016081761-appb-100003
    Figure PCTCN2016081761-appb-100003
    Figure PCTCN2016081761-appb-100004
    Figure PCTCN2016081761-appb-100004
    Figure PCTCN2016081761-appb-100005
    Figure PCTCN2016081761-appb-100005
    判断所述Rvc_i是否小于该成员端口i的当前设定的限速速率RcarCur_i,若是,则判定该成员端口i的限速速率富余。It is determined whether the R vc — i is smaller than a currently set rate limit rate R carCur — i of the member port i , and if yes, determining a rate limit rate surplus of the member port i.
  5. 如权利要求1-4任一项所述的基于聚合链路的流量管理方法,其中,所述针对链路聚合组的一特征流为该链路聚合组的每个成员端口分配限速速率包括:The aggregate link-based traffic management method according to any one of claims 1 to 4, wherein the characteristic flow for the link aggregation group is a rate limit rate for each member port of the link aggregation group. :
    在初始时,设定所述链路聚合组的所述特征流的总约定速率Rcar_configInitially, setting a total agreed rate R car_config of the feature stream of the link aggregation group;
    将所述总约定速率Rcar_config除以所述链路聚合组的成员端口数n得到所述每个成员端口的限速速率RcarCur_i,其中,所述i表示成员端口,i的取值为大于或等于1且小于或等于所述链路聚合组的成员端口数n的整数。The total agreed rate divided by the link aggregation group R car_config member to obtain the n number of ports each member of the rate limit R carCur_i port, wherein, i represents the port member, the value i is greater than Or an integer equal to 1 and less than or equal to the number n of member ports of the link aggregation group.
  6. 如权利要求1-4任一项所述的基于聚合链路的流量管理方法,其中,所述对所述链路聚合组的成员端口的限速速率进行调整包括:The aggregate link-based traffic management method according to any one of claims 1 to 4, wherein the adjusting the rate limit rate of the member ports of the link aggregation group includes:
    将所述链路聚合组中限速速率富余的成员端口的当前设定的限速速率与当前实际速率的差值之和作为所述链路聚合组的总富余限速速率量,并将所述链路聚合组中限速速率富余的成员端口的当前设定的限速速率更新为所述成员端口的当前实际速率; The sum of the difference between the current rate limit rate of the member ports of the link aggregation group and the current actual rate in the link aggregation group is used as the total rate limit rate of the link aggregation group, and The current rate limit rate of the member port of the link aggregation group that is limited to the rate limit is updated to the current actual rate of the member port.
    将所述总富余限速速率量分配给所述链路聚合组中除所述限速速率富余的成员端口外的成员端口。Allocating the total margin rate rate to the member ports of the link aggregation group except the member ports with the rate limit rate redundancy.
  7. 如权利要求6所述的基于聚合链路的流量管理方法,其中,将所述总富余限速速率量分配给所述链路聚合组中除所述限速速率富余的成员端口外的成员端口包括:The aggregate link-based traffic management method according to claim 6, wherein the total surplus rate rate is allocated to a member port of the link aggregation group except the member port with the rate limit remaining. include:
    从所述链路聚合组中除所述限速速率富余的成员端口外的成员端口中选择出当前的实际速率大于其当前设定限速速率的成员端口;And selecting, from the member of the link aggregation group, a member port that is greater than the current rate limit of the member port except the member port with the rate limit rate;
    将所述总富余限速速率量分配给所述选择出的成员端口。The total margin rate rate amount is allocated to the selected member port.
  8. 如权利要求7所述的基于聚合链路的流量管理方法,其中,所述将所述总富余限速速率量分配给所述选择出的成员端口包括:The aggregate link-based traffic management method of claim 7, wherein the allocating the total margin rate rate amount to the selected member port comprises:
    将所述总富余限速速率量平均分配给所述选择出的成员端口;Allocating the total surplus rate rate amount to the selected member port on average;
    或,or,
    将所述选择出的成员端口按照速率紧缺量从小到大的顺序依次排列,其中,所述速率紧缺量等于成员端口当前的实际速率与当前设定的限速速率的差值,或为成员端口的平均实际丢弃流量速率;The selected member ports are sequentially arranged in the order of the rate shortage, wherein the rate shortage is equal to the difference between the current actual rate of the member port and the currently set rate limit rate, or is a member port. Average actual drop traffic rate;
    将所述总富余限速速率量按照速率紧缺量从小到大或从大到小的顺序依次与每个速率紧缺量进行比较,如果当前进行比较的总富余限速速率量大于或等于当前比较的速率紧缺量,则将该速率紧缺量对应的成员端口的当前设定的限速速率更新为原限速速率加上该速率紧缺量,并将所述当前进行比较的总富余限速速率量减去当前比较的速率紧缺量后与下一速率紧缺量进行比较;如果所述当前进行比较的总富余限速速率量小于当前比较的速率紧缺量,或当前比较的速率紧缺量为最后一个,则直接将该速率紧缺量对应的成员端口的当前设定的限速速率更新为原限速速率加上所述当前进行比较的总富余限速速率量。The total margin rate rate is compared with each rate shortage according to the rate shortage amount from small to large or from large to small, if the current total limited rate rate is greater than or equal to the current comparison. If the rate is short, the current rate limit rate of the member port corresponding to the rate shortage is updated to the original rate limit rate plus the rate shortage, and the current total rate limit rate is compared. After comparing the rate shortage of the current comparison with the next rate shortage; if the current ratio of the total margin rate of the comparison is less than the rate of the current comparison, or the rate of the current comparison is the last one, then The current rate limit rate of the member port corresponding to the rate shortage is directly updated to the original rate limit rate plus the total remaining rate limit rate currently being compared.
  9. 一种基于聚合链路的流量管理装置,包括:A traffic management device based on an aggregated link, comprising:
    配置模块,设置为针对链路聚合组的一特征流为该链路聚合组的每个成员端口分配限速速率;The configuration module is configured to allocate a rate limit rate to each member port of the link aggregation group for a feature flow of the link aggregation group;
    统计模块,设置为统计所述每个成员端口的所述特征流的流量; a statistics module, configured to collect statistics on the traffic of the feature stream of each member port;
    管理模块,设置为当根据所述统计模块的统计结果判断所述链路聚合组的所述特征流实际异常突发概率ηsudden大于异常突发概率阈值λsudden,且所述链路聚合组中至少一个成员端口的限速速率富余时,对所述链路聚合组的成员端口的限速速率进行调整。a management module, configured to determine, according to the statistical result of the statistics module, that the feature flow actual abnormality probability η sudden of the link aggregation group is greater than an abnormal burst probability threshold λ sudden , and in the link aggregation group When the rate limit of at least one member port is sufficient, the rate limit of the member ports of the link aggregation group is adjusted.
  10. 如权利要求9所述的基于聚合链路的流量管理装置,其中,所述统计模块包括通过流量统计子模块和丢弃流量统计子模块;The aggregate link-based traffic management device of claim 9, wherein the statistics module comprises a traffic statistics sub-module and a drop traffic statistics sub-module;
    所述流量统计子模块设置为统计连续的k个统计周期T内所述每个成员端口的所述特征流的实际通过流量速率Rpass_ijThe traffic statistics sub-module is configured to count the actual traffic rate R pass_ij of the feature stream of each member port in the consecutive k statistical periods T;
    所述丢弃流量统计子模块设置为统计连续的k个统计周期T内所述每个成员端口的所述特征流的实际丢弃流量速率Rdiscard_ijThe discarding traffic statistics sub-module is configured to count the actual discard traffic rate R discard_ij of the feature stream of each member port in the consecutive k statistical periods T;
    其中,所述i表示成员端口,i大于或等于1且小于或等于所述链路聚合组的成员端口数n;所述j表示统计周期,j大于或等于1且小于或等于所述k,所述k大于或等于2。Where i is a member port, i is greater than or equal to 1 and less than or equal to the number of member ports n of the link aggregation group; the j represents a statistical period, j is greater than or equal to 1 and less than or equal to the k, The k is greater than or equal to 2.
  11. 如权利要求10所述的基于聚合链路的流量管理装置,其中,所述管理模块包括异常判断子模块,设置为获取所述k个周期内所述链路聚合组的所述特征流的总实际通过量Rpass_j和总实际丢弃量Rdiscard_j;其中,The aggregate link-based traffic management apparatus according to claim 10, wherein said management module comprises an abnormality determining sub-module, configured to acquire a total of said characteristic flows of said link aggregation group in said k cycles Actual throughput R pass_j and total actual discard amount R discard_j ;
    Rpass_j=∑i=1,2,...,nRpass_ijR pass_j =∑ i=1,2,...,n R pass_ij ;
    Rdiscard_j=∑i=1,2,...,nRdiscard_ijR discard_j =∑ i=1,2,...,n R discard_ij ;
    获取所述链路聚合组的所述特征流在所述k个统计周期内出现突发丢包率σdiscard大于丢包率阈值λdiscard的次数M;其中,
    Figure PCTCN2016081761-appb-100006
    Obtaining, in the k statistical periods, the number of times that the burst loss rate σ discard is greater than the packet loss rate threshold λ discard in the k statistical periods;
    Figure PCTCN2016081761-appb-100006
    以及,判断所述链路聚合组的所述特征流的实际异常突发概率ηsudden是否大于异常突发概率阈值λsudden,其中,
    Figure PCTCN2016081761-appb-100007
    And determining whether the actual abnormal burst probability η sudden of the characteristic stream of the link aggregation group is greater than an abnormal burst probability threshold λ sudden , wherein
    Figure PCTCN2016081761-appb-100007
  12. 如权利要求10所述的基于聚合链路的流量管理装置,其中,所述管理模块包括富余判断子模块,设置为获取所述成员端口i当前的实际速率Rvc_i;其中,
    Figure PCTCN2016081761-appb-100008
    The aggregate link-based traffic management device of claim 10, wherein the management module includes a redundancy judgment sub-module configured to acquire a current actual rate R vc — i of the member port i;
    Figure PCTCN2016081761-appb-100008
    Figure PCTCN2016081761-appb-100009
    Figure PCTCN2016081761-appb-100009
    Figure PCTCN2016081761-appb-100010
    Figure PCTCN2016081761-appb-100010
    以及,判断所述Rvc_i是否小于该成员端口i的当前设定的限速速率RcarCur_i,若是,则判定该成员端口i的限速速率富余。And determining whether the R vc — i is less than a current rate limit rate R carCur — i of the member port i, and if yes, determining a rate limit rate of the member port i.
  13. 如权利要求9-12任一项所述的基于聚合链路的流量管理装置,其中,所述管理模块包括计算子模块和调整子模块,The aggregate link-based traffic management apparatus according to any one of claims 9 to 12, wherein the management module comprises a calculation submodule and an adjustment submodule,
    所述计算子模块设置为:将所述链路聚合组中限速速率富余的成员端口的当前设定的限速速率与当前实际速率的差值之和作为所述链路聚合组的总富余限速速率量,并将所述链路聚合组中限速速率富余的成员端口的当前设定的限速速率更新为所述成员端口的当前实际速率;The calculation sub-module is configured to use, as a total surplus of the link aggregation group, a sum of a difference between a current rate limit rate of the member ports of the link aggregation group and the current actual rate The rate limit rate is updated, and the current rate limit rate of the member ports of the link aggregation group with the rate limit rate is updated to the current actual rate of the member port;
    所述调整子模块设置为将所述总富余限速速率量分配给所述链路聚合组中除所述限速速率富余的成员端口外的成员端口。The adjustment submodule is configured to allocate the total margin rate rate amount to a member port of the link aggregation group except the member port with the rate limit rate redundancy.
  14. 如权利要求13所述的基于聚合链路的流量管理装置,其中,所述调整子模块包括选择单元和分配单元;The aggregate link-based traffic management apparatus according to claim 13, wherein the adjustment submodule comprises a selection unit and an allocation unit;
    所述选择单元设置为从所述链路聚合组中除所述限速速率富余的成员端口外的成员端口中选择出当前的实际速率大于其当前设定的限速速率的成员端口;The selecting unit is configured to select, from the member ports of the link aggregation group, the member ports other than the member ports of the rate limiting rate, that the current actual rate is greater than the member port whose current rate limit is set;
    所述分配单元设置为将所述总富余限速速率量分配给所述选择出成员端口。The allocation unit is configured to allocate the total margin rate rate amount to the selected member port.
  15. 如权利要求14所述的基于聚合链路的流量管理装置,其中,所述分配单元包括平均分配子单元或比较分配子单元;The aggregate link-based traffic management apparatus according to claim 14, wherein said allocating unit comprises an average allocation subunit or a comparison allocation subunit;
    所述平均分配子单元设置为将所述总富余限速速率量平均分配给所述选择出的每个成员端口;The average allocation subunit is configured to evenly distribute the total margin rate rate amount to each selected member port;
    所述比较分配子单元设置为:将所述选择出的成员端口按照速率紧缺量从小到大的顺序依次排列,其中,所述速率紧缺量等于成员端口当前的实际速率与当前设定的限速速率的差值或为成员端口的平均实际丢弃流量速率; 将所述总富余限速速率量按照速率紧缺量从小到大或从大到小的顺序依次与每个速率紧缺量进行比较,如果所述当前进行比较的总富余限速速率量大于或等于当前比较的速率紧缺量,则将该速率紧缺量对应的成员端口的当前设定的限速速率更新为原限速速率加上该速率紧缺量,并将所述当前进行比较的总富余限速速率减去当前比较的速率紧缺量后与下一速率紧缺量进行比较;如果所述当前进行比较的总富余限速速率量小于当前比较的速率紧缺量,或当前比较的速率紧缺量为最后一个,则直接将该速率紧缺量对应的成员端口的当前设定的限速速率更新为原限速速率加上所述当前进行比较的总富余限速速率量。 The comparison allocation sub-unit is configured to: arrange the selected member ports in descending order of the rate shortage, wherein the rate shortage is equal to the current actual rate of the member port and the currently set rate limit. The difference in rate or the average actual drop rate of the member ports; And the total margin rate rate is compared with each rate shortage amount according to the rate shortage amount from small to large or from large to small, if the current ratio of the total surplus rate limit is greater than or equal to the current If the rate is short, the current rate limit of the member port corresponding to the rate shortage is updated to the original rate limit plus the rate shortage, and the current total rate limit is compared. Subtracting the current rate vacancy amount and comparing it with the next rate shortage; if the current total rate limit rate is less than the current rate lag, or the current comparison rate is the last one, Then, the current rate limit rate of the member port corresponding to the rate shortage is directly updated to the original rate limit rate plus the total remaining rate limit rate currently being compared.
PCT/CN2016/081761 2015-08-11 2016-05-11 Aggregated link-based traffic management method and device WO2017024824A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510489018.7 2015-08-11
CN201510489018.7A CN106453111B (en) 2015-08-11 2015-08-11 Traffic management method and device based on aggregated link

Publications (1)

Publication Number Publication Date
WO2017024824A1 true WO2017024824A1 (en) 2017-02-16

Family

ID=57983791

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/081761 WO2017024824A1 (en) 2015-08-11 2016-05-11 Aggregated link-based traffic management method and device

Country Status (2)

Country Link
CN (1) CN106453111B (en)
WO (1) WO2017024824A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111478858A (en) * 2020-02-29 2020-07-31 新华三信息安全技术有限公司 Flow processing method, flow Hash method and device
CN113014504A (en) * 2021-03-16 2021-06-22 杭州迪普信息技术有限公司 Flow control method and device and electronic equipment
CN113890847A (en) * 2021-09-26 2022-01-04 新华三信息安全技术有限公司 Flow forwarding method and device
CN114629841A (en) * 2020-11-27 2022-06-14 华为技术有限公司 Communication method, device and system
CN115211089A (en) * 2020-06-04 2022-10-18 深圳市欢太科技有限公司 Speed limiting bandwidth adjusting method and device

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547423B (en) * 2017-06-05 2020-04-28 新华三技术有限公司 Flow forwarding control method and device
CN109218216B (en) * 2017-06-29 2023-08-01 中兴通讯股份有限公司 Link aggregation flow distribution method, device, equipment and storage medium
CN108924057B (en) * 2018-08-02 2022-06-03 浙江口碑网络技术有限公司 Port flow intelligent control system of on-cloud system
CN109640379B (en) * 2019-01-11 2020-09-18 Oppo广东移动通信有限公司 Link aggregation implementation method and related product
CN110149279A (en) * 2019-05-28 2019-08-20 浪潮思科网络科技有限公司 A kind of method and apparatus of communication interface flow load sharing
CN111026698B (en) * 2019-11-20 2022-06-21 迈普通信技术股份有限公司 Link repair method and device, electronic equipment and storage medium
CN114070793A (en) * 2020-07-29 2022-02-18 华为技术有限公司 Flow rate limiting method, related network equipment and storage medium
CN114095806A (en) * 2020-07-31 2022-02-25 中兴通讯股份有限公司 Flow distribution method and device for aggregated link, optical line terminal and medium
CN116868554A (en) * 2021-05-26 2023-10-10 华为技术有限公司 Method for controlling data stream transmission and communication device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2075974A1 (en) * 2006-12-22 2009-07-01 Huawei Technologies Co., Ltd. A method and a device for aggregating ports
CN101478527A (en) * 2009-01-20 2009-07-08 华为技术有限公司 Bandwidth allocation method and routing equipment
CN101841487A (en) * 2010-05-24 2010-09-22 中兴通讯股份有限公司 Configuration method for aggregating link service flow and packet switching device
CN103023815A (en) * 2012-12-26 2013-04-03 杭州华三通信技术有限公司 Aggregation link load sharing method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051957B (en) * 2007-03-23 2010-11-10 华为技术有限公司 Dynamically regulating method and device for link state and bundled link state
CN101227402B (en) * 2008-02-20 2011-03-23 杭州华三通信技术有限公司 Method and apparatus for sharing polymerization link circuit flow
US8537679B2 (en) * 2008-05-08 2013-09-17 Telefonaktiebolaget L M Ericsson (Publ) Load balancing pseudowire encapsulated IPTV channels over aggregated links
CN102468973A (en) * 2010-11-12 2012-05-23 中兴通讯股份有限公司 Alarm control method and device for aggregation link in packet switching network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2075974A1 (en) * 2006-12-22 2009-07-01 Huawei Technologies Co., Ltd. A method and a device for aggregating ports
CN101478527A (en) * 2009-01-20 2009-07-08 华为技术有限公司 Bandwidth allocation method and routing equipment
CN101841487A (en) * 2010-05-24 2010-09-22 中兴通讯股份有限公司 Configuration method for aggregating link service flow and packet switching device
CN103023815A (en) * 2012-12-26 2013-04-03 杭州华三通信技术有限公司 Aggregation link load sharing method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111478858A (en) * 2020-02-29 2020-07-31 新华三信息安全技术有限公司 Flow processing method, flow Hash method and device
CN111478858B (en) * 2020-02-29 2022-05-27 新华三信息安全技术有限公司 Flow processing method, flow Hash method and device
CN115211089A (en) * 2020-06-04 2022-10-18 深圳市欢太科技有限公司 Speed limiting bandwidth adjusting method and device
CN115211089B (en) * 2020-06-04 2023-09-19 深圳市欢太科技有限公司 Speed-limiting bandwidth adjusting method and device
CN114629841A (en) * 2020-11-27 2022-06-14 华为技术有限公司 Communication method, device and system
CN113014504A (en) * 2021-03-16 2021-06-22 杭州迪普信息技术有限公司 Flow control method and device and electronic equipment
CN113890847A (en) * 2021-09-26 2022-01-04 新华三信息安全技术有限公司 Flow forwarding method and device
CN113890847B (en) * 2021-09-26 2023-04-25 新华三信息安全技术有限公司 Traffic forwarding method and device

Also Published As

Publication number Publication date
CN106453111B (en) 2020-12-22
CN106453111A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
WO2017024824A1 (en) Aggregated link-based traffic management method and device
US11316795B2 (en) Network flow control method and network device
US7006440B2 (en) Aggregate fair queuing technique in a communications system using a class based queuing architecture
US8670310B2 (en) Dynamic balancing priority queue assignments for quality-of-service network flows
US8537846B2 (en) Dynamic priority queue level assignment for a network flow
US7920472B2 (en) Quality of service network and method
CA2429151C (en) Congestion management in computer networks
US11374830B2 (en) Dynamic slice bandwidth multiplexing based on slice priority
US7983299B1 (en) Weight-based bandwidth allocation for network traffic
US8320380B2 (en) Under-assigning resources to video in triple-play virtual topologies to protect data-class traffic
US20060187817A1 (en) Access control for a packet-oriented network, taking into account resilience requirements
US8717893B2 (en) Network stabilizer
CN112671656B (en) Method and equipment for configuring network
US8139485B2 (en) Logical transport resource traffic management
WO2021057447A1 (en) Method for determining required bandwidth for data stream transmission, and devices and system
CN107454015B (en) OF-DiffServ model-based QoS control method and system
JP2008529398A (en) Bandwidth allocation for telecommunications networks
KR20160041631A (en) Apparatus and method for quality of service aware routing control
Chemeritskiy et al. On QoS management in SDN by multipath routing
US20230336486A1 (en) Service flow scheduling method and apparatus, and system
US11463370B2 (en) Scalable deterministic services in packet networks
Thazin et al. End-to-end dynamic bandwidth resource allocation based on QoS demand in SDN
Li et al. Schedulability criterion and performance analysis of coordinated schedulers
US9185042B2 (en) System and method for automated quality of service configuration through the access network
US20230077864A1 (en) System and method for managing distributed shaping in a computer network

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: 16834449

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: 16834449

Country of ref document: EP

Kind code of ref document: A1