WO2014023023A1 - Multi-cpu packet processing method and system, switching unit and board - Google Patents

Multi-cpu packet processing method and system, switching unit and board Download PDF

Info

Publication number
WO2014023023A1
WO2014023023A1 PCT/CN2012/079959 CN2012079959W WO2014023023A1 WO 2014023023 A1 WO2014023023 A1 WO 2014023023A1 CN 2012079959 W CN2012079959 W CN 2012079959W WO 2014023023 A1 WO2014023023 A1 WO 2014023023A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
cpu
message
management
port
Prior art date
Application number
PCT/CN2012/079959
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 华为技术有限公司
Priority to PCT/CN2012/079959 priority Critical patent/WO2014023023A1/en
Priority to CN201280001081.6A priority patent/CN103765837B/en
Publication of WO2014023023A1 publication Critical patent/WO2014023023A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Provided in an embodiment of the present invention are a multi-CPU packet processing method and system, switching unit and board, the method comprising: a switching unit receives a packet, and determines that the packet is a service packet; broadcasting a load detection request message via a service trunk port, such that each service CPU receiving the load detection request message returns a load detection response message via respective first ports, the load detection response message containing the current load ratio and management IP address of a corresponding service CPU; and transmitting the service packet to the service CPU having a minimum current load ratio according to the current load ratio and management IP address of the corresponding service CPU contained in each load detection response message. The present invention improves system resource utilization rate.

Description

多 CPU的报文处理方法及系统、 交换单元、 单板 技术领域 本发明涉及通信、 电子设备技术领域,尤其一种多 CPU的报文处理方法 及系统、 交换单元、 单板。 背景技术  The present invention relates to the field of communication and electronic device technologies, and in particular, to a multi-CPU message processing method and system, a switching unit, and a single board. Background technique
在电信设备中, 为了增强单板的处理能力, 常常在同一单板中设置多个 处理器 CPU , 做成一块多 CPU的单板, 例如, 无内部互锁流水级的微处理 器 (Microprocessor without interlocked piped stages, MIPS)架构的先进的 电信计算平台 ( Advanced Telecom Computing Architecture, ATCA )单板, 一般集成两个以上 CPU , 由于每个 CPU具有独立的内存和总线, 不能采用 现有的对称多处理技术, 因为对称多处理技术中,要求各 CPU之间共享内存 子系统以及总线结构。  In the telecom equipment, in order to enhance the processing capability of the board, multiple processor CPUs are often set in the same board to form a multi-CPU board. For example, a microprocessor without internal interlocking water level (Microprocessor without Interconnected piped stages, MIPS) The Advanced Telecom Computing Architecture (ATCA) board generally integrates more than two CPUs. Since each CPU has independent memory and bus, it cannot use existing symmetric multiprocessing. Technology, because symmetric multiprocessing technology requires a shared memory subsystem and bus structure between CPUs.
现有的 MIPS架构的 ATCA单板采用非对称多处理技术, 然而, 在非对 称多处理技术中, 外界通信数据通过接口器件送往各 CPU, 各 CPU独自进 行相关业务处理等工作, 因此, 基于任务和资源由不同处理器进行处理的非 对称多处理技术,不能实现多 CPU之间的负载均衡,降低系统资源的利用率。 发明内容 本发明实施例提供一种多 CPU的报文处理方法及系统、交换单元、单板, 以 于非对称多处理技术的多个 CPU也能实现多 CPU之间的负载均衡, 提高系统资源的利用率。  The ATCA board of the existing MIPS architecture adopts asymmetric multi-processing technology. However, in the asymmetric multi-processing technology, external communication data is sent to each CPU through the interface device, and each CPU performs related service processing alone, and therefore, based on The asymmetric multi-processing technology that tasks and resources are processed by different processors cannot achieve load balancing between multiple CPUs and reduce the utilization of system resources. SUMMARY OF THE INVENTION The embodiments of the present invention provide a multi-CPU packet processing method and system, a switching unit, and a single board. The multiple CPUs of the asymmetric multi-processing technology can also implement load balancing between multiple CPUs and improve system resources. Utilization.
第一方面, 本发明实施例提供了一种多 CPU的报文处理方法, 包括: 接收报文, 确定所述报文为业务报文;  In a first aspect, an embodiment of the present invention provides a multi-CPU packet processing method, including: receiving a packet, and determining that the packet is a service packet;
通过业务聚合 Trunk端口, 广播负载检测请求消息, 以使接收所述负载 检测请求消息的各业务 CPU 分别通过各自的第一端口返回负载检测响应消 息, 所述负载检测响应消息中包括对应业务 CPU的当前负载比率及管理 IP 地址; 根据所述各负载检测响应消息中包含的对应业务 CPU 的当前负载比率 及管理 IP地址, 将所述业务报文发送给当前负载比率最小的业务 CPU。 And transmitting, by the service aggregation trunk port, a load detection request message, so that each service CPU that receives the load detection request message returns a load detection response message by using a first port, where the load detection response message includes a corresponding service CPU. Current load ratio and management IP address; And sending the service packet to the service CPU with the smallest current load ratio according to the current load ratio and the management IP address of the corresponding service CPU included in each load detection response message.
在第一种可能的实现方式中, 根据所述各负载检测响应消息中包含的对 应业务 CPU的当前负载比率及管理 IP地址, 将所述业务报文发送给当前负 载比率最小的业务 CPU , 具体实现还可以为:  In a first possible implementation, the service packet is sent to the service CPU with the smallest current load ratio according to the current load ratio and the management IP address of the corresponding service CPU included in the load detection response message, specifically The implementation can also be:
根据所述各负载检测响应消息中包含的对应业务 CPU 的当前负载比率 及管理 IP地址, 获取当前负载比率最小的业务 CPU对应的管理 IP地址; 根据所述获取的管理 IP地址,通过与所述当前负载比率最小的业务 CPU 的第一端口将所述业务报文发送给与所述获取的管理 IP 地址对应的业务 CPU。  Obtaining, according to the current load ratio of the corresponding service CPU and the management IP address included in the load detection response message, a management IP address corresponding to the service CPU having the smallest current load ratio; and according to the acquired management IP address, The first port of the service CPU with the smallest current load ratio sends the service packet to the service CPU corresponding to the acquired management IP address.
在第二种可能的实现方式中, 所述方法具体实现还可以为:  In a second possible implementation, the specific implementation of the method may also be:
接收报文, 确定所述报文为管理控制报文;  Receiving a packet, and determining that the packet is a management control packet;
通过第一管理控制端口, 将所述管理控制报文发送给与所述管理端口对 应的管理 CPU , 以使所述管理 CPU对所述各业务 CPU进行管理和控制。  And sending, by the first management control port, the management control packet to a management CPU corresponding to the management port, so that the management CPU manages and controls the service CPUs.
在第三种可能的实现方式中, 所述方法具体实现还可以为:  In a third possible implementation, the specific implementation of the method may also be:
接收报文, 确定所述报文为鉴权报文;  Receiving a packet, and determining that the packet is an authentication packet;
通过与主业务 CPU的第二端口对应的第二管理控制端口,将所述鉴权报 文发送给与所述主业务 CPU,所述主业务 CPU为所述各业务 CPU的其中一 个 CPU。  And sending, by the second management control port corresponding to the second port of the main service CPU, the authentication message to the main service CPU, where the main service CPU is one of the CPUs of the service CPUs.
第二方面, 本发明实施例提供了一种交换单元, 包括:  In a second aspect, an embodiment of the present invention provides an exchange unit, including:
确定模块, 用于接收报文, 确定所述报文为业务报文;  a determining module, configured to receive a packet, and determine that the packet is a service packet;
广播模块, 用于在所述确定模块确定所述报文为业务报文的基础上, 通 过业务聚合 Trunk端口, 广播负载检测请求消息, 以使接收所述负载检测请 求消息的各业务 CPU分别通过各自的第一端口返回负载检测响应消息,所述 负载检测响应消息中包括对应业务 CPU的当前负载比率及管理 IP地址; 发送模块,用于根据所述广播模块接收的各业务 CPU返回的负载检测响 应消息中包含的对应业务 CPU的当前负载比率及管理 IP地址, 将所述业务 报文发送给当前负载比率最小的业务 CPU。  a broadcast module, configured to: after the determining module determines that the packet is a service packet, broadcast a load detection request message by using a service aggregation trunk port, so that each service CPU that receives the load detection request message passes respectively The respective first port returns a load detection response message, where the load detection response message includes a current load ratio and a management IP address of the corresponding service CPU, and a sending module, configured to detect, according to the load returned by each service CPU received by the broadcast module. The service packet is sent to the service CPU with the smallest current load ratio, which is the current load ratio of the corresponding service CPU and the management IP address.
第三方面, 本发明实施例提供一种交换单元, 包括: 处理器, 所述处理 器具体用于: 接收报文, 确定所述报文为业务报文; 通过业务聚合 Trunk端口, 广播负载检测请求消息, 以使接收所述负载 检测请求消息的各业务 CPU 分别通过各自的第一端口返回负载检测响应消 息, 所述负载检测响应消息中包括对应业务 CPU的当前负载比率及管理 IP 地址; In a third aspect, an embodiment of the present invention provides a switching unit, including: a processor, where the processor is specifically configured to: receive a packet, and determine that the packet is a service packet; And transmitting, by the service aggregation trunk port, a load detection request message, so that each service CPU that receives the load detection request message returns a load detection response message by using a first port, where the load detection response message includes a corresponding service CPU. Current load ratio and management IP address;
根据所述各负载检测响应消息中包含的对应业务 CPU 的当前负载比率 及管理 IP地址, 将所述业务报文发送给当前负载比率最小的业务 CPU。  And sending the service packet to the service CPU with the smallest current load ratio according to the current load ratio of the corresponding service CPU and the management IP address included in the load detection response message.
第四方面,本发明实施例提供一种多 CPU的报文处理系统, 用于与所述 系统外部进行通信, 包括: 各业务 CPU和交换单元, 所述各业务 CPU至少 包括两个业务 CPU ,所述各业务 CPU的其中一个业务 CPU为主业务 CPU; 所述交换单元分别与所述各业务 CPU连接,具体为: 所述交换单元的业 务聚合 Trunk端口分别与所述各业务 CPU的第一端口连接,所述交换单元的 各第二管理控制端口分别与所述各业务 CPU的第二端口连接;  In a fourth aspect, an embodiment of the present invention provides a multi-CPU packet processing system, configured to communicate with the outside of the system, including: each service CPU and a switching unit, where each service CPU includes at least two service CPUs. One of the service CPUs of each service CPU is a main service CPU; the exchange unit is respectively connected to the service CPUs, and specifically: the service aggregation trunk port of the switching unit is respectively the first of the service CPUs Ports are connected, and each of the second management control ports of the switching unit is respectively connected to the second port of each service CPU;
所述交换单元, 用于接收报文, 确定所述报文为业务报文; 通过业务聚 合 Trunk端口, 广播负载检测请求消息, 以使接收所述负载检测请求消息的 各业务 CPU分别通过各自的第一端口返回负载检测响应消息,所述负载检测 响应消息中包括对应业务 CPU的当前负载比率及管理 IP地址; 根据所述各 负载检测响应消息中包含的对应业务 CPU的当前负载比率及管理 IP地址, 将所述业务报文发送给当前负载比率最小的业务 CPU;  The switching unit is configured to receive a packet, and determine that the packet is a service packet. The service aggregation trunk port broadcasts a load detection request message, so that each service CPU that receives the load detection request message passes its own The first port returns a load detection response message, where the load detection response message includes a current load ratio of the corresponding service CPU and a management IP address; and a current load ratio and a management IP of the corresponding service CPU included in the load detection response message according to the load Address, the service message is sent to the service CPU with the smallest current load ratio;
所述各业务 CPU , 分别用于根据接收到的所述业务报文进行相应的业务 操作。  Each of the service CPUs is configured to perform a corresponding service operation according to the received service packet.
所述交换单元, 具体用于根据所述各负载检测响应消息中包含的对应业 务 CPU的当前负载比率及管理 IP地址,获取当前负载比率最小的业务 CPU 对应的管理 IP地址;  The switching unit is configured to obtain a management IP address corresponding to the service CPU with the smallest current load ratio according to the current load ratio and the management IP address of the corresponding service CPU included in the load detection response message;
根据所述获取的管理 IP地址,通过与所述当前负载比率最小的业务 CPU 的第一端口将所述业务报文发送给与所述获取的管理 IP 地址对应的业务 CPU。  And sending, according to the obtained management IP address, the service packet to the service CPU corresponding to the acquired management IP address by using the first port of the service CPU with the smallest current load ratio.
第一种可能的实现方式中, 所述系统还包括: 管理 CPU , 通过第一管理 控制端口与所述交换单元连接;  In a first possible implementation, the system further includes: a management CPU, connected to the switching unit by using a first management control port;
所述交换单元, 还用于接收报文, 确定所述报文为管理控制报文; 通过 第一管理端口, 将所述管理控制报文发送给所述管理 CPU; 所述管理 CPU, 用于若确定所述管理控制报文中包括配置命令, 则将所 述配置命令通过所述第一管理控制端口发送给所述交换单元, 以使所述交换 单元将所述配置命令通过与所述主业务 CPU 的第二端口对应的第二管理控 制端口发送给所述主业务 CPU , 以使所述主业务 CPU通过所述交换单元将 所述配置命令同步发送给其他业务 CPU , 所述配置命令中包含逻辑网口和业 务配置参数; The switching unit is further configured to receive a packet, and determine that the packet is a management control packet; and send, by using the first management port, the management control packet to the management CPU; The management CPU is configured to: if it is determined that the management control message includes a configuration command, send the configuration command to the switching unit by using the first management control port, so that the switching unit The configuration command is sent to the primary service CPU through a second management control port corresponding to the second port of the primary service CPU, so that the primary service CPU sends the configuration command to other services through the switching unit. a CPU, where the configuration command includes a logical network port and a service configuration parameter;
所述各业务 CPU , 分别用于根据所述配置命令中包含的逻辑网口和业务 配置参数, 进行相应的配置操作;  Each of the service CPUs is configured to perform a corresponding configuration operation according to the logical network port and the service configuration parameter included in the configuration command.
所述各业务 CPU配置的逻辑网口和业务配置参数是相同的;  The logical network port and the service configuration parameter of each service CPU are the same;
所述管理 CPU, 还用于若确定所述管理控制报文为汇总类型的管理控制 报文, 则将所述汇总类型的管理控制报文通过所述第一管理控制端口发送给 所述交换单元, 以使所述交换单元将所述汇总类型的管理控制报文通过第二 管理控制端口分别发送给各业务 CPU , 所述汇总类型的管理控制报文包括心 跳检测报文或查询报文或统计报文中至少一项,以使各业务 CPU通过所述交 换单元分别向所述管理 CPU返回管理控制响应消息;  The management CPU is further configured to: send the management control packet of the summary type to the switching unit by using the first management control port, if it is determined that the management control packet is a summary type of management control packet And the switching unit sends the management control packet of the summary type to each service CPU by using the second management control port, where the summary type of the management control packet includes a heartbeat detection packet or a query packet or a statistic At least one of the messages, so that each service CPU returns a management control response message to the management CPU through the switching unit;
所述管理 CPU, 还用于若确定所述管理控制 文为非汇总类型的管理控 制报文, 则将所述非汇总类型的管理控制报文通过所述第一管理控制端口发 送给所述交换单元, 以使所述交换单元将所述非汇总类型的管理控制报文通 过与所述主业务 CPU 的第二端口对应的第二管理控制端口发送给所述主业 务 CPU,以使所述主业务 CPU通过所述交换单元向所述管理 CPU返回管理 控制响应消息。  The management CPU is further configured to: if the management control message is determined to be a non-aggregated type of management control message, send the non-aggregated type of management control message to the switch by using the first management control port. a unit, so that the switching unit sends the non-aggregated type of management control message to the primary service control port through a second management control port corresponding to the second port of the primary service CPU, so that the primary The service CPU returns a management control response message to the management CPU through the switching unit.
在第二种可能的实现方式中, 所述交换单元, 还用于接收报文, 确定所 述报文为认证请求鉴权报文;通过与所述主业务 CPU的第二端口对应的第二 管理控制端口, 将所述鉴权报文发送给与所述主业务 CPU。  In a second possible implementation, the switching unit is further configured to receive a packet, where the packet is an authentication request authentication packet, and a second corresponding to the second port of the primary service CPU. And managing the control port, and sending the authentication packet to the primary service CPU.
第五方面, 本发明实施例提供一种单板, 所述单板包括: 上述的多 CPU 的报文处理系统。  In a fifth aspect, an embodiment of the present invention provides a board, where the board includes: the foregoing multi-CPU message processing system.
由上述技术方案可知, 本发明实施例当接收到业务报文时, 通过预设的 业务聚合 Trunk端口向各业务 CPU发送负载检测请求消息,用以获取各业务 CPU的当前负载比率及对应的管理 IP地址,将业务报文通过业务聚合 Trunk 端口发送给当前负载比率最小的业务 CPU , 从而可以实现将业务报文均衡的 发送给各业务 CPU , 使得各业务 CPU不用争抢系统资源, 可以提高系统资 源的利用率, 因此, 本实施例的技术方案可以使得基于非对称多处理技术的 多个 CPU也能实现多 CPU之间的负载均衡。 According to the foregoing technical solution, when receiving a service packet, the embodiment of the present invention sends a load detection request message to each service CPU through a preset service aggregation trunk port, so as to obtain a current load ratio of each service CPU and corresponding management. IP address, which is used to send service packets to the service CPU with the lowest load ratio through the service aggregation trunk port. The CPU is sent to the service CPUs, so that the CPUs of the service can improve the utilization of the system resources. Therefore, the technical solution of the embodiment can enable multiple CPUs based on the asymmetric multi-processing technology to implement multiple CPUs. Load balancing between.
进一步地, 本发明实施例根据接收到的报文的不同类型, 分别通过预设 的端口将报文发送给对应的 CPU , 例如, 将管理控制报文通过第一管理控制 端口发送给管理 CPU ,可以实现通过管理 CPU对各业务 CPU进行统一管理 和控制, 从而可以提高系统的可靠性、 可扩充性和抗灾难性。 例如, 当其中 的一个业务 CPU发生故障时, 管理 CPU可以重启该业务 CPU。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。  Further, in the embodiment of the present invention, the packet is sent to the corresponding CPU through the preset port according to different types of the received packets, for example, the management control packet is sent to the management CPU through the first management control port. It is possible to realize unified management and control of each service CPU through the management CPU, thereby improving system reliability, scalability, and catastrophic resistance. For example, when one of the service CPUs fails, the management CPU can restart the service CPU. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. The drawings are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
图 1为本发明一实施例提供的多 CPU的报文处理方法的流程示意图; 图 2为图 1所示实施例应用的多 CPU的报文处理系统的结构示意图; 图 3为本发明另一实施例提供的交换单元的结构示意图;  1 is a schematic flowchart of a packet processing method of a multi-CPU according to an embodiment of the present invention; FIG. 2 is a schematic structural diagram of a multi-CPU packet processing system applied to the embodiment shown in FIG. 1; A schematic structural diagram of an exchange unit provided by an embodiment;
图 4为本发明另一实施例提供的交换单元的结构示意图;  4 is a schematic structural diagram of an exchange unit according to another embodiment of the present invention;
图 5为本发明另一实施例提供的多 CPU的报文处理系统的结构示意图; 图 6为图 5所示系统实施例中管理 CPU与各业务 CPU之间的信令图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。  FIG. 5 is a schematic structural diagram of a multi-CPU packet processing system according to another embodiment of the present invention; FIG. 6 is a signaling diagram between a management CPU and each service CPU in the system embodiment shown in FIG. The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. The embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 1为本发明一实施例提供的多 CPU的报文处理方法的流程示意图,如 图 1所示, 当交换单元接收到系统外部任一网络实体发送的报文时, 所述方 法具体包括: FIG. 1 is a schematic flowchart of a packet processing method of a multi-CPU according to an embodiment of the present invention. As shown in FIG. 1 , when a switching unit receives a packet sent by any network entity outside the system, the The law specifically includes:
101、 交换单元接收报文, 确定所述报文为业务报文。  101. The switching unit receives the packet, and determines that the packet is a service packet.
在本发明的一个可选实施方式中, 可以对交换单元的网口进行虚拟局域 网 ( Virtual Local Area Network , VLAN ) 配置, 具体配置如下:  In an optional implementation manner of the present invention, a virtual local area network (VLAN) configuration may be performed on a network port of the switching unit, and the specific configuration is as follows:
配置交换单元的管理端口的 VLAN为 3000; 鉴权 Radius报文的外部端 口 VLAN为 103,鉴权报文的内部端口 VLAN为 4003; 上行业务报文的外部 端口 VLAN为 101 , 上行业务"¾文的内部端口 VLAN为 4001 ; 下行业务 4艮文 的外部端口 VLAN为 102, 下行业务>¾文的内部端口 VLAN为 4002; 即 鉴权报文的外部端口 Radius_ext_vlan为 103;  Configure the VLAN of the management port of the switching unit as 3000. The external port VLAN of the authentication Radius packet is 103, and the internal port VLAN of the authentication packet is 4003. The external port VLAN of the uplink service packet is 101. The upstream service is 3⁄4. The internal port VLAN of the downstream port is 4001; the external port VLAN of the downlink service is 102, and the internal port VLAN of the downlink service >3⁄4 is 4002; that is, the external port Radius_ext_vlan of the authentication message is 103;
鉴权报文的内部端口 Radius_inner_vlan为 4003;  The internal port of the authentication packet Radius_inner_vlan is 4003.
上行业务^艮文的外部端口 Uplink_ext_vlan为 101 ;  The uplink port of the uplink service ^艮文 is Uplink_ext_vlan is 101;
上行业务报文的内部端口 Uplink_inner_vlan为 4001 ;  The internal port Uplink_inner_vlan of the uplink service packet is 4001.
下行业务报文的外部端口 downlink_ext_vlan为 102;  The external port downlink_ext_vlan of the downlink service packet is 102;
下行业务报文的内部端口 downlink_inner_vlan为 4002;  The internal port downlink_inner_vlan of the downlink service packet is 4002.
管理端口 manager—vlan为 3000。  The management port manager—vlan is 3000.
需要说明的是,上述交换单元提供给每个业务 CPU两个 10GE网卡, 为 了数据层面和控制层面的分离, 将其中一个 10G口专门收发业务报文(即数 据报文),另外一个 10G口收发管理控制报文或鉴权报文。具体实现可以为: 图 2为图 1所示实施例应用的多 CPU的报文处理系统的结构示意图; 如图 2所示, 将交换单元的 xe1和 xe8接口作为业务聚合 Trunk端口 (sal接口) , 与各业务 CPU的第一端口 (逻辑接口标识为 spil )连接, 只允许业务报文通 过。 将交换单元的 xe2接口和 xe7接口设为第二管理控制端口, 分别与各业务 CPU的第二端口 (逻辑接口标识为 spiO )连接, 只允许管理控制报文或鉴权 报文通过。  It should be noted that the above-mentioned switching unit provides two 10GE NICs for each service CPU. For the separation of the data layer and the control plane, one of the 10G ports sends and receives service packets (that is, data packets), and another 10G port transmits and receives. Manage control messages or authentication messages. The specific implementation may be as follows: Figure 2 is a schematic structural diagram of a multi-CPU packet processing system applied in the embodiment shown in Figure 1. As shown in Figure 2, the xe1 and xe8 interfaces of the switching unit are used as service aggregation trunk ports (sal interface). Connects to the first port of each service CPU (the logical interface ID is spil) and allows only service packets to pass. The xe2 interface and the xe7 interface of the switching unit are configured as the second management control port, and are respectively connected to the second port of each service CPU (the logical interface identifier is spiO), and only the management control packet or the authentication packet is allowed to pass.
进一步地, 配置交换单元中的接口 ge1、 ge2、 ge4、 xe2、 xe7的 VLAN 为 3000; xe3、 xe4、 xe2接口的 VLAN为 103、 4003; xe3、 xe4、 sal接口 的 VLAN为 101、 4001、 102、 4002, 即  Further, the VLANs of the interfaces ge1, ge2, ge4, xe2, and xe7 in the switching unit are 3000; the VLANs of the xe3, xe4, and xe2 interfaces are 103 and 4003; and the VLANs of the xe3, xe4, and sal interfaces are 101, 4001, and 102. 4002, ie
Vlan3000 ge1 ,ge2; ge4;xe2,xe7;  Vlan3000 ge1, ge2; ge4; xe2, xe7;
Vlan103 xe3,xe4; xe2;  Vlan103 xe3,xe4; xe2;
Vlan4003 xe3,xe4; xe2; Vlan101 xe3,xe4; sal; Vlan4003 xe3,xe4; xe2; Vlan101 xe3,xe4; sal;
Vlan4001 xe3,xe4; sal;  Vlan4001 xe3,xe4; sal;
Vlan102 xe3,xe4; sal;  Vlan102 xe3,xe4; sal;
Vlan4002 xe3,xe4; sal;  Vlan4002 xe3,xe4; sal;
Trunk sal xe1 ,xe8;  Trunk sal xe1 ,xe8;
也就是说, ge1、 ge2、 ge4、 xe2、 xe7接口可以允许管理控制报文通 过; xe3、 xe4接口可以允许鉴权报文或者上行业务或下行业务报文通过; xe2 接口可以允许鉴权报文通过, sa 1接口可以允许上行业务报文或者下行业务 报文通过。  In other words, the ge1, ge2, ge4, xe2, and xe7 interfaces can allow management packets to pass. The xe3 and xe4 interfaces can allow authentication packets or uplink or downlink service packets to pass. The xe2 interface can allow authentication packets. The sa1 interface can allow uplink service packets or downlink service packets to pass.
例如, 报文的进来物理接口为 gel , VLAN为 3000, 则确定接收的报文为 管理控制报文;  For example, if the incoming physical interface of the packet is gel and the VLAN is 3000, the received packet is determined to be a management control packet.
又例如, 报文的进来物理接口为 xe3, VLAN为 103或 4003, 则确定接收 的报文为鉴权报文;  For example, if the incoming physical interface of the packet is xe3 and the VLAN is 103 or 4003, the received packet is determined to be an authentication packet.
又例如, 报文的进来物理接口为 xe3, VLAN为 101或 102或 4001或 4002, 则确定接收的报文为业务报文。  For example, if the incoming physical interface of the packet is xe3 and the VLAN is 101 or 102 or 4001 or 4002, the received packet is determined to be a service packet.
102、 通过业务聚合 Trunk端口, 广播负载检测请求消息, 以使接收所 述负载检测请求消息的各业务 CPU 分别通过各自的第一端口返回负载检测 响应消息,所述负载检测响应消息中包括对应业务 CPU的当前负载比率及管 理 IP地址。  102. The service load aggregation request message is broadcasted by the service aggregation trunk port, so that each service CPU that receives the load detection request message returns a load detection response message by using a first port, where the load detection response message includes a corresponding service. The current load ratio of the CPU and the management IP address.
在本发明的一个可选实施方式中, 各业务 CPU分别通过各自的第一端口 和第二端口, 与外部进行通信, 其中, 各业务 CPU的第一端口的逻辑接口标 识为 spi1 , 分别与交换单元的业务聚合 Trunk端口连接, 如图 2所示, 第一业 务 CPU的第一端口与交换单元的 Xe1接口连接, 第二业务 CPU的第一端口与 交换单元的 Xe8接口连接, 只允许业务报文通过; 各业务 CPU的第二端口的 逻辑接口标识为 spiO, 第一业务 CPU的第二端口与交换单元的 Xe2接口连接, 第二业务 CPU的第二端口与交换单元的 Xe7接口连接, 只允许管理控制报文 或鉴权报文通过。  In an optional implementation of the present invention, each service CPU communicates with the outside through a respective first port and a second port, wherein the logical interface identifier of the first port of each service CPU is spi1, respectively, and is exchanged. As shown in Figure 2, the first port of the first service CPU is connected to the Xe1 interface of the switching unit, and the first port of the second service CPU is connected to the Xe8 interface of the switching unit, and only the service report is allowed. The logical port of the second port of each service CPU is identified as spiO, the second port of the first service CPU is connected to the Xe2 interface of the switching unit, and the second port of the second service CPU is connected to the Xe7 interface of the switching unit, Allows management control packets or authentication packets to pass.
为了方便各业务 CPU的处理,在本发明的一个可选实施方式中,可以对 各业务 CPU的网口进行虚拟局域网配置, 表 1为各业务 CPU的虚拟局域网 配置, 具体配置如表 1所示: Z - 0 2Z 01'9 : V6:6zl:08:00 !ds 01 In an alternative embodiment of the present invention, a virtual local area network (LAN) can be configured for the network port of each service CPU. Table 1 shows the virtual local area network configuration of each service CPU. The specific configuration is shown in Table 1. : Z - 0 2Z 01'9 : V6:6zl:08:00 !ds 01
Zl- 0 I Z 2Z 01 9 : V6:6zl:08:00 !ds 01  Zl- 0 I Z 2Z 01 9 : V6:6zl:08:00 !ds 01
Zl- 0 I 10 2Z 01'99 : V6:6zl:08:00 !ds OP  Zl- 0 I 10 2Z 01'99 : V6:6zl:08:00 !ds OP
Zl- 0 I zo 2Z 01 99 : V6:6zl:08:00 !ds OP  Zl- 0 I zo 2Z 01 99 : V6:6zl:08:00 !ds OP
Zl- 0 0 8U I 2Z  Zl- 0 0 8U I 2Z
:66:6zl:08:00 !ds 0|B-pUBlS 01 :66:6zl:08:00 !ds 0|B-pUBlS 01
Zl- 0 0 8U z 2Z  Zl- 0 0 8U z 2Z
:66:6zl:08:00 !ds 0|B-pUBlS :66:6zl:08:00 !ds 0|B-pUBlS
Zl- 0 0 8U ε 2Z  Zl- 0 0 8U ε 2Z
:66:6zl:08:00 !ds 0|B-pUBlS 01 :66:6zl:08:00 !ds 0|B-pUBlS 01
Zl- 0 0 8U 10 2Z '99 :66:6zl:08:00 !ds 0|B-pUBlS OP  Zl- 0 0 8U 10 2Z '99 :66:6zl:08:00 !ds 0|B-pUBlS OP
Zl- 0 0 8U zo 2Z '99 :66:6zl:08:00 !ds 0|B-pUBlS OP  Zl- 0 0 8U zo 2Z '99 :66:6zl:08:00 !ds 0|B-pUBlS OP
Zl- 0 0 8U εο 2Z 'Z9 :66:6zl:08:00 !ds 0|B-pUBlS OP  Zl- 0 0 8U εο 2Z 'Z9 :66:6zl:08:00 !ds 0|B-pUBlS OP
Zl- 0 0 00 9.1 8 :66:6zl:08:00 !ds οε  Zl- 0 0 00 9.1 8 : 66: 6zl: 08:00 !ds οε
P!~J! P!~J!
~Λμά  ~Λμά
UBIA UBIA
OVIAI Ι !Λ OVIAI Ι !Λ
9dA丄 dl |SB|/\|  9dA丄 dl |SB|/\|
1? 葉 dl dl i甚  1? Leaf dl dl i
6S66.0/ZT0ZN3/X3d εζοε請 ΐοζ OAV 10.71.1 255.255.255.1 40 float spi 00:80:F9:99: 67.10 28 03 0 0E:12 6S66.0/ZT0ZN3/X3d εζοε 请ΐοζ OAV 10.71.1 255.255.255.1 40 float spi 00:80:F9:99: 67.10 28 03 0 0E:12
10.71.6 255.255.255.1 10 float spi 00:80:F9:99: 7.10 28 3 0 0E:12  10.71.6 255.255.255.1 10 float spi 00:80:F9:99: 7.10 28 3 0 0E:12
在本发明的一个可选实施方式中, 对各业务 CPU的网口进行虚拟局域网 配置, 具体实现时可以为:  In an optional implementation manner of the present invention, a virtual local area network is configured on a network port of each service CPU, and the specific implementation may be:
typedef struct  Typedef struct
{  {
uint32_t ip; 〃为 VLAN配置的 IP uint32_t net—mask; 〃网络掩码  Uint32_t ip; IP IP configured for VLAN uint32_t net_mask; 〃 network mask
uint16_t vlan_id; //vlan-id  Uint16_t vlan_id; //vlan-id
u i nt8_t phyjfjd; 〃对应的物理口. uint8_t vmac[MAC_ADDR_LEN]; 〃虚拟 MAC  u i nt8_t phyjfjd; 〃 corresponding physical port. uint8_t vmac[MAC_ADDR_LEN]; 〃 virtual MAC
uint8_t ip_type; 〃0-单机 IP 1-Mng IP 2-浮动 IP atomic_t refcnt;  Uint8_t ip_type; 〃0-single IP 1-Mng IP 2-floating IP atomic_t refcnt;
} lbu_interface_ip_t。  } lbu_interface_ip_t.
需要说明的是, 逻辑接口标识 phyjfjd表示哪个物理端口收发该逻辑接 口标识对应的报文。 其中, Phyjfjd的取值例如可以为: 0-spiO, 1-spi1。  It should be noted that the logical interface identifier phyjfjd indicates which physical port sends and receives the packet corresponding to the logical interface identifier. The value of Phyjfjd can be, for example, 0-spiO, 1-spi1.
在本发明的一个可选实施方式中, phyjfjd的配置规则如下:  In an optional embodiment of the present invention, the configuration rules of phyjfjd are as follows:
处理鉴权报文的逻辑接口标识 phyjfjd配置为 spiO;  The logical interface identifier of the processing authentication message phyjfjd is configured as spiO;
配置管理控制报文(例如配置、查询、检测报文)的逻辑接口标识 phyjfjd 配置为 spiO;  Configure the logical interface identifier phyjfjd of the management control packet (such as configuration, query, and detection packet) as spiO;
配置上行业务报文的浮动接口的逻辑接口标识 phyjfjd配置为 spit 配置下行业务报文的浮动接口的逻辑接口标识 phyjfjd配置为 spit 配置上行业务报文的单机接口的逻辑接口标识 phyjfjd配置为 spiO; 配置下行业务报文的单机接口的逻辑接口标识 phyjfjd配置为 spi0。 需要说明的是,本实施例中,各业务 CPU配置的逻辑网口和业务配置参 数是相同的, 具体实现时, 如图 2所示, 例如, 在管理 CPU上创建一个管 理程序, 管理 CPU通过管理程序配置和维护各业务 CPU 的管理 IP (表 1 中的 IP地址), 管理 CPU通过交换单元与各业务 CPU通信。 管理 CPU可 以将配置命令通过所述交换单元中与第一业务 CPU (主业务 CPU ) 的第二 端口对应的第二控制端口发送给第一业务 CPU, 以使第一业务 CPU将所述 配置命令同步发送给第二业务 CPU (其他业务 CPU ) , 所述配置命令中包 含逻辑网口和业务配置参数。第二业务 CPU分别根据配置命令中包含的逻辑 网口和业务配置参数, 进行相应的配置操作。 Configure the logical interface identifier phyjfjd of the floating interface that configures the upstream service packets to be spit. Configure the logical interface identifier phyjfjd of the floating interface that configures the downlink service packets as the spi. Configure the logical interface identifier phyjfjd of the single-interface interface that configures the uplink service packets as spiO. The logical interface identifier phyjfjd of the stand-alone interface of the downlink service packet is configured as spi0. It should be noted that, in this embodiment, the logical network port and the service configuration parameter configured by each service CPU are the same. In specific implementation, as shown in FIG. 2, for example, a management program is created on the management CPU, and the management CPU passes. The hypervisor configures and maintains the management IP of each service CPU (IP address in Table 1), and the management CPU communicates with each service CPU through the switching unit. Management CPU can Transmitting the configuration command to the first service CPU by using the second control port corresponding to the second port of the first service CPU (the primary service CPU) in the switching unit, so that the first service CPU sends the configuration command synchronously The second service CPU (other service CPU) includes the logical network port and the service configuration parameter. The second service CPU performs corresponding configuration operations according to the logical network port and service configuration parameters included in the configuration command.
在本发明的一个可选实施方式中, 为了实现各业务 CPU 之间的负载均 衡,交换单元可以通过预设的 Trunk端口向各业务 CPU广播负载检测请求消 息, 用以获取各业务 CPU的当前负载比率;  In an optional implementation manner of the present invention, in order to implement load balancing between the service CPUs, the switching unit may broadcast a load detection request message to each service CPU through a preset trunk port to obtain the current load of each service CPU. Ratio
各业务 CPU根据接收到的负载检测请求消息,分别获取各自对应的当前 负载比率, 并分别通过各自对应的第一端口 (逻辑接口标识 spil ) 向交换单 元返回负载检测响应消息,各负载检测响应消息中包括对应业务 CPU的当前 负载比率及管理 IP地址。  Each service CPU obtains a corresponding current load ratio according to the received load detection request message, and respectively returns a load detection response message to each switching unit through a corresponding first port (logical interface identifier spil), and each load detection response message It includes the current load ratio and management IP address of the corresponding service CPU.
103、 根据所述各负载检测响应消息中包含的对应业务 CPU的当前负载 比率及管理 IP地址, 将所述业务报文发送给当前负载比率最小的业务 CPU。  103. Send the service packet to the service CPU with the smallest current load ratio according to the current load ratio of the corresponding service CPU and the management IP address included in each load detection response message.
在本发明的一个可选实施方式中,交换单元根据各业务 CPU返回的负载 检测响应消息中包含的对应业务 CPU的当前负载比率及管理 IP地址, 获取 当前负载比率最小的业务 CPU对应的管理 IP地址; 根据所述获取的管理 IP 地址,通过与所述当前负载比率最小的业务 CPU的第一端口将所述业务 ·艮文 发送给与所述获取的管理 IP地址对应的业务。 具体实现时, 如图 2所示, 假 设第二业务 CPU的当前负载比率比第一业务 CPU的当前负载比率小时, 交 换单元可以将业务报文通过交换单元的 Xe8接口和第二业务 CPU的第一端 口 (逻辑接口标识 spil ) ,向第二业务 CPU发送业务报文。  In an optional implementation manner of the present invention, the switching unit obtains the management IP corresponding to the service CPU with the smallest current load ratio according to the current load ratio and the management IP address of the corresponding service CPU included in the load detection response message returned by each service CPU. An address is sent to the service corresponding to the acquired management IP address by the first port of the service CPU having the smallest ratio of the current load according to the acquired management IP address. In a specific implementation, as shown in FIG. 2, assuming that the current load ratio of the second service CPU is smaller than the current load ratio of the first service CPU, the switching unit may pass the service packet through the Xe8 interface of the switching unit and the second service CPU. A port (logical interface identifier spil) sends a service packet to the second service CPU.
在本发明的一个可选实施方式中, 交换单元接收报文, 若确定所述报文 为管理控制报文; 则通过预设的第一管理控制端口,如图 2所示的 ge4接口, 将所述管理控制报文发送给对应的管理 CPU, 以便管理 CPU根据接收的管 理控制报文对各业务 CPU进行管理和控制。  In an optional implementation manner of the present invention, the switching unit receives the packet, and if it is determined that the packet is a management control packet, the preset first management control port, as shown in the ge4 interface of FIG. 2, The management control message is sent to the corresponding management CPU, so that the management CPU manages and controls each service CPU according to the received management control message.
管理 CPU根据接收的管理控制报文对各业务 CPU进行管理和控制, 具 体实现时可以为:  The management CPU manages and controls each service CPU according to the received management control message. The specific implementation can be:
若管理 CPU确定管理控制报文为汇总类型的管理控制报文,则管理 CPU 将汇总类型的管理控制报文通过第一管理控制接口 (ge4接口)发送给交换 单元, 交换单元通过预设的第二管理控制端口, 如图 2所示的 xe2和 xe7接 口, 将汇总类型的管理控制报文分别发送给各业务 CPU , 其中, 各业务 CPU 分别通过各自对应第二端口 (逻辑接口标识为 spiO ) 向交换单元发送管理控 制响应消息,以使交换单元将各业务 CPU发送的管理控制响应消息通过第一 管理控制接口 (ge4接口 )发送给管理 CPU。 If the management CPU determines that the management control message is a summary type of management control message, the management CPU sends the summary type management control message to the switch through the first management control interface (ge4 interface). The unit, the switching unit sends a summary type of management control message to each service CPU through a preset second management control port, such as the xe2 and xe7 interfaces shown in FIG. 2, where each service CPU passes its respective corresponding The second port (the logical interface identifier is spiO) sends a management control response message to the switching unit, so that the switching unit sends the management control response message sent by each service CPU to the management CPU through the first management control interface (ge4 interface).
其中, 汇总类型的管理控制报文包括但不限于心跳检测报文或查询报文 或统计报文等,例如,管理 CPU通过心跳检测报文检测各业务 CPU的状态, 当其中一个业务 CPU异常时, 管理 CPU可以重启该业务 CPU。  The management type of the summary type includes, but is not limited to, a heartbeat detection packet, a query packet, or a statistics packet. For example, the management CPU detects the status of each service CPU through a heartbeat detection packet. When one of the service CPUs is abnormal. The management CPU can restart the service CPU.
若管理 CPU确定所述管理控制报文为非汇总类型的管理控制报文,则管 理 CPU将非汇总类型的管理控制报文通过第一管理控制接口(ge4接口 )发 送给交换单元, 交换单元通过与主业务 CPU (图 2所示的第一业务 CPU ) 连接第二管理控制端口( xe2 )将该非汇总类型的管理控制报文发送给主业务 CPU; 主业务 CPU通过自身的第二端口 (逻辑接口标识为 spiO ) 向交换单 元发送管理控制响应消息,以使交换单元将主业务 CPU发送的管理控制响应 消息通过第一管理控制接口 (ge4接口 )发送给管理 CPU。  If the management CPU determines that the management control packet is a non-aggregated type of management control packet, the management CPU sends the non-aggregated type of management control packet to the switching unit through the first management control interface (ge4 interface), and the switching unit passes And the main service CPU (the first service CPU shown in FIG. 2) is connected to the second management control port (xe2) to send the non-aggregated type of management control message to the main service CPU; the main service CPU passes its own second port ( The logical interface identifier is spiO), and sends a management control response message to the switching unit, so that the switching unit sends the management control response message sent by the primary service CPU to the management CPU through the first management control interface (ge4 interface).
在本发明的一个可选实施方式中, 交换单元接收报文, 若确定所述报文 为认证请求鉴权报文; 则通过交换单元中与主业务 CPU (图 2所示的第一业 务 CPU )连接第二管理控制端口( xe2 ) , 将该鉴权报文发送给主业务 CPU。  In an optional implementation manner of the present invention, the switching unit receives the message, and if it is determined that the message is an authentication request authentication message, passes through the switching service unit and the main service CPU (the first service CPU shown in FIG. 2) The second management control port (xe2) is connected, and the authentication message is sent to the main service CPU.
本发明实施例当接收到业务报文时, 通过预设的业务聚合 Trunk端口向 各业务 CPU发送负载检测请求消息, 用以获取各业务 CPU的当前负载比率 及对应的管理 IP地址,将业务报文通过业务聚合 Trunk端口发送给当前负载 比率最小的业务 CPU , 从而可以实现将业务报文均衡的发送给各业务 CPU, 使得各业务 CPU不用争抢系统资源, 可以提高系统资源的利用率, 因此, 本 实施例的技术方案可以使得基于非对称多处理技术的多个 CPU 也能实现多 CPU之间的负载均衡。  When receiving the service packet, the embodiment of the present invention sends a load detection request message to each service CPU through the preset service aggregation trunk port, which is used to obtain the current load ratio of each service CPU and the corresponding management IP address, and report the service. The traffic is transmitted to the service CPU with the lowest load ratio through the service aggregation trunk port, so that the service packets can be sent to the service CPUs in a balanced manner, so that the service CPUs do not need to compete for system resources, which can improve the utilization of system resources. The technical solution of this embodiment can enable multiple CPUs based on asymmetric multi-processing technology to implement load balancing between multiple CPUs.
进一步地, 本发明实施例根据接收到的报文的不同类型, 分别通过预设 的端口将报文发送给对应的 CPU , 例如, 将管理控制报文通过第一管理控制 端口发送给管理 CPU ,可以实现通过管理 CPU对各业务 CPU进行统一管理 和控制, 从而可以提高系统的可靠性、 可扩充性和抗灾难性。 例如, 当其中 的一个业务 CPU发生故障时, 管理 CPU可以重启该业务 CPU。 图 3为本发明另一实施例提供的交换单元的结构示意图, 如图 3所示, 包括: Further, in the embodiment of the present invention, the packet is sent to the corresponding CPU through the preset port according to different types of the received packets, for example, the management control packet is sent to the management CPU through the first management control port. It is possible to realize unified management and control of each service CPU through the management CPU, thereby improving system reliability, scalability, and catastrophic resistance. For example, when one of the service CPUs fails, the management CPU can restart the service CPU. FIG. 3 is a schematic structural diagram of a switching unit according to another embodiment of the present invention. As shown in FIG. 3, the method includes:
确定模块 31 , 用于接收报文, 确定所述报文为业务报文;  a determining module 31, configured to receive a packet, and determine that the packet is a service packet;
广播模块 32, 用于在所述确定模块确定所述报文为业务报文的基础上, 通过业务聚合 Trunk端口, 广播负载检测请求消息, 以使接收所述负载检测 请求消息的各业务 CPU分别通过各自的第一端口返回负载检测响应消息,所 述负载检测响应消息中包括对应业务 CPU的当前负载比率及管理 IP地址; 发送模块 33, 用于根据所述广播模块接收的各业务 CPU返回的负载检 测响应消息中包含的对应业务 CPU的当前负载比率及管理 IP地址, 将所述 业务报文发送给当前负载比率最小的业务 CPU。  The broadcast module 32 is configured to: after the determining module determines that the packet is a service packet, broadcast a load detection request message by using a service aggregation trunk port, so that each service CPU that receives the load detection request message respectively Returning, by the respective first port, a load detection response message, where the load detection response message includes a current load ratio and a management IP address of the corresponding service CPU, and a sending module 33, configured to return according to each service CPU received by the broadcast module. The current load ratio of the corresponding service CPU and the management IP address included in the load detection response message are sent to the service CPU with the lowest current load ratio.
在本发明的一个可选实施方式中, 发送模块 33, 具体用于根据述广播模 块接收的各业务 CPU返回的负载检测响应消息中包含的对应业务 CPU的当 前负载比率及管理 IP地址, 获取当前负载比率最小的业务 CPU对应的管理 IP地址;根据所述获取的管理 IP地址,通过与所述当前负载比率最小的业务 CPU 的第一端口将所述业务报文发送给与所述获取的管理 IP地址对应的业 务 CPU。  In an optional implementation manner of the present invention, the sending module 33 is configured to obtain a current current load ratio and a management IP address of the corresponding service CPU included in the load detection response message returned by each service CPU received by the broadcast module. a management IP address corresponding to the service CPU with the smallest load ratio; sending, according to the acquired management IP address, the service packet to the management of the acquisition through the first port of the service CPU having the smallest ratio of the current load The service CPU corresponding to the IP address.
在本发明的一个可选实施方式中, 确定模块 31 , 还用于确定所述^艮文为 管理控制报文;  In an optional implementation manner of the present invention, the determining module 31 is further configured to determine that the information is a management control message;
对应地, 发送模块 33, 还用于在所述确定模块确定所述报文为管理控制 报文的基础上, 通过第一管理控制端口, 将所述管理控制报文发送给对应的 管理 CPU , 以使所述管理 CPU对所述各业务 CPU进行管理和控制。  Correspondingly, the sending module 33 is further configured to send, by using the first management control port, the management control packet to the corresponding management CPU, on the basis that the determining module determines that the packet is a management control packet. The management CPU is configured to manage and control the service CPUs.
在本发明的一个可选实施方式中, 确定模块 31 , 还用于确定所述^艮文为 认证请求鉴权才艮文;  In an optional implementation manner of the present invention, the determining module 31 is further configured to determine that the authentication file is an authentication request authentication document;
对应地, 发送模块 33, 还用于在所述确定模块确定所述报文为鉴权报文 的基础上,通过与主业务 CPU的第二端口对应的第二管理控制端口,将所述 鉴权报文发送给与所述主业务 CPU ,所述主业务 CPU为所述各业务 CPU的 其中一个 CPU。  Correspondingly, the sending module 33 is further configured to: after the determining module determines that the packet is an authentication packet, by using the second management control port corresponding to the second port of the main service CPU, The rights message is sent to the main service CPU, and the main service CPU is one of the CPUs of the service CPUs.
需要说明的是, 为了实现本实施例交换单元的功能, 需要对交换单元的 各物理端口和各业务 CPU的各物理端口进行虚拟局域网( Virtual Local Area Network , VLAN ) 配置, 具体配置详见图 1 所示实施例中的相关描述, 不 再赘述。 It should be noted that, in order to implement the function of the switching unit in this embodiment, a virtual local area network (VLAN) configuration needs to be performed on each physical port of the switching unit and each physical port of each service CPU. Related description in the illustrated embodiment, not Let me repeat.
本发明实施例的交换单元接收到业务报文时, 可以通过预设的业务聚合 When the switching unit of the embodiment of the present invention receives the service packet, it can be aggregated by using a preset service.
Trunk端口向各业务 CPU发送负载检测请求消息, 用以获取各业务 CPU的 当前负载比率及对应的管理 IP地址,将业务报文通过业务聚合 Trunk端口发 送给当前负载比率最小的业务 CPU, 从而可以实现将业务报文均衡的发送给 各业务 CPU , 使得各业务 CPU不用争抢系统资源, 因此, 可以提高系统资 源的利用率, 因此, 本实施例的技术方案可以使得基于非对称多处理技术的 多个 CPU也能实现多 CPU之间的负载均衡。 The Trunk port sends a load detection request message to each service CPU to obtain the current load ratio of the service CPU and the corresponding management IP address, and send the service packet to the service CPU with the smallest load ratio through the service aggregation trunk port. The method for transmitting the service packets to the service CPUs is balanced, so that the service CPUs do not need to compete for the system resources. Therefore, the utilization of the system resources can be improved. Therefore, the technical solution of the embodiment can be based on the asymmetric multi-processing technology. Multiple CPUs can also achieve load balancing between multiple CPUs.
进一步地, 本发明实施例的交换单元可以根据接收的报文的不同类型, 分别通过预设的端口将报文发送给对应的 CPU, 例如, 将管理控制报文通过 第一管理控制端口发送给管理 CPU , 可以实现通过管理 CPU对各业务 CPU 进行统一管理和控制, 从而可以提高系统的可靠性、 可扩充性和抗灾难性。 例如,当其中的一个业务 CPU发生故障时,管理 CPU可以重启该业务 CPU。  Further, the switching unit of the embodiment of the present invention may send the packet to the corresponding CPU through a preset port according to different types of the received packets, for example, sending the management control packet to the first management control port. Management CPU can realize unified management and control of each service CPU through the management CPU, thereby improving system reliability, scalability, and catastrophic resistance. For example, when one of the service CPUs fails, the management CPU can restart the service CPU.
图 4为本发明另一实施例提供的交换单元的结构示意图, 如图 4所示, 包括: 处理器, 当处理器运行时, 可以执行如下步骤:  FIG. 4 is a schematic structural diagram of a switching unit according to another embodiment of the present invention. As shown in FIG. 4, the method includes: a processor, when the processor is running, performing the following steps:
接收报文, 确定所述报文为业务报文;  Receiving a packet, and determining that the packet is a service packet;
通过业务聚合 Trunk端口, 广播负载检测请求消息, 以使接收所述负载 检测请求消息的各业务 CPU 分别通过各自的第一端口返回负载检测响应消 息, 所述负载检测响应消息中包括对应业务 CPU的当前负载比率及管理 IP 地址;  And transmitting, by the service aggregation trunk port, a load detection request message, so that each service CPU that receives the load detection request message returns a load detection response message by using a first port, where the load detection response message includes a corresponding service CPU. Current load ratio and management IP address;
根据所述各负载检测响应消息中包含的对应业务 CPU 的当前负载比率 及管理 IP地址, 将所述业务报文发送给当前负载比率最小的业务 CPU。  And sending the service packet to the service CPU with the smallest current load ratio according to the current load ratio of the corresponding service CPU and the management IP address included in the load detection response message.
在第一种可能的实现方式中, 当处理器运行时, 还可以执行:  In the first possible implementation, when the processor is running, it can also execute:
根据所述各负载检测响应消息中包含的对应业务 CPU 的当前负载比率 及管理 IP地址, 获取当前负载比率最小的业务 CPU对应的管理 IP地址; 根据所述获取的管理 IP地址,通过与所述当前负载比率最小的业务 CPU 的第一端口将所述业务报文发送给与所述获取的管理 IP 地址对应的业务 CPU。  Obtaining, according to the current load ratio of the corresponding service CPU and the management IP address included in the load detection response message, a management IP address corresponding to the service CPU having the smallest current load ratio; and according to the acquired management IP address, The first port of the service CPU with the smallest current load ratio sends the service packet to the service CPU corresponding to the acquired management IP address.
在第二种可能的实现方式中, 当处理器运行时, 还可以执行:  In the second possible implementation, when the processor is running, it can also execute:
接收报文, 确定所述报文为管理控制报文; 通过第一管理控制端口, 将所述管理控制报文发送给对应的管理 CPU, 以使所述管理 CPU对所述各业务 CPU进行管理和控制。 Receiving a packet, and determining that the packet is a management control packet; And sending, by the first management control port, the management control packet to the corresponding management CPU, so that the management CPU manages and controls the service CPUs.
在第三种可能的实现方式中, 当处理器运行时, 还可以执行:  In a third possible implementation, when the processor is running, it can also execute:
接收报文, 确定所述报文为认证请求鉴权报文;  Receiving a packet, and determining that the packet is an authentication request authentication packet;
通过与主业务 CPU的第二端口对应的第二管理控制端口,将所述鉴权报 文发送给与所述主业务 CPU,所述主业务 CPU为所述各业务 CPU的其中一 个 CPU。  And sending, by the second management control port corresponding to the second port of the main service CPU, the authentication message to the main service CPU, where the main service CPU is one of the CPUs of the service CPUs.
本发明实施例的交换单元接收到业务报文时, 可以通过预设的业务聚合 When the switching unit of the embodiment of the present invention receives the service packet, it can be aggregated by using a preset service.
Trunk端口向各业务 CPU发送负载检测请求消息, 用以获取各业务 CPU的 当前负载比率及对应的管理 IP地址,将业务 ·艮文通过业务聚合 Trunk端口发 送给当前负载比率最小的业务 CPU , 从而可以实现将业务报文均衡的发送给 各业务 CPU , 使得各业务 CPU不用争抢系统资源, 因此, 可以提高系统资 源的利用率, 因此, 本实施例的技术方案可以使得基于非对称多处理技术的 多个 CPU也能实现多 CPU之间的负载均衡。 The Trunk port sends a load detection request message to each service CPU, which is used to obtain the current load ratio of the service CPU and the corresponding management IP address, and send the service packet to the service CPU with the smallest load ratio through the service aggregation trunk port. The service packet can be sent to the service CPUs in a balanced manner, so that the service CPUs do not need to compete for system resources. Therefore, the utilization of the system resources can be improved. Therefore, the technical solution of the embodiment can be based on the asymmetric multi-processing technology. Multiple CPUs can also achieve load balancing between multiple CPUs.
进一步地, 本发明实施例的交换单元可以根据接收的报文的不同类型, 分别通过预设的端口将报文发送给对应的 CPU, 例如, 将管理控制报文通过 第一管理控制端口发送给管理 CPU , 可以实现通过管理 CPU对各业务 CPU 进行统一管理和控制, 从而可以提高系统的可靠性、 可扩充性和抗灾难性。 例如,当其中的一个业务 CPU发生故障时,管理 CPU可以重启该业务 CPU。  Further, the switching unit of the embodiment of the present invention may send the packet to the corresponding CPU through a preset port according to different types of the received packets, for example, sending the management control packet to the first management control port. Management CPU can realize unified management and control of each service CPU through the management CPU, thereby improving system reliability, scalability, and catastrophic resistance. For example, when one of the service CPUs fails, the management CPU can restart the service CPU.
图 5为本发明另一实施例提供的多 CPU的报文处理系统的结构示意图, 如图 5 所示, 所述系统用于与系统外部进行通信, 具体包括: 业务 CPU51 和交换单元 52,业务 CPU51的个数至少为两个,其中的一个业务 CPU为主 业务 CPU , 另一个为从业务 CPU;  FIG. 5 is a schematic structural diagram of a multi-CPU packet processing system according to another embodiment of the present invention. As shown in FIG. 5, the system is configured to communicate with the outside of the system, and specifically includes: a service CPU 51 and an exchange unit 52, and services. The number of CPUs 51 is at least two, one of which is a service CPU and the other is a slave CPU;
需要说明的是, 假设业务 CPU 的个数为两个以上, 本实施例将各业务 CPU 中的一个业务 CPU作为主业务 CPU , 其他的业务 CPU 均为从业务 It should be noted that, assuming that the number of service CPUs is two or more, in this embodiment, one service CPU in each service CPU is used as a main service CPU, and other service CPUs are slave services.
CPU。 CPU.
在本发明的一个可选实施方式中, 交换单元 52分别与各业务 CPU51连 接, 具体为:  In an optional implementation manner of the present invention, the switching unit 52 is connected to each service CPU 51, specifically:
本实施例的交换单元 52分别给每个业务 CPU提供两个接口, 为了数据 业务层面和管理控制层面的分离, 将其中一个接口 (简称业务端口)用于收 发业务报文, 另外一个接口 (第二管理控制端口) 收发管理控制报文或鉴权 报文。 The switching unit 52 of the embodiment provides two interfaces for each service CPU, and one interface (referred to as a service port) is used for receiving the data service layer and the management control layer. Sending a service packet, and another interface (the second management control port) sends and receives a management control packet or an authentication packet.
为了实现各业务 CPU之间的负载均衡,本实施例中,将交换单元的各业 务端口聚合一起作为业务聚合 Trunk端口,分别与各业务 CPU的第一端口连 接, 只允许业务报文通过; 将交换单元的各第二管理控制端口分别与各业务 CPU的第二端口连接, 只允许管理控制报文或鉴权报文通过。 In this embodiment, the service ports of the switching unit are aggregated together as the service aggregation trunk port, and are respectively connected to the first port of each service CPU, and only service packets are allowed to pass; Each of the second management control ports of the switching unit is connected to the second port of each service CPU, and only the management control packet or the authentication packet is allowed to pass.
交换单元 52, 用于接收报文, 确定所述报文为业务报文; 通过业务聚合 Trunk端口, 广播负载检测请求消息, 以使接收所述负载检测请求消息的各 业务 CP U分别通过各自的第一端口返回负载检测响应消息,所述负载检测响 应消息中包括对应业务 CPU的当前负载比率及管理 IP地址; 根据所述各负 载检测响应消息中包含的对应业务 CPU的当前负载比率及管理 IP地址, 将 所述业务报文发送给当前负载比率最小的业务 CPU;  The switching unit 52 is configured to receive the packet, and determine that the packet is a service packet. The service aggregation Trunk port broadcasts a load detection request message, so that each service CP U that receives the load detection request message passes its own The first port returns a load detection response message, where the load detection response message includes a current load ratio of the corresponding service CPU and a management IP address; and a current load ratio and a management IP of the corresponding service CPU included in the load detection response message according to the load Address, the service message is sent to the service CPU with the smallest current load ratio;
各业务 CPU51 ,分别用于根据接收到的所述业务报文进行相应的业务操 作。  Each service CPU 51 is configured to perform corresponding service operations according to the received service message.
需要说明的是, 交换单元 52, 具体用于根据所述各负载检测响应消息中 包含的对应业务 CPU的当前负载比率及管理 IP地址, 获取当前负载比率最 小的业务 CPU对应的管理 IP地址; 根据所述获取的管理 IP地址, 通过与所 述当前负载比率最小的业务 CPU 的第一端口将所述业务报文发送给与所述 获取的管理 IP地址对应的业务 CPU。  It is to be noted that, the switching unit 52 is configured to obtain, according to the current load ratio and the management IP address of the corresponding service CPU included in the load detection response message, a management IP address corresponding to the service CPU with the smallest current load ratio; The obtained management IP address is sent to the service CPU corresponding to the acquired management IP address by using the first port of the service CPU with the smallest current load ratio.
在本发明的一个可选实施方式中, 所述系统还包括: 管理 CPU53, 与所 述交换单元 52连接; 具体为:  In an optional implementation manner of the present invention, the system further includes: a management CPU 53 connected to the switching unit 52; specifically:
为了实现管理 CPU对各业务 CPU的统一管理,本实施例的交换单元 52 提供第一管理控制端口与管理 CPU53连接。  The switching unit 52 of the present embodiment provides a connection between the first management control port and the management CPU 53 in order to implement unified management of the CPUs of the management CPUs.
交换单元 53, 还用于接收报文, 确定所述报文为管理控制报文; 通过第 一管理端口 , 将所述管理控制报文发送给所述管理 CPU;  The switching unit 53 is further configured to receive the packet, and determine that the packet is a management control packet; and send, by using the first management port, the management control packet to the management CPU;
管理 CPU53, 用于若确定所述管理控制报文中包括配置命令, 则将所述 配置命令通过所述第一管理控制端口发送给所述交换单元, 以使所述交换单 元将所述配置命令通过与所述主业务 CPU 的第二端口对应的第二管理控制 端口发送给所述主业务 CPU , 以使所述主业务 CPU通过所述交换单元将所 述配置命令同步发送给其他业务 CPU , 所述配置命令中包含逻辑网口和业务 配置参数; The management CPU 53 is configured to: if it is determined that the configuration control message includes a configuration command, send the configuration command to the switching unit by using the first management control port, so that the switching unit sends the configuration command And sending, by the switching service unit, the configuration command to the other service CPU by using the second management control port corresponding to the second port of the primary service CPU, to send the configuration command to the service CPU. The configuration command includes a logical network port and a service. Configuration parameter
各业务 CPU51 ,分别用于根据所述配置命令中包含的逻辑网口和业务配 置参数, 进行相应的配置操作;  Each service CPU 51 is configured to perform a corresponding configuration operation according to the logical network port and the service configuration parameter included in the configuration command.
需要说明的是,所述各业务 CPU配置的逻辑网口和业务配置参数是相同 的。  It should be noted that the logical network ports and service configuration parameters of the service CPUs are the same.
管理 CPU53,还用于若确定所述管理控制报文为汇总类型的管理控制报 文, 则将所述汇总类型的管理控制报文通过所述第一管理控制端口发送给所 述交换单元, 以使所述交换单元将所述汇总类型的管理控制报文通过第二管 理控制端口分别发送给各业务 CPU , 所述汇总类型的管理控制报文包括心跳 检测报文或查询报文或统计报文中至少一项,以使各业务 CPU通过所述交换 单元分别向所述管理 CPU返回管理控制响应消息;  The management CPU 53 is further configured to send, by the first management control port, the management control packet of the summary type to the switching unit, if the management control packet is determined to be a summary type of the management control packet, And causing, by the switching unit, the management control packet of the summary type to be sent to each service CPU by using the second management control port, where the summary type of the management control packet includes a heartbeat detection packet, a query packet, or a statistics packet. At least one of the items, so that each service CPU returns a management control response message to the management CPU through the switching unit;
管理 CPU53,还用于若确定所述管理控制报文为非汇总类型的管理控制 报文, 则将所述非汇总类型的管理控制报文通过所述第一管理控制端口发送 给所述交换单元, 以使所述交换单元将所述非汇总类型的管理控制报文通过 与所述主业务 CPU 的第二端口对应的第二管理控制端口发送给所述主业务 CPU , 以使所述主业务 CPU通过所述交换单元向所述管理 CPU返回管理控 制响应消息。  The management CPU 53 is further configured to: if the management control packet is determined to be a non-aggregated type of management control packet, send the non-summary type management control packet to the switching unit by using the first management control port. So that the switching unit sends the non-aggregated type of management control packet to the primary service control port through a second management control port corresponding to the second port of the primary service CPU, so that the primary service is The CPU returns a management control response message to the management CPU through the switching unit.
需要说明的是, 本实施例中, 各业务 CPU的组网配置、 业务配置、 运 行数据(如会话保持表、地址解析协议 (Address Resolution Protocol, ARP) 表、 服务 Server状态)都是一样的, 不同的是各业务 CPU的管理 IP不同。  It should be noted that, in this embodiment, the networking configuration, the service configuration, and the running data (such as the session retention table, the address resolution protocol (ARP) table, and the service server state) of the service CPUs are the same. The difference is that the management IP of each service CPU is different.
管理 CPU通过各业务 CPU的管理 IP实现对各业务 CPU的管理, 例 如, 管理 CPU负责为各业务 CPU提供统一的对外接口, 管理 CPU管理各 业务 CPU的配置、 统计和查询; 管理 CPU通过心跳检测各业务 CPU的状 态; 以及能够加载、 重启各业务 CPU。  The management CPU manages the CPUs of each service CPU through the management IP of each service CPU. For example, the management CPU is responsible for providing a unified external interface for each service CPU, and the management CPU manages the configuration, statistics, and query of each service CPU. The management CPU passes the heartbeat detection. The status of each service CPU; and the ability to load and restart each service CPU.
在本发明的一个可选实施方式中, 交换单元 52, 还用于接收报文, 确定 所述报文为认证请求鉴权报文;通过与所述主业务 CPU的第二端口对应的第 二管理控制端口, 将所述鉴权报文发送给与所述主业务 CPU。  In an optional implementation manner of the present invention, the switching unit 52 is further configured to receive a packet, where the packet is an authentication request authentication packet, and a second corresponding to the second port of the primary service CPU. And managing the control port, and sending the authentication packet to the primary service CPU.
需要说明的是, 本实施例中, 可以在管理 CPU 上创建一个管理程序, 管理 CPU通过管理程序维护各业务 CPU的管理 IP (表 1中的 IP地址) , 实现对各业务 CPU的管理与控制, 图 6为图 5所示系统实施例中管理 CPU 与各业务 CPU之间的信令图, 具体实现如图 6所示: It should be noted that, in this embodiment, a management program can be created on the management CPU, and the management CPU maintains the management IP (IP address in Table 1) of each service CPU through the management program, thereby realizing management and control of each service CPU. Figure 6 is a management CPU in the system embodiment shown in Figure 5. The signaling diagram between the CPU and each service is as shown in Figure 6.
在本发明的一个可选实施方式中, 当管理 CPU 收到系统外部发送的配 置命令时, 将配置命令发送给主业务 CPU , 具体实现时, 管理 CPU通过第 一管理控制端口将配置命令发送给交换单元, 交换单元将配置命令通过与主 业务 CPU的第二端口连接的第二管理控制端口发送给主业务 CPU。  In an optional implementation manner of the present invention, when the management CPU receives the configuration command sent by the system, the configuration command is sent to the main service CPU. In specific implementation, the management CPU sends the configuration command to the first management control port. The switching unit sends the configuration command to the primary service CPU through a second management control port connected to the second port of the primary service CPU.
主业务 CPU 处理完配置命令后, 实时同步将配置命令发送给各从业务 CPU , 并等待各从业务 CPU 返回的配置命令响应。 需要说明的是, 当某个 从业务 LBU同步配置不成功时, 主业务 CPU重新同步将配置命令给该从业 务 CPU; 当所有业务 CPU配置完成后, 主业务 CPU向管理 CPU返回配置 命令响应,具体实现时, 主业务 CPU将配置命令响应通过自身的第二端口发 送给交换单元, 交换单元将配置命令响应通过第一管理控制端口发送给管理 After the main service CPU processes the configuration command, the real-time synchronization sends the configuration command to each slave CPU and waits for the configuration command response returned from each service CPU. It should be noted that, when the synchronization configuration of the service LBU is unsuccessful, the main service CPU resynchronizes the configuration command to the slave service CPU; after all the service CPUs are configured, the main service CPU returns a configuration command response to the management CPU. In a specific implementation, the main service CPU sends the configuration command response to the switching unit through its second port, and the switching unit sends the configuration command response to the management through the first management control port.
CPU , 以使管理 CPU可以将接收到的配置命令响应返回给系统外部。 The CPU so that the management CPU can return the received configuration command response to the outside of the system.
需要说明的是, 本实施例中, 当主 CPU收到管理 CPU发送的保存配置 命令时, 主 CPU可以将内存中的配置命令保存到例如闪存 flash中, 当主业 务 CPU重启时,可以从 flash中读取配置命令,并将配置命令存放到内存中。 当从业务 CPU重启时, 可以向主业务 CPU请求将配置命令发送给自己。  It should be noted that, in this embodiment, when the main CPU receives the save configuration command sent by the management CPU, the main CPU may save the configuration command in the memory to, for example, a flash memory, and when the main service CPU restarts, it can read from the flash. Take the configuration command and store the configuration command in memory. When restarting from the service CPU, the main service CPU can be requested to send a configuration command to itself.
在本发明的一个可选实施方式中, 当管理 CPU13 收到系统外部发送的 汇总类型的管理控制报文, 例如汇总类型的查询命令 1 , 将查询命令 1发送 给主业务 CPU , 具体实现时, 管理 CPU通过第一管理控制端口将查询命令 1发送给交换单元, 交换单元将查询命令 1 分别通过第二管理控制端口发送 给主业务 CPU和从业务 CPU, 主业务 CPU和从业务 CPU执行完查询命令 1后, 分别向管理 CPU返回查询命令 1的响应, 具体实现时, 主业务 CPU 和从业务 CPU将查询命令 1的响应通过自身的第二端口发送给交换单元,交 换单元将查询命令 1 的响应通过第一管理控制端口发送给管理 CPU, 管理 CPU可以将接收到的查询命令 1的响应返回给系统外部。  In an optional implementation manner of the present invention, when the management CPU 13 receives the summary type of management control message sent by the system, for example, the summary type query command 1, the query command 1 is sent to the main service CPU. The management CPU sends the query command 1 to the switching unit through the first management control port, and the switching unit sends the query command 1 to the main service CPU and the slave service CPU through the second management control port, and the main service CPU and the slave service CPU execute the query. After the command is executed, the response of the query command 1 is returned to the management CPU. In the specific implementation, the primary service CPU and the secondary service CPU send the response of the query command 1 to the switching unit through its second port, and the switching unit queries the command 1 The response is sent to the management CPU through the first management control port, and the management CPU can return the response of the received query command 1 to the outside of the system.
在本发明的一个可选实施方式中,当管理 CPU收到系统外部发送的非汇 总类型的管理控制 文, 例如非汇总类型的查询命令 2, 将查询命令 2发送 给主业务 CPU , 具体实现时, 管理 CPU通过第一管理控制端口将查询命令 2发送给交换单元, 交换单元通过与主业务 CPU的第二端口对应的第二管理 控制端口将查询命令 2发送给主业务 CPU , 主业务 CPU执行完查询命令 2 后, 向管理 CPU返回查询命令 2的响应, 具体实现时, 主业务 CPU将查询 命令 2的响应通过自身的第二端口发送给交换单元, 交换单元将查询命令 2 的响应通过第一管理控制端口发送给管理 CPU, 管理 CPU可以将接收到的 查询命令 2的响应返回给系统外部。 In an optional implementation manner of the present invention, when the management CPU receives the non-summary type management control text sent by the system, for example, the non-summary type query command 2, the query command 2 is sent to the main service CPU, and the specific implementation time is The management CPU sends the query command 2 to the switching unit through the first management control port, and the switching unit sends the query command 2 to the main service CPU through the second management control port corresponding to the second port of the main service CPU, and the main service CPU executes End query command 2 Then, the response of the query command 2 is returned to the management CPU. In specific implementation, the main service CPU sends the response of the query command 2 to the switching unit through its second port, and the switching unit passes the response of the query command 2 through the first management control port. Sended to the management CPU, the management CPU can return the response of the received query command 2 to the outside of the system.
需要说明的是, 本实施例中, 各业务 CPU的组网配置、 业务配置、 运 行数据(如会话保持表、地址解析协议 (Address Resolution Protocol, ARP) 表、 服务 Server状态)都是一样的, 不同的是各业务 CPU的管理 IP不同。  It should be noted that, in this embodiment, the networking configuration, the service configuration, and the running data (such as the session retention table, the address resolution protocol (ARP) table, and the service server state) of the service CPUs are the same. The difference is that the management IP of each service CPU is different.
管理 CPU通过各业务 CPU的管理 IP实现对各业务 CPU的管理, 例 如, 管理 CPU负责为各业务 CPU提供统一的对外接口, 管理 CPU管理各 业务 CPU的配置、 统计和查询; 管理 CPU通过心跳检测各业务 CPU的状 态; 以及能够加载、 重启各业务 CPU。  The management CPU manages the CPUs of each service CPU through the management IP of each service CPU. For example, the management CPU is responsible for providing a unified external interface for each service CPU, and the management CPU manages the configuration, statistics, and query of each service CPU. The management CPU passes the heartbeat detection. The status of each service CPU; and the ability to load and restart each service CPU.
本发明实施例所述系统接收到业务报文时, 可以通过预设的业务聚合 When the system receives the service packet, the system can be aggregated by using a preset service.
Trunk端口向各业务 CPU发送负载检测请求消息, 用以获取各业务 CPU的 当前负载比率及对应的管理 IP地址,将业务报文通过业务聚合 Trunk端口发 送给当前负载比率最小的业务 CPU, 从而可以实现将业务报文均衡的发送给 各业务 CPU , 使得各业务 CPU不用争抢系统资源, 因此, 可以提高系统资 源的利用率, 因此, 本实施例的技术方案可以使得基于非对称多处理技术的 多个 CPU也能实现多 CPU之间的负载均衡。 The Trunk port sends a load detection request message to each service CPU to obtain the current load ratio of the service CPU and the corresponding management IP address, and send the service packet to the service CPU with the smallest load ratio through the service aggregation trunk port. The method for transmitting the service packets to the service CPUs is balanced, so that the service CPUs do not need to compete for the system resources. Therefore, the utilization of the system resources can be improved. Therefore, the technical solution of the embodiment can be based on the asymmetric multi-processing technology. Multiple CPUs can also achieve load balancing between multiple CPUs.
进一步地, 本发明实施例的交换单元可以根据接收的报文的不同类型, 分别通过预设的端口将报文发送给对应的 CPU, 例如, 将管理控制报文通过 第一管理控制端口发送给管理 CPU , 可以实现通过管理 CPU对各业务 CPU 进行统一管理和控制, 从而可以提高系统的可靠性、 可扩充性和抗灾难性。 例如,当其中的一个业务 CPU发生故障时,管理 CPU可以重启该业务 CPU。  Further, the switching unit of the embodiment of the present invention may send the packet to the corresponding CPU through a preset port according to different types of the received packets, for example, sending the management control packet to the first management control port. Management CPU can realize unified management and control of each service CPU through the management CPU, thereby improving system reliability, scalability, and catastrophic resistance. For example, when one of the service CPUs fails, the management CPU can restart the service CPU.
本发明另一实施例提供一种单板, 包括如图 5所示实施例所述的多 CPU 的报文处理系统, 具体实现原理和技术效果参见图 5所示实施例中的相关内 谷。  Another embodiment of the present invention provides a board, including a multi-CPU packet processing system according to the embodiment shown in FIG. 5. The specific implementation principle and technical effects are as shown in the related embodiment in the embodiment shown in FIG. 5.
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描 述的系统, 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应 过程, 在此不再赘述。  A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间 的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合 或通信连接, 可以是电性, 机械或其它的形式。 In the several embodiments provided by the present application, it should be understood that the disclosed system, device and The method can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或 者全部单元来实现本实施例方案的目的。  The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
另外 ,在本发明各个实施例中的各功能单元可以集成在一个处理单元中 , 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单 元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用硬件加软件 功能单元的形式实现。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元, 可以存储在一个计算机 可读取存储介质中。 上述软件功能单元存储在一个存储介质中, 包括若干指 令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等) 执行本发明各个实施例所述方法的部分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器(Read-Only Memory, 简称 ROM ) 、 随机存取存储 器( Random Access Memory, 简称 RAM )、 磁碟或者光盘等各种可以存储 程序代码的介质。  The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The above software functional units are stored in a storage medium and include a number of instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform some of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. Medium.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。  Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要求 书 claims
1、 一种多 CPU的报文处理方法, 其特征在于, 包括: 1. A multi-CPU message processing method, characterized by including:
交换单元接收报文, 确定所述报文为业务报文; The switching unit receives the message and determines that the message is a service message;
通过业务聚合 Trunk端口, 广播负载检测请求消息, 以使接收所述负载 检测请求消息的各业务 CPU 分别通过各自的第一端口返回负载检测响应消 息, 所述负载检测响应消息中包括对应业务 CPU的当前负载比率及管理 IP 地址; The load detection request message is broadcast through the service aggregation Trunk port, so that each service CPU that receives the load detection request message returns a load detection response message through their respective first port, and the load detection response message includes the corresponding service CPU's Current load ratio and management IP address;
根据所述各负载检测响应消息中包含的对应业务 CPU 的当前负载比率 及管理 IP地址, 将所述业务报文发送给当前负载比率最小的业务 CPU。 According to the current load ratio and management IP address of the corresponding service CPU contained in each load detection response message, the service message is sent to the service CPU with the smallest current load ratio.
2、 根据权利要求 1所述的方法, 其特征在于, 根据所述各负载检测响应 消息中包含的对应业务 CPU的当前负载比率及管理 IP地址, 将所述业务报 文发送给当前负载比率最小的业务 CPU具体包括: 2. The method according to claim 1, characterized in that, according to the current load ratio and management IP address of the corresponding service CPU contained in each load detection response message, the service message is sent to the server with the smallest current load ratio. The business CPU specifically includes:
根据所述各负载检测响应消息中包含的对应业务 CPU 的当前负载比率 及管理 IP地址, 获取当前负载比率最小的业务 CPU对应的管理 IP地址; 根据所述获取的管理 IP地址,通过与所述当前负载比率最小的业务 CPU 的第一端口将所述业务报文发送给与所述获取的管理 IP 地址对应的业务 According to the current load ratio and management IP address of the corresponding service CPU contained in each load detection response message, obtain the management IP address corresponding to the service CPU with the smallest current load ratio; according to the obtained management IP address, through the The first port of the service CPU with the smallest current load ratio sends the service message to the service corresponding to the obtained management IP address.
CPU。 CPU.
3、 根据权利要求 1所述的方法, 其特征在于, 还包括: 3. The method according to claim 1, further comprising:
接收报文, 确定所述报文为管理控制报文; Receive the message and determine that the message is a management control message;
通过第一管理控制端口, 将所述管理控制报文发送给与所述管理端口对 应的管理 CPU , 以使所述管理 CPU对所述各业务 CPU进行管理和控制。 The management control message is sent to the management CPU corresponding to the management port through the first management control port, so that the management CPU manages and controls each service CPU.
4、 根据权利要求 1所述的方法, 其特征在于, 还包括: 4. The method according to claim 1, further comprising:
接收报文, 确定所述报文为鉴权报文; Receive the message and determine that the message is an authentication message;
通过与主业务 CPU的第二端口对应的第二管理控制端口,将所述鉴权报 文发送给与所述主业务 CPU,所述主业务 CPU为所述各业务 CPU的其中一 个 CPU。 The authentication message is sent to the main service CPU through the second management control port corresponding to the second port of the main service CPU, and the main service CPU is one of the CPUs of the service CPUs.
5、 一种交换单元, 其特征在于, 包括: 5. A switching unit, characterized by including:
确定模块, 用于接收报文, 确定所述报文为业务报文; Determining module, used to receive the message and determine that the message is a service message;
广播模块, 用于在所述确定模块确定所述报文为业务报文的基础上, 通 过业务聚合 Trunk端口, 广播负载检测请求消息, 以使接收所述负载检测请 求消息的各业务 CPU分别通过各自的第一端口返回负载检测响应消息,所述 负载检测响应消息中包括对应业务 CPU的当前负载比率及管理 IP地址; 发送模块,用于根据所述广播模块接收的各业务 CPU返回的负载检测响 应消息中包含的对应业务 CPU的当前负载比率及管理 IP地址, 将所述业务 报文发送给当前负载比率最小的业务 CPU。 A broadcast module, configured to broadcast a load detection request message through the service aggregation Trunk port on the basis that the determination module determines that the message is a service message, so that the load detection request can be received. Each service CPU requesting the message returns a load detection response message through its respective first port. The load detection response message includes the current load ratio and management IP address of the corresponding service CPU; a sending module, used to receive according to the broadcast module The load detection response message returned by each service CPU contains the current load ratio and management IP address of the corresponding service CPU, and the service message is sent to the service CPU with the smallest current load ratio.
6、 根据权利要求 5所述的交换单元, 其特征在于, 所述发送模块, 具体 用于根据述广播模块接收的各业务 CPU 返回的负载检测响应消息中包含的 对应业务 CPU的当前负载比率及管理 IP地址, 获取当前负载比率最小的业 务 CPU对应的管理 IP地址; 根据所述获取的管理 IP地址, 通过与所述当前 负载比率最小的业务 CPU 的第一端口将所述业务报文发送给与所述获取的 管理 IP地址对应的业务 CPU。 6. The switching unit according to claim 5, characterized in that the sending module is specifically configured to determine the current load ratio and the load detection response of the corresponding service CPU contained in the load detection response message returned by each service CPU received by the broadcast module. Management IP address, obtain the management IP address corresponding to the service CPU with the smallest current load ratio; according to the obtained management IP address, send the service message to the first port of the service CPU with the smallest current load ratio. The service CPU corresponding to the obtained management IP address.
7、 根据权利要求 5所述的交换单元, 其特征在于, 所述确定模块, 还用 于确定所述报文为管理控制报文; 7. The switching unit according to claim 5, characterized in that the determining module is also used to determine that the message is a management control message;
所述发送模块, 还用于在所述确定模块确定所述报文为管理控制报文的 基础上, 通过第一管理控制端口, 将所述管理控制报文发送给对应的管理 CPU , 以使所述管理 CPU对所述各业务 CPU进行管理和控制。 The sending module is also configured to send the management control message to the corresponding management CPU through the first management control port based on the determination module determining that the message is a management control message, so that the The management CPU manages and controls each service CPU.
8、 根据权利要求 5所述的交换单元, 其特征在于, 所述确定模块, 还用 于确定所述报文为认证请求鉴权报文; 8. The switching unit according to claim 5, characterized in that the determination module is also used to determine that the message is an authentication request authentication message;
所述发送模块, 还用于在所述确定模块确定所述报文为鉴权报文的基础 上,通过与主业务 CPU的第二端口对应的第二管理控制端口,将所述鉴权报 文发送给与所述主业务 CPU,所述主业务 CPU为所述各业务 CPU的其中一 个 CPU。 The sending module is also configured to send the authentication message through the second management control port corresponding to the second port of the main service CPU after the determining module determines that the message is an authentication message. The message is sent to the main service CPU, and the main service CPU is one of the CPUs of the service CPUs.
9、 一种交换单元, 其特征在于, 包括: 处理器, 所述处理器具体用于: 接收报文, 确定所述报文为业务报文; 9. A switching unit, characterized in that it includes: a processor, the processor is specifically configured to: receive a message and determine that the message is a service message;
通过业务聚合 Trunk端口, 广播负载检测请求消息, 以使接收所述负载 检测请求消息的各业务 CPU 分别通过各自的第一端口返回负载检测响应消 息, 所述负载检测响应消息中包括对应业务 CPU的当前负载比率及管理 IP 地址; The load detection request message is broadcast through the service aggregation Trunk port, so that each service CPU that receives the load detection request message returns a load detection response message through their respective first port, and the load detection response message includes the corresponding service CPU's Current load ratio and management IP address;
根据所述各负载检测响应消息中包含的对应业务 CPU 的当前负载比率 及管理 IP地址, 将所述业务报文发送给当前负载比率最小的业务 CPU。 According to the current load ratio and management IP address of the corresponding service CPU contained in each load detection response message, the service message is sent to the service CPU with the smallest current load ratio.
10、 根据权利要求 9所述的交换单元, 所述处理器具体还用于: 根据所 述各负载检测响应消息中包含的对应业务 CPU的当前负载比率及管理 IP地 址, 获取当前负载比率最小的业务 CPU对应的管理 IP地址; 10. The switching unit according to claim 9, the processor is further configured to: obtain the minimum current load ratio based on the current load ratio and management IP address of the corresponding service CPU contained in each load detection response message. The management IP address corresponding to the service CPU;
根据所述获取的管理 IP地址,通过与所述当前负载比率最小的业务 CPU 的第一端口将所述业务报文发送给与所述获取的管理 IP 地址对应的业务 CPU。 According to the obtained management IP address, the service packet is sent to the service CPU corresponding to the obtained management IP address through the first port of the service CPU with the smallest current load ratio.
11、 根据权利要求 9所述的交换单元, 所述处理器具体还用于: 接收报文, 确定所述报文为管理控制报文; 11. The switching unit according to claim 9, the processor is further configured to: receive a message and determine that the message is a management control message;
通过第一管理控制端口, 将所述管理控制报文发送给对应的管理 CPU , 以使所述管理 CPU对所述各业务 CPU进行管理和控制。 The management control message is sent to the corresponding management CPU through the first management control port, so that the management CPU manages and controls each service CPU.
12、 根据权利要求 9所述的交换单元, 所述处理器具体还用于: 接收报文, 确定所述报文为认证请求鉴权报文; 12. The switching unit according to claim 9, the processor is further configured to: receive a message and determine that the message is an authentication request authentication message;
通过与主业务 CPU的第二端口对应的第二管理控制端口,将所述鉴权报 文发送给与所述主业务 CPU,所述主业务 CPU为所述各业务 CPU的其中一 个 CPU。 The authentication message is sent to the main service CPU through the second management control port corresponding to the second port of the main service CPU, and the main service CPU is one of the CPUs of the service CPUs.
13、 一种多 CPU 的报文处理系统, 用于与所述系统外部进行通信, 其 特征在于, 包括: 各业务 CPU和交换单元, 所述各业务 CPU至少包括两个 业务 CPU , 所述各业务 CPU的其中一个业务 CPU为主业务 CPU; 13. A multi-CPU message processing system, used to communicate with the outside of the system, characterized in that it includes: each service CPU and a switching unit, each of the service CPUs includes at least two service CPUs, and each of the service CPUs includes at least two service CPUs. One of the service CPUs is the main service CPU;
所述交换单元分别与所述各业务 CPU连接,具体为: 所述交换单元的业 务聚合 Trunk端口分别与所述各业务 CPU的第一端口连接,所述交换单元的 各第二管理控制端口分别与所述各业务 CPU的第二端口连接; The switching unit is connected to each service CPU respectively, specifically: the service aggregation Trunk port of the switching unit is connected to the first port of each service CPU, and each second management control port of the switching unit is respectively Connect to the second port of each service CPU;
所述交换单元, 用于接收报文, 确定所述报文为业务报文; 通过业务聚 合 Trunk端口, 广播负载检测请求消息, 以使接收所述负载检测请求消息的 各业务 CPU分别通过各自的第一端口返回负载检测响应消息,所述负载检测 响应消息中包括对应业务 CPU的当前负载比率及管理 IP地址; 根据所述各 负载检测响应消息中包含的对应业务 CPU的当前负载比率及管理 IP地址, 将所述业务报文发送给当前负载比率最小的业务 CPU; The switching unit is configured to receive a message and determine that the message is a service message; broadcast a load detection request message through the service aggregation Trunk port, so that each service CPU receiving the load detection request message passes their respective The first port returns a load detection response message, which includes the current load ratio and management IP address of the corresponding service CPU; according to the current load ratio and management IP address of the corresponding service CPU included in each load detection response message. Address, send the service message to the service CPU with the smallest current load ratio;
所述各业务 CPU , 分别用于根据接收到的所述业务报文进行相应的业务 操作。 Each of the service CPUs is used to perform corresponding service operations according to the received service messages.
14、 根据权利要求 13 所述的系统, 其特征在于, 所述交换单元, 具体 用于根据所述各负载检测响应消息中包含的对应业务 CPU 的当前负载比率 及管理 IP地址, 获取当前负载比率最小的业务 CPU对应的管理 IP地址; 根据所述获取的管理 IP地址,通过与所述当前负载比率最小的业务 CPU 的第一端口将所述业务报文发送给与所述获取的管理 IP 地址对应的业务 CPU。 14. The system according to claim 13, characterized in that, the switching unit, specifically For obtaining the management IP address corresponding to the service CPU with the smallest current load ratio according to the current load ratio and management IP address of the corresponding service CPU contained in each load detection response message; according to the obtained management IP address, through The first port of the service CPU with the smallest current load ratio sends the service packet to the service CPU corresponding to the obtained management IP address.
15、 根据权利要求 13所述的系统, 其特征在于, 还包括: 管理 CPU, 通过第一管理控制端口与所述交换单元连接; 15. The system according to claim 13, further comprising: a management CPU connected to the switching unit through a first management control port;
所述交换单元, 还用于接收报文, 确定所述报文为管理控制报文; 通过 第一管理端口, 将所述管理控制报文发送给所述管理 CPU; The switching unit is also configured to receive a message and determine that the message is a management control message; and send the management control message to the management CPU through the first management port;
所述管理 CPU, 用于若确定所述管理控制报文中包括配置命令, 则将所 述配置命令通过所述第一管理控制端口发送给所述交换单元, 以使所述交换 单元将所述配置命令通过与所述主业务 CPU 的第二端口对应的第二管理控 制端口发送给所述主业务 CPU, 以使所述主业务 CPU通过所述交换单元将 所述配置命令同步发送给其他业务 CPU , 所述配置命令中包含逻辑网口和业 务配置参数; The management CPU is configured to, if it is determined that the management control message includes a configuration command, send the configuration command to the switching unit through the first management control port, so that the switching unit will The configuration command is sent to the main service CPU through the second management control port corresponding to the second port of the main service CPU, so that the main service CPU synchronously sends the configuration command to other services through the switching unit CPU, the configuration command includes logical network port and service configuration parameters;
所述各业务 CPU , 分别用于根据所述配置命令中包含的逻辑网口和业务 配置参数, 进行相应的配置操作; Each of the service CPUs is used to perform corresponding configuration operations according to the logical network port and service configuration parameters included in the configuration command;
所述各业务 CPU配置的逻辑网口和业务配置参数是相同的; The logical network ports and service configuration parameters configured by each service CPU are the same;
所述管理 CPU, 还用于若确定所述管理控制报文为汇总类型的管理控制 报文, 则将所述汇总类型的管理控制报文通过所述第一管理控制端口发送给 所述交换单元, 以使所述交换单元将所述汇总类型的管理控制报文通过第二 管理控制端口分别发送给各业务 CPU , 所述汇总类型的管理控制报文包括心 跳检测报文或查询报文或统计报文中至少一项,以使各业务 CPU通过所述交 换单元分别向所述管理 CPU返回管理控制响应消息; The management CPU is also configured to send the summary type management control message to the switching unit through the first management control port if it is determined that the management control message is a summary type management control message. , so that the switching unit sends the summary type management control message to each service CPU respectively through the second management control port, and the summary type management control message includes a heartbeat detection message or a query message or statistics At least one item in the message, so that each service CPU returns a management control response message to the management CPU through the switching unit;
所述管理 CPU, 还用于若确定所述管理控制 文为非汇总类型的管理控 制报文, 则将所述非汇总类型的管理控制报文通过所述第一管理控制端口发 送给所述交换单元, 以使所述交换单元将所述非汇总类型的管理控制报文通 过与所述主业务 CPU 的第二端口对应的第二管理控制端口发送给所述主业 务 CPU,以使所述主业务 CPU通过所述交换单元向所述管理 CPU返回管理 控制响应消息。 The management CPU is also configured to, if it is determined that the management control message is a non-summary type management control message, send the non-summary type management control message to the switch through the first management control port. unit, so that the switching unit sends the non-summary type management control message to the main service CPU through the second management control port corresponding to the second port of the main service CPU, so that the main service CPU The service CPU returns a management control response message to the management CPU through the switching unit.
16、 根据权利要求 13 所述的系统, 其特征在于, 所述交换单元, 还用 于接收报文,确定所述报文为认证请求鉴权报文; 通过与所述主业务 CPU的 第二端口对应的第二管理控制端口, 将所述鉴权报文发送给与所述主业务 CPU。 16. The system according to claim 13, characterized in that the switching unit is also used to receive a message and determine that the message is an authentication request authentication message; through the second communication with the main service CPU The second management control port corresponding to the port sends the authentication message to the main service CPU.
17、一种单板, 其特征在于, 所述单板包括: 至少一个如权利要求 13-17 中任一项所述的多 CPU的 4艮文处理系统。 17. A single board, characterized in that the single board includes: at least one multi-CPU text processing system according to any one of claims 13-17.
PCT/CN2012/079959 2012-08-10 2012-08-10 Multi-cpu packet processing method and system, switching unit and board WO2014023023A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2012/079959 WO2014023023A1 (en) 2012-08-10 2012-08-10 Multi-cpu packet processing method and system, switching unit and board
CN201280001081.6A CN103765837B (en) 2012-08-10 2012-08-10 The message processing method of multi-CPU and system, crosspoint, veneer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/079959 WO2014023023A1 (en) 2012-08-10 2012-08-10 Multi-cpu packet processing method and system, switching unit and board

Publications (1)

Publication Number Publication Date
WO2014023023A1 true WO2014023023A1 (en) 2014-02-13

Family

ID=50067405

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/079959 WO2014023023A1 (en) 2012-08-10 2012-08-10 Multi-cpu packet processing method and system, switching unit and board

Country Status (2)

Country Link
CN (1) CN103765837B (en)
WO (1) WO2014023023A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651203A (en) * 2016-04-26 2020-09-11 中科寒武纪科技股份有限公司 Device and method for executing vector four-rule operation
CN112468348A (en) * 2020-12-16 2021-03-09 中国航空研究院 System for adapting bus type network and exchange type network
CN112468348B (en) * 2020-12-16 2024-04-26 中国航空研究院 System for adapting bus type network and exchange type network

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598412A (en) * 2014-10-17 2015-05-06 新浪网技术(中国)有限公司 Data transmission method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020107962A1 (en) * 2000-11-07 2002-08-08 Richter Roger K. Single chassis network endpoint system with network processor for load balancing
CN1719806A (en) * 2005-07-15 2006-01-11 中国人民解放军国防科学技术大学 Dynamic load allocating method for network processor based on cache and apparatus thereof
CN1913454A (en) * 2006-08-30 2007-02-14 华为技术有限公司 Method and device for implementing sharing IP message load
CN101494611A (en) * 2009-02-20 2009-07-29 华为技术有限公司 Method and apparatus for regulating load share
CN101577705A (en) * 2008-05-08 2009-11-11 北京东华合创数码科技股份有限公司 Multi-core paralleled network traffic load balancing method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207550B (en) * 2007-03-16 2010-09-15 中国科学技术大学 Load balancing system and method for multi business to implement load balancing
CN101217467B (en) * 2007-12-28 2010-10-27 杭州华三通信技术有限公司 An inter-core load dispensing device and method
CN101662506B (en) * 2009-10-14 2013-01-16 中兴通讯股份有限公司 Load balancing method based on CPU kernel sharing and device thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020107962A1 (en) * 2000-11-07 2002-08-08 Richter Roger K. Single chassis network endpoint system with network processor for load balancing
CN1719806A (en) * 2005-07-15 2006-01-11 中国人民解放军国防科学技术大学 Dynamic load allocating method for network processor based on cache and apparatus thereof
CN1913454A (en) * 2006-08-30 2007-02-14 华为技术有限公司 Method and device for implementing sharing IP message load
CN101577705A (en) * 2008-05-08 2009-11-11 北京东华合创数码科技股份有限公司 Multi-core paralleled network traffic load balancing method and system
CN101494611A (en) * 2009-02-20 2009-07-29 华为技术有限公司 Method and apparatus for regulating load share

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651203A (en) * 2016-04-26 2020-09-11 中科寒武纪科技股份有限公司 Device and method for executing vector four-rule operation
CN112468348A (en) * 2020-12-16 2021-03-09 中国航空研究院 System for adapting bus type network and exchange type network
CN112468348B (en) * 2020-12-16 2024-04-26 中国航空研究院 System for adapting bus type network and exchange type network

Also Published As

Publication number Publication date
CN103765837B (en) 2016-08-10
CN103765837A (en) 2014-04-30

Similar Documents

Publication Publication Date Title
US10200278B2 (en) Network management system control service for VXLAN on an MLAG domain
CN107996023B (en) Method and equipment for monitoring virtual network and virtual network system
WO2016034074A1 (en) Method, apparatus and system for implementing software-defined networking (sdn)
US9054958B2 (en) System and method for reducing information loss in an aggregated information handling system
TWI538445B (en) Distributed switch domain of heterogeneous components
WO2020135575A1 (en) System and method for obtaining network topology, and server
EP3235199B1 (en) Multicast advertisement message for a network switch in a storage area network
US9300574B2 (en) Link aggregation emulation for virtual NICs in a cluster server
US20100287262A1 (en) Method and system for guaranteed end-to-end data flows in a local networking domain
US20080117909A1 (en) Switch scaling for virtualized network interface controllers
JP2013539877A5 (en)
US10503565B2 (en) System and method for multicasting data between networking interfaces of hypervisors
EP2313819A2 (en) Architecture to enable energy savings in networked computers
WO2012106892A1 (en) Method, apparatus and system for processing service flow
WO2017114363A1 (en) Packet processing method, bng and bng cluster system
WO2014008867A1 (en) Method, device and system for migration of virtual machines
WO2014134919A1 (en) Method for communication control among servers in same lessee and network device
WO2020114017A1 (en) Data center traffic exchange method and apparatus, device and storage medium
WO2015081551A1 (en) Method, device and system for implementing packet routing in network
WO2014056200A1 (en) Method and device for synchronizing network data flow detection status
EP2883123A1 (en) Forwarding packet in stacking system
WO2019000953A1 (en) Method, device, and system for implementing mux machine
WO2015067144A1 (en) Method and apparatus for software disposition
US8908682B2 (en) Switch discovery protocol for a distributed fabric system
CA2790409A1 (en) Method and apparatus for detecting active and orphan session-based connections

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

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

Country of ref document: EP

Kind code of ref document: A1