WO2014075525A1 - 一种报文转发方法和装置 - Google Patents

一种报文转发方法和装置 Download PDF

Info

Publication number
WO2014075525A1
WO2014075525A1 PCT/CN2013/085230 CN2013085230W WO2014075525A1 WO 2014075525 A1 WO2014075525 A1 WO 2014075525A1 CN 2013085230 W CN2013085230 W CN 2013085230W WO 2014075525 A1 WO2014075525 A1 WO 2014075525A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
special
queue
forwarding
request
Prior art date
Application number
PCT/CN2013/085230
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 WO2014075525A1 publication Critical patent/WO2014075525A1/zh

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/6215Individual queue per QOS, rate or priority

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a packet forwarding method and apparatus.
  • BACKGROUND OF THE INVENTION In the field of communications, there are some special service models, such as El, Tl, and Time Division Multiplexing (Time Division).
  • Multiplexing services such as Multiplexing (TDM) are called special packets for these types of services.
  • TDM Multiplexing
  • the special messages require communication devices to provide low-latency, low-jitter, and constant-rate forwarding channels. Under normal circumstances, the device meets this requirement by increasing the packet priority and preempting the forwarding capacity of common data packets.
  • the ordinary packets also have high priority requirements, as shown in Figure 1. In this case, since the scheduling behavior of the system depends on the usage of physical resources (such as physical queues and physical forwarding channels, etc.), if the system is running under low load, there will be no problem; however, if the system is overloaded, In the case of bursty traffic, the high-priority bandwidth and buffers are shared between the special packets and the ordinary packets.
  • a packet forwarding method includes: creating a normal queue for buffering common packets and a special queue for buffering special packets, and creating an ordinary packet for the common queue.
  • the forwarding channel creates a special packet forwarding channel for the special queue.
  • the method of the embodiment of the present invention further includes: when creating a special queue for buffering special packets, requesting a resource scheduling module of the system to reserve resources for the special queue.
  • the resource scheduling module receives the packet forwarding request, the packet is The resource scheduling module determines whether the received packet forwarding request is a special packet forwarding request, and if yes, directly feeds back the request response message that allows the packet to be forwarded; otherwise, checks the current resource occupation status, and returns the permission according to the check result or Request response messages for forwarding messages are not allowed.
  • the requesting response message fed back by the resource scheduling module forwards the buffered normal message and the special message, including: receiving a forwarding request for the special message
  • the special message forwarding channel is directly used to send the corresponding special message; when receiving the response request for the ordinary message, it is determined according to the response message whether to allow forwarding, and if so, the ordinary The packet forwarding channel forwards the corresponding ordinary packet; otherwise, it does not forward.
  • the packet forwarding request and the request response message are transmitted through the special packet forwarding channel or transmitted through the ordinary packet forwarding channel according to the corresponding packet type;
  • the common packet queue includes multiple priority queues with priorities ranging from low to high.
  • a packet forwarding apparatus including: a queue creation module, configured to create a normal queue for buffering common packets and a special queue for buffering special packets; and a channel creation module, configured to A common packet forwarding channel is created for the common queue, and a special packet forwarding channel is created for the special queue.
  • the queue management module is configured to cache each packet to a corresponding queue according to the packet type when receiving the packet. And sending a message forwarding request to the resource scheduling module, and performing forwarding control on the buffered normal message and the special message according to the request response message fed back by the resource scheduling module; the resource scheduling module is set to receive the receiving When the packet forwarding request is performed, the request response message is fed back to the queue management module according to the current resource occupancy situation.
  • the queue creation module is further configured to: when creating a special queue for buffering special packets, send a resource allocation request to the resource scheduling module; And being configured to reserve resources for the special queue when receiving the resource allocation request sent by the queue creation module.
  • the resource scheduling module further includes: The detecting submodule is configured to detect whether the received packet forwarding request is a special packet forwarding request, and if yes, trigger the first scheduling submodule; otherwise, trigger the second scheduling submodule; the first scheduling submodule is set to be directly And the second scheduling sub-module is configured to check the current resource occupation status, and feed back, to the queue management module, a request for allowing or not allowing the packet to be forwarded according to the check result. Response message.
  • the queue management module is specifically configured to directly send the corresponding special packet by using the special packet forwarding channel when receiving the forwarding request response message for the special packet.
  • the common packet forwarding channel is used to forward the corresponding normal packet; otherwise, it is not forwarded.
  • the interaction information is transmitted through the special packet forwarding channel according to the packet type.
  • the normal packet forwarding channel is transmitted.
  • the common packet queue created by the queue creation module includes multiple priority queues with a lower priority.
  • the invention has the following advantages:
  • the present invention proposes a packet forwarding method and device, which can realize the use of the system to fully utilize the capability of the system to perform normal message forwarding while creating a corresponding special queue and a special packet forwarding channel for the special service.
  • the system's working ability has been greatly improved.
  • FIG. 1 is a schematic diagram of a common priority scheduling system of a communication system in the prior art
  • FIG. 2 is a flowchart of a packet forwarding method according to Embodiment 1 of the present invention
  • FIG. 3 is a report according to Embodiment 2 of the present invention
  • FIG. 4 is a flow chart of packet forwarding according to Embodiment 3 of the present invention.
  • the embodiment of the invention provides a packet forwarding method and device.
  • the method and the device fully utilize the capability of the system to forward common packets, and fully ensure the forwarding of special services and improve the working capability of the system.
  • the technical solutions provided by the present invention will be described below in terms of both methods and devices. As shown in FIG.
  • the embodiment of the present invention provides a packet forwarding method, where the method specifically includes: Step S201: Create a common queue for buffering common packets and a special queue for buffering special packets; preferably, In this step, when creating a special queue for buffering special packets, the resource scheduling module of the requesting system reserves resources for the special queue to ensure the forwarding of special packets.
  • the normal message queue includes multiple priority queues with priorities from low to high.
  • Step S202 Create a normal packet forwarding channel for the common queue, and create a special packet forwarding channel for the special queue.
  • Step S203 When receiving the packet, cache each packet to a corresponding queue according to the packet type.
  • Step S204 Send a packet forwarding request to the resource scheduling module of the system, and perform forwarding control on the buffered common packet and the special packet according to the request response message fed back by the resource scheduling module.
  • the packet forwarding request when the packet forwarding request is sent, the packet is transmitted through the special packet forwarding channel or transmitted through the ordinary packet forwarding channel according to the corresponding packet type.
  • the resource scheduling module when receiving the packet forwarding request, includes: the resource scheduling module determines whether the received packet forwarding request is a special packet forwarding request, and if yes, directly feeds back the request response message that allows the packet to be forwarded. Otherwise, the current resource occupancy status is checked, and a request response message that allows or does not allow forwarding of the message is fed back according to the check result.
  • the requesting response message fed back by the resource scheduling module is used to perform forwarding control on the buffered common packet and the special packet, and specifically includes: when receiving the forwarding request response message for the special packet, Directly using the special packet forwarding channel to send a corresponding special packet; when receiving a response request for a normal packet, determining whether to allow forwarding according to the response message, and if so, using the ordinary packet forwarding channel Forward the corresponding ordinary message; otherwise, it will not forward.
  • the packet forwarding method in the embodiment of the present invention implements the function of fully utilizing the capability of the system to perform normal packet forwarding while creating a corresponding special queue and a special packet forwarding channel for the special service. Fully guarantee the forwarding of special services, greatly improving the working capacity of the system.
  • an embodiment of the present invention provides a packet forwarding apparatus, which specifically includes: a queue creation module, configured to create a common queue for buffering ordinary packets and a special queue for buffering special packets;
  • the normal message queue includes multiple priority queues with priorities from low to high.
  • the channel creation module is configured to create a normal packet forwarding channel for the common queue and a special packet forwarding channel for the special queue.
  • the queue management module is configured to, when receiving the packet, press each packet according to the packet type.
  • the queue creation module is further configured to create a cache.
  • the resource scheduling module further includes: a detecting submodule, configured to detect whether the received packet forwarding request is a special packet forwarding request, and if yes, triggering the first scheduling submodule; Otherwise, the second scheduling sub-module is triggered; the first scheduling sub-module is configured to directly feed back the request response message for allowing the forwarding of the packet to the queue management module; and the second scheduling sub-module is configured to check the current resource occupancy, and according to The check result feeds back to the queue management module a request response message that allows or disallows forwarding of the message.
  • the queue management module is specifically configured to directly send the corresponding special packet by using the special packet forwarding channel when receiving the forwarding request response message for the special packet;
  • the queue management module is specifically configured to directly send the corresponding special packet by using the special packet forwarding channel when receiving the forwarding request response message for the special packet;
  • the response to the forwarding request of the ordinary packet is received, it is determined whether the forwarding is allowed according to the response message. If yes, the common packet forwarding channel is used to forward the corresponding ordinary packet; otherwise, it is not forwarded.
  • the device in the embodiment of the present invention implements the function of fully utilizing the system to perform normal packet forwarding by creating a corresponding special queue and a special packet forwarding channel for a special service. At the same time, it fully guarantees the forwarding of special services, which greatly improves the working ability of the system.
  • the third embodiment of the present invention is a further description of the apparatus according to the first embodiment and the apparatus of the second embodiment, and specifically relates to the following:
  • the packet forwarding apparatus provided by the embodiment of the present invention includes: a queue module (including a queue creation module) And the queue management module), the channel creation module and the resource scheduling module; wherein, the queue module is mainly configured to create various priority queues and special queues, and store and forward ordinary packets and special packets.
  • the channel creation module is mainly configured to create a shared priority channel and a shared special channel, which are respectively configured to implement forwarding of common packets and special packets.
  • the resource scheduling module is mainly configured to receive the response and reply of the request according to the resource occupation status when receiving the forwarding request of the queue module.
  • Step S401 The queue module creates and initializes various queues, including eight priorities with priorities from low to high.
  • the special queue is configured to send a resource allocation request to the resource scheduling module to request the resource scheduling module to reserve resources for the special queue.
  • Step S402 When receiving the packet, for the special The packet enters the special queue, and the ordinary packet enters the corresponding priority queue according to the priority; Step S403, the queue module sends a packet forwarding request to the resource scheduling module, specifically: if it is a special queue request, it is passed The shared special channel is forwarded; if it is a normal priority queue request, the shared priority channel is uniformly forwarded; in step S404, the resource scheduling module responds to the packet forwarding request according to the current resource occupancy of the system. Specifically: if it is a request for a special queue, then Checking resource occupancy immediately transmitted to the queue module allowing response forwarded; if it is a priority request queue, the need for resources is determined according to the situation and respond.
  • Step S405 the queue module controls the forwarding of the buffered message according to the response result of the request, which is specifically: for the packet of the special queue, after receiving the response of the resource scheduling module, sending the special packet through the shared special channel;
  • the packet of the normal priority queue determines whether the response of the resource scheduling module is allowed to be forwarded. If the forwarding is allowed, the packet is uniformly sent through the shared priority channel. If the forwarding is not allowed, the next forwarding request is sent.
  • the embodiment of the present invention achieves the function of fully utilizing the capability of the system to perform normal message forwarding while fully utilizing the special queue and the special packet forwarding channel for the special service, and fully guarantees the special service forwarding. Greatly improved the working capacity of the system.

Landscapes

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

Abstract

本发明公开了一种报文转发方法和装置,所述方法包括:创建缓存普通报文的普通队列和缓存特殊报文的特殊队列,以及为所述普通队列创建普通报文转发通道、为所述特殊队列创建特殊报文转发通道;在接收到报文时,按报文类型将各报文缓存到相应的队列中,并向系统的资源调度模块发送报文转发请求,以及根据所述资源调度模块反馈的请求响应消息,对缓存的普通报文和特殊报文进行转发控制。所述装置包括:队列创建模块、通道创建模块、队列管理模块和资源调度模块。本发明通过为特殊业务创建对应的特殊队列和特殊报文转发通道,实现了在充分利用系统的能力进行普通报文的转发同时,做到充分保证特殊业务转发,极大的提升了系统的工作能力。

Description

一种报文转发方法和装置 技术领域 本发明涉及通信技术领域, 尤其涉及一种报文转发方法和装置。 背景技术 在通信领域中, 存在一些特殊业务模型, 如 El、 Tl、 时分复用 (Time Division
Multiplexing, 简称为 TDM) 等仿真业务类型, 针对这些业务类型下的报文称为特殊 报文, 该特殊报文需要通讯设备提供低延时、 低抖动以及恒定速率的转发通道。 在通 常情况下, 设备都是通过提高报文优先级, 抢占普通数据报文的转发容量来达到这个 要求, 但是如果普通报文也要高优先级的需求, 如图 1所示。 这种情况下, 由于系统 的调度行为依赖于物理资源 (如物理队列以及物理转发通道等) 的使用情况, 如果系 统在低负荷运行情况下, 不会存在问题; 但是, 如果系统处于超负荷, 或者突发流量 的情况, 由于特殊报文与普通报文共享高优先级的带宽和缓冲区, 可能造成延时、 抖 动甚至丢包等情况, 无法满足特殊报文的转发需求。 发明内容 本发明实施例提供一种报文转发方法和装置, 用以解决现有技术中采用的报文转 发方式无法满足特殊报文转发需求的问题。 根据本发明实施例的一个方面, 提供了一种报文转发的方法, 该方法包括: 创建缓存普通报文的普通队列和缓存特殊报文的特殊队列, 以及为所述普通队列 创建普通报文转发通道、 为所述特殊队列创建特殊报文转发通道; 在接收到报文时, 按报文类型将各报文缓存到相应的队列中, 并向系统的资源调 度模块发送报文转发请求, 以及根据所述资源调度模块反馈的请求响应消息, 对缓存 的普通报文和特殊报文进行转发控制。 优选地, 本发明实施例所述方法还包括: 在创建缓存特殊报文的特殊队列时, 请 求系统的资源调度模块为所述特殊队列预留资源。 优选地, 本发明实施例所述方法中, 资源调度模块在接收到报文转发请求时, 包 所述资源调度模块判断接收到的报文转发请求是否为特殊报文转发请求, 若是, 则直接反馈允许转发报文的请求响应消息; 否则, 检查当前资源占用情况, 并根据检 查结果反馈允许或者不允许转发报文的请求响应消息。 优选地,本发明实施例所述方法中,所述根据资源调度模块反馈的请求响应消息, 对缓存的普通报文和特殊报文进行转发控制, 包括: 当接收到对特殊报文的转发请求响应消息时, 直接利用所述特殊报文转发通道发 送相应的特殊报文; 当接收到对普通报文的转发请求响应时, 根据该响应消息判断是 否允许转发, 若允许, 则利用所述普通报文转发通道转发相应的普通报文; 否则, 不 转发。 优选地, 本发明实施例所述方法中, 所述报文转发请求和请求响应消息根据其对 应的报文类型通过所述特殊报文转发通道传输或者通过所述普通报文转发通道传输; 优选地, 本发明实施例所述方法中, 普通报文队列包括优先级从低到高的多个优 先级队列。 根据本发明实施例的另一个方面, 还提供一种报文转发装置, 包括: 队列创建模块,设置为创建缓存普通报文的普通队列和缓存特殊报文的特殊队列; 通道创建模块, 设置为为所述普通队列创建普通报文转发通道、 为所述特殊队列 创建特殊报文转发通道; 队列管理模块, 设置为在接收到报文时, 按报文类型将各报文缓存到相应的队列 中, 并向资源调度模块发送报文转发请求, 以及根据所述资源调度模块反馈的请求响 应消息, 对缓存的普通报文和特殊报文进行转发控制; 资源调度模块, 设置为在接收到所述报文转发请求时, 根据当前资源占用情况, 向所述队列管理模块反馈请求响应消息。 优选地, 本发明实施例所述装置中, 所述队列创建模块, 还设置为在创建缓存特 殊报文的特殊队列时, 向所述资源调度模块发送资源分配请求; 所述资源调度模块, 还设置为在接收到所述队列创建模块发送的资源分配请求时, 为所述特殊队列预留资 源。 优选地, 本发明实施例所述装置中, 所述资源调度模块进一步包括: 检测子模块, 设置为检测接收到的报文转发请求是否为特殊报文转发请求,若是, 则触发第一调度子模块; 否则, 触发第二调度子模块; 第一调度子模块, 设置为直接向所述队列管理模块反馈允许转发报文的请求响应 消息; 第二调度子模块, 设置为检查当前资源占用情况, 并根据检查结果向所述队列管 理模块反馈允许或者不允许转发报文的请求响应消息。 优选地, 本发明实施例所述装置中, 所述队列管理模块, 具体设置为当接收到对 特殊报文的转发请求响应消息时, 直接利用所述特殊报文转发通道发送相应的特殊报 文; 当接收到对普通报文的转发请求响应时, 根据该响应消息判断是否允许转发, 若 允许, 则利用所述普通报文转发通道转发相应的普通报文; 否则, 不转发。 优选地, 本发明实施例所述装置中, 所述队列管理模块和资源调度模块间在进行 报文转发请求和请求响应消息交互时, 交互信息根据报文类型通过所述特殊报文转发 通道传输或者所述普通报文转发通道传输; 优选地, 本发明实施例所述装置中, 所述队列创建模块创建的普通报文队列包括 优先级从低到高的多个优先级队列。 本发明有益效果如下: 本发明提出了报文转发方法和装置, 通过为特殊业务创建对应的特殊队列和特殊 报文转发通道, 实现了在充分利用系统的能力进行普通报文的转发同时, 做到充分保 证特殊业务转发, 极大的提升了系统的工作能力。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例或现 有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图仅 仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的 前提下, 还可以根据这些附图获得其他的附图。 图 1为现有技术中通信系统普通的优先级调度系统示意图; 图 2为本发明实施例一提供的一种报文转发方法的流程图; 图 3为本发明实施例二提供的一种报文转发装置的示意图; 图 4为本发明实施例三提供的报文转发流程图。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完 整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所获得的 所有其他实施例, 都属于本发明保护的范围。 本发明实施例提供一种报文转发方法和装置, 所述方法和装置在充分利用系统的 能力进行普通报文的转发同时, 做到充分保证特殊业务转发, 提升系统的工作能力。 下面分别从方法和装置两个方面对本发明提供的技术方案进行展开说明。 实施例一 如图 2所示, 本发明实施例提供一种报文转发方法, 所述方法具体包括: 步骤 S201, 创建缓存普通报文的普通队列和缓存特殊报文的特殊队列; 优选地, 该步骤中, 在创建缓存特殊报文的特殊队列时, 请求系统的资源调度模 块为所述特殊队列预留资源, 用以保证特殊报文的转发。 该步骤中, 普通报文队列包括优先级从低到高的多个优先级队列。 步骤 S202, 为所述普通队列创建普通报文转发通道、 为所述特殊队列创建特殊报 文转发通道; 步骤 S203, 在接收到报文时, 按报文类型将各报文缓存到相应的队列中; 步骤 S204, 向系统的资源调度模块发送报文转发请求, 以及根据所述资源调度模 块反馈的请求响应消息, 对缓存的普通报文和特殊报文进行转发控制。 该步骤中, 在发送报文转发请求时, 根据其对应的报文类型通过所述特殊报文转 发通道传输或者通过所述普通报文转发通道传输。 该步骤中, 资源调度模块在接收到报文转发请求时, 包括: 资源调度模块判断接收到的报文转发请求是否为特殊报文转发请求, 若是, 则直 接反馈允许转发报文的请求响应消息; 否则, 检查当前资源占用情况, 并根据检查结 果反馈允许或者不允许转发报文的请求响应消息。 优选地, 该步骤中, 所述根据资源调度模块反馈的请求响应消息, 对缓存的普通 报文和特殊报文进行转发控制, 具体包括: 当接收到对特殊报文的转发请求响应消息时, 直接利用所述特殊报文转发通道发 送相应的特殊报文; 当接收到对普通报文的转发请求响应时, 根据该响应消息判断是 否允许转发, 若允许, 则利用所述普通报文转发通道转发相应的普通报文; 否则, 不 转发。 综上所述, 本发明实施例所述报文转发方法, 通过为特殊业务创建对应的特殊队 列和特殊报文转发通道, 实现了在充分利用系统的能力进行普通报文的转发同时, 做 到充分保证特殊业务转发, 极大的提升了系统的工作能力。
实施例二 如图 3所示, 本发明实施例提供一种报文转发装置, 具体包括: 队列创建模块,设置为创建缓存普通报文的普通队列和缓存特殊报文的特殊队列; 其中, 所述普通报文队列包括优先级从低到高的多个优先级队列。 通道创建模块, 设置为为所述普通队列创建普通报文转发通道、 为所述特殊队列 创建特殊报文转发通道; 队列管理模块, 设置为在接收到报文时, 按报文类型将各报文缓存到相应的队列 中, 并向资源调度模块发送报文转发请求, 以及根据所述资源调度模块反馈的请求响 应消息, 对缓存的普通报文和特殊报文进行转发控制; 资源调度模块, 设置为在接收到所述报文转发请求时, 根据当前资源占用情况, 向所述队列管理模块反馈请求响应消息。 基于上述装置架构, 下面给出上述各模块实现报文转发的优选实现方式和 /或具体 实现方式: 优选地, 本发明实施例所述装置中, 所述队列创建模块, 还设置为在创建缓存特 殊报文的特殊队列时, 向所述资源调度模块发送资源分配请求; 所述资源调度模块, 还设置为在接收到所述队列创建模块发送的资源分配请求时, 为所述特殊队列预留资 源。 本发明实施例所述装置中, 所述资源调度模块, 进一步包括: 检测子模块, 设置为检测接收到的报文转发请求是否为特殊报文转发请求,若是, 则触发第一调度子模块; 否则, 触发第二调度子模块; 第一调度子模块, 设置为直接向所述队列管理模块反馈允许转发报文的请求响应 消息; 第二调度子模块, 设置为检查当前资源占用情况, 并根据检查结果向所述队列 管理模块反馈允许或者不允许转发报文的请求响应消息。 本发明实施例所述装置中, 所述队列管理模块, 具体设置为当接收到对特殊报文 的转发请求响应消息时, 直接利用所述特殊报文转发通道发送相应的特殊报文; 当接 收到对普通报文的转发请求响应时, 根据该响应消息判断是否允许转发, 若允许, 则 利用所述普通报文转发通道转发相应的普通报文; 否则, 不转发。 本发明实施例所述装置中, 所述队列管理模块和资源调度模块间在进行报文转发 请求和请求响应消息交互时, 交互信息根据报文类型通过所述特殊报文转发通道传输 或者所述普通报文转发通道传输; 综上所述, 本发明实施例所述装置, 通过为特殊业务创建对应的特殊队列和特殊 报文转发通道, 实现了在充分利用系统的能力进行普通报文的转发同时, 做到充分保 证特殊业务转发, 极大的提升了系统的工作能力。
实施例三 本发明实施例是对实施例一所述方法和实施例二所述装置的进一步阐述, 具体涉 及如下内容: 本发明实施例提供的报文转发装置包括: 队列模块 (包括队列创建模块和队列管 理模块), 通道创建模块和资源调度模块; 其中, 队列模块, 主要设置为创建各种优先级队列和特殊队列, 实现存储普通报 文和特殊报文的存储和转发。 通道创建模块, 主要设置为创建共享的优先级通道和共享的特殊通道, 分别设置 为实现普通报文和特殊报文的转发。 资源调度模块, 主要设置为接收队列模块的转发请求时, 根据资源占用情况进行 请求的响应和回复。 下面就结合方法流程对上述装置实现报文转发的过程进行进一步说明, 如图 4所 示, 具体包括: 步骤 S401, 队列模块创建和初始化各种队列, 包含优先级从低到高的八个优先级 队列和一个特殊队列; 优选地, 在创建特殊队列时, 向资源调度模块发送资源分配请 求, 用以请求资源调度模块为特殊队列预留资源; 步骤 S402, 当接收到报文时, 对于特殊报文, 进入特殊队列, 对于普通报文, 根 据优先级进入相应的优先级队列; 步骤 S403, 队列模块向资源调度模块发送报文转发请求, 具体为: 如果是特殊队 列的请求, 则是通过共享的特殊通道来进行转发; 如果是普通的优先级队列的请求, 则进入共享的优先级通道统一转发; 步骤 S404, 资源调度模块根据系统当前资源的占用情况, 对报文转发请求进行响 应, 具体为: 如果是特殊队列的请求, 则不检查的资源的占用情况, 立刻向队列模块 发送允许转发的响应; 如果是优先级队列的请求, 则需要根据资源的情况进行判断并 响应。 步骤 S405, 队列模块根据请求的响应结果, 控制缓存报文的转发, 具体为: 对于 特殊队列的报文, 在接收到资源调度模块的响应后, 通过共享的特殊通道来发送特殊 报文; 对于普通优先级队列的报文, 则判断资源调度模块的响应是否允许转发, 若允 许转发, 则通过共享的优先级通道来统一发送报文; 若不允许转发, 则等待下次发起 转发请求。 综上所述, 本发明实施例通过为特殊业务创建对应的特殊队列和特殊报文转发通 道, 实现了在充分利用系统的能力进行普通报文的转发同时, 做到充分保证特殊业务 转发, 极大的提升了系统的工作能力。 显然, 本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精 神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的 范围之内, 则本发明也意图包含这些改动和变型在内。 工业实用性 本发明实施例提供的技术方案可以应用于特殊业务模型领域, 通过为特殊业务创 建对应的特殊队列和特殊报文转发通道, 实现了在充分利用系统的能力进行普通报文 的转发同时, 做到充分保证特殊业务转发, 极大的提升了系统的工作能力。

Claims

权 利 要 求 书 、 一种报文转发方法, 包括:
创建缓存普通报文的普通队列和缓存特殊报文的特殊队列, 以及为所述普 通队列创建普通报文转发通道、 为所述特殊队列创建特殊报文转发通道; 在接收到报文时, 按报文类型将各报文缓存到相应的队列中, 并向系统的 资源调度模块发送报文转发请求, 以及根据所述资源调度模块反馈的请求响应 消息, 对缓存的普通报文和特殊报文进行转发控制。 、 如权利要求 1所述的方法, 其中, 所述方法还包括: 在创建缓存特殊报文的特 殊队列时, 请求系统的资源调度模块为所述特殊队列预留资源。 、 如权利要求 2所述的方法, 其中, 所述方法中, 资源调度模块在接收到报文转 发请求时, 包括:
所述资源调度模块判断接收到的报文转发请求是否为特殊报文转发请求, 若是, 则直接反馈允许转发报文的请求响应消息; 否则, 检查当前资源占用情 况, 并根据检查结果反馈允许或者不允许转发报文的请求响应消息。 、 如权利要求 2或 3所述的方法, 其中, 所述根据资源调度模块反馈的请求响应 消息, 对缓存的普通报文和特殊报文进行转发控制, 包括:
当接收到对特殊报文的转发请求响应消息时, 直接利用所述特殊报文转发 通道发送相应的特殊报文; 当接收到对普通报文的转发请求响应时, 根据该响 应消息判断是否允许转发, 若允许, 则利用所述普通报文转发通道转发相应的 普通报文; 否则, 不转发。 、 如权利要求 1或 2或 3所述的方法, 其中,
所述方法中, 所述报文转发请求和请求响应消息根据其对应的报文类型通 过所述特殊报文转发通道传输或者通过所述普通报文转发通道传输;
所述方法中, 普通报文队列包括优先级从低到高的多个优先级队列。 、 一种报文转发装置, 包括:
队列创建模块, 设置为创建缓存普通报文的普通队列和缓存特殊报文的特 殊队列; 通道创建模块, 设置为为所述普通队列创建普通报文转发通道、 为所述特 殊队列创建特殊报文转发通道;
队列管理模块, 设置为在接收到报文时, 按报文类型将各报文缓存到相应 的队列中, 并向资源调度模块发送报文转发请求, 以及根据所述资源调度模块 反馈的请求响应消息, 对缓存的普通报文和特殊报文进行转发控制;
资源调度模块, 设置为在接收到所述报文转发请求时, 根据当前资源占用 情况, 向所述队列管理模块反馈请求响应消息。 、 如权利要求 6所述的装置, 其中,
所述队列创建模块, 还设置为在创建缓存特殊报文的特殊队列时, 向所述 资源调度模块发送资源分配请求;
所述资源调度模块, 还设置为在接收到所述队列创建模块发送的资源分配 请求时, 为所述特殊队列预留资源。 、 如权利要求 7所述的装置, 其中, 所述资源调度模块进一步包括:
检测子模块,设置为检测接收到的报文转发请求是否为特殊报文转发请求, 若是, 则触发第一调度子模块; 否则, 触发第二调度子模块;
第一调度子模块, 设置为直接向所述队列管理模块反馈允许转发报文的请 求响应消息;
第二调度子模块, 设置为检查当前资源占用情况, 并根据检查结果向所述 队列管理模块反馈允许或者不允许转发报文的请求响应消息。 、 如权利要求 7或 8所述的装置, 其中, 所述队列管理模块, 具体设置为当接收 到对特殊报文的转发请求响应消息时, 直接利用所述特殊报文转发通道发送相 应的特殊报文; 当接收到对普通报文的转发请求响应时, 根据该响应消息判断 是否允许转发, 若允许, 则利用所述普通报文转发通道转发相应的普通报文; 否则, 不转发。 0、 如权利要求 6或 7或 8所述的装置, 其中,
所述队列管理模块和资源调度模块间在进行报文转发请求和请求响应消息 交互时, 交互信息根据报文类型通过所述特殊报文转发通道传输或者所述普通 报文转发通道传输; 所述队列创建模块创建的普通报文队列包括优先级从低到高的多个优先级 队列。
PCT/CN2013/085230 2012-11-14 2013-10-15 一种报文转发方法和装置 WO2014075525A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210456997.2 2012-11-14
CN201210456997.2A CN102957626B (zh) 2012-11-14 2012-11-14 一种报文转发方法和装置

Publications (1)

Publication Number Publication Date
WO2014075525A1 true WO2014075525A1 (zh) 2014-05-22

Family

ID=47765873

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/085230 WO2014075525A1 (zh) 2012-11-14 2013-10-15 一种报文转发方法和装置

Country Status (2)

Country Link
CN (1) CN102957626B (zh)
WO (1) WO2014075525A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957626B (zh) * 2012-11-14 2016-08-10 中兴通讯股份有限公司 一种报文转发方法和装置
CN106656804B (zh) * 2017-02-05 2019-11-19 北京中航通用科技有限公司 低延时的报文转发方法、装置及交换机
CN109450941B (zh) * 2018-12-25 2021-07-23 安捷光通科技成都有限公司 一种抗DDoS的SDN控制器消息调度方法
CN113630318B (zh) * 2020-05-06 2023-05-12 华为技术有限公司 报文传输的方法和框式通信设备
CN112398755B (zh) * 2020-11-23 2023-10-24 北京锐安科技有限公司 一种流量转发方法、业务卡和系统
CN113852555B (zh) * 2021-09-26 2022-12-16 天翼数字生活科技有限公司 一种基于网关的多通道路由快速转发和智能选路方法
CN115225734A (zh) * 2022-09-20 2022-10-21 常州楠菲微电子有限公司 一种报文处理方法和网络设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050117589A1 (en) * 2003-08-13 2005-06-02 Cesar Douady Method and device for managing priority during the transmission of a message
CN102333026A (zh) * 2011-06-13 2012-01-25 中兴通讯股份有限公司 报文转发方法及装置
CN102647352A (zh) * 2012-04-05 2012-08-22 北京星网锐捷网络技术有限公司 报文转发方法、装置和通讯设备
CN102957626A (zh) * 2012-11-14 2013-03-06 中兴通讯股份有限公司 一种报文转发方法和装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1297097C (zh) * 2003-04-09 2007-01-24 华为技术有限公司 提高网络拥塞时数据传输性能的方法
CN101150496A (zh) * 2006-09-22 2008-03-26 中兴通讯股份有限公司 提高重要信息网络传输质量的方法
US8179896B2 (en) * 2006-11-09 2012-05-15 Justin Mark Sobaje Network processors and pipeline optimization methods
JP4753909B2 (ja) * 2007-04-12 2011-08-24 アラクサラネットワークス株式会社 トラヒックシェーピング回路、端末装置及びネットワークノード
CN101075968A (zh) * 2007-07-23 2007-11-21 中兴通讯股份有限公司 提供区分服务的方法与装置
CN101453345B (zh) * 2007-12-07 2011-07-27 上海贝尔阿尔卡特股份有限公司 一种基于服务提供商的组播接入控制方法及其接入设备
JP5520316B2 (ja) * 2009-01-19 2014-06-11 コーニンクレッカ フィリップス エヌ ヴェ メッシュネットワークおいてフレームを伝送する方法、並びにそのためのメッシュ装置及びメッシュネットワーク
CN102546546B (zh) * 2010-12-21 2016-08-24 南京中兴新软件有限责任公司 标识网中实现QoS的方法和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050117589A1 (en) * 2003-08-13 2005-06-02 Cesar Douady Method and device for managing priority during the transmission of a message
CN102333026A (zh) * 2011-06-13 2012-01-25 中兴通讯股份有限公司 报文转发方法及装置
CN102647352A (zh) * 2012-04-05 2012-08-22 北京星网锐捷网络技术有限公司 报文转发方法、装置和通讯设备
CN102957626A (zh) * 2012-11-14 2013-03-06 中兴通讯股份有限公司 一种报文转发方法和装置

Also Published As

Publication number Publication date
CN102957626B (zh) 2016-08-10
CN102957626A (zh) 2013-03-06

Similar Documents

Publication Publication Date Title
WO2014075525A1 (zh) 一种报文转发方法和装置
EP3720069A1 (en) Method, device and system for sending message
WO2016192466A1 (zh) 一种进行调度的方法和设备
JP5205519B2 (ja) 帯域幅割り当て方法及びルーティング装置
CN109314673B (zh) 一种客户业务传输方法和装置
EP1836811A1 (en) Name service in a multihop wireless ad hoc network
WO2020155185A1 (zh) 报文调度方法、调度器、网络设备和网络系统
TW200926860A (en) Method for providing a buffer status report in a mobile communication network
US10362632B2 (en) Architecture for radio access network and evolved packet core
JP2007142764A (ja) 局側装置における帯域割当装置、帯域割当方法および帯域割当プログラム
US10263906B2 (en) Flow scheduling device and method
WO2021148020A1 (zh) 调整服务等级的方法、装置、设备及存储介质
US10911364B2 (en) Packet processing method and router
WO2014114188A1 (zh) 一种层次化服务质量调度方法和装置
CN112583726A (zh) 一种流量控制的方法及装置
WO2014059838A1 (zh) 服务质量策略的调整方法及设备
CN102333026A (zh) 报文转发方法及装置
US20110158093A1 (en) Bandwidth control method and bandwidth control device in node device
US11677673B1 (en) Low latency flow control in data centers
CN101247325B (zh) 一种实现新业务加入的方法和系统
JP4382830B2 (ja) パケット転送装置
CN103428028B (zh) 异构网络的服务质量维护方法及系统
WO2008128464A1 (fr) Dispositif et procédé pour réaliser le transfert d'un flux unique par de multiples unités de traitement en réseau
JP2023016381A (ja) 情報通信装置、及び情報通信方法
JP7193787B2 (ja) 通信システム、ブリッジ装置、通信方法、及びプログラム

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

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

Country of ref document: EP

Kind code of ref document: A1