Unlock instant, AI-driven research and patent intelligence for your innovation.

Data packet capture method and device

A data packet and data packet receiving technology, applied in the field of communication, can solve the problems of restricting the development of network security systems and network monitoring systems, packet loss, etc., to reduce packet loss problems, improve capture efficiency, and increase capture capabilities.

Active Publication Date: 2020-11-27
NEUSOFT CORP
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, with the rapid increase of network speed, when the network traffic is relatively large, a large number of packet loss problems will occur when the above data packet capture method is adopted, which restricts the development of network security systems and network monitoring systems

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
  • Data packet capture method and device
  • Data packet capture method and device
  • Data packet capture method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary, and are intended to explain the present application, and should not be construed as limiting the present application.

[0043] The method and device for capturing data packets according to the embodiments of the present application will be described below with reference to the accompanying drawings.

[0044] figure 1 is a flow chart of a data packet capture method in an embodiment of the present application.

[0045] Such as figure 1 As shown, the packet capture method includes:

[0046] S101. Receive a data packet capture instruction, where the capture instruction includes a capture policy.

[0047] Specifically, the data packet capture ...

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 application provides a data packet capture method and a data packet capture device, which are applied to terminal equipment. The data packet capture method comprises the following steps: receiving a data packet capture instruction, wherein the capture instruction includes a capture strategy; distributing network card data to M cores according to the number N of cores included in a center processor of terminal equipment, wherein M is a positive integer which is greater than or equal to 1 and smaller than or equal to N; creating M packet receiving threads respectively associated with the M cores; and making the M packet receiving threads monitor data in the M cores so as to receive data packets meeting the capture strategy. Data packets are received through multiple threads. The ability of data packet capture is improved. The efficiency of data packet capture is improved. The occurrence of packet loss is reduced. Conditions are provided for the development of the network security system and the network monitoring system.

Description

technical field [0001] The present application relates to the technical field of communications, and in particular to a data packet capture method and device. Background technique [0002] Packet capture technology is the underlying technology related to network security. At present, commonly used packet capture software such as tcpdump, ethereal, snort, etc., when capturing data packets, are based on the capture conditions. When the network card receives a data packet, trigger A hardware interrupt copies the data packet to the corresponding kernel buffer in the form of memory copy. After the interrupt handler finds that the copy is complete, it hangs the data packet into the network packet (sk_buff) queue, and the interrupt handler starts to calculate the data packet calibration. checksum and other operations, and continue to receive packets; when the interrupt processing is completed, the data packet is passed to the upper layer protocol stack. The user state program obta...

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/26
CPCH04L43/04H04L43/10H04L43/106
Inventor 刘芳宁
Owner NEUSOFT CORP