High performance data message capture method and device based on Linux

A data packet, high-performance technology, applied in the network field, can solve problems such as high CPU usage, low efficiency, and increased packet loss rate, and achieve the effect of reducing CPU usage, packet loss rate, and kernel interrupt processing

Inactive Publication Date: 2013-12-11
GUANGDONG EFLYCLOUD COMPUTING CO LTD
View PDF3 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It can be seen that frequent data copying, kernel interrupt processing and system calls will mak

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
  • High performance data message capture method and device based on Linux
  • High performance data message capture method and device based on Linux
  • High performance data message capture method and device based on Linux

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The technical solutions of the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Apparently, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.

[0038] Such as figure 2 As shown, it is a schematic flow chart of the Linux-based high-performance data packet capture method provided in Embodiment 1 of the present invention; the method in this embodiment takes the kernel layer as the main body.

[0039] A method for capturing high-performance data packets based on Linux, comprising the steps of:

[0040] S101. Receive the trigger signal for processing the data message sent by the network card after receiving the data message, and notify the data message cap...

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 the technical field of networks, in particular to a high performance data message capture method and device based on Linux. The method comprises the steps that a data message capture program is notified to process a trigger signal in an interruption mode according to the trigger signal; the trigger signal is shielded if network flow is large, and a network card is initiatively polled on whether a data message is received; if the data message is received, the data message of the network card is synchronized to kernel memory; if the network flow is small, correspondence to the trigger signal is performed, and the data message of the network card is synchronized to the kernel memory; a data message storage address in the kernel memory is obtained, and the storage starting address of the data message is mapped to user virtual address space through the memory mapping function mmap. Kernel interrupt processing is reduced through a semi-polling method, a path for transmitting the data message of the network card is changed, copy frequency of the data message is reduced through the memory mapping function mmap, high performance network sniffing is conducted under the gigabit and 10 gigabit environment, packet loss rate is reduced, and CPU occupation rate is reduced.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a method and device for capturing high-performance data packets based on Linux. Background technique [0002] Data packet capture is to use the promiscuous mode of the network card to capture all data packets passing through the network card, and then provide them to the application for specific purposes, such as analysis of network failures, evaluation of network quality, or firewall and log system accomplish. The biggest advantage of implementing these applications by means of data packet capture is that while capturing all data packets passing through the network card, it also provides the application with the most original data packets. [0003] High-performance data packet capture specifically refers to network packet capture in a Gigabit or 10 Gigabit environment. The network in this environment is characterized by large traffic and many data packets, which can reach mill...

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/801
Inventor 梁润强李坤祥刘杰闵宇
Owner GUANGDONG EFLYCLOUD COMPUTING CO LTD
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