发明名称 DATA PROCESSING APPARATUS AND DATA PROCESSING METHOD
摘要 A data processing apparatus and a data processing method are provided. The apparatus includes M protocol stacks and at least one distribution service module, and the M protocol stacks separately run on different logic cores of a processor and are configured to independently perform protocol processing on a data packet to be processed. The distribution service module receives an input data packet from a network interface and sends the data packet to one of the M protocol stacks for protocol processing, and receives data packets processed by the M protocol stacks and sends the data packets outwards through the network interface. The present disclosure implements a function of parallel protocol processing by multiple processes in user space of an operating system in a multi-core environment by using a parallel processing feature of a multi-core system, thereby reducing resource consumption caused by data packet copying.
申请公布号 US2016077872(A1) 申请公布日期 2016.03.17
申请号 US201514936118 申请日期 2015.11.09
申请人 HUAWEI TECHNOLOGIES CO., LTD. 发明人 GU Qiang;WEN Liufei;SHI Guangyu
分类号 G06F9/48;G06F9/54 主分类号 G06F9/48
代理机构 代理人
主权项 1. A data processing method, wherein the method is applied to user space of an operating system, the method comprising: receiving a data packet from an input port on a network interface; storing the received data packet in memory space, wherein the memory space is memory space after memory mapping, and the memory space is accessible in both user mode and kernel mode; determining, according to an attribute of the data packet, a first protocol stack that needs to perform protocol processing on the data packet, wherein the first protocol stack is one of M protocol stacks, the M protocol stacks are disposed in the user space of the operating system, and each of the M protocol stacks separately runs on a logic core of a processor, M is a positive integer greater than 1; and inserting a pointer into an input queue corresponding to the first protocol stack, wherein the pointer points to an address of the data packet in the memory space, so that the first protocol stack retrieves the data packet from the memory space and performs protocol processing on the data packet according to a protocol processing rule.
地址 Shenzhen CN
您可能感兴趣的专利