Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Apparatus and method for realizing zero copy based on Linux operating system

An operating system, zero-copy technology, applied in the field of zero-copy systems, which can solve problems such as increasing dependencies and not supporting data forwarding

Active Publication Date: 2009-02-25
FORTINET
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, for applications that need to capture and forward network data at the same time (such as IPS (Intrusion Protection System, intrusion protection system) implemented in user mode), the current zero-copy technology has a flaw: it does not support data forwarding from top to bottom
A large number of modifications to the network card driver have increased the dependence of zero copy on the network card driver

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
  • Apparatus and method for realizing zero copy based on Linux operating system
  • Apparatus and method for realizing zero copy based on Linux operating system
  • Apparatus and method for realizing zero copy based on Linux operating system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0070] Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0071] image 3 It is a schematic diagram of two-way zero-copy of the Linux operating system of the present invention. As shown in the figure, when the device for implementing zero copy is loaded, the zero copy initialization module 100 will first initialize the kernel space: allocate zero copy data area, identification buffer 150 and skb buffer 160 in the kernel, and zero copy Copy the data area to block and identify. Register the character device file "zerocopy" in the zero-copy interface 180, which is the communication interface between the kernel and user processes. The zero-copy interface 180 implements the mmap() and ioctl() interfaces of the file. In addition, the zero-copy initialization module 100 registers Netfilter hooks according to application requirements. Hook the zero-copy Hook function to the corresponding hook.

[0072] The networ...

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 apparatus comprises: a zero-copy initializing module used for allocating a segment of inner core space in the inner core, and dividing the inner cored space into multi data blocks, and identifying each block; a network card driving module used for sending the received data packet to the data block in the inner core to save; recording the identifier of the data block in skb of the data packet, and sending the skb to the protocol stack; a protocol stack used for receiving and analyze the skb of the data packet, and getting the identifier of the data block; a identifier buffer connected to the protocol stack and is directly mapped to the user progress module, and is used for saving the identifier of data block obtained by the protocol stack; a user progress module used for getting the identifier from the identifier buffer, and getting the data packet from the data block in the inner core space.

Description

technical field [0001] The invention relates to a zero-copy system and method for a computer network, in particular to a system and a method for realizing zero-copy based on a Linux operating system. Background technique [0002] In the Linux operating system, the process of capturing and sending network data through network sockets is as follows figure 1 shown. [0003] The process of receiving data packets: the network card receives network data packets into the kernel space through the DMA (Direct Memory Access) mechanism. The user state process obtains network data by calling socket-related system calls, which copy data from the kernel space to the user space, and the user process obtains network data packets by reading the data in the user space. [0004] The process of sending data packets: the user process sends network data by calling socket-related system calls. This system call copies the data from the user space to the kernel space, performs corresponding encap...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/46H04L29/06
Inventor 徐鄗
Owner FORTINET
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products