[go: up one dir, main page]

CN104052681B - Flow control methods and device - Google Patents

Flow control methods and device Download PDF

Info

Publication number
CN104052681B
CN104052681B CN201410289616.5A CN201410289616A CN104052681B CN 104052681 B CN104052681 B CN 104052681B CN 201410289616 A CN201410289616 A CN 201410289616A CN 104052681 B CN104052681 B CN 104052681B
Authority
CN
China
Prior art keywords
flow control
list
dynamic
control list
adjustable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410289616.5A
Other languages
Chinese (zh)
Other versions
CN104052681A (en
Inventor
郑毅
刘思聪
王健全
夏俊杰
杨艳松
何晓峰
王泽林
谢梦楠
郭晓琳
华强
华一强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201410289616.5A priority Critical patent/CN104052681B/en
Publication of CN104052681A publication Critical patent/CN104052681A/en
Application granted granted Critical
Publication of CN104052681B publication Critical patent/CN104052681B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种流量控制方法和装置,涉及通信技术领域,能够根据实时的链路情况进行动态流量控制,更加灵活且提高了带宽利用率,减少带宽的浪费。该流量控制方法包括:设定具有不同优先级的多个可调流量控制策略;周期性生成动态流控列表,并根据最新的动态流控列表进行动态流量控制;每次生成动态流控列表包括:生成空的动态流控列表,若判断当前链路在不进行流量控制时会发生拥塞,则依据从低到高的优先级顺序将至少一个所述可调流量控制策略加入动态流控列表,直到按照当前的动态流控列表进行动态流量控制时所述链路不会拥塞,将可用剩余带宽分配给当前的动态流控列表中优先级最高的可调流量控制策略对应的数据流。

The invention discloses a flow control method and device, which relate to the technical field of communication, can perform dynamic flow control according to real-time link conditions, are more flexible, improve bandwidth utilization, and reduce bandwidth waste. The flow control method includes: setting a plurality of adjustable flow control strategies with different priorities; periodically generating a dynamic flow control list, and performing dynamic flow control according to the latest dynamic flow control list; generating the dynamic flow control list each time includes : Generate an empty dynamic flow control list, if it is judged that the current link will be congested without flow control, then add at least one of the adjustable flow control strategies to the dynamic flow control list according to the order of priority from low to high, The link will not be congested until the dynamic flow control is performed according to the current dynamic flow control list, and the available remaining bandwidth is allocated to the data flow corresponding to the adjustable flow control policy with the highest priority in the current dynamic flow control list.

Description

流量控制方法和装置Flow control method and device

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种流量控制方法和装置。The present invention relates to the technical field of communications, in particular to a flow control method and device.

背景技术Background technique

随着互联网的快速发展,各种网络应用层出不穷,网络流量也随之呈现高速增长态势。其中,以P2P为代表的网络应用产生了大量低附加值数据流,消耗了大量网络带宽,导致拥塞时有发生,严重影响了用户获得的总体服务质量,甚至威胁到网络整体的稳定性。由于现网流量巨大、波动频繁,且协议复杂多变。因此,为保障网络安全同时实现差异化服务,目前通常通过基于深度包检测技术(Deep Packet Inspection,DPI)进行流量控制。With the rapid development of the Internet, various network applications emerge in an endless stream, and network traffic also presents a trend of rapid growth. Among them, network applications represented by P2P generate a large number of low-value-added data streams, consume a large amount of network bandwidth, cause congestion from time to time, seriously affect the overall service quality obtained by users, and even threaten the overall stability of the network. The current network traffic is huge, fluctuates frequently, and the protocol is complex and changeable. Therefore, in order to ensure network security and realize differentiated services at the same time, flow control is usually performed based on a deep packet inspection technology (Deep Packet Inspection, DPI).

常用的流量控制方法是预先将流量控制策略输入到DPI流控设备中,根据特定触发条件执行流控操作。例如,当链路流量超过阈值时,对P2P数据流的流量进行控制,将P2P数据流的流量限制为500Mbps。然而,现有的流量控制方法不够灵活且容易造成带宽的浪费。A commonly used flow control method is to input the flow control policy into the DPI flow control device in advance, and execute flow control operations according to specific trigger conditions. For example, when the link traffic exceeds the threshold, the traffic of the P2P data stream is controlled, and the traffic of the P2P data stream is limited to 500 Mbps. However, the existing flow control methods are not flexible enough and tend to waste bandwidth.

发明内容Contents of the invention

本发明提供一种流量控制方法和装置,能够根据实时的链路情况进行动态流量控制,更加灵活且提高了带宽利用率,减少带宽的浪费。The invention provides a flow control method and device, which can perform dynamic flow control according to real-time link conditions, are more flexible, improve bandwidth utilization, and reduce bandwidth waste.

为解决上述技术问题,本发明采用如下技术方案:In order to solve the problems of the technologies described above, the present invention adopts the following technical solutions:

一方面,提供一种流量控制方法,包括:In one aspect, a flow control method is provided, including:

设定具有不同优先级的多个可调流量控制策略,不同的所述可调流量控制策略用于分别规定不同数据流的预设控制门限;Setting a plurality of adjustable flow control strategies with different priorities, and the different adjustable flow control strategies are used to specify preset control thresholds for different data flows;

周期性生成动态流控列表,并根据最新的动态流控列表进行动态流量控制;Periodically generate a dynamic flow control list, and perform dynamic flow control according to the latest dynamic flow control list;

每次生成动态流控列表包括:生成空的动态流控列表,若判断当前链路在不进行流量控制时会发生拥塞,则依据从低到高的优先级顺序将至少一个所述可调流量控制策略加入动态流控列表,直到按照当前的动态流控列表进行动态流量控制时所述链路不会拥塞,将按照当前的动态流控列表进行流量控制时所述链路上的可用剩余带宽分配给当前的动态流控列表中优先级最高的可调流量控制策略对应的数据流。Generating a dynamic flow control list each time includes: generating an empty dynamic flow control list, and if it is judged that the current link will be congested without flow control, at least one of the adjustable flow The control policy is added to the dynamic flow control list until the link will not be congested when the dynamic flow control is performed according to the current dynamic flow control list, and the available remaining bandwidth on the link when the flow control is performed according to the current dynamic flow control list Assigned to the data flow corresponding to the adjustable flow control policy with the highest priority in the current dynamic flow control list.

所述设定具有不同优先级的多个可调流量控制策略具体为:The multiple adjustable flow control policies with different priorities are set as follows:

按照业务类型设定相应的业务流量控制策略,不同的业务流量控制策略根据业务类型进行优先级划分;Set corresponding business flow control strategies according to business types, and different business flow control strategies are prioritized according to business types;

或者,按照业务类型设定相应的业务流量控制策略,并且同样业务中按照应用程序类型设定相应的应用程序流量控制策略,不同的业务流量控制策略根据业务类型进行优先级划分,不同的应用程序流量控制策略根据应用程序类型进行优先级划分;Or, set the corresponding business flow control policy according to the business type, and set the corresponding application flow control policy according to the application program type in the same business. Different business flow control policies are prioritized according to the business type. Different application programs Traffic control policies are prioritized based on application type;

或者,按照数据流的源、目的IP地址,源、目的MAC地址,源、目的端口号或应用层协议种类设定相应的业务流量控制策略,不同的业务流量控制策略根据数据流类型进行优先级划分。Or, set the corresponding service flow control strategy according to the source and destination IP address, source and destination MAC address, source and destination port number or application layer protocol type of the data flow, and different service flow control strategies are prioritized according to the type of data flow divided.

另一方面,提供一种流量控制装置,包括:In another aspect, a flow control device is provided, comprising:

可调控制策略设定模块,用于设定具有不同优先级的多个可调流量控制策略,不同的所述可调流量控制策略用于分别规定不同数据流的预设控制门限;An adjustable control strategy setting module, configured to set a plurality of adjustable flow control strategies with different priorities, and different adjustable flow control strategies are used to specify preset control thresholds for different data flows;

动态流控列表设定模块,用于周期性生成动态流控列表,每次生成所述动态流控列表包括:生成空的动态流控列表,若判断当前链路在不进行流量控制时会发生拥塞,则依据从低到高的优先级顺序将至少一个所述可调流量控制策略加入动态流控列表,直到按照当前的动态流控列表进行流量控制时所述链路不会拥塞,将按照当前的动态流控列表进行流量控制时所述链路上的可用剩余带宽分配给当前的动态流控列表中优先级最高的可调流量控制策略对应的数据流;The dynamic flow control list setting module is used to periodically generate the dynamic flow control list. Each generation of the dynamic flow control list includes: generating an empty dynamic flow control list, which will occur if it is determined that the current link is not performing flow control Congestion, then add at least one of the adjustable flow control policies to the dynamic flow control list according to the order of priority from low to high, until the link will not be congested when the flow control is performed according to the current dynamic flow control list, and will be according to When the current dynamic flow control list performs flow control, the available remaining bandwidth on the link is allocated to the data flow corresponding to the adjustable flow control policy with the highest priority in the current dynamic flow control list;

流控模块,用于根据最新的动态流控列表进行流量控制。The flow control module is used for flow control according to the latest dynamic flow control list.

所述可调控制策略设定模块具体用于:The adjustable control strategy setting module is specifically used for:

按照业务类型设定相应的业务流量控制策略,不同的业务流量控制策略根据业务类型进行优先级划分;Set corresponding business flow control strategies according to business types, and different business flow control strategies are prioritized according to business types;

或者,按照业务类型设定相应的业务流量控制策略,并且同样业务中按照应用程序类型设定相应的应用程序流量控制策略,不同的业务流量控制策略根据业务类型进行优先级划分,不同的应用程序流量控制策略根据应用程序类型进行优先级划分;Or, set the corresponding business flow control policy according to the business type, and set the corresponding application flow control policy according to the application program type in the same business. Different business flow control policies are prioritized according to the business type. Different application programs Traffic control policies are prioritized based on application type;

或者,按照数据流的源、目的IP地址,源、目的MAC地址,源、目的端口号或应用层协议种类设定相应的业务流量控制策略,不同的业务流量控制策略根据数据流类型进行优先级划分。Or, set the corresponding service flow control strategy according to the source and destination IP address, source and destination MAC address, source and destination port number or application layer protocol type of the data flow, and different service flow control strategies are prioritized according to the type of data flow divided.

另一方面,提供一种流量控制方法,包括:On the other hand, a flow control method is provided, including:

设定具有不同优先级的多个可调流量控制策略,不同的所述可调流量控制策略用于分别规定不同数据流的预设控制门限;Setting a plurality of adjustable flow control strategies with different priorities, and the different adjustable flow control strategies are used to specify preset control thresholds for different data flows;

设定静态流控列表并根据所述静态流控列表进行静态流量控制,所述静态流控列表中设置有不可调流量控制策略;Setting a static flow control list and performing static flow control according to the static flow control list, where a non-adjustable flow control strategy is set in the static flow control list;

周期性生成动态流控列表,并在静态流量控制的基础上根据最新的动态流控列表进行动态流量控制;Periodically generate a dynamic flow control list, and perform dynamic flow control based on the latest dynamic flow control list on the basis of static flow control;

每次生成动态流控列表包括:生成空的动态流控列表,若判断当前链路在不进行动态流量控制而仅进行静态流量控制时会发生拥塞,则依据从低到高的优先级顺序将至少一个所述可调流量控制策略加入动态流控列表,直到按照静态流控列表和当前的动态流控列表进行流量控制时所述链路不会拥塞,将按照静态流控列表和当前的动态流控列表进行流量控制时所述链路上的可用剩余带宽分配给当前的动态流控列表中优先级最高的可调流量控制策略对应的数据流。Each generation of the dynamic flow control list includes: generating an empty dynamic flow control list, if it is judged that the current link will be congested when only static flow control is not performed, then the link will be allocated according to the order of priority from low to high. At least one of the adjustable flow control policies is added to the dynamic flow control list until the link is not congested when flow control is performed according to the static flow control list and the current dynamic flow control list, and the link will be congested according to the static flow control list and the current dynamic flow control list. When the flow control list performs flow control, the available remaining bandwidth on the link is allocated to the data flow corresponding to the adjustable flow control policy with the highest priority in the current dynamic flow control list.

所述设定具有不同优先级的多个可调流量控制策略具体为:The multiple adjustable flow control policies with different priorities are set as follows:

按照业务类型设定相应的业务流量控制策略,不同的业务流量控制策略根据业务类型进行优先级划分;Set corresponding business flow control strategies according to business types, and different business flow control strategies are prioritized according to business types;

或者,按照业务类型设定相应的业务流量控制策略,并且同样业务中按照应用程序类型设定相应的应用程序流量控制策略,不同的业务流量控制策略根据业务类型进行优先级划分,不同的应用程序流量控制策略根据应用程序类型进行优先级划分;Or, set the corresponding business flow control policy according to the business type, and set the corresponding application flow control policy according to the application program type in the same business. Different business flow control policies are prioritized according to the business type. Different application programs Traffic control policies are prioritized based on application type;

或者,按照数据流的源、目的IP地址,源、目的MAC地址,源、目的端口号或应用层协议种类设定相应的业务流量控制策略,不同的业务流量控制策略根据数据流类型进行优先级划分。Or, set the corresponding service flow control strategy according to the source and destination IP address, source and destination MAC address, source and destination port number or application layer protocol type of the data flow, and different service flow control strategies are prioritized according to the type of data flow divided.

另一方面,提供一种流量控制装置,包括:In another aspect, a flow control device is provided, comprising:

可调控制策略设定模块,用于设定具有不同优先级的多个可调流量控制策略,不同的所述可调流量控制策略用于分别规定不同数据流的预设控制门限;An adjustable control strategy setting module, configured to set a plurality of adjustable flow control strategies with different priorities, and different adjustable flow control strategies are used to specify preset control thresholds for different data flows;

静态流控列表设定模块,用于设定静态流控列表,所述静态流控列表中设置有不可调流量控制策略;The static flow control list setting module is used to set the static flow control list, and the non-adjustable flow control strategy is set in the static flow control list;

动态流控列表设定模块,用于周期性生成动态流控列表,每次生成动态流控列表包括:生成空的动态流控列表,若判断当前链路在不进行动态流量控制而仅进行静态流量控制时会发生拥塞,则依据从低到高的优先级顺序将至少一个所述可调流量控制策略加入动态流控列表,直到按照静态流控列表和当前的动态流控列表进行流量控制时所述链路不会拥塞,将按照静态流控列表和当前的动态流控列表进行流量控制时所述链路上的可用剩余带宽分配给当前的动态流控列表中优先级最高的可调流量控制策略对应的数据流;The dynamic flow control list setting module is used to periodically generate a dynamic flow control list. Each generation of a dynamic flow control list includes: generating an empty dynamic flow control list. If it is determined that the current link is not performing dynamic flow control but only static Congestion will occur during flow control, then add at least one of the adjustable flow control policies to the dynamic flow control list according to the order of priority from low to high, until the flow control is performed according to the static flow control list and the current dynamic flow control list The link will not be congested, and the available remaining bandwidth on the link when flow control is performed according to the static flow control list and the current dynamic flow control list is allocated to the adjustable flow with the highest priority in the current dynamic flow control list Control the data flow corresponding to the strategy;

流控模块,用于根据静态流控列表和最新的动态流控列表进行流量控制。The flow control module is used for flow control according to the static flow control list and the latest dynamic flow control list.

所述可调控制策略设定模块具体用于:The adjustable control strategy setting module is specifically used for:

按照业务类型设定相应的业务流量控制策略,不同的业务流量控制策略根据业务类型进行优先级划分;Set corresponding business flow control strategies according to business types, and different business flow control strategies are prioritized according to business types;

或者,按照业务类型设定相应的业务流量控制策略,并且同样业务中按照应用程序类型设定相应的应用程序流量控制策略,不同的业务流量控制策略根据业务类型进行优先级划分,不同的应用程序流量控制策略根据应用程序类型进行优先级划分;Or, set the corresponding business flow control policy according to the business type, and set the corresponding application flow control policy according to the application program type in the same business. Different business flow control policies are prioritized according to the business type. Different application programs Traffic control policies are prioritized based on application type;

或者,按照数据流的源、目的IP地址,源、目的MAC地址,源、目的端口号或应用层协议种类设定相应的业务流量控制策略,不同的业务流量控制策略根据数据流类型进行优先级划分。Or, set the corresponding service flow control strategy according to the source and destination IP address, source and destination MAC address, source and destination port number or application layer protocol type of the data flow, and different service flow control strategies are prioritized according to the type of data flow divided.

本发明提供的流量控制方法和装置,进行动态流量控制,每次动态流控列表的生成包括:当链路会拥塞时依据优先级顺序将可调流量控制策略加入动态流控列表,从而可以根据实时的链路情况进行流量控制,使得流控过程更加灵活,并将可用剩余带宽分配给动态流控列表中优先级最高的可调流量控制策略,从而提高了带宽利用率,减少带宽的浪费。The flow control method and device provided by the present invention perform dynamic flow control. The generation of each dynamic flow control list includes: when the link will be congested, the adjustable flow control strategy is added to the dynamic flow control list according to the order of priority, so that Real-time link conditions for flow control make the flow control process more flexible, and allocate the available remaining bandwidth to the adjustable flow control strategy with the highest priority in the dynamic flow control list, thereby improving bandwidth utilization and reducing bandwidth waste.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1为本发明实施例一中一种流量控制方法的流程图;FIG. 1 is a flowchart of a flow control method in Embodiment 1 of the present invention;

图2为本发明实施例二中一种流量控制方法的流程图;FIG. 2 is a flowchart of a flow control method in Embodiment 2 of the present invention;

图3为图2的流量控制方法中每次生成动态流控列表的具体流程图;FIG. 3 is a specific flowchart of generating a dynamic flow control list each time in the flow control method of FIG. 2;

图4为本发明实施例三中一种流量控制装置的结构框图;FIG. 4 is a structural block diagram of a flow control device in Embodiment 3 of the present invention;

图5为本发明实施例四中一种流量控制装置的结构框图。Fig. 5 is a structural block diagram of a flow control device in Embodiment 4 of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

实施例一Embodiment one

如图1所示,本发明实施例提供一种流量控制方法,包括:As shown in Figure 1, an embodiment of the present invention provides a flow control method, including:

步骤101、设定具有不同优先级的多个可调流量控制策略,不同的可调流量控制策略用于分别规定不同数据流的预设控制门限;Step 101, setting a plurality of adjustable flow control strategies with different priorities, and different adjustable flow control strategies are used to define preset control thresholds for different data flows;

具体地,可调流量策略可以按照数据流的不同类型进行划分,例如按照业务类型划分、按照应用程序类型进行划分或者按照流五元组进行划分等,对可调流量控制策略的划分方式不作限定。可调流量控制策略的优先级越高表示该策略对应的数据流使用链路带宽的权限越高。Specifically, the adjustable traffic policy can be divided according to different types of data flows, for example, according to business types, application types, or flow quintuples, etc. There is no limit to the division method of adjustable traffic control policies . The higher the priority of the adjustable flow control policy, the higher the authority of the data flow corresponding to the policy to use the link bandwidth.

步骤102、周期性生成动态流控列表,并根据最新的动态流控列表进行动态流量控制;Step 102, periodically generate a dynamic flow control list, and perform dynamic flow control according to the latest dynamic flow control list;

每次生成动态流控列表包括:生成空的动态流控列表,若判断当前链路在不进行流量控制时会发生拥塞,则依据从低到高的优先级顺序将至少一个可调流量控制策略加入动态流控列表,直到按照当前的动态流控列表进行动态流量控制时该链路不会拥塞,将按照当前的动态流控列表进行流量控制时该链路上的可用剩余带宽分配给当前的动态流控列表中优先级最高的可调流量控制策略对应的数据流。Each generation of the dynamic flow control list includes: generating an empty dynamic flow control list, if it is judged that the current link will be congested without flow control, at least one adjustable flow control strategy will be set according to the order of priority from low to high Join the dynamic flow control list until the link will not be congested when performing dynamic flow control according to the current dynamic flow control list, and allocate the available remaining bandwidth on the link to the current The data flow corresponding to the adjustable flow control policy with the highest priority in the dynamic flow control list.

在该步骤中,可以通过DPI设备获取链路带宽信息和该链路的输入流量信息,输入流量是还未在链路上进行流控的流量,在新一轮的周期开始时,生成空的动态流控列表,根据输入流量信息可以判断如果不再进行流量控制该链路是否会发明拥塞,若是,则在空的动态流控列表中加入可调流量控制策略,优先级较低的可调流量控制策略会先被加入动态流控列表中被执行,直到判断按照该动态流控列表进行流控后该链路不会再拥塞;若否,则按照空的动态流控列表进行控制,即本周期不进行流量控制。在上述过程中,由于可调流量控制策略是预先设定好的,在将可调流量控制策略加入动态流控列表之后直接进行流量控制,往往链路上会有剩余带宽,因此为了保证充分利用带宽,可以将可用剩余带宽分配给上述动态流控列表中优先级最高的可调流量控制策略(即最后加入动态流控列表中的可调流量控制策略),提高该策略对应数据流的控制门限。In this step, the link bandwidth information and the input traffic information of the link can be obtained through the DPI device. The input traffic is the traffic that has not been flow controlled on the link. When a new cycle starts, an empty Dynamic flow control list, according to the input flow information, it can be judged whether the link will be congested if the flow control is no longer performed. The flow control policy will be added to the dynamic flow control list and executed until it is judged that the link will no longer be congested after the flow control is performed according to the dynamic flow control list; if not, the control will be performed according to the empty dynamic flow control list, that is Flow control is not performed in this cycle. In the above process, since the adjustable flow control strategy is pre-set, if the flow control is performed directly after adding the adjustable flow control strategy to the dynamic flow control list, there will often be surplus bandwidth on the link, so in order to ensure full utilization Bandwidth, the available remaining bandwidth can be allocated to the adjustable flow control strategy with the highest priority in the above dynamic flow control list (that is, the adjustable flow control strategy added to the dynamic flow control list last), and the control threshold of the data flow corresponding to the strategy can be increased .

具体地,上述步骤101中设定具有不同优先级的多个可调流量控制策略可以为:按照业务类型设定相应的业务流量控制策略,不同的业务流量控制策略根据业务类型进行优先级划分。例如,按照业务类型设定Web业务流量控制策略、视频业务流量控制策略、P2P业务流量控制策略和其他业务流量控制策略,各业务流量控制策略的优先级设置如表1所示,其中优先级数值越小,策略的优先级越高。业务流量控制策略中数据流的控制门限可以按照需要进行设置。Specifically, setting multiple adjustable flow control policies with different priorities in step 101 above may be: setting corresponding service flow control policies according to service types, and different service flow control policies are prioritized according to service types. For example, according to the business type, the web service flow control strategy, the video service flow control strategy, the P2P service flow control strategy and other service flow control strategies are set. The priority setting of each service flow control strategy is shown in Table 1, where the priority value The smaller the value, the higher the policy priority. The data flow control threshold in the service flow control policy can be set as required.

表1Table 1

业务种类business type 优先级priority Web业务Web business 11 视频业务video business 22 P2P业务P2P business 44

其他业务Other business 33

或者,上述步骤101中设定具有不同优先级的多个可调流量控制策略还可以为:按照业务类型设定相应的业务流量控制策略,并且同样业务中按照应用程序类型设定相应的应用程序流量控制策略,不同的业务流量控制策略根据业务类型进行优先级划分,不同的应用程序流量控制策略根据应用程序类型进行优先级划分。例如,在上述表1的基础上,将P2P业务的数据流按照应用程序类型设定“PPS”应用程序流量控制策略、“风行”应用程序流量控制策略等。需要说明的是,业务流量控制策略与应用程序流量控制策略之间的优先级顺序按照应用程序所属的业务流量控制策略进行设置,例如P2P业务流量控制策略的优先级是所有业务中最低的,那么P2P业务中的应用程序流量控制策略的优先级一定低于其他业务流量控制策略以及其他业务流量控制策略中的应用程序流量控制策略。Alternatively, setting multiple adjustable flow control policies with different priorities in the above step 101 may also be: setting corresponding service flow control policies according to business types, and setting corresponding application programs according to application program types in the same business Flow control strategy, different business flow control strategies are prioritized according to business types, and different application flow control strategies are prioritized according to application types. For example, on the basis of the above-mentioned Table 1, the data flow of the P2P service is set according to the application program type "PPS" application program flow control policy, "popular" application program flow control policy, etc. It should be noted that the priority order between the service flow control policy and the application program flow control policy is set according to the service flow control policy to which the application program belongs. For example, the priority of the P2P service flow control policy is the lowest among all services, then The priority of the application flow control policy in the P2P service must be lower than that of other service flow control policies and the application flow control policies in other service flow control policies.

或者,上述步骤101中设定具有不同优先级的多个可调流量控制策略还可以为:按照数据流的源、目的IP地址,源、目的MAC地址,源、目的端口号或应用层协议种类设定相应的业务流量控制策略,不同的业务流量控制策略根据数据流类型进行优先级划分。Or, setting a plurality of adjustable flow control policies with different priorities in the above step 101 can also be: according to the source and destination IP addresses of the data flow, the source and destination MAC addresses, the source and destination port numbers or the application layer protocol types Set the corresponding business flow control strategy, and different business flow control strategies are prioritized according to the type of data flow.

当然,上述步骤101中设定具有不同优先级的多个可调流量控制策略还可以按照其他本实施例中未提及的方式进行设定。Of course, the multiple adjustable flow control policies with different priorities set in step 101 above can also be set in other ways not mentioned in this embodiment.

本实施例中的流量控制方法,进行动态流量控制,每次动态流控列表的生成包括:当链路会拥塞时依据优先级顺序将可调流量控制策略加入动态流控列表,从而可以根据实时的链路情况进行流量控制,使得流控过程更加灵活,并将可用剩余带宽分配给动态流控列表中优先级最高的可调流量控制策略,从而提高了带宽利用率,减少带宽的浪费。In the flow control method in this embodiment, dynamic flow control is performed, and the generation of each dynamic flow control list includes: when the link will be congested, the adjustable flow control strategy is added to the dynamic flow control list according to the order of priority, so that it can be based on real-time Flow control is performed according to the specific link conditions, which makes the flow control process more flexible, and allocates the available remaining bandwidth to the adjustable flow control strategy with the highest priority in the dynamic flow control list, thereby improving bandwidth utilization and reducing bandwidth waste.

实施例二Embodiment two

如图2所示,本发明实施例提供一种流量控制方法,包括:As shown in Figure 2, an embodiment of the present invention provides a flow control method, including:

步骤201、设定具有不同优先级的多个可调流量控制策略,不同的可调流量控制策略用于分别规定不同数据流的预设控制门限;Step 201, setting a plurality of adjustable flow control strategies with different priorities, and different adjustable flow control strategies are used to define preset control thresholds for different data flows;

在该步骤中,可调流量策略可以按照数据流的不同类型进行划分,例如按照业务类型划分、按照应用程序类型进行划分或者按照流五元组进行划分等,对可调流量控制策略的划分方式不作限定。In this step, the adjustable traffic policy can be divided according to different types of data flows, for example, according to business types, application types, or flow quintuples. Not limited.

步骤202、设定静态流控列表并根据静态流控列表进行静态流量控制,静态流控列表中设置有不可调流量控制策略;Step 202, setting a static flow control list and performing static flow control according to the static flow control list, where non-adjustable flow control policies are set;

在该步骤中,不可调流量控制策略是指任何时刻都需要对该业务流量进行控制的数据流控制策略,例如,将P2P业务中“迅雷”数据流对应的流量控制策略设为不可调流量控制策略,则任何时刻,“迅雷”的流量都被控制在其自身的流量控制门限内。这样可以兼容现有的流量控制方法。In this step, the non-adjustable flow control strategy refers to the data flow control strategy that needs to control the service flow at any time, for example, set the flow control strategy corresponding to the "Xunlei" data flow in the P2P service to non-adjustable flow control strategy, at any moment, the flow of "Xunlei" is controlled within its own flow control threshold. This allows compatibility with existing flow control methods.

步骤203、周期性生成动态流控列表,并在静态流量控制的基础上根据最新的动态流控列表进行动态流量控制;Step 203, periodically generate a dynamic flow control list, and perform dynamic flow control based on the latest dynamic flow control list on the basis of static flow control;

每次生成动态流控列表包括:生成空的动态流控列表,若判断当前链路在不进行动态流量控制而仅进行静态流量控制时会发生拥塞,则依据从低到高的优先级顺序将至少一个可调流量控制策略加入动态流控列表,直到按照静态流控列表和当前的动态流控列表进行流量控制时该链路不会拥塞,将按照静态流控列表和当前的动态流控列表进行流量控制时该链路上的可用剩余带宽分配给当前的动态流控列表中优先级最高的可调流量控制策略对应的数据流。Each generation of the dynamic flow control list includes: generating an empty dynamic flow control list, if it is judged that the current link will be congested when only static flow control is not performed, then the link will be allocated according to the order of priority from low to high. At least one adjustable flow control policy is added to the dynamic flow control list until the link is not congested when flow control is performed according to the static flow control list and the current dynamic flow control list. When performing flow control, the available remaining bandwidth on the link is allocated to the data flow corresponding to the adjustable flow control policy with the highest priority in the current dynamic flow control list.

上述步骤201中设定具有不同优先级的多个可调流量控制策略可以为:The multiple adjustable flow control policies with different priorities set in the above step 201 can be:

按照业务类型设定相应的业务流量控制策略,不同的业务流量控制策略根据业务类型进行优先级划分;Set corresponding business flow control strategies according to business types, and different business flow control strategies are prioritized according to business types;

或者,按照业务类型设定相应的业务流量控制策略,并且同样业务中按照应用程序类型设定相应的应用程序流量控制策略,不同的业务流量控制策略根据业务类型进行优先级划分,不同的应用程序流量控制策略根据应用程序类型进行优先级划分;Or, set the corresponding business flow control policy according to the business type, and set the corresponding application flow control policy according to the application program type in the same business. Different business flow control policies are prioritized according to the business type. Different application programs Traffic control policies are prioritized based on application type;

或者,按照数据流的源、目的IP地址,源、目的MAC地址,源、目的端口号或应用层协议种类设定相应的业务流量控制策略,不同的业务流量控制策略根据数据流类型进行优先级划分。Or, set the corresponding service flow control strategy according to the source and destination IP address, source and destination MAC address, source and destination port number or application layer protocol type of the data flow, and different service flow control strategies are prioritized according to the type of data flow divided.

设定具有不同优先级的多个可调流量控制策略的具体过程与实施例一相同,在此不再赘述。The specific process of setting multiple adjustable flow control policies with different priorities is the same as that in Embodiment 1, and will not be repeated here.

以下通过一个完整的流量控制的例子和三种链路情况具体说明本发明实施例提供的流量控制方法,例如,链路带宽为10G,最高链路利用率为80%,链路上的流量超过8Gbps则认为发生拥塞。The flow control method provided by the embodiment of the present invention is specifically described below through a complete example of flow control and three kinds of link situations. For example, the link bandwidth is 10G, the highest link utilization rate is 80%, and the flow on the link exceeds 8Gbps is considered to be congested.

首先,执行上述步骤201,其中各数据流对应的可调流量控制策略如表2所示;First, the above step 201 is executed, wherein the adjustable flow control strategy corresponding to each data flow is shown in Table 2;

表2Table 2

流种类stream type 控制门限control threshold 优先级priority Web业务Web business 3Gbps3Gbps 11 视频业务video business 3Gbps3Gbps 22 P2P业务P2P business 00 44 其他业务Other business 2Gbps2Gbps 33 PPSPPS 500Mbps500Mbps 55 风行popular 500Mbps500Mbps 66

执行上述步骤202、其中静态流控列表中仅包括“迅雷”策略,其中“迅雷”数据流的控制门限为1Gbps,由于仅有不可调流量控制策略设置在静态流控列表中,因此仅对“迅雷”的数据流进行流控,控制门限为1Gbps;Execute the above step 202, wherein only the "Xunlei" policy is included in the static flow control list, and the control threshold of the "Xunlei" data flow is 1Gbps. Since only the non-adjustable flow control policy is set in the static flow control list, only the "Xunlei" policy is set in the static flow control list. "Xunlei" data flow for flow control, the control threshold is 1Gbps;

执行上述步骤203,如图3所示,在上述步骤203中、每次生成动态流控列表的过程具体包括:Execute the above step 203, as shown in Figure 3, in the above step 203, the process of generating the dynamic flow control list each time specifically includes:

步骤2031、生成空的动态流控列表;Step 2031, generating an empty dynamic flow control list;

步骤2032、判断当前链路在不进行动态流量控制而仅进行静态流量控制时是否会发生拥塞,若是,则进入步骤2033,若否,则进入步骤2034,得到无流量控制策略的动态流控列表,即本周期不对可调流量控制策略对应的数据流进行控制;Step 2032, judging whether the current link will be congested when only carrying out static flow control instead of dynamic flow control, if so, then enter step 2033, if not, then enter step 2034, obtain the dynamic flow control list without flow control strategy , that is, the data flow corresponding to the adjustable flow control policy is not controlled in this cycle;

步骤2033、将未加入动态流控列表中优先级最低的可调流量控制策略加入动态流控列表,然后进步步骤2035;Step 2033, adding the adjustable flow control strategy with the lowest priority in the dynamic flow control list that has not been added to the dynamic flow control list, and then proceeding to step 2035;

步骤2035、判断按照静态流控列表和当前的动态流控列表进行流量控制时链路是否会拥塞,若是,则进入步骤2033,若否,则进入步骤2036;Step 2035, judging whether the link will be congested when performing flow control according to the static flow control list and the current dynamic flow control list, if so, then enter step 2033, if not, then enter step 2036;

步骤2036、将按照静态流控列表和当前的动态流控列表进行流量控制时链路上的可用剩余带宽依据分配给当前的动态流控列表中优先级最高的可调流量控制策略对应的数据流。Step 2036, allocate the available remaining bandwidth on the link to the data flow corresponding to the adjustable flow control policy with the highest priority in the current dynamic flow control list when performing flow control according to the static flow control list and the current dynamic flow control list .

链路情况一link condition one

例如,在链路的输入流量信息如表3所示。For example, the input traffic information on the link is shown in Table 3.

表3table 3

由于“迅雷”策略为不可调流量控制策略,静态流控列表中始终包含“迅雷”数据流的控制门限为1Gbps的流控策略,因此若按照静态流控列表进行流控后,链路中的各数据流的流量如表4所示。Since the "Xunlei" policy is an unadjustable flow control policy, the static flow control list always includes the flow control policy with a control threshold of 1 Gbps for "Xunlei" data flow. Therefore, if the flow control is performed according to the static flow control list, the The traffic of each data stream is shown in Table 4.

表4Table 4

链路中的总流量为6.5Gbps,未超过8Gbps,因此在步骤2032中判断链路不会拥塞,仅进行静态流控即可,无需进行动态流控。The total traffic in the link is 6.5Gbps, which does not exceed 8Gbps. Therefore, in step 2032, it is judged that the link will not be congested, and only static flow control is required instead of dynamic flow control.

链路情况二Link situation two

链路的输入流量信息如表5所示。The input traffic information of the link is shown in Table 5.

表5table 5

链路中的输入总流量为8.5Gbps,在步骤2032中判断链路会拥塞,进入步骤2033,在步骤2033中将“风行”流量控制策略加入动态流控列表中,其中“风行”数据流的控制门限为500Mbps;在步骤2035中判断链路不会再拥塞,且链路尚有1G带宽可用;在步骤2036中将1G带宽分配给“风行”流量控制策略,使动态流控列表中“风行”数据流的控制门限提高为1.5Gbps,按照静态流控列表和最新的动态流控列表进行流控后线路中各数据流的流量如表6所示。The input total traffic in the link is 8.5Gbps, in step 2032 it is judged that the link will be congested, enter into step 2033, in step 2033, the "popularity" flow control policy is added in the dynamic flow control list, wherein the "popularity" data flow Control threshold is 500Mbps; In step 2035, it is judged that the link will not be congested again, and the link still has 1G bandwidth available; The control threshold of the data flow is increased to 1.5Gbps, and the flow of each data flow in the line after flow control is performed according to the static flow control list and the latest dynamic flow control list is shown in Table 6.

表6Table 6

此时链路中的总流量为8Gbps,不会发生拥塞,且链路的利用率最高。At this time, the total traffic in the link is 8Gbps, no congestion will occur, and the utilization rate of the link is the highest.

链路情况三Link situation three

链路的输入流量信息如表7所示。The input traffic information of the link is shown in Table 7.

表7Table 7

链路的输入总流量为9.5Gbps,在步骤2032中判断链路会拥塞,进入步骤2033,在步骤2033中将“风行”流量控制策略加入动态流控列表中,“风行”数据流的控制门限为500Mbps;此时链路的总流量将为9Gbps,在步骤2035中判断链路仍然会拥塞;进入步骤2033,将“PPS”流量控制策略加入动态流控列表中,“PPS”数据流的控制门限为500Mbps;此时链路中的总流量将为8.5Gbps,在步骤2035中判断链路仍然会拥塞;进入步骤2033,将P2P业务流量控制策略加入动态流控列表,由于“迅雷”、“风行”和“PPS”均属于P2P业务,因此按照P2P业务中数据流的控制门限为0进行流量控制;此时链路中的总流量将为6.5Gbps,在步骤2035中判断链路不会拥塞,且尚有1.5G带宽可用;进入步骤2036,将1.5G带宽分配给优先级最高的P2P业务对应的数据流,P2P业务包括“迅雷”、“PPS”、“风行”和“其他P2P”应用程序,因此还需要具体将1.5G带宽分配给相应的应用程序数据流,其中“迅雷”属于不可调策略中的数据流,因此“迅雷”在P2P业务中的优先级最低,将1.5G带宽依据从高到低的优先级顺序分配给“其他P2P”、“PPS”、“风行”和“迅雷”数据流,“其他P2P”数据流的优先级由P2P业务流量控制策略的优先级决定,因此“其他P2P”数据流在P2P业务中的优先级最高,限定“其他P2P”数据流的控制门限为500Mbps,将1.5G带宽分配给“其他P2P”数据流后仍有1G剩余带宽,再将1G的剩余带宽分配给优先级较高的“PPS”数据流,进行流控之后链路各数据流的流量如表8所示。The total input traffic of the link is 9.5Gbps. In step 2032, it is judged that the link will be congested, and the step 2033 is entered. In step 2033, the "popular" flow control strategy is added to the dynamic flow control list, and the control threshold of "popular" data flow It is 500Mbps; the total traffic of the link will be 9Gbps at this moment, in step 2035, it is judged that the link will still be congested; enter step 2033, "PPS" flow control policy is added in the dynamic flow control list, the control of "PPS" data flow Threshold is 500Mbps; The total flow in the link will be 8.5Gbps this moment, and in step 2035, it is judged that the link will still be congested; Enter step 2033, the P2P service flow control policy is added to the dynamic flow control list, due to "thunder", " Popular " and " PPS " all belong to P2P business, therefore carry out flow control according to the control threshold of data flow in the P2P business is 0; At this moment, the total flow in the link will be 6.5Gbps, in step 2035, it is judged that the link will not be congested , and there is still 1.5G bandwidth available; enter step 2036, allocate 1.5G bandwidth to the data flow corresponding to the P2P service with the highest priority, and the P2P service includes "Xunlei", "PPS", "Fengxing" and "Other P2P" applications Therefore, it is also necessary to allocate 1.5G bandwidth to the corresponding application data flow. Among them, "Xunlei" belongs to the data flow in the non-adjustable strategy, so "Xunlei" has the lowest priority in the P2P business, and the 1.5G bandwidth is allocated based on The order of priority from high to low is assigned to "Other P2P", "PPS", "Fengxing" and "Xunlei" data flows, and the priority of "Other P2P" data flows is determined by the priority of the P2P business traffic control policy, so "Other P2P" data flow has the highest priority in the P2P business. The control threshold of "Other P2P" data flow is limited to 500Mbps. After allocating 1.5G bandwidth to "Other P2P" data flow, there is still 1G remaining bandwidth, and then 1G The remaining bandwidth of the link is allocated to the "PPS" data flow with higher priority. After the flow control is performed, the traffic of each data flow on the link is shown in Table 8.

表8Table 8

此时链路中的总流量为8Gbps,不会发生拥塞,且链路的利用率最高。At this time, the total traffic in the link is 8Gbps, no congestion will occur, and the utilization rate of the link is the highest.

本实施例中的流量控制方法,进行动态流量控制,每次动态流控列表的生成包括:当链路会拥塞时依据优先级顺序将可调流量控制策略加入动态流控列表,从而可以根据实时的链路情况进行流量控制,使得流控过程更加灵活,并将可用剩余带宽分配给动态流控列表中优先级最高的可调流量控制策略,从而提高了带宽利用率,减少带宽的浪费。In the flow control method in this embodiment, dynamic flow control is performed, and the generation of each dynamic flow control list includes: when the link will be congested, the adjustable flow control strategy is added to the dynamic flow control list according to the order of priority, so that it can be based on real-time Flow control is performed according to the specific link conditions, which makes the flow control process more flexible, and allocates the available remaining bandwidth to the adjustable flow control strategy with the highest priority in the dynamic flow control list, thereby improving bandwidth utilization and reducing bandwidth waste.

实施例三Embodiment three

如图4所示,本发明实施例提供一种流量控制装置,包括:可调控制策略设定模块1,用于设定具有不同优先级的多个可调流量控制策略,不同的所述可调流量控制策略用于分别规定不同数据流的预设控制门限;动态流控列表设定模块2,用于周期性生成动态流控列表,每次生成所述动态流控列表包括:生成空的动态流控列表,若判断当前链路在不进行流量控制时会发生拥塞,则依据从低到高的优先级顺序将至少一个所述可调流量控制策略加入动态流控列表,直到按照当前的动态流控列表进行流量控制时所述链路不会拥塞,将按照当前的动态流控列表进行流量控制时所述链路上的可用剩余带宽分配给当前的动态流控列表中优先级最高的可调流量控制策略对应的数据流;流控模块3,用于根据最新的动态流控列表进行流量控制。As shown in FIG. 4 , an embodiment of the present invention provides a flow control device, including: an adjustable control strategy setting module 1, configured to set a plurality of adjustable flow control strategies with different priorities. The traffic adjustment control strategy is used to specify the preset control thresholds of different data streams respectively; the dynamic flow control list setting module 2 is used to periodically generate the dynamic flow control list, and each generation of the dynamic flow control list includes: generating an empty Dynamic flow control list, if it is judged that the current link will be congested when no flow control is performed, then at least one of the adjustable flow control strategies will be added to the dynamic flow control list according to the priority order from low to high, until according to the current The link will not be congested when the dynamic flow control list performs flow control, and the available remaining bandwidth on the link when the flow control is performed according to the current dynamic flow control list is allocated to the highest priority in the current dynamic flow control list The data flow corresponding to the adjustable flow control policy; the flow control module 3 is used to control the flow according to the latest dynamic flow control list.

上述可调控制策略设定模块1具体用于:按照业务类型设定相应的业务流量控制策略,不同的业务流量控制策略根据业务类型进行优先级划分;或者,按照业务类型设定相应的业务流量控制策略,并且同样业务中按照应用程序类型设定相应的应用程序流量控制策略,不同的业务流量控制策略根据业务类型进行优先级划分,不同的应用程序流量控制策略根据应用程序类型进行优先级划分;或者,按照数据流的源、目的IP地址,源、目的MAC地址,源、目的端口号或应用层协议种类设定相应的业务流量控制策略,不同的业务流量控制策略根据数据流类型进行优先级划分。The above-mentioned adjustable control policy setting module 1 is specifically used for: setting corresponding service flow control policies according to service types, different service flow control policies are prioritized according to service types; or, setting corresponding service flow rates according to service types Control policies, and set corresponding application flow control policies according to application types in the same business. Different business flow control policies are prioritized according to business types, and different application flow control policies are prioritized according to application types. ; Or, according to the source and destination IP address, source and destination MAC address, source and destination port number or application layer protocol type of the data flow to set the corresponding service flow control strategy, different service flow control strategies are prioritized according to the data flow type class division.

具体的流量控制方法与上述实施例一相同,在此不再赘述。The specific flow control method is the same as that in the first embodiment above, and will not be repeated here.

本实施例中的流量控制装置,进行动态流量控制,每次动态流控列表的生成包括:当链路会拥塞时依据优先级顺序将可调流量控制策略加入动态流控列表,从而可以根据实时的链路情况进行流量控制,使得流控过程更加灵活,并将可用剩余带宽分配给动态流控列表中优先级最高的可调流量控制策略,从而提高了带宽利用率,减少带宽的浪费。The flow control device in this embodiment performs dynamic flow control. The generation of each dynamic flow control list includes: when the link will be congested, the adjustable flow control strategy is added to the dynamic flow control list according to the order of priority, so that it can be based on real-time Flow control is performed according to the specific link conditions, which makes the flow control process more flexible, and allocates the available remaining bandwidth to the adjustable flow control strategy with the highest priority in the dynamic flow control list, thereby improving bandwidth utilization and reducing bandwidth waste.

实施例四Embodiment Four

如图5所示,本发明实施例提供一种流量控制装置,包括:可调控制策略设定模块1,用于设定具有不同优先级的多个可调流量控制策略,不同的所述可调流量控制策略用于分别规定不同数据流的预设控制门限;静态流控列表设定模块4,用于设定静态流控列表,所述静态流控列表中设置有不可调流量控制策略;动态流控列表设定模块2,用于周期性生成动态流控列表,每次生成动态流控列表包括:生成空的动态流控列表,若判断当前链路在不进行动态流量控制而仅进行静态流量控制时会发生拥塞,则依据从低到高的优先级顺序将至少一个所述可调流量控制策略加入动态流控列表,直到按照静态流控列表和当前的动态流控列表进行流量控制时所述链路不会拥塞,将按照静态流控列表和当前的动态流控列表进行流量控制时所述链路上的可用剩余带宽分配给当前的动态流控列表中优先级最高的可调流量控制策略对应的数据流;流控模块3,用于根据静态流控列表和最新的动态流控列表进行流量控制。As shown in FIG. 5 , an embodiment of the present invention provides a flow control device, including: an adjustable control strategy setting module 1, configured to set a plurality of adjustable flow control strategies with different priorities. The traffic adjustment control strategy is used to specify the preset control thresholds of different data flows respectively; the static flow control list setting module 4 is used to set the static flow control list, and the non-adjustable flow control strategy is set in the static flow control list; The dynamic flow control list setting module 2 is used to periodically generate a dynamic flow control list. Each generation of a dynamic flow control list includes: generating an empty dynamic flow control list. If it is determined that the current link is not performing dynamic flow control but only Congestion will occur during static flow control, then add at least one of the adjustable flow control policies to the dynamic flow control list according to the order of priority from low to high, until flow control is performed according to the static flow control list and the current dynamic flow control list When the link will not be congested, the available remaining bandwidth on the link when flow control is performed according to the static flow control list and the current dynamic flow control list will be allocated to the highest priority adjustable The data flow corresponding to the flow control policy; the flow control module 3 is used to perform flow control according to the static flow control list and the latest dynamic flow control list.

上述可调控制策略设定模块1具体用于:按照业务类型设定相应的业务流量控制策略,不同的业务流量控制策略根据业务类型进行优先级划分;或者,按照业务类型设定相应的业务流量控制策略,并且同样业务中按照应用程序类型设定相应的应用程序流量控制策略,不同的业务流量控制策略根据业务类型进行优先级划分,不同的应用程序流量控制策略根据应用程序类型进行优先级划分;或者,按照数据流的源、目的IP地址,源、目的MAC地址,源、目的端口号或应用层协议种类设定相应的业务流量控制策略,不同的业务流量控制策略根据数据流类型进行优先级划分。The above-mentioned adjustable control policy setting module 1 is specifically used for: setting corresponding service flow control policies according to service types, different service flow control policies are prioritized according to service types; or, setting corresponding service flow rates according to service types Control policies, and set corresponding application flow control policies according to application types in the same business. Different business flow control policies are prioritized according to business types, and different application flow control policies are prioritized according to application types. ; Or, according to the source and destination IP address, source and destination MAC address, source and destination port number or application layer protocol type of the data flow to set the corresponding service flow control strategy, different service flow control strategies are prioritized according to the data flow type class division.

具体的流量控制方法与上述实施例二相同,在此不再赘述。The specific flow control method is the same as that in the second embodiment above, and will not be repeated here.

本实施例中的流量控制装置,进行动态流量控制,每次动态流控列表的生成包括:当链路会拥塞时依据优先级顺序将可调流量控制策略加入动态流控列表,从而可以根据实时的链路情况进行流量控制,使得流控过程更加灵活,并将可用剩余带宽分配给动态流控列表中优先级最高的可调流量控制策略,从而提高了带宽利用率,减少带宽的浪费。The flow control device in this embodiment performs dynamic flow control. The generation of each dynamic flow control list includes: when the link will be congested, the adjustable flow control strategy is added to the dynamic flow control list according to the order of priority, so that it can be based on real-time Flow control is performed according to the specific link conditions, which makes the flow control process more flexible, and allocates the available remaining bandwidth to the adjustable flow control strategy with the highest priority in the dynamic flow control list, thereby improving bandwidth utilization and reducing bandwidth waste.

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be realized by means of software plus necessary general-purpose hardware, and of course also by hardware, but in many cases the former is a better embodiment . Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , a hard disk or an optical disk, etc., including several instructions for enabling a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (8)

1. a kind of flow control methods, which is characterized in that including:
Multiple adjustable flow control strategies with different priorities are set, the different adjustable flow control strategies is for dividing Not Gui Ding different data streams default control thresholding;The multiple adjustable flow control strategy is pre-set;
Dynamic flow control list is periodically generated, and dynamic flow control is carried out according to newest dynamic flow control list;
Generating dynamic flow control list every time includes:Empty dynamic flow control list is generated, if judging current ink without flow Congestion can occur when control, then at least one adjustable flow control strategy is added according to priority orders from low to high Dynamic flow control list, when carrying out dynamic flow control according to current dynamic flow control list the link will not congestion, will The available remaining bandwidth of the chain road distributes to current dynamic when carrying out flow control according to current dynamic flow control list The corresponding data flow of adjustable flow control strategy of highest priority in flow control list.
2. flow control methods according to claim 1, which is characterized in that
The multiple adjustable flow control strategies set with different priorities as:
Corresponding service traffics control strategy is set according to type of service, different service traffics control strategies is according to type of service Carry out priority division;
Alternatively, corresponding service traffics control strategy is set according to type of service, and according to application class in same business Type sets corresponding application rs traffic control strategy, and different service traffics control strategies carries out priority according to type of service It divides, different application rs traffic control strategies carries out priority division according to Application Type;
Alternatively, according to the source of data flow, purpose IP address, source, target MAC (Media Access Control) address, source, destination slogan or application layer protocol kind Class sets corresponding service traffics control strategy, and different service traffics control strategies carries out priority according to data stream type and draws Point.
3. a kind of volume control device, which is characterized in that including:
Adjustable control strategy setting module, it is different for setting multiple adjustable flow control strategies with different priorities The adjustable flow control strategy is used to respectively provide the default control thresholding of different data streams;The multiple adjustable flow control Strategy is pre-set;
Dynamic flow control list setting module generates the dynamic flow control list every time for periodically generating dynamic flow control list Including:Generate empty dynamic flow control list, if judging, congestion can occur when without flow control for current ink, foundation from Dynamic flow control list is added at least one adjustable flow control strategy by low to high priority orders, until according to current Dynamic flow control list carry out when flow control the link will not congestion, flow will be carried out according to current dynamic flow control list The available remaining bandwidth of the chain road distributes to the adjustable flow of highest priority in current dynamic flow control list when control The corresponding data flow of control strategy;
Flow control module, for carrying out flow control according to newest dynamic flow control list.
4. volume control device according to claim 3, which is characterized in that
The adjustable control strategy setting module is specifically used for:
Corresponding service traffics control strategy is set according to type of service, different service traffics control strategies is according to type of service Carry out priority division;
Alternatively, corresponding service traffics control strategy is set according to type of service, and according to application class in same business Type sets corresponding application rs traffic control strategy, and different service traffics control strategies carries out priority according to type of service It divides, different application rs traffic control strategies carries out priority division according to Application Type;
Alternatively, according to the source of data flow, purpose IP address, source, target MAC (Media Access Control) address, source, destination slogan or application layer protocol kind Class sets corresponding service traffics control strategy, and different service traffics control strategies carries out priority according to data stream type and draws Point.
5. a kind of flow control methods, which is characterized in that including:
Multiple adjustable flow control strategies with different priorities are set, the different adjustable flow control strategies is for dividing Not Gui Ding different data streams default control thresholding;The multiple adjustable flow control strategy is pre-set;
The static flow control list of setting simultaneously carries out quiescent flow control according to the static flow control list, in the static state flow control list It is provided with non-adjustable flow control policy;
Dynamic flow control list is periodically generated, and is carried out according to newest dynamic flow control list on the basis of quiescent flow controls Dynamic flow controls;
Generating dynamic flow control list every time includes:Empty dynamic flow control list is generated, if judging current ink without dynamic Flow control and only carry out that congestion can occur when quiescent flow control, then will be at least one according to priority orders from low to high Dynamic flow control list is added in the adjustable flow control strategy, until according to static flow control list and current dynamic flow control list Carry out when flow control the link will not congestion, flow will be carried out according to static flow control list and current dynamic flow control list The available remaining bandwidth of the chain road distributes to the adjustable flow of highest priority in current dynamic flow control list when control The corresponding data flow of control strategy.
6. flow control methods according to claim 5, which is characterized in that
The multiple adjustable flow control strategies set with different priorities as:
Corresponding service traffics control strategy is set according to type of service, different service traffics control strategies is according to type of service Carry out priority division;
Alternatively, corresponding service traffics control strategy is set according to type of service, and according to application class in same business Type sets corresponding application rs traffic control strategy, and different service traffics control strategies carries out priority according to type of service It divides, different application rs traffic control strategies carries out priority division according to Application Type;
Alternatively, according to the source of data flow, purpose IP address, source, target MAC (Media Access Control) address, source, destination slogan or application layer protocol kind Class sets corresponding service traffics control strategy, and different service traffics control strategies carries out priority according to data stream type and draws Point.
7. a kind of volume control device, which is characterized in that including:
Adjustable control strategy setting module, it is different for setting multiple adjustable flow control strategies with different priorities The adjustable flow control strategy is used to respectively provide the default control thresholding of different data streams;The multiple adjustable flow control Strategy is pre-set;
Static flow control list setting module is provided with non-adjustable for setting static flow control list in the static state flow control list Flow control policy;
Dynamic flow control list setting module, for periodically generating dynamic flow control list, generating dynamic flow control list every time includes: Empty dynamic flow control list is generated, if judging current ink when only carrying out quiescent flow control without dynamic flow control Congestion can occur, then dynamic stream is added at least one adjustable flow control strategy according to priority orders from low to high List is controlled, the link will not be gathered around when carrying out flow control according to static flow control list and current dynamic flow control list Plug, the available tape remaining of chain road when by according to static flow control list and current dynamic flow control list progress flow control Width distributes to the corresponding data flow of adjustable flow control strategy of highest priority in current dynamic flow control list;
Flow control module, for carrying out flow control according to static flow control list and newest dynamic flow control list.
8. volume control device according to claim 7, which is characterized in that
The adjustable control strategy setting module is specifically used for:
Corresponding service traffics control strategy is set according to type of service, different service traffics control strategies is according to type of service Carry out priority division;
Alternatively, corresponding service traffics control strategy is set according to type of service, and according to application class in same business Type sets corresponding application rs traffic control strategy, and different service traffics control strategies carries out priority according to type of service It divides, different application rs traffic control strategies carries out priority division according to Application Type;
Alternatively, according to the source of data flow, purpose IP address, source, target MAC (Media Access Control) address, source, destination slogan or application layer protocol kind Class sets corresponding service traffics control strategy, and different service traffics control strategies carries out priority according to data stream type and draws Point.
CN201410289616.5A 2014-06-25 2014-06-25 Flow control methods and device Active CN104052681B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410289616.5A CN104052681B (en) 2014-06-25 2014-06-25 Flow control methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410289616.5A CN104052681B (en) 2014-06-25 2014-06-25 Flow control methods and device

Publications (2)

Publication Number Publication Date
CN104052681A CN104052681A (en) 2014-09-17
CN104052681B true CN104052681B (en) 2018-09-21

Family

ID=51505063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410289616.5A Active CN104052681B (en) 2014-06-25 2014-06-25 Flow control methods and device

Country Status (1)

Country Link
CN (1) CN104052681B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847169B (en) * 2015-01-13 2019-07-05 阿里巴巴集团控股有限公司 A kind of method and device for flow control
CN104767809B (en) * 2015-04-02 2018-12-21 天脉聚源(北京)教育科技有限公司 A kind of download control method and system
CN106506387B (en) * 2015-09-08 2019-11-08 北京国双科技有限公司 The method and apparatus of flow control
CN107295572B (en) * 2016-04-11 2021-10-01 北京搜狗科技发展有限公司 Dynamic self-adaptive current limiting method and electronic equipment
CN107623577B (en) * 2016-07-14 2022-10-14 深圳市远行科技股份有限公司 Service call flow control method and device
CN106330778B (en) * 2016-08-22 2020-01-24 深圳广联赛讯有限公司 Network flow control method and device
CN109413675A (en) * 2018-12-05 2019-03-01 斑马网络技术有限公司 Car networking flow control methods, device and car-mounted terminal
CN110135198B (en) * 2019-02-18 2021-06-22 北京车和家信息技术有限公司 Program flow monitoring method and system and vehicle
CN110475291A (en) * 2019-08-22 2019-11-19 惠州市新一代工业互联网创新研究院 Application traffic control, safe Check System and method based on the 5G communication technology
CN113300974B (en) * 2020-07-10 2024-04-26 阿里巴巴集团控股有限公司 Congestion control method, device and computer readable medium
CN117812014A (en) * 2022-09-30 2024-04-02 华为技术有限公司 Scheduling policy determining method and related device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193061A (en) * 2006-12-14 2008-06-04 中兴通讯股份有限公司 Multi-Qos-based traffic control method
CN102158420A (en) * 2011-05-25 2011-08-17 杭州华三通信技术有限公司 Service traffic scheduling method based on priority queue and device thereof
CN103634223A (en) * 2013-12-03 2014-03-12 北京东土科技股份有限公司 Network service flow based dynamic control transmission method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193061A (en) * 2006-12-14 2008-06-04 中兴通讯股份有限公司 Multi-Qos-based traffic control method
CN102158420A (en) * 2011-05-25 2011-08-17 杭州华三通信技术有限公司 Service traffic scheduling method based on priority queue and device thereof
CN103634223A (en) * 2013-12-03 2014-03-12 北京东土科技股份有限公司 Network service flow based dynamic control transmission method and device

Also Published As

Publication number Publication date
CN104052681A (en) 2014-09-17

Similar Documents

Publication Publication Date Title
CN104052681B (en) Flow control methods and device
CN102594675B (en) Traffic control system and method
CN104685827B (en) For providing method, system and the computer-readable medium of strategy and charging rule functions (PCRF) with integrated openflow controllers
CN102685904B (en) Bandwidth self-adaptive allocation method and bandwidth self-adaptive allocation system
CN106453111B (en) Traffic management method and device based on aggregated link
CN109787801B (en) Network service management method, device and system
US10616122B2 (en) Systems and methods for managing a network
CN110636011A (en) Method, device and terminal equipment for intelligent dispatching of power communication service data flow
WO2013124790A1 (en) Methods and apparatus for managing network resources used by multimedia streams in a virtual pipe
JP2006511137A5 (en)
CN106452958A (en) Flow control method and system, and centralized controller
CN104243345B (en) A kind of traffic scheduling method based on type of service, system and equipment
CN107347198A (en) A kind of method for limiting speed, Control for Speed Limitation node and speed limiting device
WO2015096417A1 (en) State migration method and switch in software defined network
WO2015131692A1 (en) Bandwidth allocation method and apparatus
CN104219165A (en) Business bandwidth control method and apparatus
CN103533527A (en) Service data stream sending processing method and device
WO2013084174A1 (en) Intelligent traffic quota management
CN110505158B (en) Network bandwidth control method and device, electronic equipment and storage medium
CN102088405A (en) Status selection-based method and system for controlling network bandwidth
CN113630339A (en) Flow forwarding method and device, electronic equipment and storage medium
WO2016107368A1 (en) Method for determining service bandwidth in ip network, and network device
CN110190988B (en) A service deployment method and device
CN111970149A (en) Shared bandwidth realizing method based on hardware firewall QOS
CN113965616B (en) SFC mapping method based on VNF resource change matrix

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant