WO2008119241A1 - A method for controlling the message channels of the main-secondary multi-processor system - Google Patents

A method for controlling the message channels of the main-secondary multi-processor system Download PDF

Info

Publication number
WO2008119241A1
WO2008119241A1 PCT/CN2008/000530 CN2008000530W WO2008119241A1 WO 2008119241 A1 WO2008119241 A1 WO 2008119241A1 CN 2008000530 W CN2008000530 W CN 2008000530W WO 2008119241 A1 WO2008119241 A1 WO 2008119241A1
Authority
WO
WIPO (PCT)
Prior art keywords
state
idle rate
queue
message
packets
Prior art date
Application number
PCT/CN2008/000530
Other languages
French (fr)
Chinese (zh)
Inventor
Qizhi Liu
Fang Xu
Original Assignee
Maipu Communication Technology Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co., Ltd. filed Critical Maipu Communication Technology Co., Ltd.
Publication of WO2008119241A1 publication Critical patent/WO2008119241A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/6285Provisions for avoiding starvation of low priority queues
    • 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/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
    • H04L47/323Discarding or blocking control packets, e.g. ACK packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling

Definitions

  • the present invention relates to a router technology employing a master-slave multiprocessor in a communication system, and more particularly to control of a message channel in a router.
  • the slave processor In a router with a master-slave multiprocessor, the slave processor is generally used for message forwarding, and the main processor performs control and special message processing.
  • a large number of packets need to be transmitted, such as link control packets, local routing protocol packets, and IP forwarding packets lacking fast forwarding records.
  • Special messages that are strictly checked by the firewall function, and so on. If the message channel is not handled well, congestion may occur and the system may not operate properly. For example, due to the high-speed interface, a large number of packets on the low-speed interface, such as keepalives, are lost. Due to malicious attacks, a large number of packets flood the main processor, causing the main processor to fail to work properly and routing.
  • One method is to adopt a priority queue method, that is, classify packets according to type, and then enter queues of different priority levels, and schedule them according to queue priority. This method can ensure that important packets are enqueued, but may appear. The low priority queue is starved to death.
  • Another method is to poll the scheduling according to the receiving interface into different queues. This method ensures that the packets of the low-speed interface are not squeezed by the high-speed interface. However, if there are many low-speed interfaces, the polling itself is more resource-consuming. The performance of the high-speed interface is degraded. At the same time, the packets that need to be guaranteed by the same interface may be obscured by other large packets.
  • the technical problem to be solved by the present invention is to provide a message channel control between a master-slave multiprocessor master-slave processor, which is disadvantageous in that the prior art is prone to exhaustion of processor resources and low-priority queues are starved to death. method.
  • the present invention solves the technical problem, and adopts a technical solution, which is a message channel control method of a master-slave multiprocessor system, which is characterized in that: according to a channel queue idle rate q, system state switching is performed; in different system states, Adjust the system policy to discard packets before the channel is congested.
  • a Set the threshold of the idle rate q in the system state machine: ql>q2>q3>q4; b.
  • the message forwarding is not restricted, the system is defined as a free state; c when the system is in the free state, check The current idle rate of the queue.
  • the idle rate is q ⁇ q2, the system is defined as a critical state;
  • the system is defined as the limit state, and the first adjustment period is calculated, and the following steps are performed;
  • the system determines a default receiving ratio, and adjusts the default ratio according to the network condition captured by the critical state as the initial receiving ratio; at the end of each subsequent period, adjusts the proportional value according to the network traffic change. ;
  • Each interface adjusts its state according to the assigned receiving ratio and the condition of receiving the message
  • Each interface processes the packet according to its different status: If the idle state is lower than q4, the interface is in the discard state and the packets are discarded.
  • the idle rate q is defined as: the ratio of the idle length of the current queue to the total length of the queue.
  • the beneficial effects of the present invention are to avoid the occurrence of congestion from the mechanism.
  • the high-speed interface When the high-speed interface is heavily filled, the low-speed interface will not lose the keep-alive packet, causing the link to be disconnected; ensuring that the queue does not continue to be full, effectively ensuring that the processor resources of the main processor are scheduled. Exclusively; When a large number of packets arrive, the packets that need to be guaranteed are guaranteed. When the attack packets are too strong, the phenomenon that other normal messages are annihilated is greatly alleviated.
  • the present invention judges the current state of the system according to the current idle rate of the queue, intelligently adjusts to different policies in different states, and discards some packets that need to be discarded in advance, thereby avoiding congestion from the mechanism, instead of happening after the occurrence. Naturally discarded.
  • the system is divided into three states: free state, critical state, and restricted state.
  • the three system states can be switched according to the queue idle rate q.
  • the idle rate of the queue refers to the ratio of the idle length of the current queue to the total length of the queue.
  • the system is initially in a free state, and packet forwarding is not restricted.
  • the state is switched according to the change of the queue idle rate. The main steps are as follows:
  • the system After the system enters the restricted state, it reviews the incoming packets and determines the changes in the queue idle rate during the determined adjustment period: If the queue idle rate gradually becomes higher and q q2, the system switches back to the free state, and proceeds to step 1;
  • the idle rate continues to drop rapidly, and the system determines how to process the message through a certain control strategy.
  • each interface also adjusts the proportion of the next cycle according to the number of received packets in each cycle to determine a data. Therefore, the interface also has three states: a free state, a restricted state, and a discarded state.
  • the free state is generally for an interface with a particularly small current traffic.
  • the discard state always occurs when the system is particularly urgent, and the restricted state means that the packet received by the interface needs to be further classified, such as a message. Type, connection to which the message belongs, or special indication from the firewall.
  • a slave processor implements fast packet forwarding
  • a master processor implements system control and special message processing.
  • congestion may occur in the message channel from the processor to the main processor, and the present invention can solve this problem relatively well.
  • the present invention does not rely on other auxiliary tasks to complete, all actions are triggered by a processor message enqueue request, so all actions are performed on the slave processor.
  • the threshold ql indicates that the idle rate is high
  • the threshold value q2 indicates an idle rate start alarm
  • the threshold q3 indicates that the idle rate is low
  • the idle rate is as low as q4, and some interfaces start to drop packets.
  • the system is in a free state, the message is not subject to any restrictions, and each enqueue request can be satisfied.
  • the current idle rate q of the queue is checked, and one of the two actions A and B is triggered according to the size of the idle rate q:
  • A The idle rate is lower than the threshold q2, and the alarm is started;
  • Action Initialize the default proportion of each interface to receive packets, as well as other required statistics, and the state transitions to a critical state.
  • the critical state triggers one of three actions C, D, and E according to the size of the idle rate q: C: After a period of time, the idle rate rises and rises above the threshold ql, indicating that the accumulation of the queue is only an instantaneous burst. The movement has been slowed or ended, and returned to a free state.
  • the system determines an initial default receiving ratio according to the interface type and bandwidth, and takes the time difference from the critical state to the current time as the initial statistical period, and corrects the initial default receiving ratio according to the received and received data collected in this cycle. Obtain the constraint condition for the next cycle to refer to, and obtain the state of the next cycle of each interface according to the current data, then the system transitions to the restricted state, and starts the next adjustment cycle.
  • Action Check the current status of the receiving interface. If it is in the free state, it will directly enter the queue. If it is in the discard state, it will be directly discarded. In the restricted state, the number of enqueues allowed, the type of the packet, and the enqueue of the corresponding data stream will be allowed according to the current interface. Comprehensive judgment, decide whether you can join the team.
  • the main advantage of the present invention lies in its intelligence, which is reflected in several aspects: 1. Judging the busyness of the main processor according to the current queue state, and triggering the intelligent running state machine by the message; 2. Introduction of the critical state, intelligence Calculate the time of the adjustment period, and dynamically adjust it in each subsequent period, so that it can adapt to the message congestion caused by various reasons; 3. The enqueue ratio of the interface is weighted and intelligently adjusted according to the latest statistics; Intelligently adjust the strength of message restrictions based on current status.

Landscapes

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

Abstract

A controlling of message channels in router is related. Aiming at the disadvantages that the resources of the processor are exhausted and the low priority queues are starved in present main-secondary multi-processor system, a method for controlling the message channels between the main processors and secondary processors of the main-secondary multi-processor system is provided. The scheme of this invention is a method for controlling the message channels of the main-secondary multi-processor system, the characters are: switching the system states based on the channel queue spare ratio q; adjusting the system strategy under the different system states, and initiatively discarding the message before the channel congested. The beneficial effect of the method by this invention is that the congestion is avoided in mechanism. The low speed interface can not link-break or interface-passless caused by discarding the keepalive packet when the high speed interface heavy-pours packets. The messages which need to assure the priority can be ensured when a mass of messages are coming. The phenomenon that other general messages are submerged is greatly mitigated when the attack messages come suddenly.

Description

说明书  Instruction manual
主从式多处理器系统报文通道控制方法 技术领域  Master-slave multiprocessor system message channel control method
本发明涉及通信系统中采用主从式多处理器的路由器技术,特别 涉及路由器中报文通道的控制。  The present invention relates to a router technology employing a master-slave multiprocessor in a communication system, and more particularly to control of a message channel in a router.
背景技术 Background technique
在采用主从方式多处理器的路由器中,一般从处理器用来进行报 文转发, 一个主处理器进行控制及特殊报文的处理等。在从处理器通 往主处理器的报文通道中, 有大量的报文需要被传送, 如链路控制报 文、 本机的路由协议报文、 缺乏快速转发记录的 IP转发报文、 需要 用防火墙功能进行严格检查的特殊报文等等。如果该报文通道处理得 不好, 有可能发生拥塞, 导致系统不能正常运行。 如: 由于高速接口 大量灌包引起低速接口的关键报文如 keepalive (保活包)被丢失、 由 于恶意攻击大量报文涌上主处理器导致主处理器因负荷过重而无法 正常工作、路由变化时由于转发表项需要刷新导致大量报文阻塞在通 道上而其他正常上送的报文被丢失等等。由于该数据通道本身具有队 列特点, 因此, 一般在通道的管理上, 都采取通过队列来丢弃多余报 文的方式。  In a router with a master-slave multiprocessor, the slave processor is generally used for message forwarding, and the main processor performs control and special message processing. In the packet channel from the processor to the main processor, a large number of packets need to be transmitted, such as link control packets, local routing protocol packets, and IP forwarding packets lacking fast forwarding records. Special messages that are strictly checked by the firewall function, and so on. If the message channel is not handled well, congestion may occur and the system may not operate properly. For example, due to the high-speed interface, a large number of packets on the low-speed interface, such as keepalives, are lost. Due to malicious attacks, a large number of packets flood the main processor, causing the main processor to fail to work properly and routing. When a change occurs, the forwarding entry needs to be refreshed, causing a large number of packets to be blocked on the channel and other normally sent packets to be lost. Since the data channel itself has the characteristics of a queue, generally, in the management of the channel, a manner of discarding redundant messages through the queue is adopted.
一种方法是采取优先级队列的方法, 即将报文按照类型进行分 类,然后进入不同优先级别的队列,调度时按照队列优先级进行调度, 该方法可以保证重要的报文入队,但可能出现低优先级队列被饿死的 现象。  One method is to adopt a priority queue method, that is, classify packets according to type, and then enter queues of different priority levels, and schedule them according to queue priority. This method can ensure that important packets are enqueued, but may appear. The low priority queue is starved to death.
另一种方法是按照接收接口入不同的队列轮询调度的方式,该方 法保证了低速接口的报文不被高速接口挤死, 但如果低速接口较多, 轮询本身就比较耗资源, 引起高速接口性能下降, 同时, 同一个接口 需要优先保证的报文可能被海量的其他报文所湮没。  Another method is to poll the scheduling according to the receiving interface into different queues. This method ensures that the packets of the low-speed interface are not squeezed by the high-speed interface. However, if there are many low-speed interfaces, the polling itself is more resource-consuming. The performance of the high-speed interface is degraded. At the same time, the packets that need to be guaranteed by the same interface may be obscured by other large packets.
以上方法都是靠队列机制来实现自然丢弃,所以都存在可能导致 处理器资源被耗尽的问题, 即当报文量远远超过处理器的处理能力  The above methods all rely on the queuing mechanism to achieve natural discarding, so there is a problem that the processor resources may be exhausted, that is, when the amount of packets far exceeds the processing power of the processor.
认 本 时, 调度任务可能消耗 100%的处理器资源, 而其他低优先级任务迟 迟得不到调度引发问题。 Recognize When scheduling tasks, it may consume 100% of the processor resources, while other low-priority tasks are delayed from scheduling problems.
发明内容 Summary of the invention
本发明所要解决的技术问题,就是针对现有技术容易造成处理器 资源耗尽、低优先级队列被饿死的缺点, 提供一种主从式多处理器主 从处理器之间报文通道控制方法。  The technical problem to be solved by the present invention is to provide a message channel control between a master-slave multiprocessor master-slave processor, which is disadvantageous in that the prior art is prone to exhaustion of processor resources and low-priority queues are starved to death. method.
本发明解决所述技术问题, 采用的技术方案是, 主从式多处理器 系统报文通道控制方法, 其特征在于, 根据通道队列空闲率 q, 进行 系统状态的切换; 在不同系统状态下, 调整系统策略, 在通道发生拥 塞之前, 主动丢弃报文。  The present invention solves the technical problem, and adopts a technical solution, which is a message channel control method of a master-slave multiprocessor system, which is characterized in that: according to a channel queue idle rate q, system state switching is performed; in different system states, Adjust the system policy to discard packets before the channel is congested.
具体的, 包括以下步骤:  Specifically, the following steps are included:
a. 在系统状态机中设定空闲率 q的个阈值: ql〉q2>q3〉q4; b. 初始阶段, 报文转发不受限制, 系统定义为自由状态; c 系统在自由状态时, 检查队列当前空闲率, 当空闲率 q<q2 时, 系统定义为临界状态;  a. Set the threshold of the idle rate q in the system state machine: ql>q2>q3>q4; b. In the initial stage, the message forwarding is not restricted, the system is defined as a free state; c when the system is in the free state, check The current idle rate of the queue. When the idle rate is q<q2, the system is defined as a critical state;
d. 系统进入临界状态后, 继续检查队列空闲率:  d. After the system enters the critical state, continue to check the queue idle rate:
当空闲率逐步变高且 q^ql时, 系统回到自由状态; 或  When the idle rate gradually becomes higher and q^ql, the system returns to the free state; or
当空闲率持续降低且 q q3时, 系统定义为限制状态, 计算出第 一个调整周期, 进入下面步骤;  When the idle rate continues to decrease and q q3, the system is defined as the limit state, and the first adjustment period is calculated, and the following steps are performed;
e . 系统进入限制状态后, 在确定的调整周期内, 对入队的报文 进行审核, 并检查队列空闲率的变化:  e. After the system enters the restricted state, the incoming packets are reviewed and the queue idle rate changes are checked during the determined adjustment period:
如果队列空闲率逐步变高且 q q2, 则系统回到自由状态, 或; 空闲率持续快速下降, 则进入下面步骤:  If the queue idle rate is gradually getting higher and q q2, then the system returns to the free state, or; the idle rate continues to drop rapidly, then enter the following steps:
f. 根据当前活动接口的类型, 系统确定一个默认接收比例, 根 据临界状态所捕获的网络状况对默认比例调整后, 作为初始接收比 例; 以后每个周期结束时, 根据网络流量变化调整该比例值;  f. According to the type of the current active interface, the system determines a default receiving ratio, and adjusts the default ratio according to the network condition captured by the critical state as the initial receiving ratio; at the end of each subsequent period, adjusts the proportional value according to the network traffic change. ;
g . 各接口根据分配到的接收比例以及接收报文的情况, 调整其 状态;  g. Each interface adjusts its state according to the assigned receiving ratio and the condition of receiving the message;
h. 各接口依据其不同的状态对报文进行处理: 自由态时报文直 接转发, 受限态时根据优先级进行不同的控制,一空闲率低于 q4时, 接口为丢弃态, 报文直接丢弃。 h. Each interface processes the packet according to its different status: If the idle state is lower than q4, the interface is in the discard state and the packets are discarded.
具体的, 空闲率 q的定义为: 当前队列的空闲长度与队列总长度 之比。  Specifically, the idle rate q is defined as: the ratio of the idle length of the current queue to the total length of the queue.
本发明的有益效果是, 从机制上避免拥塞的发生。 当高速接口海 量灌包时, 低速接口不会因为丢失保活包, 导致链路断开接口不通; 保证队列不会出现持续满的状态,有效地保证主处理器的处理器资源 被该调度任务独占; 当海量报文来到时, 需要优先保证的报文能够得 到保证; 攻击报文来得过猛时, 其他正常报文被湮没的现象得到极大 缓和。  The beneficial effects of the present invention are to avoid the occurrence of congestion from the mechanism. When the high-speed interface is heavily filled, the low-speed interface will not lose the keep-alive packet, causing the link to be disconnected; ensuring that the queue does not continue to be full, effectively ensuring that the processor resources of the main processor are scheduled. Exclusively; When a large number of packets arrive, the packets that need to be guaranteed are guaranteed. When the attack packets are too strong, the phenomenon that other normal messages are annihilated is greatly alleviated.
具体实施方式 detailed description
以下结合实施例, 详细描述本发明的技术方案。  The technical solution of the present invention will be described in detail below with reference to the embodiments.
本发明依据队列当前的空闲率来判断系统当前状态,在不同的状 态下智能地调整成不同的策略, 事先主动丢弃一些需要丢弃的报文, 从机制上避免拥塞的发生, 而不是发生后再自然丢弃。  The present invention judges the current state of the system according to the current idle rate of the queue, intelligently adjusts to different policies in different states, and discards some packets that need to be discarded in advance, thereby avoiding congestion from the mechanism, instead of happening after the occurrence. Naturally discarded.
首先, 依据当前队列的空闲率, 把系统区分成三种状态: 自由状 态, 临界状态, 限制状态。在系统状态机中设定空闲率 q的阈值: ql First, according to the idle rate of the current queue, the system is divided into three states: free state, critical state, and restricted state. Set the threshold for the idle rate q in the system state machine: ql
>q2>q3>q4 >q2>q3>q4
这三种系统状态依据队列空闲率 q可以相互切换,队列的空闲率 是指当前队列的空闲长度与队列总长度的比值。 系统初始为自由状 态, 报文转发不受限制, 根据队列空闲率的变化进行状态的切换, 主 要包括如下步骤:  The three system states can be switched according to the queue idle rate q. The idle rate of the queue refers to the ratio of the idle length of the current queue to the total length of the queue. The system is initially in a free state, and packet forwarding is not restricted. The state is switched according to the change of the queue idle rate. The main steps are as follows:
1. 系统在自由状态时, 检査队列当前空闲率, 当空闲率 q<q2 时, 系统从自由状态切换到临界状态;  1. When the system is in the free state, check the current idle rate of the queue. When the idle rate q < q2, the system switches from the free state to the critical state;
2. 系统进入临界状态后, 检查队列空闲率: 当空闲率逐步变高 且9 91时, 系统切换回自由状态; 当空闲率持续降低且 q q3时, 计算出第一个调整周期, 系统切换至限制状态, 进入步骤 3 ;  2. After the system enters the critical state, check the queue idle rate: When the idle rate is gradually higher and 9 91, the system switches back to the free state; when the idle rate continues to decrease and q q3, the first adjustment period is calculated, the system switches To the restricted state, proceed to step 3;
3. 系统进入限制状态后, 在确定的调整周期内, 对入队的报文 进行审核, 并判断队列空闲率的变化: 如果队列空闲率逐步变高且 q q2, 则系统切换回自由状态, 进入步骤 1 ; 3. After the system enters the restricted state, it reviews the incoming packets and determines the changes in the queue idle rate during the determined adjustment period: If the queue idle rate gradually becomes higher and q q2, the system switches back to the free state, and proceeds to step 1;
或, 空闲率持续快速下降, 系统通过一定的控制策略, 确定如何 处理报文。  Or, the idle rate continues to drop rapidly, and the system determines how to process the message through a certain control strategy.
进一步的, 在限制状态内, 各接口也会根据各周期的接收报文数 目调整下一周期的比例,确定一个数据,因此,接口也存在三种状态: 自由态、 受限态和丢弃态。 其中, 自由态一般针对当前流量特别小的 接口, 丢弃态总是发生在系统特别紧急的时候, 而受限态则意味着需 要对该接口接收到的报文进行进一步的分类, 如判断报文类型、报文 所属的连接、 或者是防火墙发来的特殊的指示等。  Further, in the restricted state, each interface also adjusts the proportion of the next cycle according to the number of received packets in each cycle to determine a data. Therefore, the interface also has three states: a free state, a restricted state, and a discarded state. The free state is generally for an interface with a particularly small current traffic. The discard state always occurs when the system is particularly urgent, and the restricted state means that the packet received by the interface needs to be further classified, such as a message. Type, connection to which the message belongs, or special indication from the firewall.
实施例  Example
在非对称双处理器路由系统中,一个从处理器实现报文的快速转 发, 一个主处理器实现系统控制及特殊报文的处理。 在这种系统中, 从处理器到主处理器的报文通道可能发生拥塞,本发明可以比较好的 解决此问题。  In an asymmetric dual-processor routing system, a slave processor implements fast packet forwarding, and a master processor implements system control and special message processing. In such a system, congestion may occur in the message channel from the processor to the main processor, and the present invention can solve this problem relatively well.
本发明不依赖于其他辅助任务完成,所有动作都由从处理器报文 入队请求来触发, 因此所有的动作都在从处理器上执行。  The present invention does not rely on other auxiliary tasks to complete, all actions are triggered by a processor message enqueue request, so all actions are performed on the slave processor.
在系统状态机中, 设定空闲率 q的阈值 ql〉q2〉q3 >q4:  In the system state machine, set the threshold of the idle rate q ql>q2>q3 >q4:
阈值 ql表示空闲率高;  The threshold ql indicates that the idle rate is high;
阈值 q2表示空闲率开始告警;  The threshold value q2 indicates an idle rate start alarm;
阈值 q3表示空闲率较低;  The threshold q3 indicates that the idle rate is low;
空闲率 <q3, 队列已无空闲;  Idle rate <q3, the queue is no idle;
空闲率低到 q4, 有些接口开始丢弃报文。  The idle rate is as low as q4, and some interfaces start to drop packets.
系统状态机工作原理:  System state machine works:
自由状态:  Free state:
一开始, 系统处于自由状态, 报文不做任何限制, 每一个入队请 求都能得到满足, 同时检查队列当前空闲率 q, 依据空闲率 q的大小 触发 A和 B两个动作之一:  In the beginning, the system is in a free state, the message is not subject to any restrictions, and each enqueue request can be satisfied. At the same time, the current idle rate q of the queue is checked, and one of the two actions A and B is triggered according to the size of the idle rate q:
A: 空闲率低于阈值 q2, 开始告警; 动作: 初始化各接口收包默认比例, 以及其他后面所需要的统计 数据, 同时状态转换到临界状态。 A: The idle rate is lower than the threshold q2, and the alarm is started; Action: Initialize the default proportion of each interface to receive packets, as well as other required statistics, and the state transitions to a critical state.
B: 空闲率 q还比较高, 继续维持在自由状态。  B: The idle rate q is still relatively high and continues to be in a free state.
临界状态:  Critical state:
临界状态依据空闲率 q的大小, 触发 C、 D和 E三个动作之一: C: 一段时间以后, 空闲率回升, 升到阈值 ql以上, 说明刚才队 列的堆积仅仅是瞬间突发, 该突发动作已经和缓或结束, 退回到自由 状态。  The critical state triggers one of three actions C, D, and E according to the size of the idle rate q: C: After a period of time, the idle rate rises and rises above the threshold ql, indicating that the accumulation of the queue is only an instantaneous burst. The movement has been slowed or ended, and returned to a free state.
D:空闲率在阈值 ql和阈值 q3之间,没有明显下降或升高动作: 保持在临界状态, 继续观察。  D: The idle rate is between the threshold ql and the threshold q3, and there is no significant drop or increase action: Keep it in a critical state and continue to observe.
E: 空闲率继续下降到阈值 q3以下, 需要限制;  E: The idle rate continues to drop below the threshold q3, requiring a limit;
动作: 系统根据接口类型和带宽确定一个初始默认接收比例, 以 进入临界状态到此时的时间差值作为初始统计周期,根据本周期所统 计到的收发数据来对初始默认接收比例做一个校正,得到下一个周期 用来参照的限制条件, 并依据当前数据得到各接口下一周期的状态, 然后系统转换到限制状态, 并开始下一个调整周期。  Action: The system determines an initial default receiving ratio according to the interface type and bandwidth, and takes the time difference from the critical state to the current time as the initial statistical period, and corrects the initial default receiving ratio according to the received and received data collected in this cycle. Obtain the constraint condition for the next cycle to refer to, and obtain the state of the next cycle of each interface according to the current data, then the system transitions to the restricted state, and starts the next adjustment cycle.
限制状态:  Restricted status:
此状态内对申请入队的报文进行审核,根据当前系统状况决定是 否入队, 每一次申请都将触发 F、 0和11、 I等四个动作之一:  In this state, the application for enrollment is reviewed. According to the current system status, whether or not to enter the team is determined. Each application will trigger one of four actions: F, 0, 11, and I:
F: 本调整周期未结束, 空闲率无明显下降趋势;  F: The adjustment period has not ended, and the idle rate has no obvious downward trend;
动作: 査看接收接口当前状态, 处于自由态则直接入队, 处于丢 弃态则直接丢弃, 处于受限态则依据当前接口本周期允许入队数目、 报文类型、 对应数据流的入队情况综合判断, 决定是否可以入队。  Action: Check the current status of the receiving interface. If it is in the free state, it will directly enter the queue. If it is in the discard state, it will be directly discarded. In the restricted state, the number of enqueues allowed, the type of the packet, and the enqueue of the corresponding data stream will be allowed according to the current interface. Comprehensive judgment, decide whether you can join the team.
G: 本调整周期结束, 或者本周期内空闲率下降过快;  G: The adjustment period ends, or the idle rate drops too fast during the period;
动作: 结束本周期; 如果是空闲率下降太快, 说明临界状态定下 的周期时间太长, 粒度太大, 不利于控制, 需要提前结束本周期, 并 重新修正周期时间。 依据本周期的统计值, 重新调整限制条件, 如果 空闲率继续下降则加大限制条件, 否则适当放宽, 并开始下一个调整 周期。 H: 本调整周期结束, 空闲率回升到阈值 q2以上, 且连续 N个 周期报文丢弃数目为 0; Action: End this cycle; If the idle rate drops too fast, it indicates that the cycle time set by the critical state is too long, the granularity is too large, which is not conducive to control. It is necessary to end this cycle ahead of time and re-correct the cycle time. According to the statistical value of this cycle, the restriction condition is re-adjusted. If the idle rate continues to decrease, the restriction condition is increased, otherwise the appropriate adjustment period is relaxed, and the next adjustment period is started. H: The adjustment period ends, the idle rate rises above the threshold q2, and the number of discarded N consecutive packets is 0;
动作: 系统转换到自由状态。  Action: The system transitions to a free state.
I: (紧急控制事件)无论本周期是否已经结束, 如果空闲率低于 阈值 q4, 直接触发该事件;  I: (emergency control event) Whether the current period has ended or not, if the idle rate is lower than the threshold q4, the event is triggered directly;
动作: 不强行结束本周期, 直接将接口状态以及流状态等设置成 最严厉的控制, 可以直接将接口状态设置成丢弃态, 开始主动丢弃报 文。丢弃态的接口需要等到资源回缓的时候某周期结束放宽限制时自 然修正为限制态。  Action: Do not force the end of this cycle, directly set the interface state and flow state to the most severe control. You can directly set the interface state to the discard state and start actively discarding the message. The interface in the discard state needs to wait until the resource is slowed down and the state is automatically corrected to the restricted state when the period ends.
本发明的主要优点在于其智能性上, 这体现在几个方面: 1、 依 据当前队列状态判断主处理器的负载繁忙程度,由报文触发智能运转 状态机; 2、 临界状态的引入, 智能地计算出调整周期的时间, 并在 随后的每个周期内动态调整, 这样可以适应多种原因引起的报文拥 塞; 3、 接口的可入队比例按照最近统计数据进行加权智能调整; 4、 根据当前现状智能调整报文限制的力度。  The main advantage of the present invention lies in its intelligence, which is reflected in several aspects: 1. Judging the busyness of the main processor according to the current queue state, and triggering the intelligent running state machine by the message; 2. Introduction of the critical state, intelligence Calculate the time of the adjustment period, and dynamically adjust it in each subsequent period, so that it can adapt to the message congestion caused by various reasons; 3. The enqueue ratio of the interface is weighted and intelligently adjusted according to the latest statistics; Intelligently adjust the strength of message restrictions based on current status.
通过这些智能策略的综合应用, 从源头上避免通道拥塞发生, 而 不是发生以后再想办法丢弃。  Through the integrated application of these intelligent strategies, channel congestion is avoided at the source, instead of thinking about ways to discard later.

Claims

权利要求书 Claim
1 . 主从式多处理器系统报文通道控制方法, 其特征在于, 根据 通道队列空闲率 q, 进行系统状态的切换; 在不同系统状态下, 调整 系统策略, 在通道发生拥塞之前, 主动丢弃报文。  The master-slave multiprocessor system message channel control method is characterized in that: according to the channel queue idle rate q, the system state is switched; in different system states, the system policy is adjusted, and the channel is actively discarded before the channel is congested. Message.
2. 根据权利要求 1所述的主从式多处理器系统报文通道控制方 法, 其特征在于, 包括以下步骤:  2. The message channel control method of a master-slave multiprocessor system according to claim 1, comprising the steps of:
a. 在系统状态机中设定空闲率 q的阈值: ql〉q2〉q3〉q4; b . 初始阶段, 报文转发不受限制, 系统定义为自由状态; c 系统在自由状态时, 检查队列当前空闲率, 当空闲率 q<q2 时, 系统定义为临界状态;  a. Set the threshold of the idle rate q in the system state machine: ql>q2>q3>q4; b. In the initial stage, the message forwarding is not restricted, the system is defined as free state; c when the system is in the free state, check the queue Current idle rate, when the idle rate q < q2, the system is defined as a critical state;
d. 系统进入临界状态后, 继续检査队列空闲率:  d. After the system enters the critical state, continue to check the queue idle rate:
当空闲率逐步变高且 q^ql时, 系统回到自由状态; 或  When the idle rate gradually becomes higher and q^ql, the system returns to the free state; or
当空闲率持续降低且 q q3时, 系统定义为限制状态, 计算出第 一个调整周期, 进入下面步骤;  When the idle rate continues to decrease and q q3, the system is defined as the limit state, and the first adjustment period is calculated, and the following steps are performed;
e. 系统进入限制状态后, 在确定的调整周期内, 对入队的报文 进行审核, 并检査队列空闲率的变化:  e. After the system enters the restricted state, the incoming packets are reviewed and the queue idle rate changes are checked during the determined adjustment period:
如果队列空闲率逐步变高且 q q2, 则系统回到自由状态, 或; 空闲率持续快速下降, 则进入下面步骤- f. 根据当前活动接口的类型, 系统确定一个默认接收比例, 根 据临界状态所捕获的网络状况对默认比例调整后, 作为初始接收比 例; 以后每个周期结束时, 根据网络流量变化调整该比例值;  If the queue idle rate is gradually higher and q q2, the system returns to the free state, or; the idle rate continues to drop rapidly, then enter the following steps - f. According to the current active interface type, the system determines a default receive ratio, according to the critical state After the captured network status is adjusted to the default ratio, it is used as the initial receiving ratio; at the end of each subsequent period, the ratio is adjusted according to the network traffic change;
g. 各接口根据分配到的接收比例以及接收报文的情况, 调整其 状态;  g. Each interface adjusts its state according to the proportion of the received receiver and the status of the received message;
h. 各接口依据其不同的状态对报文进行处理: 自由态时报文直 接转发, 受限态时根据优先级进行不同的控制, 空闲率低于 q4时, 接口为丢弃态, 报文直接丢弃。  Each interface processes the packets according to their different states: The packets are directly forwarded in the free state, and are controlled according to the priority in the restricted state. When the idle rate is lower than q4, the interface is discarded and the packets are discarded. .
3 . 根据权利要求 1或 2所述的主从式多处理器系统报文通道控 制方法, 其特征在于, 空闲率 q的定义为: 当前队列的空闲长度与队 列总长度之比。  The message channel control method of the master-slave multiprocessor system according to claim 1 or 2, wherein the idle rate q is defined as: a ratio of the idle length of the current queue to the total length of the queue.
PCT/CN2008/000530 2007-03-30 2008-03-18 A method for controlling the message channels of the main-secondary multi-processor system WO2008119241A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2007100487845A CN101277253B (en) 2007-03-30 2007-03-30 Method for controlling packet channel of master-slave mode multiprocessor system
CN200710048784.5 2007-03-30

Publications (1)

Publication Number Publication Date
WO2008119241A1 true WO2008119241A1 (en) 2008-10-09

Family

ID=39807796

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/000530 WO2008119241A1 (en) 2007-03-30 2008-03-18 A method for controlling the message channels of the main-secondary multi-processor system

Country Status (2)

Country Link
CN (1) CN101277253B (en)
WO (1) WO2008119241A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116365068A (en) * 2023-06-01 2023-06-30 苏州精控能源科技有限公司 Multi-configuration concurrent communication control method and device for large-scale distributed energy storage battery

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483305B (en) * 2016-08-29 2021-01-12 宝沃汽车(中国)有限公司 Vehicle control unit, vehicle and control method of vehicle control unit
US11388074B2 (en) * 2018-04-12 2022-07-12 Intel Corporation Technologies for performance monitoring and management with empty polling
CN109525500B (en) * 2018-12-27 2021-08-24 北京天融信网络安全技术有限公司 Information processing method and information processing device capable of automatically adjusting threshold
CN111970204B (en) * 2020-08-10 2024-07-12 江苏创通电子股份有限公司 Network flow control method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1423877A (en) * 2000-07-18 2003-06-11 阿尔卡塔尔公司 Domain based congestion management
CN1529254A (en) * 2003-10-20 2004-09-15 中兴通讯股份有限公司 Guide method of master-slave multi-processor in embedding system
CN1549508A (en) * 2003-05-09 2004-11-24 ��Ϊ�������޹�˾ System flow controlling method
CN1787479A (en) * 2004-12-09 2006-06-14 上海贝尔阿尔卡特股份有限公司 Method for processing of double layer channel protocol message and apparatus thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1423877A (en) * 2000-07-18 2003-06-11 阿尔卡塔尔公司 Domain based congestion management
CN1549508A (en) * 2003-05-09 2004-11-24 ��Ϊ�������޹�˾ System flow controlling method
CN1529254A (en) * 2003-10-20 2004-09-15 中兴通讯股份有限公司 Guide method of master-slave multi-processor in embedding system
CN1787479A (en) * 2004-12-09 2006-06-14 上海贝尔阿尔卡特股份有限公司 Method for processing of double layer channel protocol message and apparatus thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116365068A (en) * 2023-06-01 2023-06-30 苏州精控能源科技有限公司 Multi-configuration concurrent communication control method and device for large-scale distributed energy storage battery
CN116365068B (en) * 2023-06-01 2023-08-08 苏州精控能源科技有限公司 Multi-configuration concurrent communication control method and device for large-scale distributed energy storage battery

Also Published As

Publication number Publication date
CN101277253B (en) 2011-06-08
CN101277253A (en) 2008-10-01

Similar Documents

Publication Publication Date Title
US7859996B2 (en) Intelligent congestion feedback apparatus and method
CN108718283B (en) TCP congestion control method for centralized end network coordination in data center network
US11870698B2 (en) Congestion control method and apparatus, communications network, and computer storage medium
CN107948103B (en) Switch PFC control method and control system based on prediction
CN102291389A (en) Cross-layer congestion control method in satellite network
CN114938350B (en) Congestion feedback-based data stream transmission control method in lossless network of data center
WO2015169048A1 (en) Queue management method and device
WO2008119241A1 (en) A method for controlling the message channels of the main-secondary multi-processor system
CN112995048B (en) Blocking control and scheduling fusion method of data center network and terminal equipment
WO2022242170A1 (en) Data processing method and related device
Moghaddam A fuzzy Active Queue Management mechanism for Internet congestion control
Zhang et al. Performance analysis of BBR congestion control protocol based on NS3
CN115134302A (en) Flow isolation method for avoiding head of line congestion and congestion diffusion in lossless network
WO2012068804A1 (en) Message processing method and device
CN106789735B (en) Concurrent processing method based on energy priority of data transmission terminal
CN111431812B (en) Message forwarding control method and device
CN108259342B (en) Network local congestion processing method based on OSPF protocol
CN101286929A (en) Compartment congestion controlling means for router with changing load
JP4838739B2 (en) Router buffer management method and router using the management method
WO2022057462A1 (en) Congestion control method and apparatus
Zheng et al. Is current active queue management really necessary
JP2011172135A (en) Packet transmitting apparatus and packet transmitting method
CN112532535B (en) Method and device for optimizing network congestion
CN115002040B (en) Big data-based load balancing method and system for perceived priority flow control
Zhang et al. DFTCP: A TCP-friendly delay-based high-speed TCP variant

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

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

Country of ref document: EP

Kind code of ref document: A1