[go: up one dir, main page]

CN106330710B - Data flow scheduling method and device - Google Patents

Data flow scheduling method and device Download PDF

Info

Publication number
CN106330710B
CN106330710B CN201510379415.9A CN201510379415A CN106330710B CN 106330710 B CN106330710 B CN 106330710B CN 201510379415 A CN201510379415 A CN 201510379415A CN 106330710 B CN106330710 B CN 106330710B
Authority
CN
China
Prior art keywords
scheduling
level
data flow
enabled
port
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
CN201510379415.9A
Other languages
Chinese (zh)
Other versions
CN106330710A (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.)
Nanjing ZTE New Software Co Ltd
Original Assignee
Nanjing ZTE New Software 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 Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
Priority to CN201510379415.9A priority Critical patent/CN106330710B/en
Priority to PCT/CN2016/075256 priority patent/WO2016177058A1/en
Publication of CN106330710A publication Critical patent/CN106330710A/en
Application granted granted Critical
Publication of CN106330710B publication Critical patent/CN106330710B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种数据流调度方法,所述数据流调度方法包括:按照当前调度参数确定预设端口需要使能的调度层级;使能确定的调度层级的相应调度节点,并建立不同调度层级调度节点之间的链接关系;为使能的各调度节点配置调度策略;在所述预设端口接收到数据流时,根据各调度节点配置的调度策略及各调度节点之间的链接关系,在使能的各调度节点之间对所述数据流分层进行调度。本发明还公开了一种数据流调度装置。本发明能够提高调度数据流的效率。

The present invention discloses a data flow scheduling method, the data flow scheduling method includes: according to the current scheduling parameters, determining the scheduling level that the preset port needs to enable; enabling the corresponding scheduling nodes of the determined scheduling level, and establishing different scheduling levels The link relationship between the scheduling nodes; the scheduling strategy is configured for each scheduling node enabled; when the preset port receives the data stream, according to the scheduling strategy configured by each scheduling node and the link relationship between each scheduling node, in The data streams are scheduled hierarchically among the enabled scheduling nodes. The invention also discloses a data flow scheduling device. The invention can improve the efficiency of scheduling data flow.

Description

数据流调度方法及装置Data flow scheduling method and device

技术领域technical field

本发明涉及通信技术领域,尤其涉及数据流调度方法及装置。The invention relates to the field of communication technology, in particular to a data flow scheduling method and device.

背景技术Background technique

随着通信技术的飞速发展,使得对带宽、延迟、抖动敏感的语音、视频以及数据等业务越来越多的通过网络传输。为了能够对数据传输性能提供不同的承诺和保证,广泛的使用了QoS(Quality of Service,服务质量)技术来保证网络传输质量。然而,随着用户规模的扩大,业务种类的增多,要求网络设备不仅能够进一步细化区分业务流量,而且还能够针对多个用户、多种业务以及多种流量等传输对象进行统一管理和分层调度。这对于传统的QoS技术来说,是难以实现的。为了达到分层调度的目的,HQoS(Hierarchical Qualityof Service,分层QoS)技术应运而生。但是,现有的HQoS技术调度层次固定,不能根据用户需求进行灵活的分层调度,调度数据流的效率较低。With the rapid development of communication technology, services such as voice, video, and data that are sensitive to bandwidth, delay, and jitter are increasingly transmitted through the network. In order to provide different promises and guarantees for data transmission performance, QoS (Quality of Service, Quality of Service) technology is widely used to ensure network transmission quality. However, with the expansion of user scale and the increase of business types, network equipment is required not only to further refine and distinguish business traffic, but also to perform unified management and layering for multiple users, multiple services, and multiple traffic transmission objects. scheduling. This is difficult to realize for the traditional QoS technology. In order to achieve the purpose of hierarchical scheduling, HQoS (Hierarchical Quality of Service, hierarchical QoS) technology emerges as the times require. However, the existing HQoS technology has a fixed scheduling level and cannot perform flexible hierarchical scheduling according to user needs, and the efficiency of scheduling data streams is low.

发明内容Contents of the invention

本发明的主要目的在于提供一种数据流调度方法及装置,旨在提高调度数据流的效率。The main purpose of the present invention is to provide a data flow scheduling method and device, aiming at improving the efficiency of scheduling data flow.

为实现上述目的,本发明提供一种数据流调度方法,所述数据流调度方法包括:In order to achieve the above object, the present invention provides a data flow scheduling method, the data flow scheduling method includes:

按照当前调度参数确定预设端口需要使能的调度层级;Determine the scheduling level that the preset port needs to enable according to the current scheduling parameters;

使能确定的调度层级的相应调度节点,并建立不同调度层级调度节点之间的链接关系;Enable the corresponding scheduling nodes of the determined scheduling level, and establish the link relationship between scheduling nodes of different scheduling levels;

为使能的各调度节点配置调度策略;Configure scheduling policies for each enabled scheduling node;

在所述预设端口接收到数据流时,根据各调度节点配置的调度策略及各调度节点之间的链接关系,在使能的各调度节点之间对所述数据流分层进行调度。When the preset port receives the data flow, the data flow is hierarchically scheduled among the enabled scheduling nodes according to the scheduling policy configured by each scheduling node and the link relationship between the scheduling nodes.

优选地,所述预设端口包括一类端口和二类端口,当所述预设端口为一类端口时,所述预设端口包括5级调度层级;当所述预设端口为二类端口时,所述预设端口包括3级调度层级。Preferably, the preset port includes a class I port and a class II port. When the preset port is a class I port, the preset port includes a 5-level scheduling hierarchy; when the preset port is a class II port When , the preset port includes three scheduling levels.

优选地,所述按照当前调度参数确定预设端口需要使能的调度层级包括:Preferably, the determining the scheduling level that needs to be enabled for the preset port according to the current scheduling parameters includes:

始终将所述预设端口调度优先级最低和最高的调度层级作为需要使能的调度层级,并按照当前调度参数,确定所述预设端口需要使能的,除所述预设端口调度优先级最低和最高的调度层级之外的其它调度层级。Always use the scheduling level with the lowest and highest scheduling priority of the preset port as the scheduling level that needs to be enabled, and determine that the preset port needs to be enabled according to the current scheduling parameters, except for the scheduling priority of the preset port Scheduling levels other than the lowest and highest scheduling levels.

优选地,所述为使能的各调度节点配置调度策略包括:Preferably, the configuring a scheduling policy for each enabled scheduling node includes:

为使能的各调度节点配置调度算法、流量整形策略和/或拥塞避免策略。Configure scheduling algorithms, traffic shaping policies, and/or congestion avoidance policies for each enabled scheduling node.

优选地,所述按照当前调度参数确定预设端口需要使能的调度层级之前,还包括:Preferably, before determining the scheduling level that the preset port needs to enable according to the current scheduling parameters, it also includes:

接收用户基于调度参数设置界面输入的调度参数;receiving scheduling parameters input by the user based on the scheduling parameter setting interface;

将接收到的所述调度参数作为当前调度参数。The received scheduling parameter is used as the current scheduling parameter.

此外,为实现上述目的,本发明还提供一种数据流调度装置,所述数据流调度装置包括:In addition, in order to achieve the above object, the present invention also provides a data flow scheduling device, the data flow scheduling device includes:

确定模块,用于按照当前调度参数确定预设端口需要使能的调度层级;A determining module, configured to determine the scheduling level that needs to be enabled for the preset port according to the current scheduling parameters;

使能模块,用于使能确定的调度层级的相应调度节点,并建立不同调度层级调度节点之间的链接关系;An enabling module, configured to enable corresponding scheduling nodes of a determined scheduling level, and establish a link relationship between scheduling nodes of different scheduling levels;

配置模块,用于为使能的各调度节点配置调度策略;A configuration module, configured to configure a scheduling policy for each enabled scheduling node;

调度模块,用于在所述预设端口接收到数据流时,根据各调度节点配置的调度策略及各调度节点之间的链接关系,在使能的各调度节点之间对所述数据流分层进行调度。A dispatching module, configured to, when the preset port receives the data stream, divide the data stream between the enabled scheduling nodes according to the scheduling strategy configured by each scheduling node and the link relationship between the scheduling nodes Layers are scheduled.

优选地,所述预设端口包括一类端口和二类端口,当所述预设端口为一类端口时,所述预设端口包括5级调度层级;当所述预设端口为二类端口时,所述预设端口包括3级调度层级。Preferably, the preset port includes a class I port and a class II port. When the preset port is a class I port, the preset port includes a 5-level scheduling hierarchy; when the preset port is a class II port When , the preset port includes three scheduling levels.

优选地,所述确定模块还用于始终将所述预设端口调度优先级最低和最高的调度层级作为需要使能的调度层级,并按照当前调度参数,确定所述预设端口需要使能的,除所述预设端口调度优先级最低和最高的调度层级之外的其它调度层级。Preferably, the determining module is also configured to always use the scheduling level with the lowest and highest scheduling priority of the preset port as the scheduling level that needs to be enabled, and determine the level that needs to be enabled for the preset port according to the current scheduling parameters. , other scheduling levels except the lowest and highest scheduling levels of the preset port scheduling priority.

优选地,所述配置模块还用于为使能的各调度节点配置调度算法、流量整形策略和/或拥塞避免策略。Preferably, the configuration module is further configured to configure scheduling algorithms, traffic shaping strategies and/or congestion avoidance strategies for each enabled scheduling node.

优选地,所述数据流调度装置还包括设置模块,用于接收用户基于调度参数设置界面输入的调度参数;以及将接收到的所述调度参数作为当前调度参数。Preferably, the data flow scheduling device further includes a setting module, configured to receive a scheduling parameter input by a user based on a scheduling parameter setting interface; and use the received scheduling parameter as a current scheduling parameter.

本发明在现有HQoS技术的基础上,灵活选择需要使能的调度层级,并使能选择的调度层级相应的调度节点,各调度节点按照配置的调度策略以及调度节点间的链接关系相互配合,实现数据流的分层调度。解决了现有HQoS技术中调度层级固定的问题,更符合用户需求,且避免了不必要的处理资源浪费,从而本发明能够提高调度数据流的效率。Based on the existing HQoS technology, the present invention flexibly selects the scheduling level that needs to be enabled, and enables the corresponding scheduling nodes of the selected scheduling level, and each scheduling node cooperates with each other according to the configured scheduling strategy and the link relationship between scheduling nodes. Implement hierarchical scheduling of data streams. The invention solves the problem of fixed scheduling levels in the existing HQoS technology, better meets user needs, and avoids unnecessary waste of processing resources, so that the invention can improve the efficiency of scheduling data streams.

附图说明Description of drawings

图1为本发明数据流调度方法较佳实施例的流程示意图;FIG. 1 is a schematic flow diagram of a preferred embodiment of the data flow scheduling method of the present invention;

图2为本发明数据流调度方法较佳实施例中的组网示意图;Fig. 2 is a schematic diagram of networking in a preferred embodiment of the data flow scheduling method of the present invention;

图3为本发明数据流调度方法较佳实施例中一种调度层级示意图;FIG. 3 is a schematic diagram of a scheduling hierarchy in a preferred embodiment of the data flow scheduling method of the present invention;

图4为本发明数据流调度方法较佳实施例中另一种调度层级示意图;FIG. 4 is a schematic diagram of another scheduling level in a preferred embodiment of the data flow scheduling method of the present invention;

图5为本发明数据流调度方法较佳实施例中又一种调度层级示意图;FIG. 5 is a schematic diagram of another scheduling level in a preferred embodiment of the data flow scheduling method of the present invention;

图6为本发明数据流调度装置较佳实施例的功能模块示意图。FIG. 6 is a schematic diagram of functional modules of a preferred embodiment of the data stream scheduling device of the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明提供一种数据流调度方法,参照图1,在本发明数据流调度方法的较佳实施例中,所述数据流调度方法包括:The present invention provides a data flow scheduling method. Referring to FIG. 1, in a preferred embodiment of the data flow scheduling method of the present invention, the data flow scheduling method includes:

S10,按照当前调度参数确定预设端口需要使能的调度层级;S10. Determine the scheduling level that needs to be enabled for the preset port according to the current scheduling parameter;

S20,使能确定的调度层级的相应调度节点,并建立不同调度层级调度节点之间的链接关系;S20, enabling the corresponding scheduling nodes of the determined scheduling level, and establishing a link relationship between scheduling nodes of different scheduling levels;

本实施例提供的数据流调度方法可以应用于MPLS(Multi-Protocol LabelSwitching,多协议标签交换)网络,例如,在MPLS网络中,当某网络节点的某端口接收到数据流时,根据预先配置的调度层级以及相应的调度策略对所述数据流进行分层调度,高效的将数据流转发出去。以下以本发明提供的数据流调度方法应用于MPLS网络进行说明。The data stream scheduling method provided in this embodiment can be applied to an MPLS (Multi-Protocol Label Switching, Multi-Protocol Label Switching) network. For example, in an MPLS network, when a certain port of a certain network node receives a data stream, according to the pre-configured The scheduling level and the corresponding scheduling strategy perform hierarchical scheduling on the data flow, and forward the data flow efficiently. In the following, the method for scheduling data flow provided by the present invention is applied to an MPLS network for illustration.

需要说明的是,MPLS是新一代的IP高速骨干网络交换标准,由IETF(InternetEngineering Task Force,因特网工程任务组)提出。MPLS独立于第二层和第三层协议,其利用Label(标签)进行数据转发:当数据流进入网络节点时,为其分配固定长度的标签,并将标签与数据流封装在一起,在整个转发过程中,网络节点仅根据标签进行转发。其中,数据传输发生在LSP(标签交换路径)上,LSP是每一个沿着源端到终端的路径上的网络节点的标签序列。It should be noted that MPLS is a new generation IP high-speed backbone network switching standard proposed by IETF (Internet Engineering Task Force, Internet Engineering Task Force). MPLS is independent of the second-layer and third-layer protocols. It uses Label (label) for data forwarding: when the data flow enters the network node, it is assigned a fixed-length label, and the label and the data flow are encapsulated together. During the forwarding process, the network nodes only forward according to the label. Wherein, data transmission occurs on LSP (Label Switching Path), and LSP is a label sequence of each network node along the path from the source end to the terminal end.

本实施例提出的数据流调度方法,根据MPLS的特性,预先划分不同的调度层级,并按照当前调度参数确定预设端口需要使能的调度层级;以及按照当前调度参数使能确定的调度层级的相应调度节点,并建立不同调度层级调度节点之间的链接关系。其中,所述调度参数包括但不限于需要使能的调度层级信息、调度节点信息、调度策略信息以及不同调度层级调度节点之间的链接关系信息。The data stream scheduling method proposed in this embodiment divides different scheduling levels in advance according to the characteristics of MPLS, and determines the scheduling levels that need to be enabled for the preset ports according to the current scheduling parameters; and enables the scheduling levels determined according to the current scheduling parameters. Correspondingly schedule nodes, and establish link relationships between scheduling nodes at different scheduling levels. Wherein, the scheduling parameters include, but are not limited to, scheduling level information that needs to be enabled, scheduling node information, scheduling policy information, and link relationship information between scheduling nodes at different scheduling levels.

S30,为使能的各调度节点配置调度策略;S30, configuring a scheduling strategy for each enabled scheduling node;

在调度节点使能后,需要为使能的各调度节点配置调度策略。其中,不同调度层级或者相同调度层级的调度节点之间可以配置相同的调度策略,也可以配置不同的调度策略,具体根据调度参数中的调度策略信息进行配置。After the scheduling nodes are enabled, you need to configure scheduling policies for each enabled scheduling node. Among them, the same scheduling policy can be configured between scheduling nodes of different scheduling levels or the same scheduling level, and different scheduling policies can also be configured, which is specifically configured according to the scheduling policy information in the scheduling parameters.

S40,在所述预设端口接收到数据流时,根据各调度节点配置的调度策略及各调度节点之间的链接关系,在使能的各调度节点之间对所述数据流分层进行调度。S40. When the preset port receives the data flow, perform hierarchical scheduling on the data flow among the enabled scheduling nodes according to the scheduling strategy configured by each scheduling node and the link relationship between the scheduling nodes .

需要说明的是,本实施例中,为不同调度层级的各调度节点分别挂载有相应调度层级的调度器,由不同调度层级的调度器实现数据流的分层调度。具体地,按照调度器之间的调度层级关系(不同调度层级调度节点之间的链接关系)以及相应的调度策略,上级调度器控制一组下级调度器的总带宽,并根据下级调度器的级别和权重分配下级调度器的承诺带宽和峰值带宽,实现数据流的分层调度。It should be noted that, in this embodiment, each scheduling node of a different scheduling level is mounted with a scheduler of a corresponding scheduling level, and the schedulers of different scheduling levels implement hierarchical scheduling of data streams. Specifically, according to the scheduling hierarchy relationship between schedulers (the link relationship between scheduling nodes at different scheduling levels) and the corresponding scheduling strategy, the upper-level scheduler controls the total bandwidth of a group of lower-level schedulers, and according to the level of the lower-level scheduler The committed bandwidth and peak bandwidth of the lower-level scheduler are allocated with weights to realize hierarchical scheduling of data streams.

本实施例提出的数据流调度方法,在现有HQoS技术的基础上,灵活选择需要使能的调度层级,并使能选择的调度层级相应的调度节点,各调度节点按照配置的调度策略以及调度节点间的链接关系相互配合,实现数据流的分层调度。解决了现有HQoS技术中调度层级固定的问题,更符合用户需求,且避免了不必要的处理资源浪费,从而本发明能够提高调度数据流的效率。The data flow scheduling method proposed in this embodiment, on the basis of the existing HQoS technology, flexibly selects the scheduling level that needs to be enabled, and enables the corresponding scheduling nodes of the selected scheduling level, and each scheduling node follows the configured scheduling policy and scheduling The links between nodes cooperate with each other to realize the hierarchical scheduling of data flow. The invention solves the problem of fixed scheduling levels in the existing HQoS technology, better meets user needs, and avoids unnecessary waste of processing resources, so that the invention can improve the efficiency of scheduling data streams.

进一步地,在本发明数据流调度方法的较佳实施例中,所述预设端口包括一类端口和二类端口,当所述预设端口为一类端口时,所述预设端口包括5级调度层级;当所述预设端口为二类端口时,所述预设端口包括3级调度层级。Further, in a preferred embodiment of the data flow scheduling method of the present invention, the preset ports include a first-class port and a second-class port, and when the preset port is a first-class port, the preset port includes 5 level scheduling hierarchy; when the preset port is a second-class port, the preset port includes a 3-level scheduling hierarchy.

需要说明的是,在MPLS网络中,包括两类端口,参照图2,将本网络内的网络节点相连的端口称为NNI(网络节点端口),本网络和其它网络相连的端口称为UNI(用户网络端口)。本实施例按照MPLS的网络结构,为不同类型的端口划分不同级数的调度层级。It should be noted that in the MPLS network, there are two types of ports. With reference to FIG. 2, the ports connected to the network nodes in this network are called NNI (network node ports), and the ports connected to this network and other networks are called UNI ( user network port). According to the network structure of MPLS, this embodiment divides different levels of scheduling levels for different types of ports.

具体地,当所述预设端口为一类端口(NNI)时,所述预设端口包括5级调度层级,即针对NNI划分有5级调度层级,分别为:端口、VLAN子端口、隧道、伪线以及队列,各调度层级包括一个或多个调度节点。例如,参照图3,针对NNI,使能了全部5级调度层级的调度节点;参照图4,针对NNI,使能了端口、隧道、伪线以及队列调度层级的调度节点。Specifically, when the preset port is a first-class port (NNI), the preset port includes 5 levels of scheduling levels, that is, there are 5 levels of scheduling levels for NNI, which are: port, VLAN subport, tunnel, For pseudowires and queues, each scheduling level includes one or more scheduling nodes. For example, referring to FIG. 3 , for NNI, scheduling nodes at all 5 scheduling levels are enabled; referring to FIG. 4 , for NNI, scheduling nodes at port, tunnel, pseudowire, and queue scheduling levels are enabled.

当所述预设端口为二类端口(UNI)时,所述预设端口包括3级调度层级,即针对UNI划分有3级调度层级,分别为:端口、CIP(Client Computer's IP address,客户端地址)以及队列,各调度层级包括一个或多个调度节点。例如,参照图5,针对UNI,使能了全部3级调度层级的调度节点。When the preset port is a second-class port (UNI), the preset port includes 3 levels of scheduling levels, that is, there are 3 levels of scheduling levels for UNI, which are: port, CIP (Client Computer's IP address, client computer's IP address, client address) and queues, and each scheduling level includes one or more scheduling nodes. For example, referring to FIG. 5 , for the UNI, scheduling nodes of all three scheduling levels are enabled.

本实施例通过针对不同类型的端口,相应划分不同的调度层级,以满足不同的网络组网环境。In this embodiment, different scheduling levels are correspondingly divided for different types of ports to meet different network networking environments.

进一步地,在本发明数据流调度方法的较佳实施例中,所述按照当前调度参数确定预设端口需要使能的调度层级包括:Further, in a preferred embodiment of the data flow scheduling method of the present invention, the determining the scheduling level that needs to be enabled for the preset port according to the current scheduling parameters includes:

始终将所述预设端口调度优先级最低和最高的调度层级作为需要使能的调度层级,并按照当前调度参数,确定所述预设端口需要使能的,除所述预设端口调度优先级最低和最高的调度层级之外的其它调度层级。Always use the scheduling level with the lowest and highest scheduling priority of the preset port as the scheduling level that needs to be enabled, and determine that the preset port needs to be enabled according to the current scheduling parameters, except for the scheduling priority of the preset port Scheduling levels other than the lowest and highest scheduling levels.

需要说明的是,即使采用普通的QoS调度,端口调度层级和队列调度层级的调度也是始终使能的,在本实施例中,同样需要始终使能端口调度层级和队列调度层级的调度,即始终将所述预设端口调度优先级最低的调度层级(端口调度层级)和调度优先级最高的调度层级(队列调度层级)作为需要使能的调度层级。在前述始终将端口调度层级和队列调度层级作为需要使能的调度层级的基础上,按照当前调度参数,确定所述预设端口需要使能的,除所述预设端口调度优先级最低和最高的调度层级之外的其它调度层级。It should be noted that even if ordinary QoS scheduling is used, the scheduling at the port scheduling level and the queue scheduling level are always enabled. The scheduling level with the lowest preset port scheduling priority (port scheduling level) and the scheduling level with the highest scheduling priority (queue scheduling level) are used as the scheduling levels to be enabled. On the basis of always taking the port scheduling level and queue scheduling level as the scheduling levels that need to be enabled, according to the current scheduling parameters, determine the preset ports that need to be enabled, except that the preset port scheduling priority is the lowest and the highest Scheduling levels other than the scheduling level.

例如,针对NNI,始终将端口调度层级以及队列调度层级作为需要使能的调度层级,并按照当前调度参数,动态选择VLAN子接口调度层级、隧道调度层级以及伪线调度层级作为需要使能的调度层级;针对UNI,始终将端口调度层级以及队列调度层级作为需要使能的调度层级,并按照当前调度参数,动态选择是否将CIP调度层级作为需要使能的调度层级。For example, for NNI, the port scheduling level and queue scheduling level are always used as the scheduling levels that need to be enabled, and the VLAN sub-interface scheduling level, tunnel scheduling level, and pseudowire scheduling level are dynamically selected as the scheduling levels that need to be enabled according to the current scheduling parameters Level: For UNI, always use the port scheduling level and queue scheduling level as the scheduling level that needs to be enabled, and dynamically select whether to use the CIP scheduling level as the scheduling level that needs to be enabled according to the current scheduling parameters.

进一步地,在本发明数据流调度方法的较佳实施例中,所述为使能的各调度节点配置调度策略包括:Further, in a preferred embodiment of the data flow scheduling method of the present invention, the configuration of scheduling policies for each enabled scheduling node includes:

为使能的各调度节点配置调度算法、流量整形策略和/或拥塞避免策略。Configure scheduling algorithms, traffic shaping policies, and/or congestion avoidance policies for each enabled scheduling node.

本实施例中,调度参数中的调度策略信息包括但不限于调度算法、流量整形策略以及拥塞避免策略,所述为使能的各调度节点配置调度策略包括为使能的各调度节点配置调度算法、流量整形策略和/或拥塞避免策略。In this embodiment, the scheduling strategy information in the scheduling parameters includes but is not limited to scheduling algorithms, traffic shaping strategies, and congestion avoidance strategies, and configuring scheduling strategies for each enabled scheduling node includes configuring a scheduling algorithm for each enabled scheduling node , traffic shaping strategy and/or congestion avoidance strategy.

具体地,针对不同调度层级的调度节点,可以配置的调度算法包括但不限于SP(Strict Priority,严格优选级)、RR(Round Robin,循环调度)、DRR(Deficit RoundRobin,差额循环调度)、WRR(Weighted Round Robin,加权循环调度)、WDRR(WeightedDeficit Round Robin,加权差额循环调度)、以及DWRR(Dynamic Weighted Round Robin,动态加权循环调度)中的一种。例如,参照图3,可以为VLAN子接口调度层级的调度节点null_vlan配置SP算法,为隧道调度层级的调度节点null_lsp配置SP算法,为隧道调度层级的调度节点Lsp_1配置DWRR算法。Specifically, for scheduling nodes of different scheduling levels, the scheduling algorithms that can be configured include but are not limited to SP (Strict Priority, strict priority level), RR (Round Robin, round-robin scheduling), DRR (Deficit Round Robin, difference round-robin scheduling), WRR One of (Weighted Round Robin, weighted round robin), WDRR (WeightedDeficit Round Robin, weighted deficit round robin), and DWRR (Dynamic Weighted Round Robin, dynamic weighted round robin). For example, referring to FIG. 3 , an SP algorithm can be configured for the scheduling node null_vlan at the VLAN sub-interface scheduling level, an SP algorithm can be configured for the scheduling node null_lsp at the tunnel scheduling level, and a DWRR algorithm can be configured for the scheduling node Lsp_1 at the tunnel scheduling level.

为了避免所述预设端口转发出的数据流超过网络的承载能力,优选地,本实施例在各调度层级的调度节点配置流量整形策略,进行流量整形。流量整形策略是采用令牌桶对数据流进行评估和削峰填谷,将峰值数据流缓存到整形队列中,延迟再发送,尽可能保证报文(数据流由报文组成)不丢失。In order to prevent the data flow forwarded by the preset port from exceeding the carrying capacity of the network, preferably, in this embodiment, a traffic shaping policy is configured on the scheduling nodes of each scheduling level to perform traffic shaping. The traffic shaping strategy is to use token buckets to evaluate data flows and shave peaks and fill valleys, buffer peak data flows in the shaping queue, and delay resending, so as to ensure that packets (data flows are composed of packets) are not lost as much as possible.

拥塞避免策略仅可配置于队列调度层级的调度节点,拥塞避免是一种流控机制,其通过监视队列缓存的使用情况,在拥塞有加剧的趋势时,主动丢弃报文,通过调整数据流量来解除网络过载。传统的拥塞避免策略采用尾部丢弃(Tail-Drop)的方法,当队列的长度达到某一最大值后,所有新到来的报文都将被丢弃,Tail-Drop将会引发TCP全局同步现象。优选地,为避免TCP全局同步现象,本实施例采用WRED(Weighted Random EarlyDetection,加权随机早期检测)进行拥塞避免。WRED基于报文的丢弃优先级为每个队列都设定上限和下限,对队列中的报文进行如下处理:The congestion avoidance strategy can only be configured on the scheduling nodes at the queue scheduling level. Congestion avoidance is a flow control mechanism. It monitors the usage of the queue buffer, and when the congestion tends to intensify, it actively discards packets and adjusts the data flow. Remove network overload. The traditional congestion avoidance strategy adopts the tail drop (Tail-Drop) method. When the length of the queue reaches a certain maximum value, all new incoming packets will be discarded, and Tail-Drop will cause TCP global synchronization. Preferably, in order to avoid TCP global synchronization phenomenon, this embodiment adopts WRED (Weighted Random Early Detection, Weighted Random Early Detection) to avoid congestion. WRED sets an upper limit and a lower limit for each queue based on the packet discarding priority, and processes the packets in the queue as follows:

(1)、当队列的长度小于下限时,不丢弃报文;(1), when the length of the queue is less than the lower limit, the message is not discarded;

(2)、当队列的长度超过上限时,丢弃所有到来的报文;(2), when the length of the queue exceeds the upper limit, all incoming messages are discarded;

(3)、当队列的长度在上限和下限之间时,随机丢弃到来的报文。队列越长,丢弃的概率越高,但有一个最大丢弃概率。(3) When the length of the queue is between the upper limit and the lower limit, randomly discard incoming messages. The longer the queue, the higher the probability of discarding, but there is a maximum probability of discarding.

进一步地,在本发明数据流调度方法的较佳实施例中,所述按照当前调度参数确定预设端口需要使能的调度层级之前,还包括:Further, in a preferred embodiment of the data flow scheduling method of the present invention, before determining the scheduling level that needs to be enabled for the preset port according to the current scheduling parameters, it also includes:

接收用户基于调度参数设置界面输入的调度参数;receiving scheduling parameters input by the user based on the scheduling parameter setting interface;

将接收到的所述调度参数作为当前调度参数。The received scheduling parameter is used as the current scheduling parameter.

具体地,用户可根据实际需求通过网络节点提供的CLI(Command LineInterface,命令行界面)和/或GUI(Graphical User Interface,图形用户界面)调度参数设置界面进行预设端口调度参数的设置。例如,当判断需要较大调度力度才能满足数据流调度需求时,用户可通过设置相应的调度参数使能较多级数的调度层级,以满足数据流调度需求,确保网络节点正常转发数据流。Specifically, the user can set preset port scheduling parameters through the CLI (Command Line Interface, Command Line Interface) and/or GUI (Graphical User Interface, Graphical User Interface) scheduling parameter setting interface provided by the network node according to actual needs. For example, when it is judged that a greater scheduling effort is required to meet the data flow scheduling requirements, the user can enable more levels of scheduling levels by setting corresponding scheduling parameters to meet the data flow scheduling requirements and ensure that the network nodes forward the data flow normally.

进一步地,用户还可根据实际需求对设置的调度参数进行更新,以使得网络节点适应不断变化的网络环境。Furthermore, the user can also update the set scheduling parameters according to actual needs, so that the network nodes can adapt to the ever-changing network environment.

本发明还提供一种数据流调度装置,参照图6,在本发明数据流调度装置的较佳实施例中,所述数据流调度装置包括:The present invention also provides a data flow scheduling device. Referring to FIG. 6, in a preferred embodiment of the data flow scheduling device of the present invention, the data flow scheduling device includes:

确定模块10,用于按照当前调度参数确定预设端口需要使能的调度层级;A determining module 10, configured to determine the scheduling level that the preset port needs to enable according to the current scheduling parameter;

使能模块20,用于使能确定的调度层级的相应调度节点,并建立不同调度层级调度节点之间的链接关系;The enabling module 20 is configured to enable corresponding scheduling nodes of a determined scheduling level, and establish a link relationship between scheduling nodes of different scheduling levels;

本实施例提供的数据流调度装置可以应用于MPLS(Multi-Protocol LabelSwitching,多协议标签交换)网络,例如,在MPLS网络中,数据流调度装置内置于网络节点运行,当该网络节点的某端口接收到数据流时,数据流调度装置根据预先配置的调度层级以及相应的调度策略对所述数据流进行分层调度,高效的将数据流转发出去。以下以本发明提供的数据流调度装置应用于MPLS网络进行说明。The data stream scheduling device provided in this embodiment can be applied to an MPLS (Multi-Protocol Label Switching, Multi-Protocol Label Switching) network. For example, in an MPLS network, the data stream scheduling device is built into a network node to run. When a certain port of the network node When receiving the data flow, the data flow scheduling device performs hierarchical scheduling on the data flow according to the pre-configured scheduling level and corresponding scheduling strategy, and efficiently forwards the data flow. In the following, the data flow scheduling device provided by the present invention is applied to an MPLS network for description.

需要说明的是,MPLS是新一代的IP高速骨干网络交换标准,由IETF(InternetEngineering Task Force,因特网工程任务组)提出。MPLS独立于第二层和第三层协议,其利用Label(标签)进行数据转发:当数据流进入网络节点时,为其分配固定长度的标签,并将标签与数据流封装在一起,在整个转发过程中,网络节点仅根据标签进行转发。其中,数据传输发生在LSP(标签交换路径)上,LSP是每一个沿着源端到终端的路径上的网络节点的标签序列。It should be noted that MPLS is a new generation IP high-speed backbone network switching standard proposed by IETF (Internet Engineering Task Force, Internet Engineering Task Force). MPLS is independent of the second-layer and third-layer protocols. It uses Label (label) for data forwarding: when the data flow enters the network node, it is assigned a fixed-length label, and the label and the data flow are encapsulated together. During the forwarding process, the network nodes only forward according to the label. Wherein, data transmission occurs on LSP (Label Switching Path), and LSP is a label sequence of each network node along the path from the source end to the terminal end.

本实施例提出的数据流调度装置,根据MPLS的特性,预先划分不同的调度层级,并由确定模块10按照当前调度参数确定预设端口需要使能的调度层级;以及由使能模块20按照当前调度参数使能确定的调度层级的相应调度节点,并建立不同调度层级调度节点之间的链接关系。其中,所述调度参数包括但不限于需要使能的调度层级信息、调度节点信息、调度策略信息以及不同调度层级调度节点之间的链接关系信息。The data flow scheduling device proposed in this embodiment divides different scheduling levels in advance according to the characteristics of MPLS, and the scheduling level that the preset port needs to be enabled is determined by the determination module 10 according to the current scheduling parameters; Scheduling parameters enable corresponding scheduling nodes of a determined scheduling level, and establish link relationships between scheduling nodes of different scheduling levels. Wherein, the scheduling parameters include, but are not limited to, scheduling level information that needs to be enabled, scheduling node information, scheduling policy information, and link relationship information between scheduling nodes at different scheduling levels.

配置模块30,用于为使能的各调度节点配置调度策略;The configuration module 30 is configured to configure a scheduling policy for each enabled scheduling node;

在调度节点使能后,需要配置模块30为使能的各调度节点配置调度策略。其中,不同调度层级或者相同调度层级的调度节点之间可以配置相同的调度策略,也可以配置不同的调度策略,具体由配置模块30根据调度参数中的调度策略信息进行配置。After the scheduling nodes are enabled, the configuration module 30 needs to configure scheduling policies for each enabled scheduling node. The same scheduling strategy or different scheduling strategies can be configured between scheduling nodes at different scheduling levels or at the same scheduling level, which is specifically configured by the configuration module 30 according to the scheduling policy information in the scheduling parameters.

调度模块40,用于在所述预设端口接收到数据流时,根据各调度节点配置的调度策略及各调度节点之间的链接关系,在使能的各调度节点之间对所述数据流分层进行调度。The scheduling module 40 is configured to, when the preset port receives the data stream, according to the scheduling policy configured by each scheduling node and the link relationship between the scheduling nodes, to schedule the data stream between the enabled scheduling nodes Hierarchical scheduling.

需要说明的是,本实施例中,调度模块40为不同调度层级的各调度节点分别挂载有相应调度层级的调度器,由不同调度层级的调度器实现数据流的分层调度。具体地,按照调度器之间的调度层级关系(不同调度层级调度节点之间的链接关系)以及相应的调度策略,上级调度器控制一组下级调度器的总带宽,并根据下级调度器的级别和权重分配下级调度器的承诺带宽和峰值带宽,实现数据流的分层调度。It should be noted that, in this embodiment, the scheduling module 40 mounts schedulers of corresponding scheduling levels for each scheduling node of different scheduling levels, and the schedulers of different scheduling levels implement hierarchical scheduling of data streams. Specifically, according to the scheduling hierarchy relationship between schedulers (the link relationship between scheduling nodes at different scheduling levels) and the corresponding scheduling strategy, the upper-level scheduler controls the total bandwidth of a group of lower-level schedulers, and according to the level of the lower-level scheduler The committed bandwidth and peak bandwidth of the lower-level scheduler are allocated with weights to realize hierarchical scheduling of data streams.

本实施例提出的数据流调度装置,在现有HQoS技术的基础上,灵活选择需要使能的调度层级,并使能选择的调度层级相应的调度节点,各调度节点按照配置的调度策略以及调度节点间的链接关系相互配合,实现数据流的分层调度。解决了现有HQoS技术中调度层级固定的问题,更符合用户需求,且避免了不必要的处理资源浪费,从而本发明能够提高调度数据流的效率。The data flow scheduling device proposed in this embodiment, on the basis of the existing HQoS technology, flexibly selects the scheduling level that needs to be enabled, and enables the corresponding scheduling nodes of the selected scheduling level, and each scheduling node follows the configured scheduling policy and scheduling The links between nodes cooperate with each other to realize the hierarchical scheduling of data flow. The invention solves the problem of fixed scheduling levels in the existing HQoS technology, better meets user needs, and avoids unnecessary waste of processing resources, so that the invention can improve the efficiency of scheduling data streams.

进一步地,在本发明数据流调度装置的较佳实施例中,所述预设端口包括一类端口和二类端口,当所述预设端口为一类端口时,所述预设端口包括5级调度层级;当所述预设端口为二类端口时,所述预设端口包括3级调度层级。Further, in a preferred embodiment of the data flow scheduling device of the present invention, the preset ports include a type I port and a type II port, and when the preset port is a type I port, the preset port includes 5 level scheduling hierarchy; when the preset port is a second-class port, the preset port includes a 3-level scheduling hierarchy.

需要说明的是,在MPLS网络中,包括两类端口,参照图2,将本网络内的网络节点相连的端口称为NNI(网络节点端口),本网络和其它网络相连的端口称为UNI(用户网络端口)。本实施例中,所述数据流调度装置还包括划分模块,用于按照MPLS的网络结构,为不同类型的端口划分不同级数的调度层级。It should be noted that in the MPLS network, there are two types of ports. With reference to FIG. 2, the ports connected to the network nodes in this network are called NNI (network node ports), and the ports connected to this network and other networks are called UNI ( user network port). In this embodiment, the data flow scheduling device further includes a division module, configured to divide different types of ports into different levels of scheduling levels according to the MPLS network structure.

具体地,当所述预设端口为一类端口(NNI)时,所述预设端口包括5级调度层级,即划分模块针对NNI划分有5级调度层级,分别为:端口、VLAN子端口、隧道、伪线以及队列,各调度层级包括一个或多个调度节点。例如,参照图3,针对NNI,使能模块20使能了划分模块划分的全部5级调度层级的调度节点;参照图4,针对NNI,使能模块20使能了划分模块划分的端口、隧道、伪线以及队列调度层级的调度节点。Specifically, when the preset port is a first-class port (NNI), the preset port includes 5 levels of scheduling levels, that is, the division module divides 5 levels of scheduling levels for NNI, which are: port, VLAN subport, For tunnels, pseudowires and queues, each scheduling level includes one or more scheduling nodes. For example, referring to Fig. 3, for NNI, the enabling module 20 has enabled the scheduling nodes of all 5 levels of scheduling levels divided by the division module; referring to Fig. 4, for NNI, the enabling module 20 has enabled the ports and tunnels divided by the division module , Pseudowire, and scheduling nodes at the queue scheduling level.

当所述预设端口为二类端口(UNI)时,所述预设端口包括3级调度层级,即划分模块针对UNI划分有3级调度层级,分别为:端口、CIP(Client Computer's IP address,客户端地址)以及队列,各调度层级包括一个或多个调度节点。例如,参照图5,针对UNI,使能模块20使能了划分模块划分的全部3级调度层级的调度节点。When the preset port is a second-class port (UNI), the preset port includes a 3-level scheduling hierarchy, that is, the division module divides a 3-level scheduling hierarchy for the UNI, which are: port, CIP (Client Computer's IP address, client address) and queues, and each scheduling level includes one or more scheduling nodes. For example, referring to FIG. 5 , for UNI, the enabling module 20 enables scheduling nodes of all three scheduling levels divided by the dividing module.

本实施例通过针对不同类型的端口,相应划分不同的调度层级,以满足不同的网络组网环境。In this embodiment, different scheduling levels are correspondingly divided for different types of ports to meet different network networking environments.

进一步地,在本发明数据流调度装置的较佳实施例中,所述确定模块10还用于始终将所述预设端口调度优先级最低和最高的调度层级作为需要使能的调度层级,并按照当前调度参数,确定所述预设端口需要使能的,除所述预设端口调度优先级最低和最高的调度层级之外的其它调度层级。Further, in a preferred embodiment of the data flow scheduling device of the present invention, the determining module 10 is also configured to always use the scheduling level with the lowest and highest priority of the preset port scheduling as the scheduling level that needs to be enabled, and According to the current scheduling parameters, other scheduling levels other than the lowest scheduling level and the highest scheduling level with the highest scheduling priority of the preset port that need to be enabled for the preset port are determined.

需要说明的是,即使采用普通的QoS调度,端口调度层级和队列调度层级的调度也是始终使能的,在本实施例中,同样需要始终使能端口调度层级和队列调度层级的调度,即确定模块10始终将所述预设端口调度优先级最低的调度层级(端口调度层级)和调度优先级最高的调度层级(队列调度层级)作为需要使能的调度层级。在前述始终将端口调度层级和队列调度层级作为需要使能的调度层级的基础上,确定模块10按照当前调度参数,确定所述预设端口需要使能的,除所述预设端口调度优先级最低和最高的调度层级之外的其它调度层级。It should be noted that even if ordinary QoS scheduling is adopted, the scheduling at the port scheduling level and the queue scheduling level are always enabled. The module 10 always takes the scheduling level with the lowest preset port scheduling priority (port scheduling level) and the scheduling level with the highest scheduling priority (queue scheduling level) as the scheduling levels to be enabled. On the basis of always taking the port scheduling level and the queue scheduling level as the scheduling levels that need to be enabled, the determination module 10 determines that the preset ports need to be enabled according to the current scheduling parameters, except for the preset port scheduling priority Scheduling levels other than the lowest and highest scheduling levels.

例如,针对NNI,确定模块10始终将端口调度层级以及队列调度层级作为需要使能的调度层级,并按照当前调度参数,动态选择VLAN子接口调度层级、隧道调度层级以及伪线调度层级作为需要使能的调度层级;针对UNI,确定模块10始终将端口调度层级以及队列调度层级作为需要使能的调度层级,并按照当前调度参数,动态选择是否将CIP调度层级作为需要使能的调度层级。For example, for NNI, the determination module 10 always takes the port scheduling level and the queue scheduling level as the scheduling levels that need to be enabled, and dynamically selects the VLAN sub-interface scheduling level, the tunnel scheduling level, and the pseudowire scheduling level as the scheduling levels that need to be enabled according to the current scheduling parameters. For the UNI, the determination module 10 always uses the port scheduling level and the queue scheduling level as the scheduling level that needs to be enabled, and dynamically selects whether to use the CIP scheduling level as the scheduling level that needs to be enabled according to the current scheduling parameters.

进一步地,在本发明数据流调度装置的较佳实施例中,所述配置模块30还用于为使能的各调度节点配置调度算法、流量整形策略和/或拥塞避免策略。Further, in a preferred embodiment of the data flow scheduling device of the present invention, the configuration module 30 is also configured to configure scheduling algorithms, traffic shaping strategies and/or congestion avoidance strategies for each enabled scheduling node.

本实施例中,调度参数中的调度策略信息包括但不限于调度算法、流量整形策略以及拥塞避免策略,所述配置模块30还用于为使能的各调度节点配置调度算法、流量整形策略和/或拥塞避免策略。In this embodiment, the scheduling strategy information in the scheduling parameters includes but not limited to scheduling algorithms, traffic shaping strategies and congestion avoidance strategies, and the configuration module 30 is also used to configure scheduling algorithms, traffic shaping strategies and congestion avoidance strategies for each enabled scheduling node. / or congestion avoidance strategy.

具体地,针对不同调度层级的调度节点,配置模块30可以配置的调度算法包括但不限于SP(Strict Priority,严格优选级)、RR(Round Robin,循环调度)、DRR(DeficitRound Robin,差额循环调度)、WRR(Weighted Round Robin,加权循环调度)、WDRR(Weighted Deficit Round Robin,加权差额循环调度)、以及DWRR(Dynamic WeightedRound Robin,动态加权循环调度)中的一种。例如,参照图3,配置模块30可以为VLAN子接口调度层级的调度节点null_vlan配置SP算法,为隧道调度层级的调度节点null_lsp配置SP算法,为隧道调度层级的调度节点Lsp_1配置DWRR算法。Specifically, for scheduling nodes of different scheduling levels, the scheduling algorithm that configuration module 30 can configure includes but is not limited to SP (Strict Priority, strict priority level), RR (Round Robin, round-robin scheduling), DRR (DeficitRound Robin, difference round-robin scheduling ), WRR (Weighted Round Robin, weighted round robin), WDRR (Weighted Deficit Round Robin, weighted deficit round robin), and one of DWRR (Dynamic Weighted Round Robin, dynamic weighted round robin). For example, referring to FIG. 3 , the configuration module 30 may configure the SP algorithm for the scheduling node null_vlan at the VLAN sub-interface scheduling level, configure the SP algorithm for the scheduling node null_lsp at the tunnel scheduling level, and configure the DWRR algorithm for the scheduling node Lsp_1 at the tunnel scheduling level.

为了避免所述预设端口转发出的数据流超过网络的承载能力,优选地,配置模块30在各调度层级的调度节点配置流量整形策略,进行流量整形。流量整形策略是采用令牌桶对数据流进行评估和削峰填谷,将峰值数据流缓存到整形队列中,延迟再发送,尽可能保证报文(数据流由报文组成)不丢失。In order to prevent the data flow forwarded by the preset port from exceeding the carrying capacity of the network, preferably, the configuration module 30 configures a traffic shaping policy on the scheduling nodes of each scheduling level to perform traffic shaping. The traffic shaping strategy is to use token buckets to evaluate data flows and shave peaks and fill valleys, buffer peak data flows in the shaping queue, and delay resending, so as to ensure that packets (data flows are composed of packets) are not lost as much as possible.

拥塞避免策略仅可配置于队列调度层级的调度节点,拥塞避免是一种流控机制,其通过监视队列缓存的使用情况,在拥塞有加剧的趋势时,主动丢弃报文,通过调整数据流量来解除网络过载。传统的拥塞避免策略采用尾部丢弃(Tail-Drop)的方法,当队列的长度达到某一最大值后,所有新到来的报文都将被丢弃,Tail-Drop将会引发TCP全局同步现象。优选地,为避免TCP全局同步现象,本实施例采用WRED(Weighted Random EarlyDetection,加权随机早期检测)进行拥塞避免。WRED基于报文的丢弃优先级为每个队列都设定上限和下限,对队列中的报文进行如下处理:The congestion avoidance strategy can only be configured on the scheduling nodes at the queue scheduling level. Congestion avoidance is a flow control mechanism. It monitors the usage of the queue buffer, and when the congestion tends to intensify, it actively discards packets and adjusts the data flow. Remove network overload. The traditional congestion avoidance strategy adopts the tail drop (Tail-Drop) method. When the length of the queue reaches a certain maximum value, all new incoming packets will be discarded, and Tail-Drop will cause TCP global synchronization. Preferably, in order to avoid TCP global synchronization phenomenon, this embodiment adopts WRED (Weighted Random Early Detection, Weighted Random Early Detection) to avoid congestion. WRED sets an upper limit and a lower limit for each queue based on the packet discarding priority, and processes the packets in the queue as follows:

(1)、当队列的长度小于下限时,不丢弃报文;(1), when the length of the queue is less than the lower limit, the message is not discarded;

(2)、当队列的长度超过上限时,丢弃所有到来的报文;(2), when the length of the queue exceeds the upper limit, all incoming messages are discarded;

(3)、当队列的长度在上限和下限之间时,随机丢弃到来的报文。队列越长,丢弃的概率越高,但有一个最大丢弃概率。(3) When the length of the queue is between the upper limit and the lower limit, randomly discard incoming messages. The longer the queue, the higher the probability of discarding, but there is a maximum probability of discarding.

进一步地,在本发明数据流调度装置的较佳实施例中,所述数据流调度装置还包括设置模块,用于接收用户基于调度参数设置界面输入的调度参数;以及将接收到的所述调度参数作为当前调度参数。Further, in a preferred embodiment of the data flow scheduling device of the present invention, the data flow scheduling device further includes a setting module, configured to receive the scheduling parameters input by the user based on the scheduling parameter setting interface; and the received scheduling parameters parameter as the current scheduling parameter.

具体地,用户可根据实际需求通过设置模块基于网络节点提供的CLI(CommandLine Interface,命令行界面)和/或GUI(Graphical User Interface,图形用户界面)调度参数设置界面进行预设端口调度参数的设置。例如,当判断需要较大调度力度才能满足数据流调度需求时,用户可通过设置相应的调度参数使能较多级数的调度层级,以满足数据流调度需求,确保网络节点正常转发数据流。Specifically, the user can set the default port scheduling parameters through the setting module based on the CLI (CommandLine Interface, command line interface) and/or GUI (Graphical User Interface, Graphical User Interface) scheduling parameter setting interface provided by the network node according to actual needs . For example, when it is judged that a greater scheduling effort is required to meet the data flow scheduling requirements, the user can enable more levels of scheduling levels by setting corresponding scheduling parameters to meet the data flow scheduling requirements and ensure that the network nodes forward the data flow normally.

进一步地,用户还可根据实际需求对设置的调度参数进行更新,以使得网络节点适应不断变化的网络环境。Furthermore, the user can also update the set scheduling parameters according to actual needs, so that the network nodes can adapt to the ever-changing network environment.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.

Claims (10)

1.一种数据流调度方法,其特征在于,所述数据流调度方法包括:1. A data flow scheduling method, characterized in that, the data flow scheduling method comprises: 按照当前调度参数确定预设端口需要使能的调度层级,其中,所述调度参数至少包括需要使能的调度层级信息、调度节点信息、调度策略信息以及不同调度层级调度节点之间的链接关系信息;Determine the scheduling level that the preset port needs to enable according to the current scheduling parameter, wherein the scheduling parameter includes at least information about the scheduling level that needs to be enabled, scheduling node information, scheduling policy information, and link relationship information between scheduling nodes at different scheduling levels ; 使能确定的调度层级的相应调度节点,并建立不同调度层级调度节点之间的链接关系;Enable the corresponding scheduling nodes of the determined scheduling level, and establish the link relationship between scheduling nodes of different scheduling levels; 为使能的各调度节点配置调度策略;Configure scheduling policies for each enabled scheduling node; 在所述预设端口接收到数据流时,根据各调度节点配置的调度策略及各调度节点之间的链接关系,在使能的各调度节点之间对所述数据流分层进行调度。When the preset port receives the data flow, the data flow is hierarchically scheduled among the enabled scheduling nodes according to the scheduling policy configured by each scheduling node and the link relationship between the scheduling nodes. 2.如权利要求1所述的数据流调度方法,其特征在于,所述预设端口包括一类端口和二类端口,当所述预设端口为一类端口时,所述预设端口包括5级调度层级;当所述预设端口为二类端口时,所述预设端口包括3级调度层级。2. The data flow scheduling method according to claim 1, wherein the preset port includes a first-class port and a second-class port, and when the preset port is a first-class port, the preset port includes 5-level scheduling hierarchy; when the preset port is a Type 2 port, the preset port includes 3-level scheduling hierarchy. 3.如权利要求2所述的数据流调度方法,其特征在于,所述按照当前调度参数确定预设端口需要使能的调度层级包括:3. The data flow scheduling method according to claim 2, wherein the determining the scheduling level that the preset port needs to enable according to the current scheduling parameters includes: 始终将所述预设端口调度优先级最低和最高的调度层级作为需要使能的调度层级,并按照当前调度参数,确定所述预设端口需要使能的,除所述预设端口调度优先级最低和最高的调度层级之外的其它调度层级。Always use the scheduling level with the lowest and highest scheduling priority of the preset port as the scheduling level that needs to be enabled, and determine that the preset port needs to be enabled according to the current scheduling parameters, except for the scheduling priority of the preset port Scheduling levels other than the lowest and highest scheduling levels. 4.如权利要求1-3任一项所述的数据流调度方法,其特征在于,所述为使能的各调度节点配置调度策略包括:4. The data flow scheduling method according to any one of claims 1-3, wherein the configuring a scheduling strategy for each enabled scheduling node comprises: 为使能的各调度节点配置调度算法、流量整形策略和/或拥塞避免策略。Configure scheduling algorithms, traffic shaping policies, and/or congestion avoidance policies for each enabled scheduling node. 5.如权利要求1-3任一项所述的数据流调度方法,其特征在于,所述按照当前调度参数确定预设端口需要使能的调度层级之前,还包括:5. The data flow scheduling method according to any one of claims 1-3, characterized in that before determining the scheduling level that needs to be enabled for the preset port according to the current scheduling parameters, it also includes: 接收用户基于调度参数设置界面输入的调度参数;receiving scheduling parameters input by the user based on the scheduling parameter setting interface; 将接收到的所述调度参数作为当前调度参数。The received scheduling parameter is used as the current scheduling parameter. 6.一种数据流调度装置,其特征在于,所述数据流调度装置包括:6. A data flow scheduling device, characterized in that, the data flow scheduling device comprises: 确定模块,用于按照当前调度参数确定预设端口需要使能的调度层级,其中,所述调度参数至少包括需要使能的调度层级信息、调度节点信息、调度策略信息以及不同调度层级调度节点之间的链接关系信息;A determining module, configured to determine the scheduling level that needs to be enabled for the preset port according to the current scheduling parameter, wherein the scheduling parameter includes at least information about the scheduling level that needs to be enabled, scheduling node information, scheduling policy information, and information about scheduling nodes at different scheduling levels. Link relationship information between; 使能模块,用于使能确定的调度层级的相应调度节点,并建立不同调度层级调度节点之间的链接关系;An enabling module, configured to enable corresponding scheduling nodes of a determined scheduling level, and establish a link relationship between scheduling nodes of different scheduling levels; 配置模块,用于为使能的各调度节点配置调度策略;A configuration module, configured to configure a scheduling policy for each enabled scheduling node; 调度模块,用于在所述预设端口接收到数据流时,根据各调度节点配置的调度策略及各调度节点之间的链接关系,在使能的各调度节点之间对所述数据流分层进行调度。A scheduling module, configured to, when the preset port receives the data stream, divide the data stream between the enabled scheduling nodes according to the scheduling policy configured by each scheduling node and the link relationship between the scheduling nodes Layers are scheduled. 7.如权利要求6所述的数据流调度装置,其特征在于,所述预设端口包括一类端口和二类端口,当所述预设端口为一类端口时,所述预设端口包括5级调度层级;当所述预设端口为二类端口时,所述预设端口包括3级调度层级。7. The data flow scheduling device according to claim 6, wherein the preset port includes a first-class port and a second-class port, and when the preset port is a first-class port, the preset port includes 5-level scheduling hierarchy; when the preset port is a Type 2 port, the preset port includes 3-level scheduling hierarchy. 8.如权利要求7所述的数据流调度装置,其特征在于,所述确定模块还用于始终将所述预设端口调度优先级最低和最高的调度层级作为需要使能的调度层级,并按照当前调度参数,确定所述预设端口需要使能的,除所述预设端口调度优先级最低和最高的调度层级之外的其它调度层级。8. The data flow scheduling device according to claim 7, wherein the determining module is further configured to always use the scheduling level with the lowest and highest priority of the preset port scheduling as the scheduling level that needs to be enabled, and According to the current scheduling parameters, other scheduling levels other than the lowest scheduling level and the highest scheduling level with the highest scheduling priority of the preset port that need to be enabled for the preset port are determined. 9.如权利要求6-8任一项所述的数据流调度装置,其特征在于,所述配置模块还用于为使能的各调度节点配置调度算法、流量整形策略和/或拥塞避免策略。9. The data flow scheduling device according to any one of claims 6-8, wherein the configuration module is further configured to configure scheduling algorithms, traffic shaping strategies and/or congestion avoidance strategies for each enabled scheduling node . 10.如权利要求6-8任一项所述的数据流调度装置,其特征在于,所述数据流调度装置还包括设置模块,用于接收用户基于调度参数设置界面输入的调度参数;以及将接收到的所述调度参数作为当前调度参数。10. The data flow scheduling device according to any one of claims 6-8, wherein the data flow scheduling device further comprises a setting module, configured to receive a scheduling parameter input by a user based on a scheduling parameter setting interface; and set The received scheduling parameters are used as current scheduling parameters.
CN201510379415.9A 2015-07-01 2015-07-01 Data flow scheduling method and device Active CN106330710B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510379415.9A CN106330710B (en) 2015-07-01 2015-07-01 Data flow scheduling method and device
PCT/CN2016/075256 WO2016177058A1 (en) 2015-07-01 2016-03-01 Method and apparatus for data stream scheduling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510379415.9A CN106330710B (en) 2015-07-01 2015-07-01 Data flow scheduling method and device

Publications (2)

Publication Number Publication Date
CN106330710A CN106330710A (en) 2017-01-11
CN106330710B true CN106330710B (en) 2019-09-13

Family

ID=57217486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510379415.9A Active CN106330710B (en) 2015-07-01 2015-07-01 Data flow scheduling method and device

Country Status (2)

Country Link
CN (1) CN106330710B (en)
WO (1) WO2016177058A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109840145B (en) * 2019-01-08 2021-09-07 苏州盛科通信股份有限公司 Multistage scheduling method, device, network chip and storage medium
CN113810314B (en) * 2020-06-15 2025-02-28 中兴通讯股份有限公司 Data scheduling method, device and storage medium
CN113949675A (en) * 2020-07-16 2022-01-18 华为技术有限公司 Queue scheduling method, device and system
CN115118677B (en) * 2022-06-24 2024-06-25 无锡中微亿芯有限公司 Routing node scheduling method of network-on-chip in FPGA (field programmable gate array)
CN116074259B (en) * 2023-01-07 2025-04-29 国腾(广州)量子计算科技有限公司 A QoS cloud host communication queue guarantee method, storage device and intelligent terminal for quantum computing equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7379467B1 (en) * 2003-05-08 2008-05-27 Cypress Semiconductor Corporation Scheduling store-forwarding of back-to-back multi-channel packet fragments
CN101478475A (en) * 2008-11-21 2009-07-08 中兴通讯股份有限公司 Method for implementing HQoS technique in T-MPLS network
CN102546395A (en) * 2011-12-14 2012-07-04 中兴通讯股份有限公司 Service scheduling method and service scheduling device based on Layer 2 Virtual Private Networks (L2VPN)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7379467B1 (en) * 2003-05-08 2008-05-27 Cypress Semiconductor Corporation Scheduling store-forwarding of back-to-back multi-channel packet fragments
CN101478475A (en) * 2008-11-21 2009-07-08 中兴通讯股份有限公司 Method for implementing HQoS technique in T-MPLS network
CN102546395A (en) * 2011-12-14 2012-07-04 中兴通讯股份有限公司 Service scheduling method and service scheduling device based on Layer 2 Virtual Private Networks (L2VPN)

Also Published As

Publication number Publication date
WO2016177058A1 (en) 2016-11-10
CN106330710A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
US7327675B1 (en) Fairness of capacity allocation for an MPLS-based VPN
US9413611B2 (en) Generating and enforcing a holistic quality of service policy in a network
US9276870B2 (en) Switching node with load balancing of bursts of packets
US9054996B2 (en) Dynamic prioritized fair share scheduling scheme in over-subscribed port scenario
US20040213264A1 (en) Service class and destination dominance traffic management
CN106330710B (en) Data flow scheduling method and device
CN104836750B (en) A kind of data center network stream scheduling method based on round-robin
US9219672B2 (en) Label switching or equivalent network multipath traffic control
KR102177574B1 (en) Queuing system to predict packet lifetime in a computing device
JP2002044139A (en) Router device and priority control method used therefor
US8264957B1 (en) Control of preemption-based beat-down effect
CN102752192A (en) Bandwidth allocation method of forwarding and control element separation (ForCES) transmission mapping layer based on stream control transmission protocol (SCTP)
CN101699817A (en) Method and device for controlling messages transmitted to CPU
US20050002333A1 (en) Emulated multi-QoS links
TW200303670A (en) Inverse multiplexing of managed traffic flows over a multi-star network
Cisco QC: Quality of Service Overview
Demir et al. A priority-based queuing model approach using destination parameters forreal-time applications on IPv6 networks
Mohanty et al. On fair scheduling in heterogeneous link aggregated services
EP4120656A1 (en) Distinguishing traffic-engineered packets and non-traffic-engineered packets
Xu Adaptive flow admission control in a software-defined network
Siew et al. Congestion control based on flow-state-dependent dynamic priority scheduling
Gennaoui et al. Investigation and comparison of MPLS QoS solution and differentiated services QoS solutions
CN119484305A (en) A lossless Ethernet simulation model and data processing method
Li et al. An Application-Driven-based Network Resource Control Method
Chen A study of IPv6 labeling forwarding model supporting Diffserv

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190807

Address after: Yuhuatai District of Nanjing City, Jiangsu province 210012 Bauhinia Road No. 68

Applicant after: Nanjing Zhongxing New Software Co., Ltd.

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Applicant before: ZTE Corporation

GR01 Patent grant
GR01 Patent grant