The method of capturing real-time network data

A real-time network and data technology, applied in the network field, can solve the problems of performance loss, the kernel has no network interface, etc., and achieve the effect of eliminating performance loss

Inactive Publication Date: 2016-09-14
OPZOON TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The network card driver is loaded in user mode to send and receive messages, which solves the performance loss of the above situation, but for some host message business processing (such as pppoe, dhcp, etc. in the linux kernel), it is necessary to perceive the actual physical network and network interface status, while the kernel No network interface is operationally aware, and this is where the problem occurs

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
  • The method of capturing real-time network data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] The invention provides a method for capturing real-time network data, such as figure 1 As shown, the method includes:

[0027] S1: Initialize the kernel state, and delete the registration of the kernel network card sending and receiving message function during the initialization process, and remove the resource allocation related to sending and receiving messages at the same time; make the network card kernel state unable to send and receive messages, and leave it to the user state to send and receive messages , the resources for sending and receiving messages of the kernel network card are no longer allocated, and the hardware registers related to sending and receiving messages are no longer configured. However, the normal pci bus settings and interface registration in the kernel mode are reserved to ensure that the kernel network interface can be configured with operations such as ip, routing, sub-interface, and bridge binding.

[0028] While deleting the registratio...

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 present invention provides a method for capturing real-time network data. The method includes: S1: initialize the kernel state, and delete the registration of the function of sending and receiving messages of the kernel network card during the initialization process; S2: apply for a large block of memory in the kernel state patch, Mmap memory mapping, and user mode operation kernel interface function ioctl, and record the start address of the physical memory and the start address of the network card configuration space; S3: User mode automatically detects the bus number, device number and function number of the network card , and communicate with the kernel mode according to the interface function ioctl; and perform corresponding resource allocation and configuration of related network card registers for sending and receiving messages by the network card, and send and receive messages in the user mode. By providing a method for capturing real-time network data, the present invention realizes that the network card loads and drives the kernel to send and receive messages in the user state, and eliminates the performance loss caused by the interruption of the kernel state network card driver and data copying.

Description

technical field [0001] The invention relates to network technology, in particular to a method for capturing real-time network data. Background technique [0002] At present, for the data capture method, the kernel loads the network card driver to send and receive messages, and the business processing is in the kernel. The network card driver is loaded by the kernel to send and receive messages. Under the impact of the large traffic of the 10G network card, a large number of interrupts will consume a certain amount of CPU performance (especially the X86 architecture). At the same time, the data copy from the kernel state to the user state of the Linux operating system is also It will cause loss of system performance. The data capture method also includes loading the network card driver in the user state to send and receive messages, and the business processing is in the user state. The network card driver is loaded in user mode to send and receive messages, which solves the...

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): H04L12/24H04L12/26
Inventor 高福亮
Owner OPZOON TECH
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