WO2016206513A1 - Method of boosting data processing, and assignment device and switch utilizing same - Google Patents

Method of boosting data processing, and assignment device and switch utilizing same Download PDF

Info

Publication number
WO2016206513A1
WO2016206513A1 PCT/CN2016/083045 CN2016083045W WO2016206513A1 WO 2016206513 A1 WO2016206513 A1 WO 2016206513A1 CN 2016083045 W CN2016083045 W CN 2016083045W WO 2016206513 A1 WO2016206513 A1 WO 2016206513A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
message
acceleration
accelerated
type
Prior art date
Application number
PCT/CN2016/083045
Other languages
French (fr)
Chinese (zh)
Inventor
许珊珊
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016206513A1 publication Critical patent/WO2016206513A1/en

Links

Images

Definitions

  • the present application relates to, but is not limited to, the field of network technologies, and in particular, a method, a distribution device, and a switch for accelerating processing of data.
  • OAM Operaation Administration and Maintenance
  • CFM Connectivity Fault Management
  • BFD Bidirectional Forwarding Detection
  • the main purpose of the present application is to provide a method, a distribution device, and a switch for speeding up processing of data, thereby effectively improving data processing capabilities.
  • the present application proposes a method for speeding up processing of data, including:
  • the packet is added to the acceleration packet queue to process the acceleration packet in the acceleration packet queue by the acceleration processing device.
  • the packet is added to the non-accelerated packet queue.
  • the non-accelerated message in the non-accelerated message queue is processed by a conventional processing device.
  • the packet is added to the acceleration packet queue, so that the acceleration processing device processes the acceleration packet in the acceleration packet queue.
  • the steps include:
  • the type of the packet is an acceleration packet, determining a service type of the packet;
  • the step of determining the type of the received message includes:
  • the type of the packet is an acceleration packet
  • the type of the packet is a non-accelerated packet.
  • the application further provides a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
  • the application also provides a device for accelerating the processing of data, comprising:
  • a type judging module configured to determine a type of the message received through the network interface
  • the acceleration message adding module is configured to add the message to the acceleration message queue when the type of the message is an acceleration message, so that the acceleration processing device processes the acceleration report in the acceleration message queue.
  • the non-accelerated message adding module is configured to: when the type of the message is a non-accelerated message, send the message to the non-accelerated message queue to process the non-accelerated message by the conventional processing device. Non-accelerated messages in the queue.
  • the acceleration packet adding module is configured to determine a service type of the packet when the type of the packet is an acceleration packet, and set the packet according to a service type of the packet. Add to And in the acceleration packet queue corresponding to the service type, the acceleration processing device sequentially accelerates and processes the acceleration packets in each of the acceleration message queues.
  • the type determining module is configured to determine, according to a protocol type of the packet, a type of the packet: when the protocol type of the packet is an operation management and maintenance OAM protocol, where the packet is The type is an acceleration packet.
  • the protocol type of the packet is not the OAM protocol, the type of the packet is a non-accelerated packet.
  • the present application also provides a switch for speeding up processing of data, including a distribution device, an acceleration processing device, and a conventional processing device;
  • the dispensing device comprises:
  • a type judging module configured to determine a type of the received message
  • the acceleration message adding module is configured to add the message to the acceleration message queue when the type of the message is an acceleration message, to process, by the acceleration processing device, the cached message queue Accelerate the message;
  • the non-accelerated message adding module is configured to add the message to the non-accelerated message queue when the type of the message is a non-accelerated message, to process the non-accelerated message by the conventional processing device.
  • the acceleration processing device is configured to process an accelerated message in the accelerated message queue
  • the conventional processing device is configured to process non-accelerated messages in the non-accelerated message queue.
  • the acceleration processing device is configured to batch process the accelerated packets in the plurality of the accelerated message queues corresponding to the respective accelerated services according to the accelerated message queue in which the acceleration message is located.
  • the conventional processing device is configured to limit the rate at which the non-accelerated message in the non-accelerated message queue is sent and received.
  • the switch in the present application includes a plurality of processing devices, and the acceleration message and the non-acceleration message are allocated to different processing devices for processing, and the acceleration processing device for processing the accelerated message does not need to determine the need.
  • the priority of the service corresponding to the packet queue in which the processed packet is located can process the accelerated packet in batches, which is beneficial to improving the efficiency of processing the accelerated message, and avoids processing the non-accelerated message by the accelerated processing device.
  • the efficiency of processing the accelerated message is reduced.
  • the conventional processing device has the ability to process the non-accelerated message and the control program without processing the accelerated message requiring more computing resources, thereby reducing the load of the conventional processing device and improving the load. The efficiency of the switch processing messages.
  • FIG. 1 is a flowchart of a first embodiment of a method for speeding up processing of data provided by the present application
  • step S30 of the second embodiment of the method for speeding up processing of data provided by the present application is a flowchart of step S30 of the second embodiment of the method for speeding up processing of data provided by the present application
  • step S20 of the third embodiment of the method for speeding up processing of data provided by the present application is a flowchart of step S20 of the third embodiment of the method for speeding up processing of data provided by the present application
  • FIG. 4 is a schematic diagram of an apparatus for distributing accelerated processing data provided by the present application.
  • FIG. 5 is a schematic structural diagram of a switch for speeding up processing data provided by the present application.
  • FIG. 1 is a flowchart of a first embodiment of a method for speeding up processing of data provided by the present application.
  • the method for speeding up processing data mentioned in this embodiment includes:
  • Step S20 determining the type of the received message
  • the switch in this embodiment includes a plurality of processing devices, and the plurality of processing devices can be divided into two groups, one set is configured to process control messages and other messages requiring less computing resources, and the other group is set to be Accelerated messages requiring more computing resources.
  • This embodiment takes two processing devices as an example.
  • the switch receives the packet through the network interface, and the packet is classified by the distribution device in the switch.
  • the distribution device distinguishes the type of the packet by using an ACL (Access Control List) or a unicast route.
  • ACL Access Control List
  • the packets that require more computing resources are accelerated packets and are added to the accelerated packet queue.
  • the packets of the resource are ordinary packets, that is, non-accelerated packets, which are added to the non-accelerated message queue.
  • Step S30 When the type of the packet is an acceleration packet, the packet is added to the acceleration packet queue, so that the acceleration processing device processes the acceleration packet in the accelerated message queue.
  • the distribution device sequentially adds the acceleration message to the acceleration message queue.
  • the acceleration processing device can process the acceleration packets in the multiple acceleration packet queues corresponding to the multiple acceleration services, and the different types of acceleration packets can be added to different acceleration packet queues, and can be grouped according to the service type of the packet. Or, in the order of the message, put them into each accelerated message queue. After the packets are grouped, the accelerated packets in each accelerated packet queue are accelerated. Because the packets in the accelerated packet queue require more computing resources to speed up the processing, the packets in the same accelerated packet queue can be processed in batches at the same time, which is beneficial to improve the efficiency of processing the packets.
  • Step S40 When the type of the packet is a non-accelerated packet, the packet is added to the non-accelerated packet queue to process the non-accelerated packet in the non-accelerated packet queue by the conventional processing device.
  • the non-accelerated message requires less computing resources and does not require a shorter response time, it does not need to be accelerated, and can be processed by a conventional processing device, thereby avoiding an increase in the load of the acceleration processing device set to handle the accelerated service, while avoiding the non-accelerated report.
  • the longer response time required by the text reduces the efficiency of the acceleration processing device in processing the accelerated message, thereby avoiding the impact on the efficiency of processing the accelerated message.
  • the switch in this embodiment includes an acceleration processing device and a conventional processing device, and the accelerated message and the non-accelerated message are respectively processed by the corresponding acceleration processing device or the conventional processing device, which is beneficial to improving the efficiency of processing the accelerated message and avoiding The efficiency of processing the accelerated message is reduced because the acceleration processing device processes the non-accelerated message.
  • the conventional processing device has the ability to process the non-accelerated message and the control program without processing the acceleration report requiring more computing resources. Therefore, the load of the conventional processing device is reduced, and the efficiency of processing the message by the switch is improved.
  • FIG. 2 is a flowchart of step S30 of the second embodiment of the method for speeding up processing of data provided by the present application.
  • This embodiment includes the steps in the embodiment shown in FIG. 1, wherein step S30 includes:
  • Step S31 When the type of the packet is an acceleration packet, determine the service type of the packet.
  • Step S32 Add the packet to the acceleration packet queue corresponding to the service type according to the service type of the packet, so that the acceleration processing device separately accelerates and processes the acceleration packet in each of the accelerated packet queues.
  • the acceleration processing device of the embodiment processes the acceleration packets in the plurality of accelerated message queues, and the different service types correspond to different acceleration message queues.
  • the distribution device will be different.
  • the service type packet is added to the corresponding acceleration packet queue.
  • FIG. 3 is a flowchart of step S20 of the third embodiment of the method for speeding up processing of data provided by the present application.
  • This embodiment includes the steps in the embodiment shown in FIG. 1, wherein step S20 includes:
  • Step S21 Determine the type of the packet according to the protocol type of the packet:
  • Step S22 When the protocol type of the packet is the OAM protocol, the type of the packet is an acceleration packet.
  • step S23 when the protocol type of the packet is not the OAM protocol, the type of the packet is a non-accelerated packet.
  • the packet when determining the packet type, the packet is classified according to the protocol type of the packet.
  • the OAM protocol such as CFM and BFD, has high requirements on time performance. Therefore, packets with the protocol type of OAM can be accelerated as acceleration packets.
  • the priority of the processing packet can be defined in advance, and the packet with the priority higher than the threshold is used as the acceleration packet to implement packet classification.
  • determining whether the packet is an accelerated packet according to the type of the packet protocol is simple, and the method for determining the efficiency of the packet is improved, thereby improving the processing efficiency of the switch.
  • Embodiments of the present invention further provide a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
  • FIG. 4 is a schematic diagram of an apparatus for distributing accelerated processing data provided by the present application.
  • the device for accelerating processing data mentioned in this embodiment includes:
  • the type determining module 120 is configured to determine the type of the received message
  • the acceleration message adding module 130 is configured to add the message to the acceleration message queue when the type of the message is an acceleration message, so that the acceleration processing device processes the acceleration message in the accelerated message queue;
  • the non-acceleration packet adding module 110 is configured to add a packet to the non-accelerated packet queue when the type of the packet is a non-accelerated packet, so that the non-acceleration in the non-accelerated packet queue is processed by the conventional processing device. Message.
  • the switch in this embodiment includes a plurality of processing devices, and the plurality of processing devices can be divided into two groups, one set to process control messages and other messages requiring less computing resources, and the other set to process requirements. Accelerated messages with more computing resources.
  • This embodiment takes two processing devices as an example.
  • the switch receives the packet through the network interface, and the packet is classified by the distribution device in the switch.
  • the device allocates packets of different computing resources to the accelerating packet queue by using an ACL or a unicast route.
  • the packets that require less computing resources are ordinary packets. That is, non-accelerated messages are added to the non-accelerated message queue.
  • the distribution device sequentially adds the acceleration message to the acceleration message queue.
  • the acceleration processing device can process the acceleration packets in the multiple acceleration packet queues corresponding to the multiple acceleration services, and the different types of acceleration packets can be added to different acceleration packet queues, and can be grouped according to the service type of the packet. Or, in the order of the message, put them into each accelerated message queue. After the packets are grouped, the accelerated packets in each accelerated packet queue are accelerated. Due to acceleration in the message queue Packets require more computing resources to speed up processing. Therefore, when processing, batches of packets in the same accelerated packet queue can be processed in batches, which is beneficial to improve the efficiency of processing packets.
  • the non-accelerated message requires less computing resources and does not require a shorter response time, it does not need to be accelerated, and can be processed by a conventional processing device, thereby avoiding an increase in the load of the acceleration processing device set to handle the accelerated service, while avoiding the non-accelerated report.
  • the longer response time required by the text reduces the efficiency of the acceleration processing device in processing the accelerated message, thereby avoiding the impact on the efficiency of processing the accelerated message.
  • the switch in this embodiment includes an acceleration processing device and a conventional processing device, and the accelerated message and the non-accelerated message are respectively processed by the corresponding acceleration processing device or the conventional processing device, which is beneficial to improving the efficiency of processing the accelerated message and avoiding The efficiency of processing the accelerated message is reduced because the acceleration processing device processes the non-accelerated message.
  • the conventional processing device has the ability to process the non-accelerated message and the control program without processing the accelerated message requiring more computing resources. Thereby reducing the load of the conventional processing device and improving the efficiency of the switch processing the message.
  • the acceleration packet adding module 130 is configured to determine a service type of the packet when the type of the packet is an acceleration packet.
  • the packet is added to the acceleration packet queue corresponding to the service type, so that the acceleration processing device accelerates the acceleration of the acceleration packet in each of the accelerated packet queues.
  • the acceleration processing device of the embodiment processes the acceleration packets in the plurality of accelerated message queues, and the different service types correspond to different acceleration message queues.
  • the distribution device will be different.
  • the service type packet is added to the corresponding acceleration packet queue.
  • the allocation device in this embodiment adds the packet to the non-additional packet.
  • the fast message queue is sent to the conventional processing device for processing. Since the conventional processing device also needs to process the control message, in order to avoid the burden of the conventional processing device, the conventional processing device needs to limit the rate of sending and receiving non-accelerated messages, and avoids a large number of non-accelerated messages being sent to the conventional processing device, causing the conventional processing device to be overloaded. Big. At the same time, since the accelerated message and the non-accelerated message are classified into their respective queues, the longer response time required to process the control message and the non-accelerated message does not affect the efficiency of processing the accelerated message, which is beneficial to satisfy the acceleration. The processing efficiency of packets improves the efficiency of packets processed by the switch.
  • the type judging module 120 is configured to determine the type of the packet according to the protocol type of the packet: when the protocol type of the packet is OAM, the type of the packet is an accelerated packet; and the protocol type of the packet. When the OAM protocol is not used, the type of the packet is non-accelerated.
  • the packet when determining the packet type, the packet is classified according to the protocol type of the packet.
  • the OAM protocol such as CFM and BFD, has high requirements on time performance. Therefore, packets with the protocol type of OAM can be accelerated as acceleration packets.
  • the priority of the processing packet can be defined in advance, and the packet with the priority higher than the threshold is used as the acceleration packet to implement packet classification.
  • determining whether the packet is an accelerated packet according to the type of the packet protocol is simple, and the method for determining the efficiency of the packet is improved, thereby improving the processing efficiency of the switch.
  • FIG. 5 is a schematic structural diagram of a switch for speeding up processing data provided by the present application.
  • the switch for speeding up processing data proposed in this embodiment includes a distribution device 100, an acceleration processing device 400, and a conventional processing device 500;
  • the dispensing device 100 includes:
  • the type determining module 120 is configured to determine the type of the received message
  • the acceleration message adding module 130 is configured to add the message to the acceleration message queue when the type of the message is an acceleration message, so that the acceleration processing device 400 processes the acceleration message in the accelerated message queue;
  • the non-acceleration packet adding module 110 is configured to report when the type of the packet is a non-accelerated packet.
  • the text is added to the non-accelerated message queue to process the non-accelerated message in the non-accelerated message queue by the conventional processing device 500;
  • the acceleration processing device 400 is configured to process the accelerated message in the accelerated message queue
  • the conventional processing device 500 is configured to process non-accelerated messages in the non-accelerated message queue.
  • the acceleration processing device 400 is configured to batch process the accelerated packets in the plurality of accelerated message queues corresponding to the respective accelerated services according to the accelerated message queue in which the accelerated message is located.
  • the conventional processing device 500 is configured to limit the rate at which the non-accelerated messages in the non-accelerated message queue are sent and received.
  • the switch in this embodiment includes the acceleration processing device 400 and the conventional processing device 500.
  • the acceleration processing device 400 and the conventional processing device 500 can be as shown in FIG. 5, and the structure and principle thereof can be referred to the above embodiments, and details are not described herein. Since the switch in the embodiment includes the acceleration processing device 400 and the normal processing device 500, the acceleration message and the non-acceleration message are allocated to the corresponding acceleration processing device 400 and the conventional processing device 500 for processing, which is advantageous for improving the processing acceleration report.
  • the accelerated message of the resource is calculated, thereby reducing the load of the conventional processing device 500 and improving the efficiency of the switch processing the message.
  • the switch in the present application includes a plurality of processing devices, and the acceleration message and the non-acceleration message are respectively processed to different processing devices, and the acceleration processing device for processing the acceleration message does not need to determine the message in which the message to be processed is located.
  • the priority of the service corresponding to the queue can process the accelerated message in batches, which is beneficial to improving the efficiency of processing the accelerated message, and avoids reducing the efficiency of processing the accelerated message by the accelerated processing device processing the non-accelerated message.
  • the conventional processing device has the ability to process the non-accelerated message and the control program without processing the accelerated message requiring more computing resources, thereby reducing the load of the conventional processing device and improving the efficiency of the switch processing the message.

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A Method of boosting data processing comprises: determining a type of a received packet; when the type of the received packet is a boost packet, adding the received packet to a boost packet queue so as to process the boost packet using a boost processing device; and when the type of the received packet is a non-boost packet, adding the received packet to a non-boost packet queue so as to process the non-boost packet using a normal processing device. Also disclosed are a central processing unit (CPU) core and a switch, capable of boosting data processing. The switch according to an embodiment of the invention comprises a plurality of processing devices configured to assign a boost packet and a non-boost packet to different processing devices to perform subsequent processing, facilitating an increase in efficiency of processing the boost packet, while preventing a boost processing device from decreasing efficiency owing to processing the non-boost packet, reducing a load of a normal processing device and increasing efficiency of processing packets at the switch.

Description

加速处理数据的方法、分配装置和交换机Method, device and switch for speeding up processing of data 技术领域Technical field
本申请涉及但不限于网络技术领域,特别是加速处理数据的方法、分配装置和交换机。The present application relates to, but is not limited to, the field of network technologies, and in particular, a method, a distribution device, and a switch for accelerating processing of data.
背景技术Background technique
随着互联网络技术的快速发展以及网络基础设施的不断完善,网络规模不断扩大,人们对网络的质量要求也越来越高。同时,为了保障网络的正常运行,还需要快速检测并解决网络连接中的问题。因此,为确保网络质量,CFM(Connectivity Fault Management,连接性故障管理)、BFD(Bidirectional Forwarding Detection,双向转发检测)等OAM(Operation Administration and Maintenance,操作管理维护)协议应运而生,旨在提高网络的可靠性和可维护性。然而,由于这些协议对时间性能的要求很高,而相关技术的交换机中一个或多个处理装置上随机处理收发的报文和控制程序,容易让处理装置超负荷,无法保证程序的有效运行,数据处理能力也不能满足快速收发报文的性能需求。With the rapid development of Internet technology and the continuous improvement of network infrastructure, the scale of the network continues to expand, and people's quality requirements for the network are also increasing. At the same time, in order to ensure the normal operation of the network, it is also necessary to quickly detect and solve problems in the network connection. Therefore, in order to ensure network quality, OAM (Operation Administration and Maintenance) protocols such as CFM (Connectivity Fault Management) and BFD (Bidirectional Forwarding Detection) have emerged to improve the network. Reliability and maintainability. However, since these protocols have high requirements on time performance, and one or more processing devices in the related art switch randomly process the received and received messages and control programs, it is easy to overload the processing device and cannot guarantee the effective operation of the program. The data processing capability cannot meet the performance requirements of fast packet transmission and reception.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本申请的主要目的为提供一种加速处理数据的方法、分配装置和交换机,有效提高数据处理能力。The main purpose of the present application is to provide a method, a distribution device, and a switch for speeding up processing of data, thereby effectively improving data processing capabilities.
本申请提出一种加速处理数据的方法,包括:The present application proposes a method for speeding up processing of data, including:
判断接收的报文的类型;Determine the type of the received message;
当所述报文的类型为加速报文时,将所述报文添加到加速报文队列中,以由加速处理装置处理所述加速报文队列中的所述加速报文;When the type of the packet is an acceleration packet, the packet is added to the acceleration packet queue to process the acceleration packet in the acceleration packet queue by the acceleration processing device.
当所述报文的类型为非加速报文时,将所述报文添加到非加速报文队列 中,以由常规处理装置处理所述非加速报文队列中的所述非加速报文。When the type of the packet is a non-accelerated packet, the packet is added to the non-accelerated packet queue. The non-accelerated message in the non-accelerated message queue is processed by a conventional processing device.
可选地,所述当报文的类型为加速报文时,将所述报文添加到加速报文队列中,以由加速处理装置处理所述加速报文队列中的所述加速报文的步骤包括:Optionally, when the type of the packet is an acceleration packet, the packet is added to the acceleration packet queue, so that the acceleration processing device processes the acceleration packet in the acceleration packet queue. The steps include:
当所述报文的类型为加速报文时,判断所述报文的业务类型;When the type of the packet is an acceleration packet, determining a service type of the packet;
按照所述报文的业务类型,将所述报文添加到所述业务类型对应的加速报文队列中,以由所述加速处理装置分别批量加速处理各所述加速报文队列中的加速报文。Adding, according to the service type of the packet, the packet to the acceleration packet queue corresponding to the service type, so that the acceleration processing device separately accelerates and processes the acceleration report in each of the accelerated packet queues. Text.
可选地,所述判断接收的报文的类型的步骤包括:Optionally, the step of determining the type of the received message includes:
根据所述报文的协议类型,判断所述报文的类型:Determining the type of the packet according to the protocol type of the packet:
当所述报文的协议类型为操作管理维护OAM协议时,所述报文的类型为加速报文;When the protocol type of the packet is an operation management and maintenance OAM protocol, the type of the packet is an acceleration packet;
当所述报文的协议类型不是OAM协议时,所述报文的类型为非加速报文。When the protocol type of the packet is not the OAM protocol, the type of the packet is a non-accelerated packet.
本申请另外提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述方法。The application further provides a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
本申请还提出一种加速处理数据的分配装置,包括:The application also provides a device for accelerating the processing of data, comprising:
类型判断模块,设置成判断通过网络接口接收的报文的类型;a type judging module, configured to determine a type of the message received through the network interface;
加速报文添加模块,设置成当所述报文的类型为加速报文时,将所述报文添加到加速报文队列中,以由加速处理装置处理所述加速报文队列中的加速报文;The acceleration message adding module is configured to add the message to the acceleration message queue when the type of the message is an acceleration message, so that the acceleration processing device processes the acceleration report in the acceleration message queue. Text
非加速报文添加模块,设置成当所述报文的类型为非加速报文时,将所述报文发送给添加到非加速报文队列,以由常规处理装置处理所述非加速报文队列中的非加速报文。The non-accelerated message adding module is configured to: when the type of the message is a non-accelerated message, send the message to the non-accelerated message queue to process the non-accelerated message by the conventional processing device. Non-accelerated messages in the queue.
可选地,所述加速报文添加模块是设置成当所述报文的类型为加速报文时,判断所述报文的业务类型;按照所述报文的业务类型,将所述报文添加 到所述业务类型对应的加速报文队列中,以由所述加速处理装置分别批量加速处理各所述加速报文队列中的加速报文。Optionally, the acceleration packet adding module is configured to determine a service type of the packet when the type of the packet is an acceleration packet, and set the packet according to a service type of the packet. Add to And in the acceleration packet queue corresponding to the service type, the acceleration processing device sequentially accelerates and processes the acceleration packets in each of the acceleration message queues.
可选地,所述类型判断模块是设置成根据所述报文的协议类型,判断所述报文的类型:当所述报文的协议类型为操作管理维护OAM协议时,所述报文的类型为加速报文;当所述报文的协议类型不是OAM协议时,所述报文的类型为非加速报文。Optionally, the type determining module is configured to determine, according to a protocol type of the packet, a type of the packet: when the protocol type of the packet is an operation management and maintenance OAM protocol, where the packet is The type is an acceleration packet. When the protocol type of the packet is not the OAM protocol, the type of the packet is a non-accelerated packet.
本申请还提出一种加速处理数据的交换机,包括分配装置、加速处理装置和常规处理装置;其中,The present application also provides a switch for speeding up processing of data, including a distribution device, an acceleration processing device, and a conventional processing device;
所述分配装置包括:The dispensing device comprises:
类型判断模块,设置成判断接收的报文的类型;a type judging module, configured to determine a type of the received message;
加速报文添加模块,设置成当所述报文的类型为加速报文时,将所述报文添加到加速报文队列中,以由加速处理装置处理所述加速报文队列中的所述加速报文;The acceleration message adding module is configured to add the message to the acceleration message queue when the type of the message is an acceleration message, to process, by the acceleration processing device, the cached message queue Accelerate the message;
非加速报文添加模块,设置成当所述报文的类型为非加速报文时,将所述报文添加到非加速报文队列,以由所述常规处理装置处理所述非加速报文队列中的非加速报文;The non-accelerated message adding module is configured to add the message to the non-accelerated message queue when the type of the message is a non-accelerated message, to process the non-accelerated message by the conventional processing device. Non-accelerated messages in the queue;
所述加速处理装置,设置成处理所述加速报文队列中的加速报文;The acceleration processing device is configured to process an accelerated message in the accelerated message queue;
所述常规处理装置,设置成处理所述非加速报文队列中的非加速报文。The conventional processing device is configured to process non-accelerated messages in the non-accelerated message queue.
可选地,所述加速处理装置是设置成根据所述加速报文所在的所述加速报文队列,批量处理分别对应于各个加速业务的多个所述加速报文队列中的加速报文。Optionally, the acceleration processing device is configured to batch process the accelerated packets in the plurality of the accelerated message queues corresponding to the respective accelerated services according to the accelerated message queue in which the acceleration message is located.
可选地,所述常规处理装置是设置成限制收发所述非加速报文队列中的非加速报文的速率。Optionally, the conventional processing device is configured to limit the rate at which the non-accelerated message in the non-accelerated message queue is sent and received.
本申请中的交换机包括多个处理装置,将加速报文与非加速报文分配给不同的处理装置进行处理,用于处理加速报文的加速处理装置无需判断需要 处理的报文所在的报文队列对应的业务的优先级,就能批量地处理加速报文,有利于提高处理加速报文的效率,且避免了因所述加速处理装置处理非加速报文而降低处理加速报文的效率,同时,所述常规处理装置有能力处理非加速报文以及控制程序,而不需要处理要求较多计算资源的加速报文,从而减少了常规处理装置的负荷,提高了交换机处理报文的效率。The switch in the present application includes a plurality of processing devices, and the acceleration message and the non-acceleration message are allocated to different processing devices for processing, and the acceleration processing device for processing the accelerated message does not need to determine the need. The priority of the service corresponding to the packet queue in which the processed packet is located can process the accelerated packet in batches, which is beneficial to improving the efficiency of processing the accelerated message, and avoids processing the non-accelerated message by the accelerated processing device. The efficiency of processing the accelerated message is reduced. At the same time, the conventional processing device has the ability to process the non-accelerated message and the control program without processing the accelerated message requiring more computing resources, thereby reducing the load of the conventional processing device and improving the load. The efficiency of the switch processing messages.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本申请提供的加速处理数据的方法的第一实施例的流程图;1 is a flowchart of a first embodiment of a method for speeding up processing of data provided by the present application;
图2为本申请提供的加速处理数据的方法的第二实施例的步骤S30的流程图;2 is a flowchart of step S30 of the second embodiment of the method for speeding up processing of data provided by the present application;
图3为本申请提供的加速处理数据的方法的第三实施例的步骤S20的流程图;3 is a flowchart of step S20 of the third embodiment of the method for speeding up processing of data provided by the present application;
图4为本申请提供的加速处理数据的分配装置的示意图;4 is a schematic diagram of an apparatus for distributing accelerated processing data provided by the present application;
图5为本申请提供的加速处理数据的交换机的结构示意图。FIG. 5 is a schematic structural diagram of a switch for speeding up processing data provided by the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings.
本发明的较佳实施方式Preferred embodiment of the invention
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
如图1所示,图1为本申请提供的加速处理数据的方法的第一实施例的流程图。本实施例提到的加速处理数据的方法,包括:As shown in FIG. 1, FIG. 1 is a flowchart of a first embodiment of a method for speeding up processing of data provided by the present application. The method for speeding up processing data mentioned in this embodiment includes:
步骤S20,判断接收的报文的类型;Step S20, determining the type of the received message;
在本实施例中的交换机包括多个处理装置,可将多个处理装置分为两组,一组设置成处理控制报文和其他要求较少计算资源的报文,另一组设置成处 理要求较多计算资源的加速报文。本实施例以两个处理装置为例。交换机通过网络接口接收报文,并由交换机中的分配装置对报文进行分类。The switch in this embodiment includes a plurality of processing devices, and the plurality of processing devices can be divided into two groups, one set is configured to process control messages and other messages requiring less computing resources, and the other group is set to be Accelerated messages requiring more computing resources. This embodiment takes two processing devices as an example. The switch receives the packet through the network interface, and the packet is classified by the distribution device in the switch.
分配装置通过ACL(Access Control Lists,访问控制列表)或单播路由对报文的类型进行区分,要求较多计算资源的报文为加速报文,添加到加速报文队列中;要求较少计算资源的报文为普通报文,即非加速报文,添加到非加速报文列队中。The distribution device distinguishes the type of the packet by using an ACL (Access Control List) or a unicast route. The packets that require more computing resources are accelerated packets and are added to the accelerated packet queue. The packets of the resource are ordinary packets, that is, non-accelerated packets, which are added to the non-accelerated message queue.
步骤S30,当报文的类型为加速报文时,将报文添加到加速报文队列中,以由加速处理装置处理加速报文队列中的所述加速报文;Step S30: When the type of the packet is an acceleration packet, the packet is added to the acceleration packet queue, so that the acceleration processing device processes the acceleration packet in the accelerated message queue.
对于加速报文,分配装置依次将加速报文添加到加速报文队列中。加速处理装置可处理多个加速业务分别对应的多个加速报文队列中的加速报文,不同类型的加速报文可添加到不同的加速报文队列中,可根据报文的业务类型进行分组,或按照报文的顺序依次放入各加速报文队列中。将报文分组后,分别对各加速报文队列中的加速报文进行加速处理。由于加速报文队列中的报文都要求较多计算资源以加速处理,因此在处理时,可同时批量处理同一加速报文队列中的各个报文,有利于提高处理报文的效率。For the acceleration message, the distribution device sequentially adds the acceleration message to the acceleration message queue. The acceleration processing device can process the acceleration packets in the multiple acceleration packet queues corresponding to the multiple acceleration services, and the different types of acceleration packets can be added to different acceleration packet queues, and can be grouped according to the service type of the packet. Or, in the order of the message, put them into each accelerated message queue. After the packets are grouped, the accelerated packets in each accelerated packet queue are accelerated. Because the packets in the accelerated packet queue require more computing resources to speed up the processing, the packets in the same accelerated packet queue can be processed in batches at the same time, which is beneficial to improve the efficiency of processing the packets.
步骤S40,当报文的类型为非加速报文时,将报文添加到非加速报文队列中,以由常规处理装置处理所述非加速报文队列中的所述非加速报文。Step S40: When the type of the packet is a non-accelerated packet, the packet is added to the non-accelerated packet queue to process the non-accelerated packet in the non-accelerated packet queue by the conventional processing device.
由于非加速报文要求较少的计算资源,无须较短的响应时间,因此无须加速处理,可由常规处理装置处理,避免增加设置成处理加速业务的加速处理装置的负荷,同时避免因非加速报文所要求的较长的响应时间而降低加速处理装置处理加速报文的效率,进而避免影响对加速报文进行处理的效率。Since the non-accelerated message requires less computing resources and does not require a shorter response time, it does not need to be accelerated, and can be processed by a conventional processing device, thereby avoiding an increase in the load of the acceleration processing device set to handle the accelerated service, while avoiding the non-accelerated report. The longer response time required by the text reduces the efficiency of the acceleration processing device in processing the accelerated message, thereby avoiding the impact on the efficiency of processing the accelerated message.
本实施例中的交换机包括加速处理装置和常规处理装置,加速报文与非加速报文分别由对应的加速处理装置或常规处理装置进行处理,有利于提高处理加速报文的效率,且避免了因所述加速处理装置处理非加速报文而降低处理加速报文的效率,同时,所述常规处理装置有能力处理非加速报文以及控制程序,而不需要处理要求较多计算资源的加速报文,从而减少了常规处理装置的负荷,提高了交换机处理报文的效率。 The switch in this embodiment includes an acceleration processing device and a conventional processing device, and the accelerated message and the non-accelerated message are respectively processed by the corresponding acceleration processing device or the conventional processing device, which is beneficial to improving the efficiency of processing the accelerated message and avoiding The efficiency of processing the accelerated message is reduced because the acceleration processing device processes the non-accelerated message. At the same time, the conventional processing device has the ability to process the non-accelerated message and the control program without processing the acceleration report requiring more computing resources. Therefore, the load of the conventional processing device is reduced, and the efficiency of processing the message by the switch is improved.
如图2所示,图2为本申请提供的加速处理数据的方法的第二实施例的步骤S30的流程图。本实施例包括图1所示实施例中的步骤,其中的步骤S30包括:As shown in FIG. 2, FIG. 2 is a flowchart of step S30 of the second embodiment of the method for speeding up processing of data provided by the present application. This embodiment includes the steps in the embodiment shown in FIG. 1, wherein step S30 includes:
步骤S31,当报文的类型为加速报文时,判断报文的业务类型;Step S31: When the type of the packet is an acceleration packet, determine the service type of the packet.
步骤S32,按照报文的业务类型,将报文添加到业务类型对应的加速报文队列中,以由所述加速处理装置分别批量加速处理各所述加速报文队列中的加速报文。Step S32: Add the packet to the acceleration packet queue corresponding to the service type according to the service type of the packet, so that the acceleration processing device separately accelerates and processes the acceleration packet in each of the accelerated packet queues.
本实施例的加速处理装置处理多个加速报文队列中的加速报文,不同的业务类型对应不同的加速报文队列,分配装置在为报文分组时,根据报文的业务类型,将不同业务类型的报文添加到对应的加速报文队列中。在处理各加速报文时,为节省处理时间,无须区分加速报文队列中各加速报文的优先级,将加速报文队列中的多个加速报文批量处理,有利于提高处理报文的效率。同时,由于同时批量处理多个加速报文,只需要调用一次***资源提供的API(Application Programming Interface,应用程序编程接口),无须为每一个报文都调用一次API,有利于节省***资源,进一步提高处理报文的效率。The acceleration processing device of the embodiment processes the acceleration packets in the plurality of accelerated message queues, and the different service types correspond to different acceleration message queues. When the packet is grouped according to the service type of the packet, the distribution device will be different. The service type packet is added to the corresponding acceleration packet queue. When processing the accelerated packets, in order to save the processing time, it is not necessary to distinguish the priority of the accelerated packets in the accelerated message queue, and the multiple accelerated packets in the accelerated message queue are processed in batches, which is beneficial to improve the processing of the packets. effectiveness. At the same time, since multiple accelerated packets are processed in batches at the same time, only the API (Application Programming Interface) provided by the system resources needs to be called once, and it is not necessary to call the API once for each message, which is beneficial to save system resources and further Improve the efficiency of processing messages.
如图3所示,图3为本申请提供的加速处理数据的方法的第三实施例的步骤S20的流程图。本实施例包括图1所示实施例中的步骤,其中的步骤S20包括:As shown in FIG. 3, FIG. 3 is a flowchart of step S20 of the third embodiment of the method for speeding up processing of data provided by the present application. This embodiment includes the steps in the embodiment shown in FIG. 1, wherein step S20 includes:
步骤S21,根据报文的协议类型,判断报文的类型:Step S21: Determine the type of the packet according to the protocol type of the packet:
步骤S22,当报文的协议类型为OAM协议时,报文的类型为加速报文;Step S22: When the protocol type of the packet is the OAM protocol, the type of the packet is an acceleration packet.
步骤S23,当报文的协议类型不是OAM协议时,报文的类型为非加速报文。In step S23, when the protocol type of the packet is not the OAM protocol, the type of the packet is a non-accelerated packet.
本实施例在判断报文类型时,根据报文的协议类型对报文进行分类。由于CFM、BFD等OAM协议对时间性能的要求很高,因此可将协议类型为OAM协议的报文作为加速报文进行加速处理。此外,还可以预先在报文中设置报文类型,预先定义报文是否需要加速处理,根据预先定义的类型进行 分类。或者,还可以预先定义处理报文的优先级别,将优先级别高于阈值的报文作为加速报文,实现报文分类。本实施例中,根据报文协议类型判断报文是否为加速报文,判断方式简单,有利于提高对报文进行分类的效率,进而提高交换机的处理效率。In this embodiment, when determining the packet type, the packet is classified according to the protocol type of the packet. The OAM protocol, such as CFM and BFD, has high requirements on time performance. Therefore, packets with the protocol type of OAM can be accelerated as acceleration packets. In addition, you can set the packet type in the packet in advance, and predefine whether the packet needs to be accelerated. According to the predefined type. classification. Alternatively, the priority of the processing packet can be defined in advance, and the packet with the priority higher than the threshold is used as the acceleration packet to implement packet classification. In this embodiment, determining whether the packet is an accelerated packet according to the type of the packet protocol is simple, and the method for determining the efficiency of the packet is improved, thereby improving the processing efficiency of the switch.
本发明实施例另外提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述方法。Embodiments of the present invention further provide a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
图4为本申请提供的加速处理数据的分配装置的示意图。如图4所示,本实施例中提到的加速处理数据的分配装置,包括:FIG. 4 is a schematic diagram of an apparatus for distributing accelerated processing data provided by the present application. As shown in FIG. 4, the device for accelerating processing data mentioned in this embodiment includes:
类型判断模块120,设置成判断接收的报文的类型;The type determining module 120 is configured to determine the type of the received message;
加速报文添加模块130,设置成当报文的类型为加速报文时,将报文添加到加速报文队列中,以由加速处理装置处理加速报文队列中的所述加速报文;The acceleration message adding module 130 is configured to add the message to the acceleration message queue when the type of the message is an acceleration message, so that the acceleration processing device processes the acceleration message in the accelerated message queue;
非加速报文添加模块110,设置成当报文的类型为非加速报文时,将报文添加到非加速报文队列,以由常规处理装置处理所述非加速报文队列中的非加速报文。The non-acceleration packet adding module 110 is configured to add a packet to the non-accelerated packet queue when the type of the packet is a non-accelerated packet, so that the non-acceleration in the non-accelerated packet queue is processed by the conventional processing device. Message.
在本实施例中的交换机包括多个处理装置,可将多个处理装置分为两组,一组设置成处理控制报文和其他要求较少计算资源的报文,另一组设置成处理要求较多计算资源的加速报文。本实施例以两个处理装置为例。交换机通过网络接口接收报文,并由交换机中的分配装置对报文进行分类。The switch in this embodiment includes a plurality of processing devices, and the plurality of processing devices can be divided into two groups, one set to process control messages and other messages requiring less computing resources, and the other set to process requirements. Accelerated messages with more computing resources. This embodiment takes two processing devices as an example. The switch receives the packet through the network interface, and the packet is classified by the distribution device in the switch.
分配装置通过ACL或单播路由对报文的类型进行区分,要求较多计算资源的报文为加速报文,添加到加速报文队列中;要求较少计算资源的报文为普通报文,即非加速报文,添加到非加速报文列队中。The device allocates packets of different computing resources to the accelerating packet queue by using an ACL or a unicast route. The packets that require less computing resources are ordinary packets. That is, non-accelerated messages are added to the non-accelerated message queue.
对于加速报文,分配装置依次将加速报文添加到加速报文队列中。加速处理装置可处理多个加速业务分别对应的多个加速报文队列中的加速报文,不同类型的加速报文可添加到不同的加速报文队列中,可根据报文的业务类型进行分组,或按照报文的顺序依次放入各加速报文队列中。将报文分组后,分别对各加速报文队列中的加速报文进行加速处理。由于加速报文队列中的 报文都是要求较多计算资源以加速处理,因此在处理时,可同时批量处理同一加速报文队列中的各个报文,有利于提高处理报文的效率。For the acceleration message, the distribution device sequentially adds the acceleration message to the acceleration message queue. The acceleration processing device can process the acceleration packets in the multiple acceleration packet queues corresponding to the multiple acceleration services, and the different types of acceleration packets can be added to different acceleration packet queues, and can be grouped according to the service type of the packet. Or, in the order of the message, put them into each accelerated message queue. After the packets are grouped, the accelerated packets in each accelerated packet queue are accelerated. Due to acceleration in the message queue Packets require more computing resources to speed up processing. Therefore, when processing, batches of packets in the same accelerated packet queue can be processed in batches, which is beneficial to improve the efficiency of processing packets.
由于非加速报文要求较少的计算资源,无须较短的响应时间,因此无须加速处理,可由常规处理装置处理,避免增加设置成处理加速业务的加速处理装置的负荷,同时避免因非加速报文所要求的较长的响应时间而降低加速处理装置处理加速报文的效率,进而避免影响对加速报文进行处理的效率。Since the non-accelerated message requires less computing resources and does not require a shorter response time, it does not need to be accelerated, and can be processed by a conventional processing device, thereby avoiding an increase in the load of the acceleration processing device set to handle the accelerated service, while avoiding the non-accelerated report. The longer response time required by the text reduces the efficiency of the acceleration processing device in processing the accelerated message, thereby avoiding the impact on the efficiency of processing the accelerated message.
本实施例中的交换机包括加速处理装置和常规处理装置,加速报文与非加速报文分别由对应的加速处理装置或常规处理装置进行处理,有利于提高处理加速报文的效率,且避免了因加速处理装置处理非加速报文而降低处理加速报文的效率,同时,所述常规处理装置有能力处理非加速报文以及控制程序,而不需要处理要求较多计算资源的加速报文,从而减少了常规处理装置的负荷,提高了交换机处理报文的效率。The switch in this embodiment includes an acceleration processing device and a conventional processing device, and the accelerated message and the non-accelerated message are respectively processed by the corresponding acceleration processing device or the conventional processing device, which is beneficial to improving the efficiency of processing the accelerated message and avoiding The efficiency of processing the accelerated message is reduced because the acceleration processing device processes the non-accelerated message. At the same time, the conventional processing device has the ability to process the non-accelerated message and the control program without processing the accelerated message requiring more computing resources. Thereby reducing the load of the conventional processing device and improving the efficiency of the switch processing the message.
可选地,加速报文添加模块130是设置成当报文的类型为加速报文时,判断报文的业务类型;Optionally, the acceleration packet adding module 130 is configured to determine a service type of the packet when the type of the packet is an acceleration packet.
按照报文的业务类型,将报文添加到业务类型对应的加速报文队列中,以由所述加速处理装置分别批量加速处理各所述加速报文队列中的加速报文。According to the service type of the packet, the packet is added to the acceleration packet queue corresponding to the service type, so that the acceleration processing device accelerates the acceleration of the acceleration packet in each of the accelerated packet queues.
本实施例的加速处理装置处理多个加速报文队列中的加速报文,不同的业务类型对应不同的加速报文队列,分配装置在为报文分组时,根据报文的业务类型,将不同业务类型的报文添加到对应的加速报文队列中。在处理各加速报文时,为节省处理时间,无须区分加速报文队列中各加速报文的优先级,将加速报文队列中的多个加速报文批量处理,有利于提高处理报文的效率。同时,由于同时批量处理多个加速报文,只需要调用一次***资源提供的API(Application Programming Interface,应用程序编程接口),无须为每一个报文都调用一次API,有利于节省***资源,进一步提高处理报文的效率。The acceleration processing device of the embodiment processes the acceleration packets in the plurality of accelerated message queues, and the different service types correspond to different acceleration message queues. When the packet is grouped according to the service type of the packet, the distribution device will be different. The service type packet is added to the corresponding acceleration packet queue. When processing the accelerated packets, in order to save the processing time, it is not necessary to distinguish the priority of the accelerated packets in the accelerated message queue, and the multiple accelerated packets in the accelerated message queue are processed in batches, which is beneficial to improve the processing of the packets. effectiveness. At the same time, since multiple accelerated packets are processed in batches at the same time, only the API (Application Programming Interface) provided by the system resources needs to be called once, and it is not necessary to call the API once for each message, which is beneficial to save system resources and further Improve the efficiency of processing messages.
本实施例的分配装置在当前报文为非加速报文时,将该报文添加到非加 速报文队列中,并发送给常规处理装置进行处理。由于常规处理装置还需要处理控制报文,为了避免常规处理装置负担过大,常规处理装置需要限制收发非加速报文的速率,避免大量非加速报文发送给常规处理装置造成常规处理装置负荷过大。同时,由于将加速报文和非加速报文分类到各自的队列,处理控制报文和非加速报文所需的较长的响应时间不会影响处理加速报文的效率,有利于满足对加速报文的处理效率,提高交换机处理报文的效率。When the current packet is a non-accelerated packet, the allocation device in this embodiment adds the packet to the non-additional packet. The fast message queue is sent to the conventional processing device for processing. Since the conventional processing device also needs to process the control message, in order to avoid the burden of the conventional processing device, the conventional processing device needs to limit the rate of sending and receiving non-accelerated messages, and avoids a large number of non-accelerated messages being sent to the conventional processing device, causing the conventional processing device to be overloaded. Big. At the same time, since the accelerated message and the non-accelerated message are classified into their respective queues, the longer response time required to process the control message and the non-accelerated message does not affect the efficiency of processing the accelerated message, which is beneficial to satisfy the acceleration. The processing efficiency of packets improves the efficiency of packets processed by the switch.
可选地,类型判断模块120是设置成根据报文的协议类型,判断报文的类型:当报文的协议类型为OAM协议时,报文的类型为加速报文;当报文的协议类型不是OAM协议时,报文的类型为非加速报文。Optionally, the type judging module 120 is configured to determine the type of the packet according to the protocol type of the packet: when the protocol type of the packet is OAM, the type of the packet is an accelerated packet; and the protocol type of the packet. When the OAM protocol is not used, the type of the packet is non-accelerated.
本实施例在判断报文类型时,根据报文的协议类型对报文进行分类。由于CFM、BFD等OAM协议对时间性能的要求很高,因此可将协议类型为OAM协议的报文作为加速报文进行加速处理。此外,还可以预先在报文中设置报文类型,预先定义报文是否需要加速处理,根据预先定义的类型进行分类。或者,还可以预先定义处理报文的优先级别,将优先级别高于阈值的报文作为加速报文,实现报文分类。本实施例中,根据报文协议类型判断报文是否为加速报文,判断方式简单,有利于提高对报文进行分类的效率,进而提高交换机的处理效率。In this embodiment, when determining the packet type, the packet is classified according to the protocol type of the packet. The OAM protocol, such as CFM and BFD, has high requirements on time performance. Therefore, packets with the protocol type of OAM can be accelerated as acceleration packets. In addition, you can set the packet type in the packet in advance, and pre-define whether the packet needs to be accelerated, and classify according to the predefined type. Alternatively, the priority of the processing packet can be defined in advance, and the packet with the priority higher than the threshold is used as the acceleration packet to implement packet classification. In this embodiment, determining whether the packet is an accelerated packet according to the type of the packet protocol is simple, and the method for determining the efficiency of the packet is improved, thereby improving the processing efficiency of the switch.
图5为本申请提供的加速处理数据的交换机的结构示意图。如图5所示,本实施例提出的加速处理数据的交换机,包括分配装置100、加速处理装置400和常规处理装置500;FIG. 5 is a schematic structural diagram of a switch for speeding up processing data provided by the present application. As shown in FIG. 5, the switch for speeding up processing data proposed in this embodiment includes a distribution device 100, an acceleration processing device 400, and a conventional processing device 500;
分配装置100包括:The dispensing device 100 includes:
类型判断模块120,设置成判断接收的报文的类型;The type determining module 120 is configured to determine the type of the received message;
加速报文添加模块130,设置成当报文的类型为加速报文时,将报文添加到加速报文队列中,以由加速处理装置400处理加速报文队列中的加速报文;The acceleration message adding module 130 is configured to add the message to the acceleration message queue when the type of the message is an acceleration message, so that the acceleration processing device 400 processes the acceleration message in the accelerated message queue;
非加速报文添加模块110,设置成当报文的类型为非加速报文时,将报 文添加到非加速报文队列,以由常规处理装置500处理所述非加速报文队列中的非加速报文;The non-acceleration packet adding module 110 is configured to report when the type of the packet is a non-accelerated packet. The text is added to the non-accelerated message queue to process the non-accelerated message in the non-accelerated message queue by the conventional processing device 500;
加速处理装置400,设置成处理所述加速报文队列中的加速报文;The acceleration processing device 400 is configured to process the accelerated message in the accelerated message queue;
常规处理装置500,设置成处理非加速报文队列中的非加速报文。The conventional processing device 500 is configured to process non-accelerated messages in the non-accelerated message queue.
可选地,加速处理装置400是设置成根据所述加速报文所在的所述加速报文队列,批量处理分别对应于各个加速业务的多个加速报文队列中的加速报文。Optionally, the acceleration processing device 400 is configured to batch process the accelerated packets in the plurality of accelerated message queues corresponding to the respective accelerated services according to the accelerated message queue in which the accelerated message is located.
可选地,常规处理装置500是设置成限制收发所述非加速报文队列中的非加速报文的速率。Optionally, the conventional processing device 500 is configured to limit the rate at which the non-accelerated messages in the non-accelerated message queue are sent and received.
本实施例中的交换机包括了加速处理装置400和常规处理装置500,加速处理装置400和常规处理装置500可以如图5所示,其结构和原理可参照上述实施例,在此不做赘述。由于本实施例中的交换机包括加速处理装置400和常规处理装置500,将加速报文与非加速报文分配在各自对应的加速处理装置400和常规处理装置500进行处理,有利于提高处理加速报文的效率,且避免了因加速处理装置400处理非加速报文而降低处理加速报文的效率,同时,常规处理装置500有能力处理非加速报文以及控制程序,而不需要处理要求较多计算资源的加速报文,从而减少了常规处理装置500的负荷,提高了交换机处理报文的效率。The switch in this embodiment includes the acceleration processing device 400 and the conventional processing device 500. The acceleration processing device 400 and the conventional processing device 500 can be as shown in FIG. 5, and the structure and principle thereof can be referred to the above embodiments, and details are not described herein. Since the switch in the embodiment includes the acceleration processing device 400 and the normal processing device 500, the acceleration message and the non-acceleration message are allocated to the corresponding acceleration processing device 400 and the conventional processing device 500 for processing, which is advantageous for improving the processing acceleration report. The efficiency of the text, and avoiding the efficiency of processing the accelerated message due to the processing of the non-accelerated message by the acceleration processing device 400, while the conventional processing device 500 has the ability to process the non-accelerated message and the control program without requiring more processing requirements. The accelerated message of the resource is calculated, thereby reducing the load of the conventional processing device 500 and improving the efficiency of the switch processing the message.
以上仅为本申请的可选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above is only an alternative embodiment of the present application, and thus does not limit the scope of the patent application, and the equivalent structure or equivalent process transformation of the specification and the drawings of the present application, or directly or indirectly applied to other related technologies. The fields are all included in the scope of patent protection of this application.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的 程序/指令来实现其相应功能。本发明实施例不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, being executed by a processor and stored in a memory. Programs/instructions to implement their respective functions. Embodiments of the invention are not limited to any specific form of combination of hardware and software.
工业实用性Industrial applicability
本申请中的交换机包括多个处理装置,将加速报文与非加速报文分别给不同的处理装置进行处理,用于处理加速报文的加速处理装置无需判断需要处理的报文所在的报文队列对应的业务的优先级,就能批量地处理加速报文,有利于提高处理加速报文的效率,且避免了因所述加速处理装置处理非加速报文而降低处理加速报文的效率,同时,所述常规处理装置有能力处理非加速报文以及控制程序,而不需要处理要求较多计算资源的加速报文,从而减少了常规处理装置的负荷,提高了交换机处理报文的效率。 The switch in the present application includes a plurality of processing devices, and the acceleration message and the non-acceleration message are respectively processed to different processing devices, and the acceleration processing device for processing the acceleration message does not need to determine the message in which the message to be processed is located. The priority of the service corresponding to the queue can process the accelerated message in batches, which is beneficial to improving the efficiency of processing the accelerated message, and avoids reducing the efficiency of processing the accelerated message by the accelerated processing device processing the non-accelerated message. At the same time, the conventional processing device has the ability to process the non-accelerated message and the control program without processing the accelerated message requiring more computing resources, thereby reducing the load of the conventional processing device and improving the efficiency of the switch processing the message.

Claims (9)

  1. 一种加速处理数据的方法,包括:A method of speeding up processing of data, including:
    判断接收的报文的类型;Determine the type of the received message;
    当所述报文的类型为加速报文时,将所述报文添加到加速报文队列中,以由加速处理装置处理所述加速报文队列中的所述加速报文;When the type of the packet is an acceleration packet, the packet is added to the acceleration packet queue to process the acceleration packet in the acceleration packet queue by the acceleration processing device.
    当所述报文的类型为非加速报文时,将所述报文添加到非加速报文队列中,以由常规处理装置处理所述非加速报文队列中的所述非加速报文。And when the type of the packet is a non-accelerated packet, the packet is added to the non-accelerated packet queue to process the non-accelerated packet in the non-accelerated packet queue by a conventional processing device.
  2. 如权利要求1所述的加速处理数据的方法,其中,所述当报文的类型为加速报文时,将所述报文添加到加速报文队列中,以由加速处理装置处理所述加速报文队列中的所述加速报文的步骤包括:The method for accelerating processing of data according to claim 1, wherein when the type of the message is an acceleration message, the message is added to the acceleration message queue to process the acceleration by the acceleration processing device. The steps of the acceleration message in the message queue include:
    当所述报文的类型为加速报文时,判断所述报文的业务类型;When the type of the packet is an acceleration packet, determining a service type of the packet;
    按照所述报文的业务类型,将所述报文添加到所述业务类型对应的加速报文队列中,以由所述加速处理装置分别批量加速处理各所述加速报文队列中的加速报文。Adding, according to the service type of the packet, the packet to the acceleration packet queue corresponding to the service type, so that the acceleration processing device separately accelerates and processes the acceleration report in each of the accelerated packet queues. Text.
  3. 如权利要求1或2所述的加速处理数据的方法,其中,所述判断接收的报文的类型的步骤包括:The method of speeding up processing of data according to claim 1 or 2, wherein the step of determining the type of the received message comprises:
    根据所述报文的协议类型,判断所述报文的类型:Determining the type of the packet according to the protocol type of the packet:
    当所述报文的协议类型为操作管理维护OAM协议时,所述报文的类型为加速报文;When the protocol type of the packet is an operation management and maintenance OAM protocol, the type of the packet is an acceleration packet;
    当所述报文的协议类型不是OAM协议时,所述报文的类型为非加速报文。When the protocol type of the packet is not the OAM protocol, the type of the packet is a non-accelerated packet.
  4. 一种加速处理数据的分配装置,包括:A device for accelerating the processing of data, comprising:
    类型判断模块,设置成判断接收的报文的类型;a type judging module, configured to determine a type of the received message;
    加速报文添加模块,设置成当所述报文的类型为加速报文时,将所述报文添加到加速报文队列中,以由加速处理装置处理所述加速报文队列中的所述加速报文;The acceleration message adding module is configured to add the message to the acceleration message queue when the type of the message is an acceleration message, to process, by the acceleration processing device, the cached message queue Accelerate the message;
    非加速报文添加模块,设置成当所述报文的类型为非加速报文时,将所 述报文添加到非加速报文队列,以由常规处理装置处理所述非加速报文队列中的非加速报文。The non-accelerated message adding module is configured to: when the type of the packet is a non-accelerated message, The message is added to the non-accelerated message queue to process the non-accelerated message in the non-accelerated message queue by the conventional processing device.
  5. 如权利要求4所述的加速处理数据的分配装置,其中,所述加速报文添加模块是设置成当所述报文的类型为加速报文时,判断所述报文的业务类型;The device for accelerating processing data according to claim 4, wherein the acceleration message adding module is configured to determine a service type of the message when the type of the message is an acceleration message;
    按照所述报文的业务类型,将所述报文添加到所述业务类型对应的加速报文队列中,以由所述加速处理装置分别批量加速处理各所述加速报文队列中的加速报文。Adding, according to the service type of the packet, the packet to the acceleration packet queue corresponding to the service type, so that the acceleration processing device separately accelerates and processes the acceleration report in each of the accelerated packet queues. Text.
  6. 如权利要求4或5所述的加速处理数据的分配装置,其中,所述类型判断模块是设置成根据所述报文的协议类型,判断所述报文的类型:当所述报文的协议类型为操作管理维护OAM协议时,则所述报文的类型为加速报文;当所述报文的协议类型不是OAM协议时,则所述报文的类型为非加速报文。The apparatus for allocating data to be processed according to claim 4 or 5, wherein said type judging module is arranged to judge the type of said message according to a protocol type of said message: when said message is a protocol When the type is the operation management and maintenance OAM protocol, the type of the packet is an acceleration packet. When the protocol type of the packet is not the OAM protocol, the type of the packet is a non-accelerated packet.
  7. 一种加速处理数据的交换机,包括分配装置、加速处理装置和常规处理装置;其中,A switch for accelerating processing of data, comprising a distribution device, an acceleration processing device, and a conventional processing device; wherein
    所述分配装置为权利要求4至6中任一项所述的分配装置;The dispensing device is the dispensing device of any one of claims 4 to 6;
    所述加速处理装置,设置成处理所述加速报文队列中的加速报文;The acceleration processing device is configured to process an accelerated message in the accelerated message queue;
    所述常规处理装置,设置成处理所述非加速报文队列中的非加速报文。The conventional processing device is configured to process non-accelerated messages in the non-accelerated message queue.
  8. 如权利要求7所述的加速处理数据的交换机,其中,所述加速处理装置是设置成根据所述加速报文所在的所述加速报文队列,批量处理分别对应于各个加速业务的多个所述加速报文队列中的加速报文。The switch for speeding up processing of data according to claim 7, wherein the acceleration processing means is configured to batch process a plurality of locations respectively corresponding to the respective acceleration services according to the accelerated message queue in which the acceleration message is located The accelerated message in the accelerated message queue.
  9. 根据权利要求7或8所述的加速处理数据的交换机,其中,所述常规处理装置是设置成限制收发所述非加速报文队列中的非加速报文的速率。 A switch for speeding up processing of data according to claim 7 or 8, wherein said conventional processing means is arranged to limit the rate at which said non-accelerated messages in said non-accelerated message queue are transceived.
PCT/CN2016/083045 2015-06-26 2016-05-23 Method of boosting data processing, and assignment device and switch utilizing same WO2016206513A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510366655.5A CN106330762A (en) 2015-06-26 2015-06-26 Method of switch to accelerate data processing, CPU core for carrying out acceleration processing on data and switch
CN201510366655.5 2015-06-26

Publications (1)

Publication Number Publication Date
WO2016206513A1 true WO2016206513A1 (en) 2016-12-29

Family

ID=57584603

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/083045 WO2016206513A1 (en) 2015-06-26 2016-05-23 Method of boosting data processing, and assignment device and switch utilizing same

Country Status (2)

Country Link
CN (1) CN106330762A (en)
WO (1) WO2016206513A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327526A (en) * 2018-12-14 2020-06-23 就肆电竞股份有限公司 Data transmission acceleration system

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108667765A (en) * 2017-03-28 2018-10-16 深圳市中兴微电子技术有限公司 A kind of data processing method and device
CN107566289A (en) * 2017-08-21 2018-01-09 杭州迪普科技股份有限公司 A kind of control core Limit Rate method and device based on flow point class
CN107426113B (en) * 2017-09-13 2020-03-17 迈普通信技术股份有限公司 Message receiving method and network equipment
CN111294291B (en) * 2020-01-16 2022-07-12 新华三信息安全技术有限公司 Protocol message processing method and device
CN113114584B (en) * 2021-03-01 2023-02-28 杭州迪普科技股份有限公司 Network equipment protection method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913486A (en) * 2005-08-10 2007-02-14 中兴通讯股份有限公司 Method and device for strengthening safety of protocol message
CN101056222A (en) * 2007-05-17 2007-10-17 华为技术有限公司 A deep message detection method, network device and system
CN101471854A (en) * 2007-12-29 2009-07-01 华为技术有限公司 Method and device for forwarding message
CN101541038A (en) * 2009-04-27 2009-09-23 杭州华三通信技术有限公司 Method and device for strengthening upper layer application stability loaded by wireless local area network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913486A (en) * 2005-08-10 2007-02-14 中兴通讯股份有限公司 Method and device for strengthening safety of protocol message
CN101056222A (en) * 2007-05-17 2007-10-17 华为技术有限公司 A deep message detection method, network device and system
CN101471854A (en) * 2007-12-29 2009-07-01 华为技术有限公司 Method and device for forwarding message
CN101541038A (en) * 2009-04-27 2009-09-23 杭州华三通信技术有限公司 Method and device for strengthening upper layer application stability loaded by wireless local area network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327526A (en) * 2018-12-14 2020-06-23 就肆电竞股份有限公司 Data transmission acceleration system

Also Published As

Publication number Publication date
CN106330762A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
WO2016206513A1 (en) Method of boosting data processing, and assignment device and switch utilizing same
US11422839B2 (en) Network policy implementation with multiple interfaces
KR101670642B1 (en) System and method for scheduling packet transmission on a client device
US10423790B2 (en) Intelligent identification of stressed machines for data security management
US10942786B2 (en) Network management
CN108432194B (en) Congestion processing method, host and system
US10764132B2 (en) Scale-out association method and apparatus, and system
WO2016107152A1 (en) Virtual machine instance deployment method and apparatus and device
US10545896B2 (en) Service acceleration method and apparatus
CN102891809B (en) Multi-core network device message presses interface order-preserving method and system
WO2015101091A1 (en) Distributed resource scheduling method and device
US10476746B2 (en) Network management method, device, and system
WO2017185615A1 (en) Method for determining service status of service processing device and scheduling device
CN102611630B (en) A kind of message acceptance control method and system
WO2016149945A1 (en) Life cycle event processing method and vnfm
JP2011203810A (en) Server, computer system, and virtual computer management method
WO2017173728A1 (en) Broadcast message sending method and apparatus, and mobile terminal
US11012378B2 (en) Methods and apparatus for shared buffer allocation in a transport node
JP2016046669A (en) Packet processing device, program and method
CN111427673B (en) Load balancing method, device and equipment
US20220214926A1 (en) Virtual machine monitoring device, virtual machine monitoring method, and program
JP2011124677A (en) Packet processing apparatus, packet distribution device, control program, and packet dispersion method
US9674282B2 (en) Synchronizing SLM statuses of a plurality of appliances in a cluster
WO2022228121A1 (en) Service providing method and apparatus
WO2017206648A1 (en) Method and device for sharing file in dlna network, and dlna system

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

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

Country of ref document: EP

Kind code of ref document: A1