WO2012065477A1 - Method and system for avoiding message congestion - Google Patents

Method and system for avoiding message congestion Download PDF

Info

Publication number
WO2012065477A1
WO2012065477A1 PCT/CN2011/080049 CN2011080049W WO2012065477A1 WO 2012065477 A1 WO2012065477 A1 WO 2012065477A1 CN 2011080049 W CN2011080049 W CN 2011080049W WO 2012065477 A1 WO2012065477 A1 WO 2012065477A1
Authority
WO
WIPO (PCT)
Prior art keywords
congestion
policy
packet
classification
module
Prior art date
Application number
PCT/CN2011/080049
Other languages
French (fr)
Chinese (zh)
Inventor
唐保
徐春松
王然
吕勇
刘奇峰
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012065477A1 publication Critical patent/WO2012065477A1/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/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2441Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]

Definitions

  • the present invention relates to the field of data communications, and in particular, to a packet congestion avoiding method and system. Background technique
  • the IP services carried on the Internet are gradually diversified, and the rich data, voice, video and other integrated services are booming.
  • network bandwidth increases from 10 Mbps, 100 Mbps, 1 Gbps, and 10 Gbps to 100 Gbps, it is becoming less and less sufficient for suppliers to increase bandwidth and expand network equipment.
  • QOS Quality of Service
  • Different types of services are provided for different customers and different services, such as: providing dedicated bandwidth, reducing packet loss rate, and reducing packet transmission delay and delay jitter. For this reason, technologies such as flow classification and coloring, traffic policing, traffic shaping, network congestion management, and network congestion avoidance are commonly used.
  • Congestion avoidance is performed on the basis of traffic classification, including: drop priority, congestion detection, congestion discard, and so on.
  • the main criteria for discarding priorities are: IP precedence, differentiated service code points (Differentiated Services Code Point (DSCP) values and MPLS EXP (MPLS: Multi-Protocol Label Switching, EXP: Experiment, tag experiment bit).
  • DSCP Differentiated Services Code Point
  • MPLS EXP MPLS: Multi-Protocol Label Switching, EXP: Experiment, tag experiment bit.
  • the user can set the threshold of the queue.
  • the threshold When the length of the queue is less than the low value, the packet is not discarded.
  • the length of the queue When the length of the queue is between the low value and the high value, the random start is started. The packet is discarded. The longer the queue is, the higher the probability of discarding.
  • the length of the queue is greater than the threshold, all packets are discarded.
  • WRED Wired Detection
  • RED The difference between WRED and RED is that the former introduces IP precedence, DSCP value, and MPLS EXP to provide different discarding probabilities for packets of different priorities.
  • NP Network Processer, etc.
  • Traffic manager TM Traffic Manager
  • the packet processor performs the traffic classification, the traffic shaping, and the congestion avoidance according to the policy of the user. Congestion management and other operations; The other is to complete the packet classification, traffic policing, traffic shaping, congestion avoidance, congestion management and other operations directly by the packet processor.
  • the packet processor completes the packet flow classification
  • the traffic manager performs congestion avoidance
  • the traffic manager is located downstream of the packet processor.
  • congestion is discarded, packets are discarded in the traffic manager, which is a waste of resources compared to packets being discarded in the packet processor.
  • Congestion avoidance is done directly on the packet processor. It is not only necessary to complete the traffic classification of the packet on the packet processor, but also to complete the congestion detection of the packet, and the congestion detection of the packet means that a large number of queues need to be implemented and maintained in the software of the packet processor, and Discard policy processing. For packet processors, implementing and maintaining a large number of queues introduces additional memory overhead, multiple access to peripherals, and performance and efficiency services are not guaranteed. Summary of the invention
  • the invention provides a packet congestion avoiding method and system, which improves message processing performance and efficiency.
  • the present invention provides a packet congestion avoidance system, including: a packet processor, configured to: connect with a traffic manager, complete packet classification, parsing, modification, and encapsulation; according to the received The congestion policy sent by the traffic manager performs congestion processing.
  • the traffic manager is configured to: detect congestion of the packet, generate the congestion policy, and send the congestion policy to the packet processor.
  • the packet processor includes: a message classification module, a classification policy library, and a discarding priority library, where the message classification module is configured to: query the classification policy library, the discarding priority library, and obtain Classification ID, drop priority.
  • the packet processor further includes: a congestion avoidance module and a congestion policy library,
  • the congestion avoidance module is configured to: query the congestion policy database to obtain the congestion policy according to the received classification identifier and the drop priority sent by the packet classification module.
  • the congestion policy library in the packet processor is configured to: receive the congestion policy that is sent by the traffic manager.
  • the congestion avoidance module in the traffic manager is configured to: feed back the congestion policy to a congestion policy library in the packet processor.
  • the congestion avoidance module in the traffic manager is configured to: generate a congestion avoidance policy according to a congestion detection result of the packet queue.
  • the present invention further provides a packet congestion avoidance method, including: the traffic manager generates congestion avoidance according to a congestion detection result of a packet queue and a drop priority. Policy and feedback to the packet processor;
  • the packet processor performs congestion processing according to the received congestion avoidance policy.
  • the packet processor includes: a message classification module, a classification policy library, and a drop priority library,
  • the packet classification module queries the classification policy library, the discarding priority database, and obtains a classification identifier and a discarding priority.
  • the packet processor further includes: a congestion avoidance module and a congestion policy library,
  • the congestion avoidance module queries the congestion policy database according to the received classification identifier and the discarding priority sent by the packet classification module, and obtains the congestion policy.
  • the congestion policy library in the packet processor receives the congestion policy fed back by the traffic manager; wherein a congestion avoidance module in the traffic manager feeds back the congestion policy to the packet processor Congestion policy library.
  • the congestion avoidance module in the traffic manager generates a congestion avoidance policy according to the congestion detection result of the packet queue.
  • the traffic manager congestion avoidance module generates a congestion avoidance policy according to the congestion detection result and the drop priority
  • the congestion avoidance policy includes a drop probability function
  • the congestion avoidance in the packet processor is updated.
  • the packet processing policy in the policy library, the packet processing policy includes: packet discarding/forwarding flag, and the packet processor and the traffic manager cooperate to complete the congestion avoidance of the packet.
  • FIG. 1 is a schematic structural view of a congestion avoidance system of the present invention
  • the system for congestion avoidance of the present invention includes:
  • a packet processor for classifying, parsing, modifying, encapsulating, and accessing various data packets to obtain related information
  • the traffic manager which performs congestion detection and marking of packets, and its performance should match the packet processor
  • a classification strategy library which is used to provide a packet classification policy to the packet processor message classification module, located on the storage device;
  • a congestion avoidance policy library for providing supervisory policy and status information to the congestion avoidance module in the packet processor is located on the storage device.
  • FIG. 1 is a schematic structural diagram of a congestion avoidance system of the present invention, and a packet processor (for example, a network processor) of the present invention includes:
  • the traffic interface module 101 includes multiple physical interfaces to connect to different networks, and is a data channel for network packets to enter and exit the chip.
  • the data frame received from a physical interface is removed from the encapsulation data packet of the communication interface, and is stored in the inbound and out data packet buffer together with the status information of the data packet; in the data transmission direction, according to the inbound and outbound data.
  • the status information in the packet cache, the data packet is fetched, and the communication interface encapsulation is issued at the corresponding physical interface.
  • a physical interface refers to a specific data communication interface entity, including an Ethernet interface, a POS interface, or other interface that can be used to exchange data.
  • the message classification module 102 sorts according to the classification policy library 103.
  • the user-configured classification policy library 103 is the basis for the block classification. According to the user-configured policy, with the Mac address, inner and outer 802.1p, inner and outer Vlan ID, MPLS Exp, IP Tos, 5-tuple, port number, QPPB GroupID, etc., a unique correspondence of the message can be obtained. Logo, It can also be called a stream ID, which is FlowID.
  • the WRED discarding of the queue packets is supported.
  • the WRED processing is based not only on the flow identifier but also on the discarding priority (DP) of the packet.
  • DP discarding priority
  • the user also configures a WRED drop priority library 104. Based on this configuration information, this module can find the discard priority (DP) information that can get two bits.
  • the congestion avoidance module 105 performs congestion avoidance according to the classification result of the packet classification module 102, that is, the flow identifier (FlowID) and the discard priority level (DP) in the discarding priority pool 104.
  • FlowID flow identifier
  • DP discard priority level
  • the congestion avoidance module 105 queries the congestion policy library 106 according to the information such as the flow identifier (FlowID) and the discarding priority (DP) in the classification result of the packet classification module 102, and returns the policy information (for example: packet discarding/forwarding) Marking, discarding probability), according to the policy information (message drop/forward flag, or drop probability), choose to perform packet forwarding and discarding actions.
  • FlowID flow identifier
  • DP discarding priority
  • the traffic interface module 107 the same traffic interface module 101, is only used on the message sending side.
  • the traffic manager (or TM) of the present invention includes:
  • the main internal sub-modules are: 1. Receiver controller: The function is to receive bus data, including: signal conversion, detecting user-side data, and filtering data that does not meet the requirements, such as error packets. The data packet is analyzed, and the high priority protocol packet and the general data packet are distinguished and sent to the high priority protocol packet through the first in first out queue (FIFO) and the general receiving interface FIFO. The flow control information of the bus is collected, and the upper module is flow-controlled according to the state of the receiving interface FIFO. Second, the interface first-in-first-out queue FIFO, the role is to perform data buffering of the input interface. The interface FIFO must be able to receive data larger than the maximum packet length. When a complete packet is stored in the FIFO, an indication is sent to the traffic policing module.
  • Traffic policing module (Policer) 109 The traffic policing module is responsible for traffic policing calculations. Normal processing is performed for normal packets, and discarded packets are sent directly to management module 113 without operation.
  • the traffic policing module 109 is configured to drop mode, the traffic policing module 109 sends the result of the drop/pass along with the packet identifier to the management module 113 after the calculation.
  • the packet identifier is calculated based on the "color blind/color sensitive" configuration of the packet. For detailed algorithms, please refer to RFC2697 (A Single Rate Three Color Marker) or RFC2698 (A Two Rate Three Color Marker).
  • the coloring information of the packet identifier is falsified by the result, and the coloring result is sent to the memory unit 114.
  • Congestion avoidance module 110 The role is to achieve tail drop, WRED or ENC congestion avoidance, Its main functions are: According to the message queue status information, it is determined whether the data packet is discarded. The ECN calculation is performed in ECN mode and the results are given. The WRED algorithm is calculated in WRED mode, and the discard judgment is given. In the tail drop mode, the packet discarding judgment is performed according to the queue depth. The judgment result and the packet identifier information are fed back to the congestion avoidance policy library 103 after the calculation is completed.
  • Queue scheduling module 111 The function is time slot effective signal generation, back pressure signal generation, packet identifier queue management, scheduling, shaping, back pressure control, providing an interface with the configuration table item management module, and performing parameter configuration.
  • the packet data reading module is mainly responsible for sending the packet identifier readout in the output FIFO to the memory unit 114, and receiving the corresponding packet data to the traffic outbound interface.
  • the main functions are: Collecting the interface FIFO empty condition, and feeding back to the memory unit 114.
  • the packet identifier is sent according to the FIFO condition of the memory unit 114.
  • the read data received from the memory unit 114 is sent to the outgoing interface FIFO based on the received packet port information.
  • the outbound interface FIFO the role is: The data cache of the sending interface.
  • Step A The packet processor receives the data packet from the upstream device; and enters the traffic interface module 101.
  • Step B The message classification module 102, using the quintuple of the message, the QOS related information constitutes a key value, the query classification policy library 103, and the discarding priority library 104;
  • Step C The message classification module 102 obtains a return value: a classification identifier (or a flow identifier), and discards the priority;
  • Step D The message classification module 102 encapsulates the obtained classification identifier, the flow identifier, and the discarding priority into a packet.
  • the TM description information header is placed before the packet;
  • Step E The congestion avoidance module 105 forms a query key value according to the classified identifier or the flow identifier sent by the received message classification module 102, and queries the text discard/forward label in the congestion avoidance policy library 106;
  • Step F The packet processor congestion avoidance module 105 selects a corresponding forwarding and discarding action according to the packet drop/forward (or drop probability) flag returned by the congestion policy library 106. If it is discarded, discard the current packet and go to step H.
  • Step G If the packet is forwarded, the packet processor passes the packet to be forwarded through the traffic interface module 107. Sent to the downstream traffic management device. Go to step I
  • Step H The message processing flow ends.
  • Step I The traffic interface module 108 of the traffic manager receives the data packet from the upstream packet processing device.
  • Step J The traffic interface module 108 in the traffic manager obtains the TM description information header before the packet, and obtains the classification identifier or the flow identifier. a specific queue, and performing congestion detection according to a threshold configured by the user;
  • Step K The traffic manager congestion avoidance module 110 generates a congestion avoidance policy according to the congestion detection result and the drop priority, and the congestion avoidance policy includes a drop probability function, and
  • the packet processing policy in the congestion policy library 106 in the packet processor is updated, and the packet processing policy includes: a packet discarding/forwarding flag;
  • Step L The traffic manager performs other actions such as traffic policing, traffic shaping, congestion management, and queue scheduling.
  • Step M The traffic manager sends the message to the downstream device through the traffic interface module 112.
  • the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware.
  • the invention can be embodied in the form of one or more computer program products embodied on a computer-usable storage medium (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
  • the traffic manager congestion avoidance module generates a congestion avoidance policy according to the congestion detection result and the discarding priority, and the congestion avoidance policy includes the discard probability function, and updates the packet processor.
  • the packet processing policy in the congestion avoidance policy database includes: packet discarding/forwarding flag, and the packet processor and the traffic manager cooperate to complete the congestion avoidance of the packet.
  • the invention reduces the memory overhead and the access peripheral overhead caused by the packet processor maintaining a large number of queues, and improves the packet processing performance and efficiency.

Abstract

A system for avoiding message congestion includes: a package processor configured to: be connected to a traffic manager, classify, parse, modify and encapsulate a message, and carry out congestion processing according to a congestion strategy received from the traffic manager; and the traffic manager is configured to: carry out congestion detection on the message, generate the congestion strategy and send the same to the package processor. Also disclosed is a corresponding system. The present invention, on the one hand, reduces the memory overhead and periphery access overhead caused by maintaining enormous queues by the package processor; on the other hand, it saves enormous resource consumption by the traffic manager, improves the message processing performance and efficiency, and improves the reliability and stability of the system by way of the feedback mechanism.

Description

报文拥塞避免方法及系统  Message congestion avoiding method and system
技术领域 Technical field
本发明涉及数据通信领域, 尤其涉及一种报文拥塞避免方法及系统。 背景技术  The present invention relates to the field of data communications, and in particular, to a packet congestion avoiding method and system. Background technique
网络发展日新月异,网络设备在技术和性能上的快速增长,在 Intemet(网 络)上承载的 IP业务也逐渐多样化, 丰富的数据、 语音、 视频等综合业务正 蓬勃发展。 随着网络带宽从 10Mbps、 100Mbps, lGbps,10Gbps到 lOOGbps 不断增大, 靠供应商一味地增加带宽、 扩大网络设备的投入越来越不足以满 足要求。 基于端到端的服务质量(Quality of Service, QOS )管理工具, 逐渐 成为供应商的关注焦点。 针对不同客户, 不同业务对网络资源的需求, 提供 不同的服务质量, 例如: 提供专用带宽、 减少报文丟失率、 降低报文传送时 延及时延抖动等。 为此, 通常釆用如流分类和着色、 流量监管、 流量整形、 网络拥塞管理、 网络拥塞避免等技术来实现。  With the rapid development of the network, the rapid growth of technology and performance of network equipment, the IP services carried on the Internet (the network) are gradually diversified, and the rich data, voice, video and other integrated services are booming. As network bandwidth increases from 10 Mbps, 100 Mbps, 1 Gbps, and 10 Gbps to 100 Gbps, it is becoming less and less sufficient for suppliers to increase bandwidth and expand network equipment. Based on end-to-end Quality of Service (QOS) management tools, it has gradually become the focus of attention of suppliers. Different types of services are provided for different customers and different services, such as: providing dedicated bandwidth, reducing packet loss rate, and reducing packet transmission delay and delay jitter. For this reason, technologies such as flow classification and coloring, traffic policing, traffic shaping, network congestion management, and network congestion avoidance are commonly used.
当网络发生拥塞时, 按照传统尾丟弃的处理方法当队列的长度达到规定 的最大长度时所有到来的报文都被丟弃。 对于 TCP报文来说, 如果大量的报 文被丟弃将造成传输控制协议 ( Transmission Control Protocol, TCP )全局同 步, 多个 TCP连接同时进入慢启动, 发向特定队列的报文的流量忽大忽小地 波动, 使线路上的流量总在极少和饱满之间波动。 拥塞避免就是这样一种技 术, 其典型应用是监督网络资源的使用情况, 当检测拥塞有加剧的趋势时, 釆用某种丟弃策略, 主动随机地丟弃报文。 由于随机地丟弃报文将避免使多 个 TCP连接同时降低发送速度, 从而避免了 TCP的全局同步现象。 当某个 TCP连接的报文被丟弃开始减速发送的时候, 其他的 TCP连接仍然有较高的 发送速度。 这样无论什么时候总有 TCP连接在进行较快的发送, 提高了线路 带宽的利用率, 避免了网络过度拥塞。  When the network is congested, all incoming packets are discarded when the length of the queue reaches the specified maximum length according to the traditional tail drop processing method. For a TCP packet, if a large number of packets are discarded, the Transmission Control Protocol (TCP) is globally synchronized. When multiple TCP connections enter the slow start at the same time, the traffic sent to the specified queue is too large. Frequent fluctuations in the ground, so that the flow on the line always fluctuates between very little and full. Congestion avoidance is such a technology. Its typical application is to supervise the use of network resources. When detecting the tendency of congestion, the discarding strategy is adopted to actively discard packets randomly. Since the packets are randomly discarded, multiple TCP connections are prevented from being simultaneously slowed down, thereby avoiding the global synchronization of TCP. When a TCP connection packet is discarded and decelerated, other TCP connections still have a higher transmission speed. In this way, whenever there is always a TCP connection for faster transmission, the utilization of the line bandwidth is improved, and the network is over-congested.
拥塞避免是在流分类的基础上进行的, 主要包括: 丟弃优先级, 拥塞检 测, 拥塞丟弃等。  Congestion avoidance is performed on the basis of traffic classification, including: drop priority, congestion detection, congestion discard, and so on.
丟弃优先级的主要依据有: IP优先级、 差分服务代码点 (Differentiated Services Code Point, DSCP )值和 MPLS EXP ( MPLS: Multi-Protocol Label Switching, 多协议标签交换; EXP: Experiment, 标签实验位)三种。 用户可 以区别设定同一流队列的不同丟弃优先级, 从而当网络发生拥塞时, 实现区 别的丟弃概率。 The main criteria for discarding priorities are: IP precedence, differentiated service code points (Differentiated Services Code Point (DSCP) values and MPLS EXP (MPLS: Multi-Protocol Label Switching, EXP: Experiment, tag experiment bit). The user can distinguish the different discarding priorities of the same flow queue, so that when the network is congested, the discarding probability of the difference is realized.
目前,拥塞检测主要方法有: 尾丟弃( Tail Drop )、 随机早期检测( RED, Random Early Detection )、加权随机早期检测( WRED, Weighted Random Early Detection )等。  Currently, the main methods of congestion detection are: Tail Drop, RED, Random Early Detection, and Weighted Random Early Detection (WRED).
釆用尾丟弃时, 当队列的长度达到规定的最大阔值时所有到来的报文都 将被丟弃。  When the tail is discarded, all incoming packets will be discarded when the queue length reaches the specified maximum threshold.
釆用 RED时, 用户可以设定队列的高低阔值(threshold ) , 当队列的长 度小于低阔值时不丟弃报文; 当队列的长度在低阔值和高阔值之间时开始随 机丟弃报文, 队列的长度越长丟弃的概率越高; 当队列的长度大于高阔值时 丟弃所有的报文。  When RED is used, the user can set the threshold of the queue. When the length of the queue is less than the low value, the packet is not discarded. When the length of the queue is between the low value and the high value, the random start is started. The packet is discarded. The longer the queue is, the higher the probability of discarding. When the length of the queue is greater than the threshold, all packets are discarded.
WRED与 RED的区别在于前者引入 IP优先级、 DSCP值和 MPLS EXP 而对不同优先级的报文提供不同的丟弃概率。  The difference between WRED and RED is that the former introduces IP precedence, DSCP value, and MPLS EXP to provide different discarding probabilities for packets of different priorities.
目前的网络设备上, 拥塞避免主要由两个部件来完成: 包处理器(NP: Network Processer等)和流量管理器 TM(Traffic Manager)„  On current network equipment, congestion avoidance is mainly done by two components: packet processor (NP: Network Processer, etc.) and traffic manager TM (Traffic Manager)
现有拥塞避免主要有两种实现方式: 一种是在流量管理器上实现; 另一 种是由包处理器来完成。  There are two main implementations of existing congestion avoidance: one is implemented on the traffic manager; the other is done by the packet processor.
一种是由包处理器根据用户配置的策略完成报文的分类, 丟弃优先级设 置, 再由流量管理器根据分类的流标识, 丟弃优先级等进行流量监管, 流量 整形, 拥塞避免, 拥塞管理等操作; 另一种则是直接由包处理器完成报文分 类, 流量监管, 流量整形, 拥塞避免, 拥塞管理等全部操作。  The packet processor performs the traffic classification, the traffic shaping, and the congestion avoidance according to the policy of the user. Congestion management and other operations; The other is to complete the packet classification, traffic policing, traffic shaping, congestion avoidance, congestion management and other operations directly by the packet processor.
对于实现方式一存在的主要问题是: 包处理器来完成报文流分类, 流量 管理器进行拥塞避免, 流量管理器位于包处理器的下游。 拥塞丟弃时, 报文 要在流量管理器中丟弃, 相对于报文在包处理器中丟弃来说, 这样就浪费了 一部分资源。  The main problems with implementation one are: the packet processor completes the packet flow classification, the traffic manager performs congestion avoidance, and the traffic manager is located downstream of the packet processor. When congestion is discarded, packets are discarded in the traffic manager, which is a waste of resources compared to packets being discarded in the packet processor.
对于实现方式二存在的主要问题是: 拥塞避免直接在包处理器上进行, 就不光要在在包处理器上完成报文的流分类, 还需要完成报文的拥塞检测, 而报文的拥塞检测就意味着需要在包处理器的软件中实现和维护大量的队 列, 并进行丟弃策略处理。 对于包处理器, 实现和维护大量队列带来了额外 内存的开销, 还要多次访问外设, 而且其性能和效率业务也得不到保证。 发明内容 The main problems with implementation 2 are: Congestion avoidance is done directly on the packet processor. It is not only necessary to complete the traffic classification of the packet on the packet processor, but also to complete the congestion detection of the packet, and the congestion detection of the packet means that a large number of queues need to be implemented and maintained in the software of the packet processor, and Discard policy processing. For packet processors, implementing and maintaining a large number of queues introduces additional memory overhead, multiple access to peripherals, and performance and efficiency services are not guaranteed. Summary of the invention
本发明提供了一种报文拥塞避免方法及系统, 提升了报文处理性能和效 率。  The invention provides a packet congestion avoiding method and system, which improves message processing performance and efficiency.
为解决以上技术问题, 本发明提供了一种报文拥塞避免系统, 包括: 包处理器, 其设置为: 与流量管理器连接, 完成报文的分类、 解析、 修 改、 封装; 根据接收到的所述流量管理器发送的拥塞策略, 进行拥塞处理; 流量管理器, 其设置为: 所述报文的拥塞检测、 所述拥塞策略的生成并 将所述拥塞策略发送给所述包处理器。  To solve the above technical problem, the present invention provides a packet congestion avoidance system, including: a packet processor, configured to: connect with a traffic manager, complete packet classification, parsing, modification, and encapsulation; according to the received The congestion policy sent by the traffic manager performs congestion processing. The traffic manager is configured to: detect congestion of the packet, generate the congestion policy, and send the congestion policy to the packet processor.
优选地, 所述包处理器包括: 报文分类模块、 分类策略库和丟弃优先级 库, 所述报文分类模块设置为: 查询所述分类策略库、 所述丟弃优先级库, 获得分类标识、 丟弃优先级。  Preferably, the packet processor includes: a message classification module, a classification policy library, and a discarding priority library, where the message classification module is configured to: query the classification policy library, the discarding priority library, and obtain Classification ID, drop priority.
优选地, 所述包处理器还包括: 拥塞避免模块和拥塞策略库,  Preferably, the packet processor further includes: a congestion avoidance module and a congestion policy library,
所述拥塞避免模块设置为: 根据接收到的所述报文分类模块发送的分类 标识、 丟弃优先级, 查询所述拥塞策略库, 获得所述拥塞策略。  The congestion avoidance module is configured to: query the congestion policy database to obtain the congestion policy according to the received classification identifier and the drop priority sent by the packet classification module.
优选地, 所述包处理器中的拥塞策略库设置为: 接收所述流量管理器反 馈的所述拥塞策略。  Preferably, the congestion policy library in the packet processor is configured to: receive the congestion policy that is sent by the traffic manager.
优选地, 所述流量管理器中的拥塞避免模块设置为: 反馈所述拥塞策略 给所述包处理器中的拥塞策略库。  Preferably, the congestion avoidance module in the traffic manager is configured to: feed back the congestion policy to a congestion policy library in the packet processor.
优选地, 所述流量管理器中的拥塞避免模块设置为: 根据报文队列的拥 塞检测结果, 生成拥塞避免策略。  Preferably, the congestion avoidance module in the traffic manager is configured to: generate a congestion avoidance policy according to a congestion detection result of the packet queue.
为解决以上技术问题, 本发明还提供了一种报文拥塞避免方法, 包括: 流量管理器根据报文队列的拥塞检测结果、 丟弃优先级, 生成拥塞避免 策略并反馈给包处理器; To solve the above technical problem, the present invention further provides a packet congestion avoidance method, including: the traffic manager generates congestion avoidance according to a congestion detection result of a packet queue and a drop priority. Policy and feedback to the packet processor;
所述包处理器根据接收到的所述拥塞避免策略, 进行拥塞处理。  The packet processor performs congestion processing according to the received congestion avoidance policy.
优选地, 所述包处理器包括: 报文分类模块、 分类策略库和丟弃优先级 库,  Preferably, the packet processor includes: a message classification module, a classification policy library, and a drop priority library,
所述报文分类模块查询所述分类策略库、 所述丟弃优先级库, 获得分类 标识、 丟弃优先级。  The packet classification module queries the classification policy library, the discarding priority database, and obtains a classification identifier and a discarding priority.
优选地, 所述包处理器还包括: 拥塞避免模块和拥塞策略库,  Preferably, the packet processor further includes: a congestion avoidance module and a congestion policy library,
所述拥塞避免模块根据接收到的所述报文分类模块发送的分类标识、 丟 弃优先级, 查询所述拥塞策略库, 获得所述拥塞策略。  The congestion avoidance module queries the congestion policy database according to the received classification identifier and the discarding priority sent by the packet classification module, and obtains the congestion policy.
优选地, 所述包处理器中的拥塞策略库接收所述流量管理器反馈的所述 拥塞策略; 其中, 所述流量管理器中的拥塞避免模块反馈所述拥塞策略给所 述包处理器中的拥塞策略库。  Preferably, the congestion policy library in the packet processor receives the congestion policy fed back by the traffic manager; wherein a congestion avoidance module in the traffic manager feeds back the congestion policy to the packet processor Congestion policy library.
优选地, 所述流量管理器中的拥塞避免模块根据所述报文队列的拥塞检 测结果, 生成拥塞避免策略。  Preferably, the congestion avoidance module in the traffic manager generates a congestion avoidance policy according to the congestion detection result of the packet queue.
与现有技术相比较, 本发明中流量管理器拥塞避免模块根据拥塞检测结 果、 和丟弃优先级生成拥塞避免策略, 拥塞避免策略中包括丟弃概率函数, 并更新包处理器中的拥塞避免策略库中的报文处理策略, 报文处理策略中包 括: 报文丟弃 /转发标记, 由包处理器和流量管理器协同完成报文的拥塞避免 工作。 附图概述  Compared with the prior art, the traffic manager congestion avoidance module generates a congestion avoidance policy according to the congestion detection result and the drop priority, the congestion avoidance policy includes a drop probability function, and the congestion avoidance in the packet processor is updated. The packet processing policy in the policy library, the packet processing policy includes: packet discarding/forwarding flag, and the packet processor and the traffic manager cooperate to complete the congestion avoidance of the packet. BRIEF abstract
此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中:  The drawings are intended to provide a further understanding of the invention, and are intended to be illustrative of the invention. In the drawing:
图 1是本发明拥塞避免系统的结构示意图;  1 is a schematic structural view of a congestion avoidance system of the present invention;
图 2是本发明拥塞避免系统的流程图。 本发明的较佳实施方式 2 is a flow chart of the congestion avoidance system of the present invention. Preferred embodiment of the invention
下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。  The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
本发明拥塞避免的系统包括:  The system for congestion avoidance of the present invention includes:
包处理器, 用以完成报文的分类, 解析, 修改, 封装, 以及访问各种数 据库, 获取相关信息;  a packet processor for classifying, parsing, modifying, encapsulating, and accessing various data packets to obtain related information;
流量管理器, 用以完成报文的拥塞检测和标记, 其性能应与包处理器匹 配;  The traffic manager, which performs congestion detection and marking of packets, and its performance should match the packet processor;
分类策略库, 用以向包处理器报文分类模块提供报文分类的策略, 位于 存储器件上;  a classification strategy library, which is used to provide a packet classification policy to the packet processor message classification module, located on the storage device;
丟弃优先级库, 用以保存报文分类后的丟弃优先级配置信息, 供流量管 理器使用, 位于存储器件上;  Drop the priority library to save the discarding priority configuration information after the packet is classified, and use it on the storage device.
拥塞避免策略库, 用以向包处理器中的拥塞避免模块提供监管的策略和 状态信息, 位于存储器件上。  A congestion avoidance policy library for providing supervisory policy and status information to the congestion avoidance module in the packet processor is located on the storage device.
下面结合附图对本发明拥塞避免的系统和实现方法进行说明。  The system and implementation method of the congestion avoidance of the present invention will be described below with reference to the accompanying drawings.
图 1是本发明本发明拥塞避免系统的结构示意图,本发明的包处理器(例 如, 网络处理器) 包括:  1 is a schematic structural diagram of a congestion avoidance system of the present invention, and a packet processor (for example, a network processor) of the present invention includes:
流量接口模块 101 , 包括多个物理接口以连接不同的网络, 是网络数据 包进出芯片的数据通道。  The traffic interface module 101 includes multiple physical interfaces to connect to different networks, and is a data channel for network packets to enter and exit the chip.
在数据接收方向上, 把从某个物理接口收到的数据帧去除通信接口的封 装组成数据包, 连同数据包的状态信息一同存入进出数据包緩存中; 在数据 发送方向上, 根据进出数据包緩存中的状态信息, 取出数据包, 加上通信接 口封装, 在相应的物理接口发出。 物理接口指具体的数据通信接口实体, 包 括以太网接口、 POS接口或者其它能够用于交换数据的接口。  In the data receiving direction, the data frame received from a physical interface is removed from the encapsulation data packet of the communication interface, and is stored in the inbound and out data packet buffer together with the status information of the data packet; in the data transmission direction, according to the inbound and outbound data. The status information in the packet cache, the data packet is fetched, and the communication interface encapsulation is issued at the corresponding physical interface. A physical interface refers to a specific data communication interface entity, including an Ethernet interface, a POS interface, or other interface that can be used to exchange data.
报文分类模块 102, 依据分类策略库 103进行分类。  The message classification module 102 sorts according to the classification policy library 103.
用户配置的分类策略库 103是块分类的依据。 根据用户配置的策略, 配 合才艮文 Mac地址、 内外层 802.1p、 内外层 Vlan ID、 MPLS Exp、 IP Tos、 5元 组、 端口号、 QPPB GroupID等信息, 可得到报文唯一对应的一个分类标识, 也可称为流标识, 即 FlowID。 当发送拥塞时, 要支持对队列报文进行 WRED 丟弃处理, 而 WRED处理的依据并不光是流标识, 还需要报文的丟弃优先级 ( DP )。 为此, 用户还要配置一张 WRED丟弃优先级库 104。 依据该配置信 息, 本模块可查找可得到两位的弃优先级(DP )信息 The user-configured classification policy library 103 is the basis for the block classification. According to the user-configured policy, with the Mac address, inner and outer 802.1p, inner and outer Vlan ID, MPLS Exp, IP Tos, 5-tuple, port number, QPPB GroupID, etc., a unique correspondence of the message can be obtained. Logo, It can also be called a stream ID, which is FlowID. When the congestion is sent, the WRED discarding of the queue packets is supported. The WRED processing is based not only on the flow identifier but also on the discarding priority (DP) of the packet. To do this, the user also configures a WRED drop priority library 104. Based on this configuration information, this module can find the discard priority (DP) information that can get two bits.
拥塞避免模块 105, 依据报文分类模块 102 的分类结果即流标识 ( FlowID ) 、 丟弃优先级库 104中的丟弃优先级(DP )等信息, 进行拥塞避 免。  The congestion avoidance module 105 performs congestion avoidance according to the classification result of the packet classification module 102, that is, the flow identifier (FlowID) and the discard priority level (DP) in the discarding priority pool 104.
拥塞避免模块 105,依据报文分类模块 102 的分类结果中的流标识 ( FlowID )和丟弃优先级(DP )等信息, 查询拥塞策略库 106, 返回策略信 息(例如: 报文丟弃 /转发标记、 丟弃概率) , 根据策略信息(报文丟弃 /转发 标记, 或者丟弃概率) , 选择执行报文的转发, 丟弃动作。  The congestion avoidance module 105 queries the congestion policy library 106 according to the information such as the flow identifier (FlowID) and the discarding priority (DP) in the classification result of the packet classification module 102, and returns the policy information (for example: packet discarding/forwarding) Marking, discarding probability), according to the policy information (message drop/forward flag, or drop probability), choose to perform packet forwarding and discarding actions.
流量接口模块 107, 同流量接口模块 101 , 只不过用在报文发送侧。  The traffic interface module 107, the same traffic interface module 101, is only used on the message sending side.
本发明的流量管理器 (或称 TM ) 包括:  The traffic manager (or TM) of the present invention includes:
流量接口模块 108。 内部的主要子模块有: 一、 接收控制器: 作用是接 收总线数据, 内容包括: 信号转换, 检测用户侧数据, 并过滤不符合要求的 数据, 如错包等。 对数据包进行分析, 区别高优先级协议包和一般数据包, 分别送往高优先级协议包直通先进先出队列 (FIFO )和一般接收接口 FIFO。 收集总线的流控信息, 根据接收接口 FIFO状态对上级模块进行流控等。 二、 接口先进先出队列 FIFO, 作用是进行输入接口的数据緩存。 接口 FIFO必须 能够接收大于最大包长的数据, 当 FIFO内保存了一个完整包时, 向流量监管 模块发送指示。  Flow Interface Module 108. The main internal sub-modules are: 1. Receiver controller: The function is to receive bus data, including: signal conversion, detecting user-side data, and filtering data that does not meet the requirements, such as error packets. The data packet is analyzed, and the high priority protocol packet and the general data packet are distinguished and sent to the high priority protocol packet through the first in first out queue (FIFO) and the general receiving interface FIFO. The flow control information of the bus is collected, and the upper module is flow-controlled according to the state of the receiving interface FIFO. Second, the interface first-in-first-out queue FIFO, the role is to perform data buffering of the input interface. The interface FIFO must be able to receive data larger than the maximum packet length. When a complete packet is stored in the FIFO, an indication is sent to the traffic policing module.
流量监管模块(Policer ) 109。 流量监管模块负责进行流量监管计算。 对 于正常包则正常处理, 对于丟弃包则直接将其送往管理模块 113 , 不进行操 作。 当流量监管模块 109配置为丟弃模式, 则流量监管模块 109在进行计算 后, 将丟弃 /通过的结果连同包标识符一起送往管理模块 113。 当流量监管配 置为着色模式, 则根据包配置的 "色盲 /色敏感" 对包标识符进行计算。 详细 算法请参考 RFC2697 ( A Single Rate Three Color Marker, 单速三色标记)或 RFC2698 ( A Two Rate Three Color Marker, 双速三色标记) 。 按结果爹改包 标识符的着色信息, 并将着色结果送往存储器单元 114。  Traffic policing module (Policer) 109. The traffic policing module is responsible for traffic policing calculations. Normal processing is performed for normal packets, and discarded packets are sent directly to management module 113 without operation. When the traffic policing module 109 is configured to drop mode, the traffic policing module 109 sends the result of the drop/pass along with the packet identifier to the management module 113 after the calculation. When the traffic policing is configured as a shading mode, the packet identifier is calculated based on the "color blind/color sensitive" configuration of the packet. For detailed algorithms, please refer to RFC2697 (A Single Rate Three Color Marker) or RFC2698 (A Two Rate Three Color Marker). The coloring information of the packet identifier is falsified by the result, and the coloring result is sent to the memory unit 114.
拥塞避免模块 110。 作用为实现尾部丟弃、 WRED或者 ENC拥塞避免, 其主要功能为: 根据报文队列状态信息, 决定数据包是否丟弃。 在 ECN模式 下进行 ECN计算, 并给出结果。 在 WRED模式下进行 WRED算法计算, 并 给出丟弃判断。 在尾部丟弃模式下根据队列深度进行数据包的丟弃判断。 在 计算结束后将判断结果和包标识符信息, 反馈给拥塞避免策略库 103。 Congestion avoidance module 110. The role is to achieve tail drop, WRED or ENC congestion avoidance, Its main functions are: According to the message queue status information, it is determined whether the data packet is discarded. The ECN calculation is performed in ECN mode and the results are given. The WRED algorithm is calculated in WRED mode, and the discard judgment is given. In the tail drop mode, the packet discarding judgment is performed according to the queue depth. The judgment result and the packet identifier information are fed back to the congestion avoidance policy library 103 after the calculation is completed.
队列调度模块 111。 作用为时隙有效信号产生、 回压信号产生、 包标识 符队列管理、 调度、 整形、 回压控制、 提供与配置表项管理模块的接口, 用 于进行参数配置等。  Queue scheduling module 111. The function is time slot effective signal generation, back pressure signal generation, packet identifier queue management, scheduling, shaping, back pressure control, providing an interface with the configuration table item management module, and performing parameter configuration.
流量接口模块 112。 模块内部的主要子模块有: 一、 包数据读出模块, 主要负责将输出 FIFO中的包标识符读出送往存储器单元 114, 并接收相应的 包数据送往流量出接口。 主要功能有: 收集出接口 FIFO空满情况, 反馈给存 储器单元 114。 根据存储器单元 114的 FIFO情况发送包标识符。 根据收到的 数据包端口信息, 将从存储器单元 114接收到的读出数据送往出接口 FIFO。 二、 出接口 FIFO, 作用为: 进行发送接口的数据緩存。  Traffic interface module 112. The main sub-modules inside the module are as follows: 1. The packet data reading module is mainly responsible for sending the packet identifier readout in the output FIFO to the memory unit 114, and receiving the corresponding packet data to the traffic outbound interface. The main functions are: Collecting the interface FIFO empty condition, and feeding back to the memory unit 114. The packet identifier is sent according to the FIFO condition of the memory unit 114. The read data received from the memory unit 114 is sent to the outgoing interface FIFO based on the received packet port information. Second, the outbound interface FIFO, the role is: The data cache of the sending interface.
图 2是本发明拥塞避免系统的流程图, 数据处理方法流程如下: 步骤 A. 包处理器从上游器件接收数据包; 进入流量接口模块 101。 步骤 B. 报文分类模块 102, 利用报文的五元组, QOS相关信息组成键 值, 查询分类策略库 103 , 丟弃优先级库 104; 2 is a flow chart of the congestion avoidance system of the present invention. The data processing method is as follows: Step A. The packet processor receives the data packet from the upstream device; and enters the traffic interface module 101. Step B. The message classification module 102, using the quintuple of the message, the QOS related information constitutes a key value, the query classification policy library 103, and the discarding priority library 104;
步骤 C. 报文分类模块 102获取返回值: 分类标识(或称流标识) , 丟 弃优先级;  Step C. The message classification module 102 obtains a return value: a classification identifier (or a flow identifier), and discards the priority;
步骤 D. 报文分类模块 102把得到的分类标识或流标识、 丟弃优先级, 封装成报文 TM描述信息头放在报文前;  Step D. The message classification module 102 encapsulates the obtained classification identifier, the flow identifier, and the discarding priority into a packet. The TM description information header is placed before the packet;
步骤 E. 拥塞避免模块 105根据接收的报文分类模块 102发送的分类标 识或流标识, 组成查询键值, 查询拥塞避免策略库 106中的 文丟弃 /转发标 记;  Step E. The congestion avoidance module 105 forms a query key value according to the classified identifier or the flow identifier sent by the received message classification module 102, and queries the text discard/forward label in the congestion avoidance policy library 106;
步骤 F. 包处理器拥塞避免模块 105, 根据拥塞策略库 106返回的报文丟 弃 /转发(或者丟弃概率)标记选择对应的转发, 丟弃动作。 若是丟弃, 则丟 弃当前报文, 转步骤 H。  Step F. The packet processor congestion avoidance module 105 selects a corresponding forwarding and discarding action according to the packet drop/forward (or drop probability) flag returned by the congestion policy library 106. If it is discarded, discard the current packet and go to step H.
步骤 G. 若是转发, 包处理器将需要转发的报文通过流量接口模块 107, 发送到下游流量管理器件。 转到步骤 I Step G. If the packet is forwarded, the packet processor passes the packet to be forwarded through the traffic interface module 107. Sent to the downstream traffic management device. Go to step I
步骤 H. 报文处理流程结束。  Step H. The message processing flow ends.
步骤 I. 流量管理器的流量接口模块 108从上游包处理器件接收数据包; 步骤 J.流量管理器中的流量接口模块 108获取报文前的 TM描述信息头, 得到分类标识或流标识, 入特定队列, 并根据用户配置的阀值进行拥塞检测; 步骤 K. 流量管理器拥塞避免模块 110根据拥塞检测结果、 和丟弃优先 级生成拥塞避免策略, 拥塞避免策略中包括丟弃概率函数, 并更新包处理器 中的拥塞策略库 106中的报文处理策略, 报文处理策略中包括: 报文丟弃 /转 发标记;  Step I. The traffic interface module 108 of the traffic manager receives the data packet from the upstream packet processing device. Step J: The traffic interface module 108 in the traffic manager obtains the TM description information header before the packet, and obtains the classification identifier or the flow identifier. a specific queue, and performing congestion detection according to a threshold configured by the user; Step K. The traffic manager congestion avoidance module 110 generates a congestion avoidance policy according to the congestion detection result and the drop priority, and the congestion avoidance policy includes a drop probability function, and The packet processing policy in the congestion policy library 106 in the packet processor is updated, and the packet processing policy includes: a packet discarding/forwarding flag;
步骤 L. 流量管理器执行其它动作如流量监管, 流量整形, 拥塞管理, 队列调度。  Step L. The traffic manager performs other actions such as traffic policing, traffic shaping, congestion management, and queue scheduling.
步骤 M. 流量管理器将报文通过流量接口模块 112发送到下游器件。 本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或 计算机程序产品。 因此, 本发明可釆用完全硬件实施例、 完全软件实施例、 或结合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个或多个 其中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器和光学存储器等 )上实施的计算机程序产品的形式。  Step M. The traffic manager sends the message to the downstream device through the traffic interface module 112. Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can be embodied in the form of one or more computer program products embodied on a computer-usable storage medium (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权利要 求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。 The spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and variations of the inventions
工业实用性 与现有技术相比较, 本发明中流量管理器拥塞避免模块根据拥塞检测结 果、 和丟弃优先级生成拥塞避免策略, 拥塞避免策略中包括丟弃概率函数, 并更新包处理器中的拥塞避免策略库中的报文处理策略, 报文处理策略中包 括: 报文丟弃 /转发标记, 由包处理器和流量管理器协同完成报文的拥塞避免 工作。 Industrial Applicability Compared with the prior art, the traffic manager congestion avoidance module generates a congestion avoidance policy according to the congestion detection result and the discarding priority, and the congestion avoidance policy includes the discard probability function, and updates the packet processor. The packet processing policy in the congestion avoidance policy database includes: packet discarding/forwarding flag, and the packet processor and the traffic manager cooperate to complete the congestion avoidance of the packet.
与现有拥塞避免方式一相比较, 拥塞丟弃时, 报文一般情况下不会在流 量管理器中执行丟弃(除非 TM报文队列满等特殊情况) 。 而在上游包处理 器中就执行了丟弃动作, 丟弃报文不必再转发到 TM进行处理, 节省了 TM 资源。 与方式二相比较, 本发明减少了包处理器维护大量队列带来了内存的 开销和访问外设开销, 提升了报文处理性能和效率。 Compared with the existing congestion avoidance mode, when the congestion is discarded, the message is generally not in the flow. Discarding is performed in the volume manager (unless the special case of the TM message queue is full). In the upstream packet processor, the discarding action is performed, and the discarded packet does not need to be forwarded to the TM for processing, which saves the TM resource. Compared with the second method, the invention reduces the memory overhead and the access peripheral overhead caused by the packet processor maintaining a large number of queues, and improves the packet processing performance and efficiency.

Claims

权 利 要 求 书 Claim
1、 一种报文拥塞避免系统, 该系统包括: 1. A message congestion avoidance system, the system comprising:
包处理器, 其设置为: 与流量管理器连接, 完成报文的分类、 解析、 修 改、 封装; 根据接收到的所述流量管理器发送的拥塞策略, 进行拥塞处理; 流量管理器, 其设置为: 完成所述报文的拥塞检测、 所述拥塞策略的生 成并将所述拥塞策略发送给所述包处理器。  a packet processor, configured to: connect with the traffic manager, complete packet classification, parsing, modification, and encapsulation; perform congestion processing according to the received congestion policy sent by the traffic manager; traffic manager, setting And completing: performing congestion detection of the packet, generating the congestion policy, and sending the congestion policy to the packet processor.
2、 如权利要求 1所述的系统,其中,所述包处理器包括:报文分类模块、 分类策略库和丟弃优先级库, 所述 文分类模块设置为: 查询所述分类策略 库、 所述丟弃优先级库, 获得分类标识、 丟弃优先级。 2. The system of claim 1, wherein the packet processor comprises: a message classification module, a classification policy library, and a drop priority library, wherein the text classification module is configured to: query the classification policy library, The discarding priority library obtains a classification identifier and a discarding priority.
3、 如权利要求 2所述的系统, 其中, 所述包处理器还包括: 拥塞避免模 块和拥塞策略库, 所述拥塞避免模块设置为: 根据接收到的所述报文分类模 块发送的分类标识、 丟弃优先级, 查询所述拥塞策略库, 获得所述拥塞策略。 The system of claim 2, wherein the packet processor further comprises: a congestion avoidance module and a congestion policy library, wherein the congestion avoidance module is configured to: classify according to the received message classification module Identifying, discarding the priority, querying the congestion policy database, and obtaining the congestion policy.
4、 如权利要求 1或 3所述的系统,其中, 所述包处理器中的拥塞策略库 设置为: 接收所述流量管理器反馈的所述拥塞策略。 4. The system of claim 1 or 3, wherein the congestion policy library in the packet processor is configured to: receive the congestion policy fed back by the traffic manager.
5、 如权利要求 4所述的系统,其中, 所述流量管理器中的拥塞避免模块 设置为: 反馈所述拥塞策略给所述包处理器中的拥塞策略库。 5. The system of claim 4, wherein the congestion avoidance module in the traffic manager is configured to: feed back the congestion policy to a congestion policy library in the packet processor.
6、 如权利要求 5所述的系统,其中, 所述流量管理器中的拥塞避免模块 还设置为: 根据报文队列的拥塞检测结果, 生成拥塞避免策略。 The system of claim 5, wherein the congestion avoidance module in the traffic manager is further configured to: generate a congestion avoidance policy according to a congestion detection result of the message queue.
7、 一种 ^艮文拥塞避免方法, 该方法包括: 7. A method for congestion avoidance, the method comprising:
流量管理器根据报文队列的拥塞检测结果、 丟弃优先级, 生成拥塞避免 策略并反馈给包处理器;  The traffic manager generates a congestion avoidance policy according to the congestion detection result of the packet queue and the drop priority, and feeds back to the packet processor.
所述包处理器根据接收到的所述拥塞避免策略, 进行拥塞处理。  The packet processor performs congestion processing according to the received congestion avoidance policy.
8、 如权利要求 7所述的方法, 其中,  8. The method of claim 7, wherein
所述包处理器包括: 报文分类模块、 分类策略库和丟弃优先级库, 所述报文分类模块查询所述分类策略库、 所述丟弃优先级库, 获得分类 标识、 丟弃优先级。 The packet processor includes: a message classification module, a classification policy library, and a drop priority library, wherein the message classification module queries the classification policy library, the discarding priority database, and obtains a classification. Identify, discard the priority.
9、 如权利要求 7所述的方法, 其中,  9. The method of claim 7, wherein
所述包处理器还包括: 拥塞避免模块和拥塞策略库,  The packet processor further includes: a congestion avoidance module and a congestion policy library,
所述拥塞避免模块根据接收到的所述报文分类模块发送的分类标识、 丟 弃优先级, 查询所述拥塞策略库, 获得所述拥塞策略。  The congestion avoidance module queries the congestion policy database according to the received classification identifier and the discarding priority sent by the packet classification module, and obtains the congestion policy.
10、 如权利要求 7或 9所述的方法, 其中,  10. The method according to claim 7 or 9, wherein
所述包处理器中的拥塞策略库接收所述流量管理器反馈的所述拥塞策 略; 其中, 所述流量管理器中的拥塞避免模块反馈所述拥塞策略给所述包处 理器中的拥塞策略库。  The congestion policy library in the packet processor receives the congestion policy fed back by the traffic manager; wherein a congestion avoidance module in the traffic manager feeds back the congestion policy to a congestion policy in the packet processor Library.
11、 如权利要求 10所述的方法, 其中,  11. The method of claim 10, wherein
所述流量管理器中的拥塞避免模块根据所述报文队列的拥塞检测结果生 成拥塞避免策略。  The congestion avoidance module in the traffic manager generates a congestion avoidance policy according to the congestion detection result of the message queue.
PCT/CN2011/080049 2010-11-18 2011-09-22 Method and system for avoiding message congestion WO2012065477A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010105491942A CN101984608A (en) 2010-11-18 2010-11-18 Method and system for preventing message congestion
CN201010549194.2 2010-11-18

Publications (1)

Publication Number Publication Date
WO2012065477A1 true WO2012065477A1 (en) 2012-05-24

Family

ID=43641779

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/080049 WO2012065477A1 (en) 2010-11-18 2011-09-22 Method and system for avoiding message congestion

Country Status (2)

Country Link
CN (1) CN101984608A (en)
WO (1) WO2012065477A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989233A (en) * 2017-06-05 2018-12-11 华为技术有限公司 Congestion management and device
US10291539B2 (en) 2016-09-22 2019-05-14 Oracle International Corporation Methods, systems, and computer readable media for discarding messages during a congestion event
US11102138B2 (en) 2019-10-14 2021-08-24 Oracle International Corporation Methods, systems, and computer readable media for providing guaranteed traffic bandwidth for services at intermediate proxy nodes
US11425598B2 (en) 2019-10-14 2022-08-23 Oracle International Corporation Methods, systems, and computer readable media for rules-based overload control for 5G servicing

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984608A (en) * 2010-11-18 2011-03-09 中兴通讯股份有限公司 Method and system for preventing message congestion
CN102170663B (en) * 2011-05-23 2014-03-05 迈普通信技术股份有限公司 3G (The Third Generation Telecommunication)-based method and equipment for guaranteeing service quality in real-time transmission service
CN102223311A (en) * 2011-07-13 2011-10-19 华为数字技术有限公司 Queue scheduling method and device
CN102325092B (en) * 2011-10-27 2014-05-07 杭州华三通信技术有限公司 Message processing method and equipment
EP2888842A4 (en) * 2012-08-21 2016-03-09 Hewlett Packard Development Co Congestion notification in a network
CN104243349B (en) * 2013-06-21 2018-05-04 中兴通讯股份有限公司 Method for dispatching message and device
CN104426796A (en) * 2013-08-21 2015-03-18 中兴通讯股份有限公司 Congestion avoiding method and apparatus of router
CN105391567B (en) * 2014-09-05 2019-05-24 华为技术有限公司 Traffic management implementation method, device and the network equipment
CN105959242B (en) * 2015-08-21 2019-03-15 杭州迪普科技股份有限公司 A kind of file transmitting method and device
CN107426111A (en) * 2017-05-27 2017-12-01 东南大学 Hardware achievable jamming control method and device based on wred algorithm
CN111108728B (en) * 2017-09-29 2022-11-25 华为技术有限公司 Method and device for processing message
CN107689901B (en) * 2017-11-13 2020-12-18 锐捷网络股份有限公司 Method and device for monitoring traffic message flow
CN110262878B (en) * 2019-05-06 2024-03-08 平安科技(深圳)有限公司 Timed task processing method, device, equipment and computer readable storage medium
CN111404826B (en) * 2020-03-23 2022-04-22 苏州盛科通信股份有限公司 Flow planning method and device based on output port feedback
CN111953619B (en) * 2020-08-07 2022-05-13 苏州浪潮智能科技有限公司 Method, system, equipment and medium for shunting message based on DSCP
CN115277591B (en) * 2022-08-04 2023-11-07 深圳云豹智能有限公司 Message processing circuit, method, chip and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035078A (en) * 2007-04-13 2007-09-12 中国科学院软件研究所 Token-based Internet traffic control method
CN101060521A (en) * 2006-04-18 2007-10-24 华为技术有限公司 Information packet filtering method and network firewall
CN101170488A (en) * 2006-10-25 2008-04-30 华为技术有限公司 Service network congestion control method and device
CN101667940A (en) * 2009-09-25 2010-03-10 中兴通讯股份有限公司 System and method for policing on message
CN101984608A (en) * 2010-11-18 2011-03-09 中兴通讯股份有限公司 Method and system for preventing message congestion

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008227917A (en) * 2007-03-13 2008-09-25 Hitachi Ltd Communication system and router
CN101222431B (en) * 2008-01-23 2011-07-13 中兴通讯股份有限公司 Cable fastener device with strong service quality function and its design method
CN101222432B (en) * 2008-01-23 2011-08-24 中兴通讯股份有限公司 Resource accepting and control method
CN101616097B (en) * 2009-07-31 2012-05-23 中兴通讯股份有限公司 Method and system for managing output port queue of network processor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060521A (en) * 2006-04-18 2007-10-24 华为技术有限公司 Information packet filtering method and network firewall
CN101170488A (en) * 2006-10-25 2008-04-30 华为技术有限公司 Service network congestion control method and device
CN101035078A (en) * 2007-04-13 2007-09-12 中国科学院软件研究所 Token-based Internet traffic control method
CN101667940A (en) * 2009-09-25 2010-03-10 中兴通讯股份有限公司 System and method for policing on message
CN101984608A (en) * 2010-11-18 2011-03-09 中兴通讯股份有限公司 Method and system for preventing message congestion

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10291539B2 (en) 2016-09-22 2019-05-14 Oracle International Corporation Methods, systems, and computer readable media for discarding messages during a congestion event
CN108989233A (en) * 2017-06-05 2018-12-11 华为技术有限公司 Congestion management and device
CN108989233B (en) * 2017-06-05 2021-10-19 华为技术有限公司 Congestion management method and device
US11102138B2 (en) 2019-10-14 2021-08-24 Oracle International Corporation Methods, systems, and computer readable media for providing guaranteed traffic bandwidth for services at intermediate proxy nodes
US11425598B2 (en) 2019-10-14 2022-08-23 Oracle International Corporation Methods, systems, and computer readable media for rules-based overload control for 5G servicing

Also Published As

Publication number Publication date
CN101984608A (en) 2011-03-09

Similar Documents

Publication Publication Date Title
WO2012065477A1 (en) Method and system for avoiding message congestion
US7385985B2 (en) Parallel data link layer controllers in a network switching device
US7872973B2 (en) Method and system for using a queuing device as a lossless stage in a network device in a communications network
US9674102B2 (en) Methods and network device for oversubscription handling
US20040264472A1 (en) Method and system for open-loop congestion control in a system fabric
US9590910B1 (en) Methods and apparatus for handling multicast packets in an audio video bridging (AVB) network
US8189463B2 (en) Method for realizing backpressure of masses of ports and device thereof
WO2011012023A1 (en) Method and system for managing output port queue of network processor
JP2004522337A (en) Congestion management in computer networks
WO2008104100A1 (en) An apparatus and a method for realizing flow control based on rate restrict for mstp device
JP2002044139A (en) Router and priority control method used for it
US11223568B2 (en) Packet processing method and apparatus
US8787160B2 (en) Method, apparatus, and system for judging path congestion
EP1551138B1 (en) Parallel data link layer controllers providing traffic flow control in a network switching device
WO2020155185A1 (en) Message scheduling method, scheduler, network device and network system
KR20130093702A (en) Packet transport system and traffic management method thereof
US7698412B2 (en) Parallel data link layer controllers in a network switching device
WO2016150020A1 (en) Scheduling flow identifier-based packet scheduling method and device
WO2022028342A1 (en) Method for processing congestion flow and device
WO2014000467A1 (en) Method for adjusting bandwidth in network virtualization system
WO2023123104A1 (en) Message transmission method and network device
CN100450078C (en) Method and system of handling queue QoS
WO2023207461A1 (en) Congestion flow identification method and apparatus, device, and computer readable storage medium
WO2023207628A1 (en) Packet transmission method and packet forwarding device
Pahlevanzadeh et al. New approach for flow control using PAUSE frame management

Legal Events

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

Ref document number: 11841015

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11841015

Country of ref document: EP

Kind code of ref document: A1