WO2008104100A1 - An apparatus and a method for realizing flow control based on rate restrict for mstp device - Google Patents

An apparatus and a method for realizing flow control based on rate restrict for mstp device Download PDF

Info

Publication number
WO2008104100A1
WO2008104100A1 PCT/CN2007/000632 CN2007000632W WO2008104100A1 WO 2008104100 A1 WO2008104100 A1 WO 2008104100A1 CN 2007000632 W CN2007000632 W CN 2007000632W WO 2008104100 A1 WO2008104100 A1 WO 2008104100A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
module
flow
queue
packet
Prior art date
Application number
PCT/CN2007/000632
Other languages
French (fr)
Chinese (zh)
Inventor
Xujun Zou
Original Assignee
Zte Corporation
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 Zte Corporation filed Critical Zte Corporation
Priority to BRPI0721248-8A priority Critical patent/BRPI0721248A2/en
Priority to RU2009134729/09A priority patent/RU2427091C2/en
Priority to PCT/CN2007/000632 priority patent/WO2008104100A1/en
Priority to KR1020097020078A priority patent/KR101086834B1/en
Priority to CN2007800503193A priority patent/CN101595679B/en
Publication of WO2008104100A1 publication Critical patent/WO2008104100A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/20Traffic policing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/25Flow control; Congestion control with rate being modified by the source upon detecting a change of network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/26Flow control; Congestion control using explicit feedback to the source, e.g. choke packets
    • H04L47/266Stopping or restarting the source, e.g. X-on or X-off
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/30Flow control; Congestion control in combination with information about buffer occupancy at either end or at transit nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/31Flow control; Congestion control by tagging of packets, e.g. using discard eligibility [DE] bits
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

An apparatus and a method for realizing flow control based on rate restrict for MSTP device implement flow monitoring to the input or output data flow mainly by use of Policing module, and transmit flow control signal to the distant end device when the data flow capacity exceeds the flow control threshold, decrease the input data flow capacity, so as to avoid the packet loss due to the rate restrict in the present device. By implementing flow control to the output data, with the aid of the marking function for service flow, the flow control function for Ethernet layer 2 pause frame port and the flow control for the particular service on layer 3 in Ethernet can be realized, and the service damage caused by output queue congestion is prevented. The invention can ensure the undamaged transmission for the packet-based service data flow in network, provide the detection and report for service bandwidth, and satisfy the flow capacity control requirement for the particular service when Ethernet service is transported on the MSTP transmission device.

Description

MSTP设备上基于速率限制实现流控的装置及方法  Device and method for implementing flow control based on rate limitation on MSTP device
技术领域 Technical field
本发明涉及通信系统中多服务传输平台(MSTP, Multi-Service Transport Platform )传输设备, 尤其涉及一种 MSTP传输设备上基于速率限制实现流 控的装置及方法。 背景技术  The present invention relates to a multi-service transport platform (MSTP) transmission device in a communication system, and more particularly to an apparatus and method for implementing flow control based on rate limiting on an MSTP transmission device. Background technique
在通信系统的数据网络中 ,流量控制(即流控 )功能是一个常用的功能。 MSTP 设备上支持以太网、 ATM (异步传送模式, Asynchronous Transfer Mode )等业务数据的接入处理。 对于以太网应用, MSTP设备可以对输入 数据进行速率限制, 当接入 MSTP设备的以太网数据超过协商的速率后,超 过带宽的业务数据被丢弃处理;或者当接入 MSTP设备的以太网数据在发送 方向由于调度不及时导致输出队列拥塞, 为防止输出队列拥塞, 通过向远端 设备发送二层 PAUSE流控帧实现流量控制。 即数据流在 MSTP设备中存在 入口流量监视和出口队列监视两个方面。  In the data network of a communication system, the flow control (ie, flow control) function is a commonly used function. The access processing of service data such as Ethernet and ATM (Asynchronous Transfer Mode) is supported on the MSTP device. For Ethernet applications, the MSTP device can rate the input data. When the Ethernet data accessing the MSTP device exceeds the negotiated rate, the service data exceeding the bandwidth is discarded; or when the Ethernet data accessing the MSTP device is In the sending direction, the output queue is congested due to the unscheduled scheduling. To prevent the output queue from being congested, traffic control is implemented by sending a Layer 2 PAUSE flow control frame to the remote device. That is, the data flow has two aspects of ingress traffic monitoring and egress queue monitoring in the MSTP device.
在采用传统的流量控制方式,实现基于 FIFO或队列的流量控制时, FIFO 控制的流量控制支持业务无损处理,通常在 MAC FIFO快满条件下或在出口 队列快满条件下向源端口 (数据流的输入端口)发送流控帧。 现有技术中, 入口流量监视可以启用或关闭, 即在速率限制方面, 可以有输入速率限制或 没有输入速率控制。 当有速率控制时, 只能实现带宽控制: 输入数据带宽超 限的数据包被丢弃处理, 造成业务受损。 并且, 流量控制机制和速率限制是 完全隔离的, 彼此没有关联。 这是因为速率控制在入口实现, 因速率限制而 丟包和流控帧触发没有关联, 业务可能损伤。  In the traditional flow control mode, when implementing FIFO or queue-based flow control, FIFO controlled flow control supports service lossless processing, usually to the source port under the MAC FIFO fast full condition or under the egress queue fast full condition (data flow) The input port) sends a flow control frame. In the prior art, ingress traffic monitoring can be enabled or disabled, i.e., in terms of rate limiting, there can be input rate limiting or no input rate control. When there is rate control, only bandwidth control can be implemented: Packets with input data bandwidth excess are discarded and service is damaged. Also, the flow control mechanism and rate limiting are completely isolated and not associated with each other. This is because rate control is implemented at the ingress. Packet loss and flow control frame triggering are not associated due to rate limiting, and traffic may be corrupted.
目前采用的输入速率限制方式,对业务是有损伤的, 不能保证业务数据 的完整性。 发明内容  The current input rate limiting method is damaging to the service and cannot guarantee the integrity of the service data. Summary of the invention
1 180600164 本发明所要解决的技术问题在于,提供一种 MSTP设备上基于速率限制 实现流量控制的装置及方法,用以解决现有技术中因输入数据带宽超限造成 数据包被丟弃处理, 以及速率限制与流控帧没有关联等情况下, 可能对业务 造成损伤等问题, 实现保证业务准确、 完整的流量控制。 1 180600164 The technical problem to be solved by the present invention is to provide an apparatus and method for implementing flow control based on rate limiting on an MSTP device, which is used to solve the problem that the data packet is discarded due to the bandwidth limit of the input data in the prior art, and the rate limit is If there is no association with the flow control frame, it may cause damage to the service, and implement accurate and complete traffic control for the guaranteed service.
本发明提供一种多服务传输平台设备上基于速率限制实现流量控制的 装置, 特点在于, 包括逐级顺序相连的数据输入模块、 流分类模块、 Policing 模块、 队列管理 /调度模块、 数据输出模块, 以及控制上述模块并与之都相 连的一个管理控制模块, 其中,  The present invention provides a device for implementing flow control based on rate limiting on a multi-service transmission platform device, which is characterized in that it comprises a data input module, a flow classification module, a Policing module, a queue management/scheduling module, and a data output module which are sequentially connected in sequence. And a management control module for controlling and connecting to the above module, wherein
数据输入模块, 用于接收输入数据流;  a data input module, configured to receive an input data stream;
流分类模块,按流分类规则为输入的数据流分配流标签并确定相应的输 出队列, 同时将流标签传递给管理控制模块, 将携带标签的数据流送至 The flow classification module allocates a flow label for the input data stream according to the flow classification rule and determines a corresponding output queue, and simultaneously transmits the flow label to the management control module, and sends the data stream carrying the label to the flow classification module.
Policing模块; Policing module;
管理控制模块, 按约定规则设置 Policing控制参数, 包括用于速率控制 的限速门限值和用于流量控制的流控门限值;  The management control module sets the Policing control parameters according to the agreed rules, including a speed limit threshold for rate control and a flow control threshold for flow control;
Policing模块, 根据流分类模块传递来的流标签及管理控制模块传递来 的该流标签的协定 Policing参数, 对接收数据进行流量监视, 当输入数据流 量大于流控门限值时, 向远端设备节点发送指示减小输入数据流量的流控 帧; 当输出数据流量大于限速门限值时,丟弃对应数据包或标记该数据包为 违例数据, 输出数据流至队列管理 /调度模块;  The Policing module performs traffic monitoring on the received data according to the flow label transmitted by the flow classification module and the protocol policy parameter of the flow label transmitted by the management control module, and when the input data traffic is greater than the flow control threshold, the remote device The node sends a flow control frame indicating that the input data traffic is reduced; when the output data traffic is greater than the speed limit threshold, discarding the corresponding data packet or marking the data packet as the violation data, and outputting the data flow to the queue management/scheduling module;
队列管理 /调度模块, 对接纳的数据进行管理和调度, 将标记为违例数 据的数据包丢弃,将标记为正常数据的数据包执行入队列处理并送至相应输 出端口进行输出;  The queue management/scheduling module manages and schedules the admitted data, discards the data packet marked as the violation data, performs the queue processing of the data packet marked as normal data, and sends the data packet to the corresponding output port for output;
数据输出模块, 用于根据队列管理 /调度模块的处理结果, 将正常数据 流进行输出。  The data output module is configured to output the normal data stream according to the processing result of the queue management/scheduling module.
所述装置进一步还包括:  The device further includes:
数据封装及 EOS处理模块, 与所述队列管理 /调度模块相连, 用于完成 SDH通道的状况检测, 当虛级联 VCG的成员数量发生变化时, 将 VCG的 SDH通道的实时带宽信息上 ^艮给管理控制模块;  The data encapsulation and EOS processing module is connected to the queue management/scheduling module for detecting the status of the SDH channel. When the number of members of the virtual concatenation VCG changes, the real-time bandwidth information of the SDH channel of the VCG is Give management control module;
2 180600164 流控帧触发模块, 与所述 Policing模块相连, 根据 Policing模块对特定 业务流标签的监视结果, 触发相应的流控帧; 2 180600164 The flow control frame triggering module is connected to the policy module, and triggers a corresponding flow control frame according to the monitoring result of the specific service flow label by the policy module;
MAC控制模块, 完成数据包在以太网接口的收发控制。  The MAC control module completes the transmission and reception control of the data packet on the Ethernet interface.
进一步地, 所述管理控制模块设置的 Policing控制参数, 包括: 用于速率控制的限速门限值,在配置为单漏桶参数时包括触发速率控制 的数据速率 Vd 和数据包突发长度 Ld , 在配置为双漏桶参数时为 Vdmax/Ldmax和 Vdmin/Ldmin;  Further, the policy control parameter set by the management control module includes: a rate limit threshold for rate control, and a data rate Vd and a packet burst length Ld including a trigger rate control when configured as a single leaky bucket parameter , when configured as double leaky barrel parameters, Vdmax/Ldmax and Vdmin/Ldmin;
用于流量控制的流控门限值,在配置为单漏桶参数时包括触发流量控制 的数据速率 Vc和数据包突发长度 Lc;  The flow control threshold for flow control includes a data rate Vc for triggering flow control and a packet burst length Lc when configured as a single leaky bucket parameter;
其中, 所有所述数据包的突发长度都应满足一个条件: 大于数据流允许 通过的最大包长。  Wherein, the burst length of all the data packets should satisfy one condition: greater than the maximum packet length allowed by the data stream.
进一步地, 所述 Policing模块中:  Further, in the Policing module:
当输入数据流量小于或等于流控门限值时,停止向远端设备节点发送指 示减小输入数据流量的流控帧;  When the input data traffic is less than or equal to the flow control threshold, stopping sending a flow control frame indicating that the input data traffic is reduced to the remote device node;
当远端设备没有应答所述流控帧时, 对输出数据进行流量监视: 限速门限值配置为单漏桶参数(Vd、 Ld ) 时, 若输出数据流量大于限 速门限值 Vd, 则丢弃对应数据包或标记该数据包为红色表示违例数据, 否 贝' J , 标记该数据包为绿色表示正常数据, 输出数据流至队列管理 /调度模块; 限速门限值配置为双漏桶参数 Vdmax/Ldma 和 Vdmin/Ldmin时, 当监视的业务数据流量不违反协定低门限参数 (Vdmin、 Ldmin)时,将数 据包标记为绿色; 当监视的业务数据流量超过协定低门限参数 (Vdmin、 Ldmin),但不超过 协定高门限参数( Vdmax、 Ldma ) 时, 数据包标记为黄色;  When the remote device does not respond to the flow control frame, it performs traffic monitoring on the output data. When the rate limit threshold is configured as a single leaky bucket parameter (Vd, Ld), if the output data flow rate is greater than the speed limit threshold value Vd, Then discard the corresponding data packet or mark the data packet as red to indicate the violation data, no shell ' J , mark the data packet as green to indicate normal data, output data flow to the queue management / scheduling module; the speed limit threshold is configured as double leak When the bucket parameters Vdmax/Ldma and Vdmin/Ldmin are used, when the monitored traffic data traffic does not violate the agreed low threshold parameters (Vdmin, Ldmin), the packet is marked as green; when the monitored traffic data traffic exceeds the agreed low threshold parameter (Vdmin) , Ldmin), but not exceeding the agreed high threshold parameter (Vdmax, Ldma), the packet is marked in yellow;
当业务数据流量超过协定高门限参数 (Vdmax、 Ldmax)时, 将数据包标 记为红色或者可以直接将该数据包作丢弃处理;  When the service data traffic exceeds the agreed high threshold parameter (Vdmax, Ldmax), the data packet is marked in red or the data packet can be directly discarded.
数据包的颜色标记被传递到队列管理 /调度模块。  The color tag of the packet is passed to the queue management/scheduling module.
进一步地, 所述队列管理 /调度模块中:  Further, in the queue management/scheduling module:
3 180600164 队列的丢弃控制参数包括两类: 半满的低门限 Lh和快满的高门限 Lf; 在对接收数据包进行处理时, 将标记为红色的接收数据包直接丢弃, 将 标记为黄色 /绿色的接收数据包依据队列状态执行以下处理: 3 180600164 The drop control parameters of the queue include two types: a low threshold Lh for half full and a high threshold Lf for fast full; when receiving a received data packet, the received data packet marked with red is directly discarded, and is marked as yellow/green. The receiving packet performs the following processing depending on the queue status:
队列中所有数据包容量小于队列低门限 Lh时, 数据包都进入队列; 队列中所有数据包容量大于队列低门限 Lh但小于队列高门限 Lf时, 标记为绿色的数据包进队列, 标记为黄色的数据包被丢弃;  When all packet sizes in the queue are less than the queue low threshold Lh, the packets enter the queue. When all packet sizes in the queue are greater than the queue low threshold Lh but less than the queue high threshold Lf, the packets marked in green are queued, marked yellow. Packets are discarded;
队列中所有数据包容量大于队列高门限 Lf时,所有新接收的数据包被 丟弃。  When all packet sizes in the queue are greater than the queue high threshold Lf, all newly received packets are discarded.
进一步地 ,所述数据封装及 EOS处理模块在虚级联组 VCG的带宽小于 流控门限值时, 上报管理控制模块, 由管理控制模块根据虚级联组 VCG的 实际带宽修改用于 Policing模块的流控门限值, 使其小于或等于虚级联組 VCG的实际带宽。  Further, the data encapsulation and the EOS processing module are reported to the management control module when the bandwidth of the virtual concatenation group VCG is smaller than the flow control threshold, and the management control module modifies the policy module according to the actual bandwidth of the virtual concatenation group VCG. The flow control threshold is such that it is less than or equal to the actual bandwidth of the virtual concatenation group VCG.
本发明还提供一种基于上述装置实现流量控制的方法, 包括如下步骤: ( 1 ) 由流分类模块根据流分类规则为输入数据流分配相应的流标签, 确定输入数据包的输出队列, 同时上报所述流标签到管理控制模块; The present invention further provides a method for implementing flow control based on the foregoing apparatus, comprising the following steps: (1) The flow classification module allocates a corresponding flow label to the input data stream according to the flow classification rule, determines an output queue of the input data packet, and reports the same at the same time. The flow label to the management control module;
( 2 )由管理控制模块按约定规则为所述流标签对应的业务设置 Policing 控制参数, 包括用于流量控制的流控门限值, 以及用于速率限制的限速门限 值;  (2) The Policing control parameter is set by the management control module for the service corresponding to the flow label according to the agreed rule, including a flow control threshold for flow control, and a speed limit threshold for the rate limit;
( 3 )由 Policing模块根据管理控制模块协商的 Policing控制参数对携带 流标签的业务数据进行流量监视, 当输入数据流量大于流控门限值时, 开始 流量控制, 向远端设备节点发送用于指示降低输入数据流量的流控帧;  (3) The Policing module performs traffic monitoring on the service data carrying the flow label according to the policy control parameter negotiated by the management control module. When the input data traffic is greater than the flow control threshold, traffic control is started, and the remote device node is sent to the remote device node for sending a flow control frame indicating a decrease in input data traffic;
( 4 )在远端设备没有回应流控帧时, 由 Policing模块根据管理控制模 块协商的 Policing控制参数对携带流标签的业务数据进行监测, 当输出数据 速率大于限速门限值时,标记该数据包为违例数据,否则,标记为正常数据, 将标记后的数据包转发至队列管理 /调度模块;  (4) When the remote device does not respond to the flow control frame, the policy module monitors the service data carrying the flow label according to the policy control parameter negotiated by the management control module. When the output data rate is greater than the speed limit threshold, the label is marked. The data packet is the violation data; otherwise, it is marked as normal data, and the marked data packet is forwarded to the queue management/scheduling module;
( 5 )由队列管理 /调度模块对接纳的数据进行管理和调度, 根据接收数 据包的标记信息, 将标记为违例数据的数据包作丟弃处理, 将标记为正常数  (5) The queue management/scheduling module manages and schedules the accepted data, and discards the data packet marked as the violation data according to the tag information of the received data packet, and marks the packet as a normal number.
4 . 180600164 据的数据包执行入队列处理, 调度后送到相应的输出端口。 4. 180600164 The data packets are processed into the queue and dispatched to the corresponding output port.
进一步地, 步 (2 ) 中配置 Policing控制参数的步驟为:  Further, the steps of configuring the Policing control parameter in step (2) are:
配置用于速率控制的限速门 P艮值,其在配置为单漏桶参数时包括触发速 率控制的数据速率 Vd和数据包突发长度 Ld, 其在配置为双漏桶参数时为 Vdmax/Ldma 和 Vdmin/Ldmin;  The speed limit gate P艮 value for rate control is configured, and when configured as a single leaky bucket parameter, the data rate Vd and the packet burst length Ld of the trigger rate control are included, which is Vdmax/ when configured as a double leaky bucket parameter. Ldma and Vdmin/Ldmin;
配置用于流量控制的流控门限值,其在配置为单漏桶参数时包括触发流 量控制的数据速率 Vc和数据包突发长度 Lc;  Configure a flow control threshold for flow control, which includes a data rate Vc for triggering flow control and a packet burst length Lc when configured as a single leaky bucket parameter;
其中, 所有所述数据包的突发长度都应满足一个条件: 大于数据流允许 通过的最大包长。  Wherein, the burst length of all the data packets should satisfy one condition: greater than the maximum packet length allowed by the data stream.
进一步地, 步骤(3 )进一步可分为:  Further, step (3) can be further divided into:
根据流分类模块传递来的流标签及管理控制模块传递来的该流标签的 协定 Policing参数, 对输入数据流进行流量监视:  Traffic monitoring is performed on the input data stream according to the flow label delivered by the flow classification module and the protocol Policing parameter of the flow label transmitted by the management control module:
当输入数据流量大于流控门限值 Vc时, 向远端设备节点发送指示减小 输入数据流量的流控帧;  When the input data traffic is greater than the flow control threshold value Vc, sending a flow control frame indicating that the input data traffic is reduced to the remote device node;
当输入数据流量恢复为小于或等于流控门限值 Vc时, 停止向远端设备 节点发送指示减小输入数据流量的流控帧。  When the input data traffic returns to less than or equal to the flow control threshold value Vc, the flow control frame indicating that the input data traffic is reduced is stopped from being sent to the remote device node.
进一步地, 步骤(4 )进一步可分为:  Further, step (4) can be further divided into:
根据流分类模块传递来的流标签及管理控制模块传递来的该流标签的 协定 Policing参数, 对输出数据进行流量监视:  Traffic monitoring is performed on the output data according to the flow label delivered by the flow classification module and the protocol Policing parameter of the flow label transmitted by the management control module:
限速门限值配置为单漏桶参数(Vd、 Ld ) 时, 若输出数据流量大于限 速门限值 Vd, 则丢弃对应数据包或标记该数据包为红色表示违例数据, 否 贝' J , 标记该数据包为绿色表示正常数据, 输出数据流至队列管理 /调度模块; 限速门限值配置为双漏桶参数 Vdmax/Ldmax和 Vdmin/Ldmin时, 若监视的业务数据流量不违反协定低门限参数 (Vdmin、 Ldmin), 将数据 包标记为绿色; 若监视的业务数据流量超过协定低门限参数 (Vdmin、 Ldmin),但不超过 协定高门限参数 ( Vdmax、 Ldmax ) 时, 数据包标记为黄色;  When the speed limit threshold is configured as a single leaky bucket parameter (Vd, Ld), if the output data traffic is greater than the speed limit threshold Vd, the corresponding data packet is discarded or the data packet is marked red to indicate the violation data. Mark the packet as green to indicate normal data, and output data to the queue management/scheduling module; when the speed limit threshold is configured as double leaky bucket parameters Vdmax/Ldmax and Vdmin/Ldmin, if the monitored traffic data traffic does not violate the agreement Low threshold parameters (Vdmin, Ldmin), marking the packet as green; if the monitored traffic data traffic exceeds the agreed low threshold parameter (Vdmin, Ldmin) but does not exceed the agreed high threshold parameter (Vdmax, Ldmax), the packet marking Yellow
5 180600164 若业务数据流量超过协定高门限参数 (Vdmax、 Ldmax), 将数据包标记 为红色或者可以直接将该数据包作丟弃处理; 5 180600164 If the service data traffic exceeds the agreed high threshold parameter (Vdmax, Ldmax), the data packet is marked in red or the data packet can be directly discarded.
将数据包的颜色标记传递到队列管理 /调度模块。  Pass the color tag of the packet to the queue management/scheduling module.
进一步地, 步骤(2 ) 中进一步包括配置队列的丢弃控制参数的步骤, 配置的队列丟弃控制参数包括: 半满的低门限 Lh和快满的高门限 Lf;  Further, the step (2) further includes the step of configuring a discarding control parameter of the queue, where the configured queue discarding control parameter includes: a low threshold of a half full Lh and a high threshold of a fast full Lf;
相应地, 步骤(5 ) 中队列管理 /调度模块在对接收数据包进行处理时, 将标记为红色的接收数据包直接丢弃, 将标记为黄色 /绿色的接收数据包依 据队列状态执行以下处理:  Correspondingly, in the step (5), the queue management/scheduling module discards the received data packet marked in red when processing the received data packet, and performs the following processing according to the queue status by the received data packet marked as yellow/green:
队列中所有数据包容量小于队列低门限 Lh时, 数据包都进入队列; 队列中所有数据包容量大于队列低门限 Lh但小于队列高门限 Lf时,' 标记为绿色的数据包进队列, 标记为黄色的数据包被丟弃;  When all packet sizes in the queue are less than the queue low threshold Lh, the packets enter the queue. When all packet sizes in the queue are greater than the queue low threshold Lh but less than the queue high threshold Lf, the packets marked as green are queued, marked as Yellow packets are discarded;
队列中所有数据包容量大于队列高门限 Lf时,所有新接收的数据包被 丟弃。  When all packet sizes in the queue are greater than the queue high threshold Lf, all newly received packets are discarded.
进一步地, 所述方法进一步包括如下步驟:  Further, the method further includes the following steps:
如果数据封装及 EOS处理模块作为输出时,若虚级联组 VCG的带宽小 于流控门限值, 则上报管理控制模块, 由管理控制模块根据虛级联组 VCG 的实际带宽修改用于 Policing模块的流控门限值,使其小于或等于虚级联组 VCG的实际带宽。  If the data encapsulation and the EOS processing module are used as the output, if the bandwidth of the virtual concatenation group VCG is smaller than the flow control threshold, the management control module is reported, and the management control module modifies the policy module according to the actual bandwidth of the virtual concatenation group VCG. The flow control threshold is such that it is less than or equal to the actual bandwidth of the virtual concatenation group VCG.
采用本发明的技术方案, 能够实现对指定带宽流的流量控制: 在数据流 量超过流控门限时就向远端设备发送流控信号,远端设备接收流控帧后降低 数据流量, 从而避免本设备上由于速率限制导致的包丟弃。通过业务流的标 记功能, 可以实现以太网的二层 pause帧端口流控和三层的特定业务的流控 功能, 防止出现输出队列拥塞导致业务损伤。 The traffic control of the specified bandwidth flow can be implemented by using the technical solution of the present invention: when the data traffic exceeds the flow control threshold, the flow control signal is sent to the remote device, and the remote device receives the flow control frame and reduces the data traffic, thereby avoiding the present Packet drops on the device due to rate limiting. Through the tagging function of the service flow, the flow control function of the Layer 2 pause frame port of the Ethernet and the flow control of the specific service of the Layer 3 can be implemented to prevent the service queue from being damaged due to the output queue congestion.
本发明优化了 MSTP传送网络中的流量控制策略,能保证基于包的业务 数据流在网络中的无损伤传输, 并提供业务带宽检测及上报,便于运营商掌 握网络上业务的运营状况,使城域网的流量控制策略更加完善, 满足了以太 网业务在 MSTP传输设备上的特定业务流量控制需求。 通过带宽及流控机  The present invention optimizes the traffic control policy in the MSTP transport network, ensures the packet-free service data flow in the network, and provides the service bandwidth detection and reporting, so that the operator can grasp the operation status of the service on the network and make the city The traffic control policy of the local area network is more complete, which satisfies the specific service flow control requirements of the Ethernet service on the MSTP transmission equipment. Through bandwidth and flow control
6 180600164 制, 降低了异常业务对资源的占用、 防止业务损伤, 提高网络传送质量。 附图概述 6 180600164 System, which reduces the occupation of resources by abnormal services, prevents business damage, and improves network transmission quality. BRIEF abstract
图 1是本发明实施例中 MSTP设备上的功能框图;  1 is a functional block diagram of an MSTP device in an embodiment of the present invention;
图 2是本发明实施例中所述基于速率限制实现流量控制的装置在进行 流量控制时的业务处理示意图;  2 is a schematic diagram of service processing of a device for implementing flow control based on rate limiting according to an embodiment of the present invention;
图 3是本发明实施例中进行流量控制的流程图;  3 is a flow chart of performing flow control in an embodiment of the present invention;
图 4是本发明实施例中调整流量控制用的速率参数处理流程图。  4 is a flow chart of processing a rate parameter for adjusting flow control in an embodiment of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
下面结合附图及具体实施例对本发明技术方案的具体实施作进一步详 细说明。  The specific implementation of the technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
在本实施例中, 基于速率限制实现流控的主要思路如下:  In this embodiment, the main ideas for implementing flow control based on rate limiting are as follows:
在 MSTP设备接收端 Policing模块检测到的接收数据流量超出其协定带 觉时, 通过向远端设备反馈流控帧 (而不是对超带宽业务做丟弃处理); 通 知远端设备降低输入至 MSTP设备的数据流量,来实现业务数据基于端口或 基于流量的带宽控制, 防止业务传送损伤。  When the received data traffic detected by the receiving module of the MSTP device exceeds its agreement, the flow control frame is fed back to the remote device (instead of discarding the ultra-bandwidth service); the remote device is notified to reduce the input to the MSTP. The data traffic of the device to implement traffic-based port-based or traffic-based bandwidth control to prevent service transmission damage.
此外, 针对在以太网到光同步网络的方向 ( ETHERNET - >SDH ) , 当 MSTP设备的 EOS模块发送方向由于链路异常导致业务通道带宽降低时, 通过本设备的 Policing模块调整该链路对应以太网输入业务流的流控带宽参 数, 并在检测到输入业务数据流带宽超出设定的输出流控带宽参数时, 向远 端设备反馈流控帧, 进行业务数据的带宽控制。 同时, 可以通过管理接口实 时上报链路实际带宽的变化。  In addition, in the direction of the Ethernet to the optical synchronization network (ETHERNET -> SDH), when the EOS module in the sending direction of the MSTP device is in the direction of the link, the bandwidth of the service channel is reduced, and the Policing module of the device adjusts the link to the Ethernet. The network inputs the flow control bandwidth parameter of the service flow, and when detecting that the input service data flow bandwidth exceeds the set output flow control bandwidth parameter, the flow control frame is fed back to the remote device to perform bandwidth control of the service data. At the same time, the actual bandwidth of the link can be reported in real time through the management interface.
在本实施例中 ,提供了一种 MSTP设备上基于速率限制实现流量控制的 装置,其硬件功能框图如图 1所示, 主要包括: 数据输入模块, 流分类模块,In this embodiment, a device for implementing flow control based on rate limiting on an MSTP device is provided, and a hardware functional block diagram thereof is shown in FIG. 1 , which mainly includes: a data input module, a flow classification module,
Policing模块、队列管理 /调度模块,数据输出模块, 以及一个管理控制模块。 其中: Policing module, queue management/scheduling module, data output module, and a management control module. among them:
7 180600164 1 )数据输入模块, 其中包括有 MAC、 EOS处理模块, 即数据的输入接 口。用于从外部接收输入的业务数据流,并将该业务数据流送至流分类模块;7 180600164 1) Data input module, which includes MAC, EOS processing module, that is, data input interface. Used to receive an input service data stream from the outside, and send the service data stream to the stream classification module;
2 ) 流分类模块, 按照约定的规则为从外部输入的业务数据流的分配流 标签及输出队列。 2) The flow classification module allocates flow labels and output queues for the business data stream input from the outside according to the agreed rules.
在流分类模块中 , 需要按照约定规则 (即流分类规则 )对输入的业务数 据包进行匹配, 实现业务数据流的分类及识别, 将符合约定规则的数据包打 上相应的流标签, 并将该流标签传递到管理控制模块。 流分类模块的处理中 还包括确定输入数据包的转发目标输出队列。  In the flow classification module, the input service data packets need to be matched according to the agreed rules (ie, the flow classification rule), the service data flow is classified and identified, and the data packets that meet the agreed rules are marked with corresponding flow labels, and the The flow label is passed to the management control module. The processing of the flow classification module further includes determining a forwarding destination output queue of the input data packet.
约定规则就是流分类规则, 对于以太网业务, 可以是但不局限于端口 / 端口 +VLAN/端口 +VLAN+DSCP/端口 +VLAN+802.1P等,用于区分用户业务 的流(即根据以上信息生成流标签, 是业务的流定义方法)。 以上约定规则 都是现有的通用技术。  The convention is the traffic classification rule. For the Ethernet service, it can be, but is not limited to, port/port+VLAN/port+VLAN+DSCP/port+VLAN+802.1P, etc., which is used to distinguish the flow of user services (that is, according to the above information). Generate a flow label, which is the flow definition method of the business). The above agreed rules are all existing general techniques.
3 )管理控制模块,提供配置管理接口, 管理控制着数据输入 /输出模块, 流分类模块, Policing模块、队列管理 /调度模块,根据业务数据流的流标签, 实现对数据流、 队列参数的控制及信息上报, 如配置 Policing的控制参数, 其中包括用于流量控制的流控门限值, 以及用于速率限制的限速门限值, 以 及 VCG带宽监视等信息处理。  3) The management control module provides a configuration management interface, the management controls the data input/output module, the flow classification module, the Policing module, the queue management/scheduling module, and controls the data flow and the queue parameters according to the flow label of the service data flow. And information reporting, such as configuring the control parameters of the policy, including flow control thresholds for flow control, speed limit thresholds for rate limiting, and information processing such as VCG bandwidth monitoring.
管理控制模块按照约定规则,对流标签对应的业务设置业务数据流的协 定 Policing控制参数, 包括数据速率 V和数据包突发长度 L:  The management control module sets the protocol Policing control parameters of the service data flow corresponding to the service corresponding to the flow label according to the agreed rule, including the data rate V and the packet burst length L:
—类是触发速率控制的数据速率 Vd和数据包突发长度 Ld,即用于速率 限制的限速门限值;  – the class is the rate rate controlled data rate Vd and the packet burst length Ld, which is the rate limit threshold for rate limiting;
一类是触发流量控制的数据速率 Vc和数据包突发长度 Lc, 即用于流量 控制的流控门限值;  One is the data rate Vc that triggers flow control and the packet burst length Lc, which is the flow control threshold used for flow control;
在各种参数设置模式下,数据包的突发长度 L都应满足一个条件: 大于 数据流允许通过的最大包长。  In various parameter setting modes, the burst length L of the data packet should satisfy one condition: It is greater than the maximum packet length allowed by the data stream.
4 ) Policing模块, 根据管理控制模块设置的 Pocling控制参数(主要是 速率参数 )进行业务带宽监视并根据业务流量实行速率控制或发送流控帧。  4) The Policing module performs traffic bandwidth monitoring according to the Pocling control parameters (mainly rate parameters) set by the management control module and performs rate control or transmission of flow control frames according to service traffic.
Policing模块接收到数据包时,根据流分类模块传递来的数据流标签 ID  When the Policing module receives the data packet, it receives the data flow label ID according to the flow classification module.
8 180600164 及管理控制模块传递来的该流标签的协定 Policing参数,对数据流进行流量 监视, 根据流量监视结果(判断是否违约)执行相应处理: 8 180600164 And the management policy parameter of the flow label transmitted by the management control module, performs traffic monitoring on the data flow, and performs corresponding processing according to the traffic monitoring result (determination of default):
当输入的业务数据流量超过设置的流控门限值时,向业务源节点发送流 控帧, 通知其降低输入数据的速率以减小输入流量;  When the input service data traffic exceeds the set flow control threshold, the traffic control frame is sent to the service source node to notify it to reduce the input data rate to reduce the input traffic;
当输出的业务数据流量超过设置的限速门限值时,则对违约的数据丢弃 When the output service data traffic exceeds the set speed limit threshold, the data of the default is discarded.
/或进行标记处理, 将标记的¾:据包送到队列管理 /调度模块。 / or mark processing, the marked 3⁄4: packet is sent to the queue management / scheduling module.
5 )队列管理 /调度模块, 按流标签对接收的数据包按输出端口及优先级 分配队列, 进行队列管理及调度, 将数据包送往相应的发送端口。 其中, 所 述的队列管理 /调度模块接收到数据后, 根据数据包的标记信息及数据包对 应的目标队列的资源使用状况,对进入数据包执行入队列或者丟弃处理。 同 时, 还执行队列中数据包的调度处理, 将数据包送出到相应输出端口 (以太 网端口或者 EOS端口) 。  5) The queue management/scheduling module allocates queues according to the output port and priority according to the flow label, performs queue management and scheduling, and sends the data packet to the corresponding sending port. After receiving the data, the queue management/scheduling module performs an inbound or discarding process on the incoming data packet according to the tag information of the data packet and the resource usage status of the target queue corresponding to the data packet. At the same time, the scheduling of the data packets in the queue is also performed, and the data packets are sent to the corresponding output port (Ethernet port or EOS port).
6 )数据输出模块, 包括 MAC控制模块、 EOS模块等, 用于将数据包 输出到相应端口。  6) The data output module, including the MAC control module, the EOS module, etc., is used to output the data packet to the corresponding port.
参照图 2所示, 本实施例所述的基于速率限制实现流量控制的装置, 还 可以包括: Referring to FIG. 2, the apparatus for implementing flow control based on rate limiting according to the embodiment may further include:
数据封装及 EOS处理模块, 用于完成 SDH通道的状况检测, 当 VCG 的成员数量发生变化时,将 VCG的 SDH通.道的实时带宽信息上报给管理控 制模块。  The data encapsulation and EOS processing module is used to check the status of the SDH channel. When the number of members of the VCG changes, the real-time bandwidth information of the SDH channel of the VCG is reported to the management control module.
流控帧触发模块, 根据 Policing模块对特定业务流标签的监视结果, 触 发相应的流控帧。  The flow control frame triggering module triggers the corresponding flow control frame according to the monitoring result of the Policing module on the specific service flow label.
MAC控制模块, 完成数据包在以太网接口的收发控制。  The MAC control module completes the transmission and reception control of the data packet on the Ethernet interface.
基于图 1所示硬件构成时的各个模块的组合, 如图 2所示, 显示了根据 配置对输入数据流进行流控处理的流程示意图,对一个以太网端口的输入数 据进行速率及流量控制, 最后通过 VCG端口发送输出。 Based on the combination of the modules in the hardware configuration shown in FIG. 1, as shown in FIG. 2, a flow diagram showing the flow control processing of the input data stream according to the configuration is performed, and the rate and flow control of the input data of one Ethernet port are performed. Finally, the output is sent through the VCG port.
其中, 需求是该以太网端口接入的业务数据, 允许的业务保证带宽为  The demand is the service data accessed by the Ethernet port, and the allowed service guaranteed bandwidth is
9 180600164 30M, 峰值带宽为 35M, VCG带宽为 30M, VCG输出采用 GFP封装, 虚级 联支持 LCAS协议。 步骤如下: 9 180600164 30M, the peak bandwidth is 35M, the VCG bandwidth is 30M, the VCG output is encapsulated in GFP, and the virtual concatenation supports the LCAS protocol. Proceed as follows:
A、 ^^据业务配置, 在流分类模块对该以太网端口的接收数据分配流标 签 ID并指定输出队列、 在管理控制模块配置流标签 ID的流控 /速率限制用 协定 Policing参数、 VCG成员及工作模式配置等。  A, ^^ According to the service configuration, the flow classification module assigns a flow label ID to the received data of the Ethernet port, and specifies an output queue, a flow control/rate limiting protocol policy parameter, a VCG member configured in the management control module to configure a flow label ID. And working mode configuration, etc.
Al、 管理控制模块协定的 Policing参数包括协定数据速率 V和协定突 发长度 L两个参量, 本实施例中对应两类 Policing参数:  Al, the Policing parameter of the management control module agreement includes two parameters, the agreed data rate V and the protocol burst length L. In this embodiment, two types of Policing parameters are corresponding:
流量控制的 Policing参数, 用于触发流控帧以对输入的带宽进行限制; 速率控制的 Policing参数, 用于对输出方向的发送带宽进行限制。  The Policing parameter of the flow control is used to trigger the flow control frame to limit the input bandwidth. The rate control Policing parameter is used to limit the transmission bandwidth in the output direction.
对于速率控制的 Policing参数, 根据业务类型不同,.可以采用单漏桶或 双漏桶控制参数。 单漏桶参数为 Vd/Ld。 双漏桶参数为 Vdmax/Ldmax 和 Vdmin/Ldmin, 其中 Vdmax、 Ldmax对应的监视带宽较大, 对应高门限参数 的突发带宽; Vdmin、 Ldmin对应的监视带宽较小, 对应低门限参数的保证 带宽。 本实施例中 Vdmax=35M, Vdmin=30M。 在输出时, 可以利用速率控 制的 Policing参数对输出流量进行监测,根据流量监视结果对违约数据包采 用相应的处理策略。  For the Policing parameter of rate control, depending on the type of service, the single leaky bucket or double leaky bucket can be used to control the parameters. The single leaky bucket parameter is Vd/Ld. The parameters of the double leaky bucket are Vdmax/Ldmax and Vdmin/Ldmin, where the monitoring bandwidth corresponding to Vdmax and Ldmax is large, corresponding to the burst bandwidth of the high threshold parameter; the monitoring bandwidth corresponding to Vdmin and Ldmin is small, and the guaranteed bandwidth corresponding to the low threshold parameter . In this embodiment, Vdmax = 35M and Vdmin = 30M. At the time of output, the output traffic can be monitored using the rate-controlled Policing parameter, and the corresponding processing strategy is applied to the default packet based on the traffic monitoring result.
对于流量控制的 Policing参数, 采用单漏桶参数: Vc/Lc, 并和速率控 制 Policing参数中监视带宽较小的低门限参数(保证带宽)进行对比配置。 参数设置方法列举如下:  For the Policing parameter of flow control, the single leaky bucket parameter: Vc/Lc is used, and compared with the low threshold parameter (guaranteed bandwidth) with small monitoring bandwidth in the rate control Policing parameter. The parameter setting methods are listed below:
a. 触发速率控制的数据速率等于触发流量控制的数据速率 a. The data rate of the trigger rate control is equal to the data rate of the trigger flow control.
(Vd=Vc), 触发速率控制的数据包突发长度大于触发流控的数据包突发 长度 (Ld>=Lc:), 可以配置为. · Vd=Vc-30M, Ld=Lc=64 kbytes; (Vd=Vc), the burst length of the trigger rate control packet is greater than the burst length of the packet that triggers the flow control (Ld>=Lc:), which can be configured as: · Vd=Vc-30M, Ld=Lc=64 kbytes ;
b. 速率控制的数据速率大于流量控制的数据速率 (Vd>Vc),触发速 率控制的数据包突发长度等于触发流量控制的数据包突发长度 (Ld=Lc)。 可以配置为: Vd=30M/Vc=29M, Ld=Lc-64kb tes。  b. The data rate of the rate control is greater than the data rate of the flow control (Vd>Vc), and the burst length of the trigger rate control is equal to the packet burst length (Ld=Lc) that triggers the flow control. Can be configured as: Vd = 30M / Vc = 29M, Ld = Lc - 64kb tes.
c. 速率控制的数据速率大于触发流量控制的数据速率 (Vd>Vc), 触 发速率控制的数据包突发长度大于触发流量控制的数据包突发长度 (Ld>Lc)。 可以配置为: Vd=30M/Vc=29M, Ld=64kbytes/Lc=60kbytes。  c. The data rate of the rate control is greater than the data rate of triggering flow control (Vd>Vc), and the burst length of the trigger rate control is greater than the burst length of the trigger flow control (Ld>Lc). It can be configured as: Vd=30M/Vc=29M, Ld=64kbytes/Lc=60kbytes.
10 180600164 A2、 流分类模块对该流标签 ID的业务指定输出队列: 该队列对应于输 出 VCG端口。 VCG端口下可以设置多优先级队列。 队列的丟弃控制参数包 括两类: 半满的低门限 Lh和快满的高门限 Lf。 当队列中数据包容量大于相 应容量时,新输入数据包根据其颜色标记执行对应操作,对应处理操作参见 C2。 10 180600164 A2. The traffic classification module specifies an output queue for the service of the flow label ID: the queue corresponds to the output VCG port. Multiple priority queues can be set under the VCG port. The drop control parameters of the queue include two types: a low threshold Lh for half full and a high threshold Lf for fast full. When the data packet capacity in the queue is greater than the corresponding capacity, the new input data packet performs corresponding operations according to its color label. For the corresponding processing operation, refer to C2.
B、 如图 3所示, Policing模块按照漏桶算法, 监视具有流标签 ID的业 务数据流量(包括对输入数据流和输出数据流的监测), 并根据监视结果执 行相应操作。 B. As shown in Figure 3, the Policing module monitors the traffic data traffic with the flow label ID (including the monitoring of the input data stream and the output data stream) according to the leaky bucket algorithm, and performs corresponding operations according to the monitoring result.
Bl、 当业务数据违反流量控制用 Policing参数 (Vc、 Lc)时, .流控启动。 全双工模式下通过 MAC 向和本设备以太网端口相连的远端设备定时发送 PAUSE流控帧, 通知远端设备减小数据流量; 当监视的该流标签 ID的业务 数据流量不违反协定 Policing参数 (Vc、 Lc)时, 则停止发送 PAUSE流控帧。  Bl. When the service data violates the Policing parameter (Vc, Lc) for flow control, the flow control starts. In full-duplex mode, the PAUSE flow control frame is periodically sent to the remote device connected to the Ethernet port of the device through the MAC to notify the remote device to reduce the data traffic. When the monitored traffic data of the flow tag ID does not violate the protocol policy. When the parameters (Vc, Lc), the PAUSE flow control frame is stopped.
这里所述的 "违反"是指数据流的实际速率超过 Policing参数中的数据 速率 Vc。 通过流控帧处理机制, 能保证对接收业务数据的实际流量 /带宽有 效控制。 流控帧进入最高优先级的发送队列, 保证 PAUSE流控帧发送的实 时性。 PAUSE 流控帧的内容是标准技术。 流控帧中有时间戳信息, 定义远 端接收该 PAUSE帧后停止发送数据帧的时间。 本设备发送的 PAUSE帧时 间戳值为 0, 表示本次流控过程结束。  The "violation" described here means that the actual rate of the data stream exceeds the data rate Vc in the Policing parameter. Through the flow control frame processing mechanism, the actual traffic/bandwidth of the received service data can be effectively controlled. The flow control frame enters the highest priority transmission queue to ensure the real-time performance of the PAUSE flow control frame transmission. The content of the PAUSE flow control frame is standard. The flow control frame has timestamp information, which defines the time at which the remote end stops transmitting the data frame after receiving the PAUSE frame. The PAUSE frame timestamp value sent by the device is 0, indicating that the current flow control process ends.
B2、如果远端设备没有应答本端发送的流控帧,则本端接收数据流量可 能继续增大, 这种情况下, Policing模块的输出带宽限制门限生效, 以保证 设备、 网络的正常工作, 处理过程见 B3。  B2. If the remote device does not respond to the flow control frame sent by the local device, the data traffic of the local end may continue to increase. In this case, the output bandwidth limit of the Policing module takes effect to ensure normal operation of the device and the network. See process B3 for the process.
B3、 Policing模块对流标签 ID的数据流按照速率限制参数(Vd、 Ld ) 进行流量监视: - 当监视的业务数据流量不违反协定低门限参数 (Vdmin、 Ldmin)时, 将数 据包标记为绿色; 当监视的业务数据流量超过协定低门限参数 (Vdmin、 Ldmin),但不超过 协定高门限参数(Vdmax、 Ldmax ) 时, 数据包标记为黄色;  B3. The Policing module traverses the data stream of the flow tag ID according to the rate limiting parameter (Vd, Ld) for traffic monitoring: - when the monitored service data traffic does not violate the agreed low threshold parameter (Vdmin, Ldmin), the data packet is marked as green; When the monitored service data traffic exceeds the agreed low threshold parameter (Vdmin, Ldmin) but does not exceed the agreed high threshold parameter (Vdmax, Ldmax), the packet is marked yellow;
11 180600164 当业务数据流量超过协定高门限参数 (Vdmax、 Ldmax)时, 将数据包标 记为红色或者可以直接将该数据包作丟弃处理。 11 180600164 When the service data traffic exceeds the agreed high threshold parameter (Vdmax, Ldmax), the data packet is marked in red or the data packet can be directly discarded.
数据包的颜色标记被传递到队列管理 /调度模块。  The color tag of the packet is passed to the queue management/scheduling module.
C、 队列管理 /调度模块接收到数据包时, 根据 VCG端口下目标队列中 待调度数据包的容量及新接收数据包颜色标记及长度,判断新接收数据包是 否执行入队列操作。 C. When the queue management/scheduling module receives the data packet, it determines whether the newly received data packet is queued according to the capacity of the to-be-scheduled data packet in the target queue under the VCG port and the color and length of the newly received data packet.
Cl、 将标记为红色的接收数据包直接丢弃。  Cl, discards received packets marked in red.
C2、 将标记为黄色 /绿色的接收数据包依据队列状态执行以下处理: 队列中所有数据包容量小于队列低门限 Lh时, 数据包都进入队列; 队列中所有数据包容量大于队列低门限 Lh但小于队列高门限 Lf时, 标记为绿色的数据包进队列, 标记为黄色的数据包被丟弃;  C2. The received packet marked as yellow/green performs the following processing according to the queue status: When all the packet capacity in the queue is less than the queue low threshold Lh, the data packet enters the queue; all the packet capacity in the queue is greater than the queue low threshold Lh but When the queue high threshold Lf is less than the queue high threshold, packets marked in green are queued, and packets marked in yellow are discarded.
队列中所有数据包容量大于队列高门限 Lf时,所有新接收的数据包被 丢弃。  When all packet sizes in the queue are greater than the queue high threshold Lf, all newly received packets are discarded.
D、 队列管理 /调度模块按端口带宽执行调度处理, 将端口下队列中的数 据包发送到输出端口, 将数据包发送出本设备。 输出端口包括 VCG端口和 以太网端口, VCG端口送出的数据在 EOS模块中执行 GFP封装后经 SDH 接口送出本设备。 D. The queue management/scheduling module performs scheduling processing according to the port bandwidth, and sends the data packet in the queue under the port to the output port, and sends the data packet out of the device. The output port includes the VCG port and the Ethernet port. The data sent by the VCG port is sent to the device through the SDH interface after performing GFP encapsulation in the EOS module.
本实施例中, 是通过两级流量监视实现的带宽无损控制: In this embodiment, the bandwidth is non-destructively controlled by two-stage traffic monitoring:
第一级: 触发流控的监视及处理过程只是影响 PAUSE帧的处理; ' 第二级: 速率限制的监视及处理才可能丢包。  The first level: The monitoring and processing of the triggered flow control only affects the processing of the PAUSE frame; 'Second level: The rate limit monitoring and processing can only be lost.
这是因为触发流控的监视带宽小于速率限制的监视带宽可以保证业务 无损: 当远端接收 PAUSE帧而不降低发包速率, 第二级速率限制机制检测 到该业务不合法时, 做丢弃处理, 才可能丟包。  This is because the monitoring bandwidth that triggers the flow control is smaller than the rate-limited monitoring bandwidth to ensure that the service is not lost: When the remote end receives the PAUSE frame without lowering the packet sending rate, the second-level rate limiting mechanism detects that the service is invalid, and performs discarding processing. It is possible to lose the package.
前述图 2及图 3中说明的实施例列举了一个通用的基于速率限制实现流  The embodiments illustrated in Figures 2 and 3 above illustrate a general rate-based implementation flow.
12 180600164 量控制的方法。 图 4则给出了流量控制的一种扩展应用。 下面列举虛级联支 持 LCAS协议的 VCG输出端口在带宽变化时的一种流量控制的处理方式, 处理流程参见图 4的流程图: 12 180600164 The method of quantity control. Figure 4 shows an extended application of flow control. The following is a description of a flow control method for the VCG output port of the LCAS protocol that supports the LCAS protocol when the bandwidth changes. For the process flow, see the flowchart in Figure 4.
4.1 当 EOS处理支持 LCAS协议时, 由于部分 VC通道的故障, 导致 VCG的成员数发生动态增删, VCG的带宽发生变化。 当 VCG的带宽小于 流量控制用 Policing参数中的速率门限 Vc时,速率限制 Policing参数 ( Vd、 Ld )不能有效控制发送数据速率,数据在输出端口的队列会由于调度阻塞而 丢包。 因此, 当 VCG能提供的带宽小于 Vc时, 管理控制模块根据 VCG的 实际带宽, 修改 Policing模块下流标签 ID使用的 Policing参数: 修改 Vc使 其小于或等于 VCG实际带宽, Lc保持不变。  4.1 When the EOS process supports the LCAS protocol, the VCG bandwidth changes due to the failure of some VC channels, resulting in the dynamic addition and deletion of the number of VCG members. When the bandwidth of the VCG is smaller than the rate threshold Vc in the Policing parameter of the traffic control, the rate limiting Policing parameters (Vd, Ld) cannot effectively control the sending data rate, and the queue of data on the output port will be lost due to scheduling blocking. Therefore, when the bandwidth that the VCG can provide is less than Vc, the management control module modifies the Policing parameter used by the Policing module downstream label ID according to the actual bandwidth of the VCG: Modify Vc to be less than or equal to the actual bandwidth of the VCG, and Lc remains unchanged.
4.2 Policing模块的流量控制处理流程和正常处理流程相同: 监视流标 签 ID的输入业务数据的流量, 当业务数据流量违反新的流控用 Policing参 数 (Vc、 Lc)时, 触发流控帧处理过程; 速率控制的 Policing参数处理和通用 的处理流程处理一致。  4.2 The flow control processing flow of the Policing module is the same as the normal processing flow: The traffic of the input service data of the flow label ID is monitored. When the service data traffic violates the new flow control policy parameter (Vc, Lc), the flow control frame processing process is triggered. The rate control Policing parameter processing is consistent with the general processing flow processing.
根据 VCG带宽动态调整数据流的流控用 Policing参数的方式,能在 VCG 带宽小于缺省配置时,有效降低业务数据的丟包发生概率,避免传输路径上 的业务损失。  According to the VCG bandwidth, the Policing parameter of the flow control is dynamically adjusted. When the VCG bandwidth is smaller than the default configuration, the packet loss probability of the service data is effectively reduced, and the service loss on the transmission path is avoided.
在图 2、 图 3、 图 4所示的实施例中, 管理控制模块可以通过软件接口 报告业务的带宽变化, 能提供接入业务的实时带宽信息, MSTP设备上业务 管理功能更加完善。 工业实用性 本发明公开了一种 MSTP设备上基于速率限制实现流控的装置及方法, 用于在通信系统中多服务传输平台传输设备上, 实现基于速率限制的流控, 保证基于包的业务数据流在网络中的无损伤传输,并提供业务带宽检测及上 报, 通过带宽及流控机制, 降低了异常业务对资源的占用、 防止业务损伤, 提高网络传送质量。  In the embodiment shown in FIG. 2, FIG. 3, and FIG. 4, the management control module can report the bandwidth change of the service through the software interface, and can provide real-time bandwidth information of the access service, and the service management function on the MSTP device is more perfect. INDUSTRIAL APPLICABILITY The present invention discloses an apparatus and method for implementing flow control based on rate limiting on an MSTP device, which is used for implementing rate-based flow control on a multi-service transmission platform transmission device in a communication system to ensure packet-based services. The data stream is transmitted in the network without damage, and provides service bandwidth detection and reporting. Through the bandwidth and flow control mechanism, the resource occupation of the abnormal service is reduced, the service is prevented from being damaged, and the network transmission quality is improved.
13 180600164 13 180600164

Claims

权 利 要 求 书  Claims
1、 一种多服务传输平台设备上基于速率限制实现流量控制的装置, 其 特征在于, 包括逐级顺序相连的数据输入模块、 流分类模块、 Policing模块、 队列管理 /调度模块、 数据输出模块, 以及控制上述模块并与之都相连的一 个管理控制模块, 其中,  A device for implementing flow control based on rate limiting on a multi-service transmission platform device, comprising: a data input module, a flow classification module, a Policing module, a queue management/scheduling module, and a data output module, which are sequentially connected in sequence; And a management control module for controlling and connecting to the above module, wherein
数据输入模块, 用于接收输入数据流;  a data input module, configured to receive an input data stream;
流分类模块,按流分类规则为输入的数据流分配流标签并确定相应的输 出队列, 同时将流标签传递给管理控制模块, 将携带标签的数据流送至 Policing模块;  The traffic classification module allocates a flow label for the input data stream according to the flow classification rule and determines a corresponding output queue, and simultaneously transmits the flow label to the management control module, and sends the data stream carrying the label to the Policing module;
管理控制模块, 按约定规则设置 Policing控制参数, 包括用于速率控制 的限速门限值和用于流量控制的流控门限值;  The management control module sets the Policing control parameters according to the agreed rules, including a speed limit threshold for rate control and a flow control threshold for flow control;
Policing模块, 根据流分类模块传递来的流标签及管理控制模块传递来 的该流标签的协定 Policing参数, 对接收数据进行流量监视, 当输入数据流 量大于流控门限值时, 向远端设备节点发送指示减小输入数据流量的流控 帧; 当输出数据流量大于限速门限值时, 丢弃对应数据包或标记该数据包为 违例数据, 输出数据流至队列管理 /调度模块;  The Policing module performs traffic monitoring on the received data according to the flow label transmitted by the flow classification module and the protocol policy parameter of the flow label transmitted by the management control module, and when the input data traffic is greater than the flow control threshold, the remote device The node sends a flow control frame indicating that the input data traffic is reduced; when the output data traffic is greater than the speed limit threshold, discarding the corresponding data packet or marking the data packet as a violation data, and outputting the data stream to the queue management/scheduling module;
队列管理 /调度模块, 对接纳的数据进行管理和调度, 将标记为违例数 据的数据包丢弃,将标记为正常数据的数据包执行入队列处理并送至相应输 出端口进行 出;  The queue management/scheduling module manages and schedules the admitted data, discards the data packet marked as the violation data, performs the queue processing of the data packet marked as normal data, and sends the data packet to the corresponding output port for processing;
数据输出模块, 用于根据队列管理 /调度模块的处理结果, 将正常数据 流进行输出。  The data output module is configured to output the normal data stream according to the processing result of the queue management/scheduling module.
1、 如权利要求 1所述的装置, 其特征在于, 所述装置进一步还包括: 数据封装及 EOS处理模块, 与所述队列管理 /调度模块相连, 用于完成 SDH通道的状况检测, 当虛级联 VCG的成员数量发生变化时, 将 VCG的 SDH通道的实时带宽信息上报给管理控制模块;  The device according to claim 1, wherein the device further comprises: a data encapsulation and an EOS processing module, connected to the queue management/scheduling module, for performing status detection of the SDH channel, When the number of members of the cascading VCG changes, the real-time bandwidth information of the SDH channel of the VCG is reported to the management control module.
流控帧触发模块, 与所述 Policing模块相连, 根据 Policing模块对特定 业务流标签的监视结果, 触发相应的流控帧;  a flow control frame triggering module is connected to the Policing module, and triggers a corresponding flow control frame according to a monitoring result of a specific traffic flow label by the Policing module;
MAC控制模块, 完成数据包在以太网接口的收发控制。  The MAC control module completes the transmission and reception control of the data packet on the Ethernet interface.
14 180600164 3、 如权利要求 1所述的装置, 其特征在于, 所述管理控制模块设置的 Policing控制参数, 包括: 14 180600164 The device according to claim 1, wherein the policy control parameter set by the management control module includes:
用于速率控制的限速门限值,在配置为单漏桶参数时包括触发速率控制 的数据速率 Vd 和数据包突发长度 Ld , 在配置为双漏桶参数时为 Vdmax/Ldmax和 Vdmin/Ldmin;  The rate limit threshold for rate control, including the data rate Vd of the trigger rate control and the burst length Ld of the packet when configured as a single leaky bucket parameter, Vdmax/Ldmax and Vdmin/ when configured as a double leaky bucket parameter Ldmin;
用于流量控制的流控门限值,在配置为单漏桶参数时包括触发流量控制 的数据速率 Vc和数据包突发长度 Lc;  The flow control threshold for flow control includes a data rate Vc for triggering flow control and a packet burst length Lc when configured as a single leaky bucket parameter;
其中, 所有所述数据包的突发长度都应满足一个条件: 大于数据流允许 通过的最大包长。  Wherein, the burst length of all the data packets should satisfy one condition: greater than the maximum packet length allowed by the data stream.
4、 如权利要求 3所述的装置, 其特征在于, 所述 Policing模块中: 当输入数据流量小于或等于流控门限值时,停止向远端设备节点发送指 示减小输入数据流量的流控帧;  The device according to claim 3, wherein, in the policy module, when the input data traffic is less than or equal to the flow control threshold, stopping sending the flow indicating that the input data traffic is reduced to the remote device node is stopped. Control frame
当远端设备没有应答所述流控帧时, 对输出数据进行流量监视: 限速门限值配置为单漏桶参数(Vd、 Ld ) 时, 若输出数据流量大于限 速门限值 Vd, 则丟弃对应数据包或标记该数据包为红色表示违例数据, 否 贝' J , 标记该数据包为绿色表示正常数据, 输出数据流至队列管理 /调度模块; 限速门限值配置为双漏桶参数 Vdmax/Ldmax和 Vdmin/Ldmin时, 当监视的业务数据流量不违反协定低门限参数 (Vdmin、 Ldmin)时,将数 据包标记为绿色;  When the remote device does not respond to the flow control frame, it performs traffic monitoring on the output data. When the rate limit threshold is configured as a single leaky bucket parameter (Vd, Ld), if the output data flow rate is greater than the speed limit threshold value Vd, Then discard the corresponding data packet or mark the data packet as red to indicate the violation data, no shell ' J , mark the data packet as green to indicate normal data, and output the data stream to the queue management/scheduling module; the speed limit threshold value is configured as double When the bucket parameters Vdmax/Ldmax and Vdmin/Ldmin are leaked, when the monitored traffic data traffic does not violate the agreed low threshold parameter (Vdmin, Ldmin), the packet is marked as green;
当监视的业务数据流量超过协定低门限参数 (Vdmin、 Ldmin) ,但不超过 协定高门限参数(Vdmax、 Ldma ) 时, 数据包标记为黄色;  When the monitored traffic data traffic exceeds the agreed low threshold parameter (Vdmin, Ldmin) but does not exceed the agreed high threshold parameter (Vdmax, Ldma), the packet is marked yellow;
当业务数据流量超过协定高门限参数 (Vdmax、 Ldmax)时, 将数据包标 记为红色或者可以直接将该数据包作丢弃处理;  When the service data traffic exceeds the agreed high threshold parameter (Vdmax, Ldmax), the data packet is marked in red or the data packet can be directly discarded.
数据包的颜色标记被传递到队列管理 /调度模块。  The color tag of the packet is passed to the queue management/scheduling module.
5、 如权利要求 4所述的装置,其特征在于,所述队列管理 /调度模块中: 队列的丟弃控制参数包括两类: 半满的低门限 Lh和快满的高门限 Lf; 在对接收数据包进行处理时, 将标记为红色的接收数据包直接丟弃, 将  5. The apparatus according to claim 4, wherein in the queue management/scheduling module: the discarding control parameters of the queue comprise two types: a low threshold Lh of half full and a high threshold Lf of fast full; When receiving a packet for processing, the received packet marked in red is directly discarded.
15 180600164 标记为黄色 /绿色的接收数据包依据队列状态执行以下处理: . 15 180600164 Receive packets marked as yellow/green perform the following processing depending on the queue status: .
队列中所有数据包容量小于队列低门限 Lh时, 数据包都进入队列; 队列中所有数据包容量大于队列低门限 Lli但小于队列高门限 Lf时, 标记为绿色的数据包进队列, 标记为黄色的数据包被丟弃;  When all packet sizes in the queue are less than the queue low threshold Lh, the packets enter the queue. When all packet sizes in the queue are greater than the queue low threshold Lli but less than the queue high threshold Lf, the packets marked in green are queued, marked yellow. Packets are discarded;
队列中所有数据包容量大于队列高门限 Lf时,所有新接收的数据包被 丟弃。 '  When all packet sizes in the queue are greater than the queue high threshold Lf, all newly received packets are discarded. '
6、 如权利要求 2所述的装置, 其特征在于, 所述数据封装及 EOS处理 模块在虚级联组 VCG的带宽小于流控门限值时, 上报管理控制模块, 由管 理控制模块根据虛级联组 VCG的实际带宽修改用于 Policing模块的流控门 限值, 使其小于或等于虛级联组 VCG的实际带宽。  The device of claim 2, wherein the data encapsulation and the EOS processing module are reported to the management control module when the bandwidth of the virtual concatenation group VCG is smaller than the flow control threshold, and the management control module is based on the virtual The actual bandwidth of the cascading group VCG is modified to be equal to or equal to the actual bandwidth of the virtual concatenation group VCG.
7、 一种基于权利要求 1所述装置实现流量控制的方法, 其特征在于, 包括如下步骤: .  7. A method for implementing flow control based on the apparatus of claim 1, comprising the steps of:
( 1 ) 由流分类模块根据流分类规则为输入数据流分配相应的流标签, 确定输入数据包的输出队列, 同时上报所述流标签到管理控制模块;  (1) The flow classification module allocates a corresponding flow label to the input data stream according to the flow classification rule, determines an output queue of the input data packet, and reports the flow label to the management control module;
( 2 )由管理控制模块按约定规则为所述流标签对应的业务设置 Policing 控制参数, 包括用于流量控制的流控门限值, 以及用于速率限制的限速门限 值;  (2) The Policing control parameter is set by the management control module for the service corresponding to the flow label according to the agreed rule, including a flow control threshold for flow control, and a speed limit threshold for the rate limit;
( 3 )由 Policing模块根据管理控制模块协商的 Policing控制参数对携带 流标签的业务数据进行流量监视, 当输入数据流量大于流控门限值时, 开始 流量控制, 向远端设备节点发送用于指示降低输入数据流量的流控帧;.  (3) The Policing module performs traffic monitoring on the service data carrying the flow label according to the policy control parameter negotiated by the management control module. When the input data traffic is greater than the flow control threshold, traffic control is started, and the remote device node is sent to the remote device node for sending a flow control frame indicating a decrease in input data traffic;
( 4 )在远端设备没有回应流控帧时, 由 Policing模块根据管理控制模 块协商的 Policing控制参数对携带流标签的业务数据进行监测, 当输出数据 速率大于限速门限值时,标记该数据包为违例数据,否则,标记为正常数据, 将标记后的数据包转发至队列管理 /调度模块;  (4) When the remote device does not respond to the flow control frame, the policy module monitors the service data carrying the flow label according to the policy control parameter negotiated by the management control module. When the output data rate is greater than the speed limit threshold, the label is marked. The data packet is the violation data; otherwise, it is marked as normal data, and the marked data packet is forwarded to the queue management/scheduling module;
( 5 )由队列管理 /调度模块对接纳的数据进行管理和调度, 根据接收数 据包的标记信息, 将标记为违例数据的数据包作丢弃处理, 将标记为正常数 据的数据包执行入队列处理, 调度后送到相应的输出端口。  (5) The queue management/scheduling module manages and schedules the accepted data, discards the data packet marked as the violation data according to the tag information of the received data packet, and performs the queue processing of the data packet marked as normal data. , dispatched to the corresponding output port.
8、 如权利要求 7所述的方法, 其特征在于, 步骤(2 ) 中配置 Policing  8. The method according to claim 7, wherein the step (2) is configured with Policing
16 180600164 控制参数的步驟为: 16 180600164 The steps to control the parameters are:
配置用于速率控制的限速门限值,其在配置为单漏桶参数时包括触发速 率控制的数据速率 Vd和数据包突发长度 Ld, 其在配置为双漏桶参数时为 Vdmax/Ldmax和 Vdmin/Ldmin;  The rate limit threshold for rate control is configured, and when configured as a single leaky bucket parameter, the data rate Vd and the burst length Ld of the trigger rate control are included, which is Vdmax/Ldmax when configured as a double leaky bucket parameter. And Vdmin/Ldmin;
配置用于流量控制的流控门限值,其在配置为单漏桶参数时包括触发流 量控制的数据速率 Vc和数据包突发长度 Lc;  Configure a flow control threshold for flow control, which includes a data rate Vc for triggering flow control and a packet burst length Lc when configured as a single leaky bucket parameter;
其中, 所有所述数据包的突发长度都应满足一个条件:'大于数据流允许 通过的最大包长。  Wherein, the burst length of all the data packets should satisfy one condition: 'greater than the maximum packet length allowed by the data stream.
9、 如权利要求 8所述的方法, 其特征在于, 步骤(3 )进一步可分为: . 根据流分类模块传递来的流标签及管理控制模块传递来的该流标签的 协定 Policing参数, 对输入数据流进行流量监视:  The method according to claim 8, wherein the step (3) is further divided into: a flow label transmitted by the flow classification module and a protocol policy parameter of the flow label transmitted by the management control module, Input data stream for traffic monitoring:
当输入数据流量大于流控门限值 Vc时, 向远端设备节点发送指示减小 输入数据流量的流控帧;  When the input data traffic is greater than the flow control threshold value Vc, sending a flow control frame indicating that the input data traffic is reduced to the remote device node;
当输入数据流量恢复为小于或等于流控门限值 Vc时, 停止向远端设备 节点发送指示减小输入数据流量的流控帧。 .  When the input data traffic returns to less than or equal to the flow control threshold value Vc, the flow control frame indicating that the input data traffic is reduced is stopped from being sent to the remote device node. .
10、 如权利要求 8或 9所述的方法, 其特征在于, 步驟(4 )进一步可 分为:  The method according to claim 8 or 9, wherein the step (4) is further divided into:
根据流分类模块传递来的流标签及管理控制模块传递来的该流标签的 协定 Policing参数, 对输出数据进行流量监视:  Traffic monitoring is performed on the output data according to the flow label delivered by the flow classification module and the protocol Policing parameter of the flow label transmitted by the management control module:
限速门限值配置为单漏桶参数(Vd、 Ld ) 时, 若输出数据流量大于限 速门限值 Vd, 则丢弃对应数据包或标记该数据包为红色表示违例数据,.否 贝' J , 标记该数据包为绿色表示正常数据, 输出数据流至队列管理 /调度模块; 限速门限值配置为双漏桶参数 Vdmax/Ldmax和 Vdmin/Ldmin时, 若监视的业务数据流量不违反协定低门限参数 (Vdmin、 Ldmin), 将数据 包标记为绿色; 若监视的业务数据流量超过协定低门限参数 (Vdmin、 Ldmin),但不超过 协定高门限参数( Vdmax、 Ldmax ) 时, 数据包标记为黄.色;  When the speed limit threshold is configured as a single leaky bucket parameter (Vd, Ld), if the output data traffic is greater than the speed limit threshold Vd, the corresponding data packet is discarded or the data packet is marked red to indicate the violation data. J, mark the data packet as green for normal data, and output data flow to the queue management/scheduling module; when the speed limit threshold is configured as double leaky bucket parameters Vdmax/Ldmax and Vdmin/Ldmin, if the monitored service data traffic does not violate The protocol low threshold parameter (Vdmin, Ldmin) marks the packet as green; if the monitored service data traffic exceeds the agreed low threshold parameter (Vdmin, Ldmin) but does not exceed the agreed high threshold parameter (Vdmax, Ldmax), the packet Marked as yellow.
17 180600164 若业务数据流量超过协定高门限参数 (Vdmax、 Ldmax), 将数据包标记 为红色或者可以直接将该数据包作丢弃处理; 17 180600164 If the service data traffic exceeds the agreed high threshold parameter (Vdmax, Ldmax), the data packet is marked in red or the data packet can be directly discarded.
将数据包的颜色标记传递到队列管理 /调度模块。  Pass the color tag of the packet to the queue management/scheduling module.
11、 如权利要求 10所述的方法, 其特征在于, 步驟('2 )中进一步包括 配置队列的丟弃控制参数的步骤, 配置的队列丢弃控制参数包括: 半满的低 门限 Lh和快满的高门限 Lf;  The method of claim 10, wherein the step ('2) further comprises the step of configuring a drop control parameter of the queue, wherein the configured queue drop control parameter comprises: a half full low threshold Lh and a fast full High threshold Lf;
相应地, 步骤(5 ) 中队列管理 /调度模块在对接收数据包进行处理时, 将标记为红色的接收数据包直接丟弃, 将标记为黄色 /绿色的接收数据包依 据队列状态执行以下处理:  Correspondingly, in the step (5), the queue management/scheduling module discards the received data packet marked in red when processing the received data packet, and performs the following processing according to the queue status of the received data packet marked in yellow/green. :
队列中所有数据包容量小于队列低门限 Lh时, 数据包都进入队列; 队列中所有数据包容量大于队列低门限 Lh但小于队列高门限 Lf时, 标记为绿色的数据包进队列, 标记为黄色的数据包被丟弃;  When all packet sizes in the queue are less than the queue low threshold Lh, the packets enter the queue. When all packet sizes in the queue are greater than the queue low threshold Lh but less than the queue high threshold Lf, the packets marked in green are queued, marked yellow. Packets are discarded;
队列中所有数据包容量大于队列高门限 Lf时,所有新接收的数据包被 丟弃。  When all packet sizes in the queue are greater than the queue high threshold Lf, all newly received packets are discarded.
12、 如权利要求 1所述的方法,其特征在于,所述方法进一步包括如下 步骤:  12. The method of claim 1 wherein the method further comprises the steps of:
如果数据封装及 EOS处理模块作为输出时,若虚级联组 VCG的带宽小 于流控门限值, 则上报管理控制模块, 由管理控制模块根据虚级联组 VCG 的实际带宽修改用于 Policing模块的流控门限值,使其小于或等于虛级联组 VCG的实际带宽。  If the data encapsulation and the EOS processing module are used as the output, if the bandwidth of the virtual concatenation group VCG is smaller than the flow control threshold, the management control module is reported, and the management control module modifies the policy module according to the actual bandwidth of the virtual concatenation group VCG. The flow control threshold is such that it is less than or equal to the actual bandwidth of the virtual concatenation group VCG.
18 180600164 18 180600164
PCT/CN2007/000632 2007-02-28 2007-02-28 An apparatus and a method for realizing flow control based on rate restrict for mstp device WO2008104100A1 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
BRPI0721248-8A BRPI0721248A2 (en) 2007-02-28 2007-02-28 apparatus for performing traffic control and method for performing traffic control
RU2009134729/09A RU2427091C2 (en) 2007-02-28 2007-02-28 Device and method for speed limit-based flow control for mstp device
PCT/CN2007/000632 WO2008104100A1 (en) 2007-02-28 2007-02-28 An apparatus and a method for realizing flow control based on rate restrict for mstp device
KR1020097020078A KR101086834B1 (en) 2007-02-28 2007-02-28 An Apparatus and a Method for Realizing Flow Control Based on Rate Restrict for MSTP Device
CN2007800503193A CN101595679B (en) 2007-02-28 2007-02-28 An apparatus and a method for realizing flow control based on rate restrict for mstp device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2007/000632 WO2008104100A1 (en) 2007-02-28 2007-02-28 An apparatus and a method for realizing flow control based on rate restrict for mstp device

Publications (1)

Publication Number Publication Date
WO2008104100A1 true WO2008104100A1 (en) 2008-09-04

Family

ID=39720838

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/000632 WO2008104100A1 (en) 2007-02-28 2007-02-28 An apparatus and a method for realizing flow control based on rate restrict for mstp device

Country Status (5)

Country Link
KR (1) KR101086834B1 (en)
CN (1) CN101595679B (en)
BR (1) BRPI0721248A2 (en)
RU (1) RU2427091C2 (en)
WO (1) WO2008104100A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577315A (en) * 2014-10-08 2016-05-11 深圳市中兴微电子技术有限公司 Link state control method and device
US9537764B2 (en) 2012-03-28 2017-01-03 Nec Corporation Communication apparatus, control apparatus, communication system, communication method, method for controlling communication apparatus, and program
CN111431752A (en) * 2020-04-01 2020-07-17 中核武汉核电运行技术股份有限公司 Safety detection method based on adaptive flow control
US11134430B2 (en) 2018-12-10 2021-09-28 At&T Intellectual Property I, L.P. System and method for detecting and acting upon a violation of terms of service

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848168B (en) * 2010-06-11 2013-10-23 杭州华三通信技术有限公司 Target MAC (Media Access Control) address based flow control method, system and equipment
CN102571596B (en) * 2012-02-01 2018-08-31 南京中兴软件有限责任公司 Data transmission method and device
RU2601604C1 (en) * 2015-09-02 2016-11-10 Федеральное государственное казенное военное образовательное учреждение высшего образования "Академия Федеральной службы охраны Российской Федерации" (Академия ФСО России) Method of antialiasing priority data traffic and device for its implementation
CN106992939B (en) * 2017-05-16 2023-10-10 新疆安迪星通信息科技有限公司 Dynamic learning system and method for QoS flow control threshold of satellite IP network
CN109429246A (en) * 2017-08-31 2019-03-05 中国移动通信有限公司研究院 A kind of sending method of business datum, method of reseptance and relevant device
CN112787944B (en) * 2019-11-11 2023-10-31 中兴通讯股份有限公司 Flow control method, apparatus and computer readable storage medium
CN117240796B (en) * 2023-11-14 2024-02-23 苏州元脑智能科技有限公司 Network card speed limiting method, system, equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002030065A1 (en) * 2000-10-03 2002-04-11 U4Ea Technologies Limited Prioritising data with flow control
CN1449156A (en) * 2003-04-14 2003-10-15 北京港湾网络有限公司 Method for controlling flow of data transmisison
CN1478345A (en) * 2000-12-22 2004-02-25 ��˹��ŵ�� Flow control in packet-switched communication network using leaky bucket algorithm
CN1726680A (en) * 2002-12-20 2006-01-25 国际商业机器公司 Flow control in network devices
CN1754335A (en) * 2003-02-25 2006-03-29 摩托罗拉公司 Flow control in a packet data communication system
US7031256B2 (en) * 2004-01-20 2006-04-18 Transwitch Corporation Methods and apparatus for implementing LCAS ( link capacity adjustment scheme) sinking with rate based flow control
CN1778078A (en) * 2003-04-21 2006-05-24 西门子公司 Network traffic control system
CN1787483A (en) * 2004-12-10 2006-06-14 华为技术有限公司 Flow controlling method
US7092357B1 (en) * 2001-11-13 2006-08-15 Verizon Services Corp. Anti-flooding flow-control methods and apparatus
CN1859303A (en) * 2006-01-25 2006-11-08 华为技术有限公司 Dynamic flow control method based on end port

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002030065A1 (en) * 2000-10-03 2002-04-11 U4Ea Technologies Limited Prioritising data with flow control
CN1478345A (en) * 2000-12-22 2004-02-25 ��˹��ŵ�� Flow control in packet-switched communication network using leaky bucket algorithm
US7092357B1 (en) * 2001-11-13 2006-08-15 Verizon Services Corp. Anti-flooding flow-control methods and apparatus
CN1726680A (en) * 2002-12-20 2006-01-25 国际商业机器公司 Flow control in network devices
CN1754335A (en) * 2003-02-25 2006-03-29 摩托罗拉公司 Flow control in a packet data communication system
CN1449156A (en) * 2003-04-14 2003-10-15 北京港湾网络有限公司 Method for controlling flow of data transmisison
CN1778078A (en) * 2003-04-21 2006-05-24 西门子公司 Network traffic control system
US7031256B2 (en) * 2004-01-20 2006-04-18 Transwitch Corporation Methods and apparatus for implementing LCAS ( link capacity adjustment scheme) sinking with rate based flow control
CN1787483A (en) * 2004-12-10 2006-06-14 华为技术有限公司 Flow controlling method
CN1859303A (en) * 2006-01-25 2006-11-08 华为技术有限公司 Dynamic flow control method based on end port

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9537764B2 (en) 2012-03-28 2017-01-03 Nec Corporation Communication apparatus, control apparatus, communication system, communication method, method for controlling communication apparatus, and program
CN105577315A (en) * 2014-10-08 2016-05-11 深圳市中兴微电子技术有限公司 Link state control method and device
US10432538B2 (en) 2014-10-08 2019-10-01 Sanechips Technology Co., Ltd. Link state determination method, apparatus and computer storage medium
US11134430B2 (en) 2018-12-10 2021-09-28 At&T Intellectual Property I, L.P. System and method for detecting and acting upon a violation of terms of service
US11576107B2 (en) 2018-12-10 2023-02-07 At&T Intellectual Property I, L.P. System and method for detecting and acting upon a violation of terms of service
CN111431752A (en) * 2020-04-01 2020-07-17 中核武汉核电运行技术股份有限公司 Safety detection method based on adaptive flow control

Also Published As

Publication number Publication date
KR20100005051A (en) 2010-01-13
BRPI0721248A2 (en) 2013-01-15
KR101086834B1 (en) 2011-11-24
RU2009134729A (en) 2011-04-10
RU2427091C2 (en) 2011-08-20
CN101595679B (en) 2011-07-13
CN101595679A (en) 2009-12-02

Similar Documents

Publication Publication Date Title
WO2008104100A1 (en) An apparatus and a method for realizing flow control based on rate restrict for mstp device
US7522525B2 (en) L2 switch
US7385985B2 (en) Parallel data link layer controllers in a network switching device
US7813285B2 (en) Method for per-port flow control of packets aggregated from multiple logical ports over a transport link
EP1551136B1 (en) Hierarchical flow-characterizing multiplexor
US7062568B1 (en) Point-to-point protocol flow control extension
WO2012065477A1 (en) Method and system for avoiding message congestion
US7417995B2 (en) Method and system for frame relay and ethernet service interworking
JP3640160B2 (en) Router device and priority control method used therefor
KR101640017B1 (en) Packet transport system and traffic management method thereof
US20090219818A1 (en) Node device, packet switch device, communication system and method of communicating packet data
EP1551138B1 (en) Parallel data link layer controllers providing traffic flow control in a network switching device
US20050078602A1 (en) Method and apparatus for allocating bandwidth at a network element
EP1551130B1 (en) Parallel data link layer controllers providing statistics acquisition in a network switching device
EP1704491B1 (en) A method and systems for resource bunlding in a communications network
WO2022028342A1 (en) Method for processing congestion flow and device
US20050157728A1 (en) Packet relay device
WO2014000467A1 (en) Method for adjusting bandwidth in network virtualization system
US11728893B1 (en) Method, system, and apparatus for packet transmission
CN115250389A (en) Optical network terminal
WO2023207461A1 (en) Congestion flow identification method and apparatus, device, and computer readable storage medium
CN115529285A (en) Message transmission method and device
Pang et al. Two phase distributed congestion management for differentiated services network
JPH09233077A (en) Used amount parameter control circuit

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 200780050319.3

Country of ref document: CN

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

Ref document number: 07711025

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 6143/DELNP/2009

Country of ref document: IN

WWE Wipo information: entry into national phase

Ref document number: 1020097020078

Country of ref document: KR

WWE Wipo information: entry into national phase

Ref document number: 2009134729

Country of ref document: RU

122 Ep: pct application non-entry in european phase

Ref document number: 07711025

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: PI0721248

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20090827