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

Data packet processing method and device and storage medium

A processing method and a technology of a processing device, which are applied in the field of data processing, can solve problems such as waste of computing resources, achieve the effects of reducing resource consumption, simplifying the processing process, and avoiding video freeze and out-of-sync audio and video

Active Publication Date: 2020-02-28
VISIONVERA INFORMATION TECH CO LTD
View PDF10 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Considering the specific needs of these two points, the development of this address mapping driver function is to deal with the protocol of the second layer. It does not need to be processed again at the kernel level, which wastes limited computing resources.

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 processing method and device and storage medium
  • Data packet processing method and device and storage medium
  • Data packet processing method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] Usually, the application program monitors data packets by using an interface based on the kernel state network protocol stack. Among them, receiving data packets is a complicated process, involving many underlying technical details, and roughly requires the following steps:

[0037] 1) The network card receives the data packet.

[0038] 2) Transfer the data packet from the network card hardware cache to the server memory.

[0039] 3) The network card tells the kernel that a data packet is coming in through an interrupt.

[0040] 4) Transfer the packet to the network layer.

[0041] 5) The Internet Protocol (Internet Protocol, IP) layer checks the IP header of the data packet to check whether the data packet is valid. If valid, the IP header is deleted, and the data packet is sent to the transmission control protocol (Transmission Control Protocol, TCP) layer.

[0042] 6) The TCP layer checks whether the data packet is valid, and searches for a TCP control block conn...

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 embodiment of the invention provides a data packet processing method and device and a storage medium. The method comprises the following steps: receiving a to-be-processed data packet through a network card of a server; copying the data packet from a hardware cache region of the network card to a pre-allocated user state memory region according to a preset mapping relationship; and pushing thedata packet stored in the user mode memory area to a user mode application program, so that the user mode application program performs related processing on the pushed data packet. According to the embodiment of the invention, the data packet is prevented from being copied from the hardware cache region of the network card to the kernel mode memory region; according to the method, the data packetis copied from the kernel mode memory area to the user mode memory area, so that the processing flow of the data packet is simplified, the resource consumption of a CPU (Central Processing Unit) anda network card is reduced, and the problems of video lag and asynchronous audio and video caused by active packet loss of the network card are avoided.

Description

technical field [0001] The present invention relates to the technical field of data processing, in particular to a method and device for processing data packets, and a computer-readable storage medium. Background technique [0002] The Internet of Vision is a dedicated network based on Ethernet hardware for high-speed transmission of high-definition video and dedicated protocols. The Internet of Vision is a more advanced form of Ethernet and a real-time network. As a service network system mainly based on audio and video data transmission, the video network carries a very large amount of data. [0003] At present, the data processing process of the data receiver in the Internet of Things is as follows: the network card receives data, the data is transmitted to the network protocol stack (kernel state), the data is transmitted from the network protocol stack (kernel state) to the user state, and the user state application uses the data . Among them, after the data is transm...

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): H04L29/06H04L29/08
CPCH04L65/75H04L67/568Y02D30/50
Inventor 李辉赵明李玉城王艳辉
Owner VISIONVERA INFORMATION TECH CO LTD
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