NETWORK PACKET CAPTURING METHOD
    1.
    发明申请
    NETWORK PACKET CAPTURING METHOD 审中-公开
    网络包捕获方法

    公开(公告)号:US20090225767A1

    公开(公告)日:2009-09-10

    申请号:US12042832

    申请日:2008-03-05

    IPC分类号: H04L12/56

    摘要: A network packet capturing method for capturing a plurality of packets from a physical layer to an application layer by a network server through a network card is described. The packet capturing method includes the following steps. Capture packets by a new application interface (NAPI); set a ring queue in a kernel; provide a hook process for capturing the packets; store the captured packets into the ring queue; and map the packets stored in the ring queue into a memory space of a corresponding application through memory mapping, thereby reducing the number of interrupts of the system and the number of replications during the packets parsing.

    摘要翻译: 描述了一种网络分组捕获方法,用于通过网卡从网络服务器捕获从物理层到应用层的多个分组。 分组捕获方法包括以下步骤。 通过新的应用程序接口(NAPI)捕获数据包; 在内核中设置一个环队列; 提供捕获数据包的钩子进程; 将捕获的数据包存储到环队列中; 并通过存储器映射将存储在环队列中的数据包映射到对应应用程序的存储空间,从而减少了系统中断次数和数据包解析期间的复制次数。

    METHOD FOR PROCESSING DATA PACKET LOAD BALANCING AND NETWORK EQUIPMENT THEREOF
    2.
    发明申请
    METHOD FOR PROCESSING DATA PACKET LOAD BALANCING AND NETWORK EQUIPMENT THEREOF 审中-公开
    用于处理数据包负载平衡的方法及其网络设备

    公开(公告)号:US20100157806A1

    公开(公告)日:2010-06-24

    申请号:US12342389

    申请日:2008-12-23

    IPC分类号: H04L12/56

    摘要: A method for processing data packet load balancing and a network equipment thereof, which are for balancing the load of a plurality of controllers in a network equipment. The method comprises the steps. A plurality of data packets is received. A storage queue is assigned for storing the data packets. The data packets in the storage queue are read by an allocation controller. The allocation controller assigns the data packets to different work sequences according to a work attribute of the data packets. A processing controller is commanded to perform a packet processing procedure, and at least one work queue is assigned to the processing controller for processing the data packets. After completing the packet processing procedure, the processing controller sends a completion message to a completion queue. If the allocation controller detects that the completion queue contains the completion message, the allocation controller sends the processed data packets back.

    摘要翻译: 一种用于处理数据分组负载均衡的方法及其网络设备,其用于平衡网络设备中的多个控制器的负载。 该方法包括以下步骤。 接收多个数据分组。 分配存储队列以存储数据分组。 存储队列中的数据包由分配控制器读取。 分配控制器根据数据包的工作属性将数据包分配给不同的工作序列。 命令处理控制器执行分组处理过程,并且至少一个工作队列被分配给处理控制器以处理数据分组。 在完成分组处理过程之后,处理控制器向完成队列发送完成消息。 如果分配控制器检测到完成队列包含完成消息,则分配控制器返回已处理的数据包。