Zero-copy method for supporting link aggregation of multi-type network cards

A zero-copy, network card technology, applied in the field of zero-copy packet capture, can solve problems such as inability to solve use, poor scalability, multiple network cards, etc., and achieve the effect of easy porting and expansion

Active Publication Date: 2009-09-23
DAWNING INFORMATION IND BEIJING +1
View PDF0 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] With the development of application requirements, the existing technical solutions have the disadvantage of poor scalability, because many high-speed network packet processing applications require special customized network card hardware, on these customized network cards, the original Do some preprocessing for network packets. It is common to enhance an additional data structure in front of the original packet structure, or combi

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Zero-copy method for supporting link aggregation of multi-type network cards
  • Zero-copy method for supporting link aggregation of multi-type network cards

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0050] Example 2

[0051] The structure and operation steps of this embodiment are basically the same as those of embodiment 1, except that the size of each buffer in step B is 2KB, in order to ensure that the buffers requested in the user space are located in continuous memory pages. Above, the memory requested by the interface library function is shared memory, because in the Linux operating system, shared memory is located on a continuous physical page. The specific operation is:

[0052] B1) Apply for a shared buffer in the interface library function and connect to the shared buffer.

[0053] B2) The interface library function passes the first address of the shared buffer to the kernel driver through the ioctl system call command.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a zero-copy packing method, in particular to a zero-copy method capable of supporting multi-type network cards and realizing link aggregation. The zero-copy method comprises the following steps: A. a device interface is opened through an interface layer function in a buffer area; B. the buffer area is positioned in a user space; C. a buffer area queue is constructed; D. the interface layer function is mapped to the information of the control structure of the buffer area through an internal memory; E. the device interface is opened through a message interface layer function; and F. a newly established message pointer queue is applied, the message pointer is extracted out from the buffer area to put in the message pointer queue, and the message data in the message pointer queue is applied for processing. Due to the adoption of the layered structure, the prior application interface layer is divided into a buffer area interface layer being regardless of the buffer area structure of the concrete device and a message interface layer for extracting the message from the buffer area, the purpose for using the multi-type network cards in a mixed manner is achieved, and the software is convenient for transportation and the extension.

Description

technical field [0001] The invention relates to a zero-copy packet capturing method, in particular to a zero-copy method which can support multi-type network cards and realize link aggregation function. Background technique [0002] In a high-speed network environment, application software for interception and detection needs an efficient packet capture method, that is, a zero-copy packet capture method. In traditional zero-copy packet capture software, kernel drivers and application interface libraries are generally used Two-tier structure. The kernel driver is responsible for writing messages into the message buffer, and the application interface library is responsible for submitting the message buffer to the application. After the application software has processed the message, it will release the buffer through the application interface library so that the kernel driver can Write a new message to the buffer. [0003] In traditional zero-copy software, when an applicati...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L12/56H04L12/02G06F13/28
Inventor 曾宇历军聂华刘朝辉
Owner DAWNING INFORMATION IND BEIJING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products