WO2012071959A1 - 队列资源调配方法及装置 - Google Patents

队列资源调配方法及装置 Download PDF

Info

Publication number
WO2012071959A1
WO2012071959A1 PCT/CN2011/081150 CN2011081150W WO2012071959A1 WO 2012071959 A1 WO2012071959 A1 WO 2012071959A1 CN 2011081150 W CN2011081150 W CN 2011081150W WO 2012071959 A1 WO2012071959 A1 WO 2012071959A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
queue
state
queues
under
Prior art date
Application number
PCT/CN2011/081150
Other languages
English (en)
French (fr)
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 WO2012071959A1 publication Critical patent/WO2012071959A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements

Definitions

  • the present invention relates to the field of communications, and in particular to a queue resource allocation method and apparatus.
  • Queue resource allocation is a prerequisite for implementing message scheduling. To implement normal scheduling of queues, corresponding queue resources need to be allocated.
  • a commonly used method of allocating queue resources is to allocate queue resources according to service types. After the packets are classified, the packets are allocated to the corresponding queues by category. For each queue, the proportion of the interface bandwidth occupied by the packets in the queue can be specified. In this way, packets of different services can be obtained. Achieve reasonable bandwidth, so as to ensure that key services can obtain more bandwidth without making non-critical services unavailable.
  • detecting the working status of each port in the network includes: a timing detection port detection enable bit, and detecting a working state of each port in the network when the port detection enable bit is in an enabled state, when the port detection enable bit is When the state is disabled, normal queue scheduling continues.
  • the following includes: The queue configuration of all queues under the port whose working status changes from the connected state to the unconnected state.
  • the method further includes: All service packets sent to the queues on the port are disconnected; all queues under the port are prohibited from being scheduled.
  • the method after detecting the working state of the port in the network, the method further includes: when detecting the port whose working state changes from the unconnected state to the connected state, restoring all the ports under the port according to the queue configuration of the backed up port. The queue configuration of the queue, re-allocating the queue resources for the queues under the port; continue to schedule the queues under the port.
  • the configuration module is further configured to configure a queue configuration of all queues under the port whose backup working state is changed from the connected state to the unconnected state.
  • the queue resource provisioning device further includes: a message blocking module configured to block all service packets sent from the queue under the port whose working state is changed from the connected state to the unconnected state; the scheduling module is set to It is forbidden to schedule all queues under this port.
  • the configuration module is further configured to restore the queue configuration of all the queues under the port according to the queue configuration of the port that is backed up when the port whose working state is changed from the unconnected state to the connected state is detected.
  • the queue under the port allocates queue resources; the scheduling module is also set to continue to schedule queues under the port.
  • FIG. 1 is a flowchart of a method for deploying a queue resource according to an embodiment of the present invention.
  • the queue resource allocation method according to the embodiment of the present invention includes: Step S102: Detecting an operating state of each port in the network.
  • queue configurations include: Queue scheduling algorithms, queue thresholds, and queue hierarchies.
  • the following processing may be further included:
  • step S102 after detecting the working status of each port in the network, the following processing may be further included:
  • the queue resource allocation method includes the following steps: Step S202: Detecting the status of all current ports, detecting that the port changes from the connected state to the unconnected state (step S204), and performing step S206 The operation, when detecting that the port that is not connected is now connected, directly proceeds to step S218, and does not need to perform the following steps; Step S206: Back up all configurations of the queue under the port (including the scheduling algorithm, the queue hierarchy, and the threshold), and adjust the information related to the port number.
  • Step S220 The queue under the restored port continues to participate in the scheduling.
  • the above preferred embodiments will be described in detail below with reference to examples and FIG. As shown in Figure 3, when a port of the network processor is in an unconnected state, the queue cache under the port is cleared after the resource is provisioned, and the newly entered packet is blocked, and the queue under the port exits the schedule. Process.
  • the following is an example of the hierarchical scheduling of four Quality of Service (QOS) schedulers.
  • the specific scheduling steps of one of the QOS schedulers are as follows: Step 1: Find the outgoing port of the current packet schedule; Step 11: Select the QOS scheduler with the highest priority of the current scheduling, determine whether all the queues under the port have packet packets, and do not participate in the scheduling without packet packets.
  • Step 111 Scheduling the high priority message queue under the current QOS scheduler until the high priority message queue is empty, and proceeding to the next scheduling step;
  • Steps 112, 113, and 114 selecting corresponding according to the set scheduling algorithm Queue participation scheduling (including strict priority scheduling and weighted round-robin scheduling);
  • Steps 1121 to 112N selecting corresponding queues for scheduling according to the set scheduling algorithm (including strict priority scheduling and weighted round-robin scheduling);
  • steps 1121 to 112N For the scheduling methods of 1131 to 113N and 1141 to 114N, refer to steps 1121 to 112N.
  • steps 1121 to 112N For the scheduling methods of the unicast scheduler, multicast scheduler, and broadcast scheduler under the QOS scheduler, refer to steps 112, 113, and 114. See step 11 for the scheduling method of the scheduler.
  • Step 5 Detect the port detection enable bit. If not enabled, go directly to the step. 5. If you enable the sequential view of each connection port of the network processor, is there a new port? Connect to the network. If the port is properly connected to the network, go to step 5. Otherwise, save the port to the unconnected state to the connected port sequence, and disable the port detection enable bit. Go to step 6.
  • Step 5 Perform normal queue scheduling, skip to step 1;
  • Step 6 Back up the queue configuration under the unconnected port (queue scheduling algorithm, queue threshold, queue hierarchy);
  • Step 7 Will not All the queue thresholds on the port are changed to zero, so that the packets entering the port will no longer occupy the buffer resources of the queue.
  • the detecting module 42 is further configured to detect a port detecting enable bit, and when the port detecting enable bit is in an enabled state, detecting an operating state of each port in the network, when the port detecting enable bit is When the state is disabled, normal queue scheduling continues. Detecting the setting of the enable bit can avoid operational conflicts or wasted operation.
  • the configuration module 44 can also be configured as a queue configuration of all queues under the port whose backup working state changes from the connected state to the unconnected state. Backing up the queue configuration of all queues under this port can make subsequent recovery steps more convenient.
  • queue configurations include: Queue scheduling algorithms, queue thresholds, and queue hierarchies.
  • queue configurations include: Queue scheduling algorithms, queue thresholds, and queue hierarchies.
  • the queue resource allocating apparatus may further include: a message blocking module 46 configured to block all ports that are in a working state from a connected state to an unconnected state.
  • the service message sent by the queue may further include: a message blocking module 46 configured to block all ports that are in a working state from a connected state to an unconnected state.
  • the service message sent by the queue is configured to disable scheduling of all queues under the port.
  • the above two modules can completely exit all the queues under the port and avoid scheduling the queues to cause data transmission failure.
  • the configuration module 44 is further configured to restore the queue configuration of all the queues under the port according to the queue configuration of the backup port when the port whose working state is changed from the unconnected state to the connected state is detected.
  • the queue under the port allocates queue resources; the scheduling module 48 can also be configured to continue to schedule queues under the port.
  • the queue configuration and resources that are not connected to the currently connected port are restored by the configuration module 44, and the restored queue continues to participate in the queue scheduling under the scheduling of the scheduling module 48.
  • the resources can be dynamically allocated according to the connection status of the ports in the network. When the ports in the network are not connected, all the queue resources under the port are released to the queues of other working ports. When the ports are connected, the ports can be automatically restored to the initialized queues. Configure, participate in the scheduling of the queue. The queue scheduling of resource auto-provisioning is effectively and simply implemented, and the utilization of queue resources is greatly improved.

Landscapes

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

Abstract

本发明公开了一种队列资源调配方法及装置,上述方法包括:检测网络中各个端口的工作状态;当检测到工作状态由连接状态变为未连接状态的端口时,将该端口下的所有队列的队列门限值设置为零,并清空该端口下的所有队列占用的队列缓存。通过本发明提供的技术方案,解决了现有技术中队列资源利用率低的问题,提升了队列资源的利用率。

Description

队列资源调配方法及装置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种队列资源调配方法及装置。 背景技术 队列资源分配是实现报文调度的前提, 要实现队列的正常调度需要分配相应的队 列资源。常用的队列资源分配方法是根据业务类型进行队列资源的分配。报文分类后, 按类别将报文分配到相应的一个队列中去, 而对每个队列, 又可以规定队列中的报文 所占接口带宽的比例, 这样, 就可以让不同业务的报文获得合理的带宽, 从而既保证 关键业务能获得较多的带宽, 又不至于使非关键业务得不到带宽。 随着业务流量的迅猛增长, 固定队列资源分配的方法很大程度上降低了队列资源 的最大利用率, 因此需要一种更有效的队列资源调配方法。 发明内容 本发明提供了一种队列资源调配方法及装置, 以至少解决上述问题之一。 根据本发明的一个方面, 提供了一种队列资源调配方法, 包括: 检测网络中各个 端口的工作状态; 当检测到工作状态由连接状态变为未连接状态的端口时, 将该端口 下的所有队列的队列门限值设置为零, 并清空该端口下的所有队列占用的队列缓存。 在上述方法中,检测网络中各个端口的工作状态包括: 定时检测端口检测使能位, 当端口检测使能位处于使能状态时, 检测网络中各个端口的工作状态, 当端口检测使 能位处于禁止状态时, 继续进行正常的队列调度。 在上述方法中, 在将工作状态由连接状态变为未连接状态的端口下的所有队列的 队列门限值设置为零, 并清空该端口下的所有队列占用的队列缓存之前, 还包括: 备 份工作状态由连接状态变为未连接状态的端口下的所有队列的队列配置。 在上述方法中, 在将工作状态由连接状态变为未连接状态的端口下的所有队列的 队列门限值设置为零, 并清空该端口下的所有队列占用的队列缓存之后, 还包括: 阻 断所有向该端口下的队列发送的业务报文; 禁止调度该端口下的所有的队列。 在上述方法中, 在检测网络中端口的工作状态之后, 还包括: 当检测到工作状态 由未连接状态变为连接状态的端口时, 根据备份的该端口的队列配置, 恢复该端口下 的所有队列的队列配置, 重新为该端口下的队列分配队列资源; 继续调度该端口下的 队列。 根据本发明的另一个方面, 提供了一种队列资源调配装置, 包括: 检测模块, 设 置为检测网络中各个端口的工作状态; 配置模块, 设置为在检测到工作状态由连接状 态变为未连接状态的端口时, 将该端口下的所有队列的队列门限值设置为零, 并清空 该端口下的所有队列占用的队列缓存。 在上述装置中, 检测模块, 还设置为定时检测端口检测使能位, 当端口检测使能 位处于使能状态时, 检测网络中各个端口的工作状态, 当端口检测使能位处于禁止状 态时, 继续进行正常的队列调度。 在上述装置中, 配置模块, 还设置为备份工作状态由连接状态变为未连接状态的 端口下的所有队列的队列配置。 在上述装置中, 队列资源调配装置还包括: 报文阻断模块, 设置为阻断所有向工 作状态由连接状态变为未连接状态的端口下的队列发送的业务报文; 调度模块, 设置 为禁止调度该端口下的所有的队列。 在上述装置中, 配置模块, 还设置为在检测到工作状态由未连接状态变为连接状 态的端口时, 根据备份的该端口的队列配置, 恢复该端口下的所有队列的队列配置, 重新为该端口下的队列分配队列资源; 调度模块,还设置为继续调度该端口下的队列。 通过本发明, 采用根据端口的状态动态调配队列资源, 当检测到网络中的一个端 口没有与网络连通, 就将该端口下的所有队列门限修改为零, 并清空该端口下队列占 用的队列缓存的方案, 解决了现有技术中队列资源利用率低的问题, 提升了队列资源 的利用率。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据本发明实施例的队列资源调配方法的流程图; 图 2是根据本发明优选实施例的队列资源调配方法的流程图; 图 3是根据本发明实例的队列资源调配方法的队列调度示意图; 图 4是根据本发明实施例的队列资源调配装置的框图; 图 5是根据本发明优选实施例的队列资源调配装置的框图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 图 1是根据本发明实施例的队列资源调配方法的流程图。 如图 1所示, 根据本发 明实施例的队列资源调配方法包括: 步骤 S102, 检测网络中各个端口的工作状态。 步骤 S104, 当检测到工作状态由连接状态变为未连接状态的端口时, 将该端口下 的所有队列的队列门限值设置为零, 并清空该端口下的所有队列占用的队列缓存。 通过上述方法, 当检测到网络中的端口没有与网络连通, 就将该端口下的所有队 列门限修改为零, 并清空该端口下队列占用的队列缓存, 使得其它正常连接端口下的 队列可以分享这部分释放的缓存, 从而提高了队列缓存的利用率。 如果当前网络中的 端口都是连接状态, 那么端口下的队列按照初始化设置的调度算法参与调度即可。 步骤 S102中检测的时机可以根据具体情况使用不同的配置,例如定时检测、触发 检测、 手动检测等。 优选地,步骤 S102中,检测网络中各个端口的工作状态可以进一步包括以下处理: 定时检测端口检测使能位, 当端口检测使能位处于使能状态时, 检测网络中各个端口 的工作状态, 当端口检测使能位处于禁止状态时, 继续进行正常的队列调度。 检测使能位的设置可以防止在将某个端口下的所有队列的队列门限值设置为零, 并清空该端口下的所有队列占用的队列缓存的过程中, 又检测到该端口, 造成操作冲 突或操作浪费。 优选地, 如图 2所示, 在将工作状态由连接状态变为未连接状态的端口下的所有 队列的队列门限值设置为零, 并清空该端口下的所有队列占用的队列缓存之前, 还可 以包括以下处理: 备份该工作状态由连接状态变为未连接状态的端口下的所有队列的 队列配置。 在将处于未连接状态的端口下的所有队列的队列门限值设置为零, 并清空该端口 下的所有队列占用的队列缓存之前, 备份该端口下的所有队列的队列配置有利于后续 的恢复步骤, 当该端口变为连接状态时, 可以根据备份的队列配置快速的进行恢复, 从而参与到后续的调度中去。 一般来说, 队列配置包括: 队列调度算法、 队列门限值、 队列层次结构。 优选地, 如图 2所示, 步骤 S104之后, 还可以进一步包括以下处理:
( 1 ), 阻断所有向该工作状态由连接状态变为未连接状态的端口下的队列发送的 业务报文。
(2), 禁止调度该端口下的所有的队列。 这样一来, 即可使该端口下的所有队列完全的退出调度, 避免误调度这些队列造 成数据传输失败。 优选地, 步骤 S102中, 检测网络中各个端口的工作状态之后, 还可以进一步包括 以下处理:
( 1 )当检测到工作状态由未连接状态变为连接状态的端口时,根据备份的该端口 的队列配置, 恢复该端口下的所有队列的队列配置, 重新为该端口下的队列分配队列 资源。
(2) 进行正常的队列调度, 继续调度该端口下的队列。 步骤 S102中,检测网络中各个端口的工作状态实际上可以得到两种结果,一种为 检测到端口由连接状态变为未连接状态, 另一种为检测到端口由未连接状态变为已经 连接状态。 在第二种情况中, 原来没有连接现在已经连接的端口的队列配置和资源会 被恢复, 恢复的队列将继续参与队列调度。 以下结合图 2进一步描述上述优选实施方式。 如图 2所示, 根据本发明优选实施 例的队列资源调配方法包括如下步骤: 步骤 S202:检测当前所有端口的状态,检测到端口由连接状态变为未连接状态(步 骤 S204), 进行步骤 S206的操作, 检测到原来没有连接的端口现在已经连接时, 直接 进行步骤 S218, 不需要进行下面的步骤; 步骤 S206: 备份此端口下的队列的所有配置 (包括调度算法、 队列层次结构、 门 限值), 并调整与端口号相关的信息; 步骤 S208: 重新设置该端口下队列的门限值, 将该端口下所有队列的门限值都设 置为零; 步骤 S210: 将该端口下所有队列的缓存内容清零; 步骤 S212: 阻断所有向该端口下队列发送的业务报文; 步骤 S214: 禁止调度该端口下的所有的队列; 此时, 此端口下队列占用的缓存资源就可以被其它工作端口下的队列共享; 步骤 S218: 配置模块不断检测网络中端口的状态, 检测到新的端口出现未连接状 态, 回到步骤 S206, 检测到原来没有连接的端口已经连接时 (步骤 S216), 此端口下的 队列重新获取队列资源; 步骤 S220: 恢复配置的端口下的队列继续参与调度。 下面结合实例及图 3对上述优选实施例进行详细说明。 如图 3所示, 当网络处理 器的某个端口处于未连接状态, 那么资源调配后此端口下的队列缓存就被清空, 并且 阻断新进入的报文,此端口下的队列退出此调度流程。下面以 4个业务质量(Quality Of Service, 简称为 QOS) 调度器的层次化调度为例, 讲述其中一个 QOS调度器具体的 调度步骤: 步骤 1 : 找到当前报文调度的出端口; 步骤 11 : 选中当前调度优先级较高的 QOS调度器, 判断端口下的所有队列是否 有分组报文, 没有分组报文就不参与调度, 选择次级优先级的 QOS调度器进行调度, 否则进行下一步骤; 步骤 111 : 调度当前 QOS调度器下面的高优先级报文队列, 直到高优先级报文队 列为空, 再进行下一个调度步骤; 步骤 112、 113和 114: 根据设置的调度算法选中相应的队列参与调度 (包括严格 优先级调度和加权轮询调度); 步骤 1121到 112N: 根据设置的调度算法选中相应的队列进行调度 (包括严格优 先级调度和加权轮询调度);
1131到 113N、 1141到 114N的调度方法参见步骤 1121到 112N; 各级 QOS调度 器下的单播调度器、 组播调度器和广播调度器的调度方法参见步骤 112、 113和 114; 各级 QOS调度器的调度方法参见步骤 11。 在此基础上, 具体的队列资源自动调配步骤如下 (之前已经做完初始化): 步骤 1 : 分别进行端口未连接状态到已连接状态检测和端口已连接状态到未连接 状态检测, 两个步骤并行执行, 也就是步骤 2和步骤 4是并行进行的, 步骤 2的结果 优先级较高, 保证未连接状态到已连接状态的端口下的队列能够正常参与调度; 步骤 2: 顺序查看网络处理器原来没有连接的端口现在是否已经处于连通状态, 如果当前已经处于连通状态, 将端口检测使能位使能, 并将此端口保存到连接状态到 未连接状态端口序列中, 跳转到步骤 3, 否则跳转到步骤 5 ; 步骤 3 : 恢复原来没有连接现在处于连接状态的端口下面的队列配置, 跳转到步 骤 5 ; 步骤 4: 检测端口检测使能位, 如果不使能, 直接跳转到步骤 5, 如果使能就顺序 查看网络处理器的各个连接端口, 是否有新的端口没有连通到网络上, 如果端口正常 连接到了网络, 跳转到步骤 5, 否则将此端口保存到未连接状态到已连接状态端口序 列中, 并且将端口检测使能位禁止, 跳转到步骤 6; 步骤 5 : 进行正常的队列调度, 跳转到步骤 1 ; 步骤 6: 备份未连接端口下的队列配置 (队列的调度算法、 队列的门限值、 队列 的层次结构); 步骤 7: 将未连接端口下的所有队列门限修改为零, 使得新进入此端口的报文不 会再占用队列的缓冲资源; 步骤 8: 将未连接端口下的所有队列占用的缓存区清零, 释放缓冲区给其它队列 使用, 并且将端口检测使能位使能; 步骤 9: 端口下的队列退出调度进程, 跳转到步骤 1。 图 4是根据本发明实施例的队列资源调配装置的框图。 如图 4所示, 根据本发明 实施例的队列资源调配装置包括: 检测模块 42, 设置为检测网络中各个端口的工作状态。 配置模块 44, 设置为在检测到工作状态由连接状态变为未连接状态的端口时, 将 该端口下的所有队列的队列门限值设置为零, 并清空该端口下的所有队列占用的队列 缓存。 通过上述装置, 当检测模块 42 检测到网络中的端口没有与网络连通, 配置模块 44就将该端口下的所有队列门限修改为零, 并清空该端口下队列占用的队列缓存, 使 得其它正常连接端口下的队列可以分享这部分释放的缓存, 从而提高了队列缓存的利 用率。 如果当前网络中的端口都是连接状态, 那么端口下的队列按照初始化设置的调 度算法参与调度即可。 在上述实例中,检测模块 42可以通过连接状态到未连接状态端口序列和未连接状 态到已连接状态端口序列, 对各个端口进行检测和管理。 优选地, 检测模块 42, 还可以设置为定时检测端口检测使能位, 当所述端口检测 使能位处于使能状态时, 检测网络中各个端口的工作状态, 当所述端口检测使能位处 于禁止状态时, 继续进行正常的队列调度。 检测使能位的设置可以避免操作冲突或操作浪费。 优选地, 配置模块 44, 还可以设置为备份工作状态由连接状态变为未连接状态的 端口下的所有队列的队列配置。 备份该端口下的所有队列的队列配置, 可以使后续的恢复步骤更为方便。 一般来 说, 队列配置包括: 队列调度算法、 队列门限值、 队列层次结构。 优选地, 如图 5所示, 根据本发明实施例的队列资源调配装置, 还可以包括: 报文阻断模块 46, 设置为阻断所有向工作状态由连接状态变为未连接状态的端口 下的队列发送的业务报文。 调度模块 48, 设置为禁止调度该端口下的所有的队列。 上述两个模块可以使该端口下的所有队列完全的退出调度, 避免误调度这些队列 造成数据传输失败。 优选地, 配置模块 44, 还可以设置为在检测到工作状态由未连接状态变为连接状 态的端口时, 根据备份的该端口的队列配置, 恢复该端口下的所有队列的队列配置, 重新为该端口下的队列分配队列资源; 调度模块 48, 还可以设置为继续调度该端口下 的队列。 对应的, 原来没有连接现在已经连接的端口的队列配置和资源会被配置模块 44 恢复, 恢复的队列会在调度模块 48的调度下继续参与队列调度。 从以上的描述中, 可以看出, 本发明的提供的技术方案很好的解决了队列资源受 限的问题。 可以根据网络中端口的连接状态动态调配资源, 当网络中的端口没有连接 时, 释放此端口下所有的队列资源给其它工作端口下的队列使用, 当端口连接时, 能 够自动恢复到初始化的队列配置, 参与队列的调度。 有效而简单的实现了资源可自动 调配的队列调度, 并且将队列资源的利用率进行了很大的提升。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1. 一种队列资源调配方法, 包括:
检测网络中各个端口的工作状态;
当检测到工作状态由连接状态变为未连接状态的端口时, 将该端口下的所 有队列的队列门限值设置为零, 并清空该端口下的所有队列占用的队列缓存。
2. 根据权利要求 1所述的方法,其中,所述检测网络中各个端口的工作状态包括:
定时检测端口检测使能位, 当所述端口检测使能位处于使能状态时, 检测 网络中各个端口的工作状态, 当所述端口检测使能位处于禁止状态时, 继续进 行正常的队列调度。
3. 根据权利要求 1所述的方法, 其中, 在将所述工作状态由连接状态变为未连接 状态的端口下的所有队列的队列门限值设置为零, 并清空该端口下的所有队列 占用的队列缓存之前, 还包括:
备份所述工作状态由连接状态变为未连接状态的端口下的所有队列的队列 配置。
4. 根据权利要求 1至 3中任一项所述的方法, 其中, 在将所述工作状态由连接状 态变为未连接状态的端口下的所有队列的队列门限值设置为零, 并清空该端口 下的所有队列占用的队列缓存之后, 还包括:
阻断所有向该端口下的队列发送的业务报文;
禁止调度该端口下的所有的队列。
5. 根据权利要求 3所述的方法, 其中, 在所述检测网络中端口的工作状态之后, 还包括:
当检测到工作状态由未连接状态变为连接状态的端口时, 根据备份的该端 口的队列配置, 恢复该端口下的所有队列的队列配置, 重新为该端口下的队列 分配队列资源;
继续调度该端口下的队列。
6. 一种队列资源调配装置, 包括:
检测模块, 设置为检测网络中各个端口的工作状态; 配置模块,设置为在检测到工作状态由连接状态变为未连接状态的端口时, 将该端口下的所有队列的队列门限值设置为零, 并清空该端口下的所有队列占 用的队列缓存。
7. 根据权利要求 6所述的装置, 其中, 所述检测模块, 还设置为定时检测端口检 测使能位, 当所述端口检测使能位处于使能状态时, 检测网络中各个端口的工 作状态, 当所述端口检测使能位处于禁止状态时, 继续进行正常的队列调度。
8. 根据权利要求 6所述的装置, 其中, 所述配置模块, 还设置为备份所述工作状 态由连接状态变为未连接状态的端口下的所有队列的队列配置。
9. 根据权利要求 6至 8中任一项所述的装置, 其中, 还包括: 报文阻断模块, 设置为阻断所有向所述工作状态由连接状态变为未连接状 态的端口下的队列发送的业务报文;
调度模块, 设置为禁止调度该端口下的所有的队列。
10. 根据权利要求 8所述的装置, 其中, 所述配置模块, 还设置为在检测到工作状态由未连接状态变为连接状态的 端口时,根据备份的该端口的队列配置,恢复该端口下的所有队列的队列配置, 重新为该端口下的队列分配队列资源;
所述调度模块, 还设置为继续调度该端口下的队列。
PCT/CN2011/081150 2010-12-02 2011-10-21 队列资源调配方法及装置 WO2012071959A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010105711196A CN102487354A (zh) 2010-12-02 2010-12-02 队列资源调配方法及装置
CN201010571119.6 2010-12-02

Publications (1)

Publication Number Publication Date
WO2012071959A1 true WO2012071959A1 (zh) 2012-06-07

Family

ID=46152810

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/081150 WO2012071959A1 (zh) 2010-12-02 2011-10-21 队列资源调配方法及装置

Country Status (2)

Country Link
CN (1) CN102487354A (zh)
WO (1) WO2012071959A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546392A (zh) * 2012-07-12 2014-01-29 中兴通讯股份有限公司 队列单周期调度方法和装置

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791161A (zh) * 2016-03-03 2016-07-20 盛科网络(苏州)有限公司 一种快速清空队列缓存的方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6463484B1 (en) * 1999-07-09 2002-10-08 C-Sierra, Inc. Egress port scheduling using memory efficient request storage
CN1826768A (zh) * 2003-08-25 2006-08-30 思科技术公司 利用动态资源分配进行的大规模排队的可扩展方法
CN101651614A (zh) * 2009-09-14 2010-02-17 华为技术有限公司 多端口队列调度方法及设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100555216C (zh) * 2007-09-12 2009-10-28 华为技术有限公司 一种数据处理方法及处理器
CN101640600B (zh) * 2009-09-08 2011-08-31 杭州华三通信技术有限公司 一种保证组播组转发质量的方法及装置
CN101873269B (zh) * 2010-06-24 2014-03-19 杭州华三通信技术有限公司 数据转发设备和端口缓存的分配方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6463484B1 (en) * 1999-07-09 2002-10-08 C-Sierra, Inc. Egress port scheduling using memory efficient request storage
CN1826768A (zh) * 2003-08-25 2006-08-30 思科技术公司 利用动态资源分配进行的大规模排队的可扩展方法
CN101651614A (zh) * 2009-09-14 2010-02-17 华为技术有限公司 多端口队列调度方法及设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546392A (zh) * 2012-07-12 2014-01-29 中兴通讯股份有限公司 队列单周期调度方法和装置

Also Published As

Publication number Publication date
CN102487354A (zh) 2012-06-06

Similar Documents

Publication Publication Date Title
US10284389B2 (en) High availability for distributed network services in an extended bridge
US10263889B2 (en) Data forwarding method, device, and system in software-defined networking
JP5372615B2 (ja) パケット転送システム、網管理装置、及び、エッジノード
CN104954182B (zh) 一种用于配置虚拟服务器集群的方法和装置
US8144588B1 (en) Scalable resource management in distributed environment
CA2355473A1 (en) Buffer management for support of quality-of-service guarantees and data flow control in data switching
CN101447943B (zh) 队列调度系统及方法
WO2020232182A1 (en) Quality of service in virtual service networks
EP2938033A1 (en) Device and method for managing resources in multicast service
US11140091B2 (en) Openflow protocol-based resource control method and system, and apparatus
US7546367B2 (en) Methods and systems for managing network traffic by multiple constraints
US8665719B2 (en) Variable packet-size backplanes for switching and routing systems
CN102521057A (zh) 资源调度方法和装置
CN108600100B (zh) 成员端口选取方法和装置
JP6986588B2 (ja) ネットワーキング装置において効率的な仮想出力キュー(voq)パケットフラッシングスキームをサポートするためのシステムおよび方法
JP4852499B2 (ja) ノード装置及び通信網及びパス設定方法及びプログラム
WO2012071959A1 (zh) 队列资源调配方法及装置
CN108471354B (zh) 多租户软件定义网络中虚拟网络流表弹性切割系统及方法
JP4568364B2 (ja) 相互接続ファブリックにおいてユニキャスト・トラフィック及びマルチキャスト・トラフィックをスケジューリングする方法、装置、及びコンピュータ・プログラム(相互接続ファブリックにおいてユニキャスト・トラフィック及びマルチキャスト・トラフィックをスケジューリングする方法及び装置)
CN112272933B (zh) 队列控制方法、装置及存储介质
CN105337873B (zh) Mstp组网业务分配方法以及装置
Jiang et al. Adia: Achieving high link utilization with coflow-aware scheduling in data center networks
EP2846502B1 (en) Method and node for service to occupy protected resource in shared protection
CN107005487B (zh) 用于支持联网设备中的高效虚拟输出队列(voq)资源利用的系统和方法
CN103023811B (zh) 队列调度策略的切换方法及装置

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

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

Country of ref document: EP

Kind code of ref document: A1