Method for capturing real-time network data

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

Inactive Publication Date: 2013-08-28
OPZOON TECH
View PDF4 Cites 18 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
  • Method for 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 invention provides a method for capturing real-time network data. The method comprises the following steps: S1, a kernel mode is initialized, and register information for receiving and sending message functions by a kernel network card is deleted in the process of initializing; S2, the kernel mode provides a large patch applied by internal storage, an Mmap memory map and an interface function ioctl of a user mode operation kernel, and the starting address of physical memory and the starting address of a network card configuration space are recorded; S3, a user mode automatically detects and acquires the bus number of the network card, the number of equipment and a function number, and is in communication with the kernel mode according to the interference function ioctl; corresponding resource allocation and corresponding network card register configuration are conducted on network card receiving and sending messages, and the user mode receives and sends the messages. According to the method for capturing the real-time network data, loading and driving in the kernel mode and message receiving and sending in the user mode of the network card are achieved, and network card driving interrupt in the kernel mode and performance damage caused by data copy are removed.

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 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 pe...

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 Applications(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