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

Method for improving the efficiency of network packet processing

A network data packet and processing efficiency technology, applied in the direction of electrical digital data processing, resource allocation, inter-program communication, etc., can solve the problems of consuming system bus resources, large resource occupation, waste of resources, etc., to improve processing efficiency and improve efficiency , the effect of zero copy

Pending Publication Date: 2019-01-01
湖北微源卓越科技有限公司
View PDF0 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The memory copy consumes a lot of system bus resources, which will cause the CPU to "busy wait" and waste a lot of resources
[0005] 2) For large traffic, resource occupation is large, and it is easy to cause packet loss

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 improving the efficiency of network packet processing
  • Method for improving the efficiency of network packet processing
  • Method for improving the efficiency of network packet processing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0073] The present invention improves the processing efficiency of data packet from following three aspects:

[0074] (1) Simplify the process of receiving and sending data packets to achieve zero copy

[0075] Such as image 3 As shown, the receiving and sending of data packets does not require the participation of the IP protocol stack of the operating system, and the application program can directly process the data packets, reducing the process of copying the data packets multiple times and improving the efficiency of data packet processing.

[0076] (2) The single queue of the network card is bound to the single core of the CPU

[0077] The vast majority of network cards are now designed to be multi-queue, and most CPUs are also designed to be multi-core. For each independent NIC queue, we designate a separate physical CPU core (or thread) to process it. In this way, this part of data processed by each core will only be exclusive, and will not be exchanged with data pr...

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 discloses a method for improving network data packet processing efficiency, comprising the steps of binding a separate physical CPU core (or thread) to process each independent network card receiving and sending packet queue. This way, each core processes only the data of the specified queue and does not switch among multiple queues, thus avoiding the CPU waiting and switching process. Then the packets are directly stored in the main memory through the DMA technology (direct storage technology) of the network card, which does not need to occupy the CPU resources. Finally, by homoclinic processing, the packets of the same data stream are put into the same queue for upper application analysis and processing, which further reduces the context-related operations among CPU cores and relatively improves the CPU processing performance. The invention can greatly improve the concurrent processing performance of the whole system and the throughput of the network card, and meets therequirement of processing a large amount of data.

Description

technical field [0001] The present invention relates to the technical field of network data packet processing, and more specifically, to a method for improving network data packet processing efficiency. Background technique [0002] With the rapid development of social informatization, more and more network applications are connected to the Internet, resulting in more and more network traffic, and the explosive increase in the amount of data transmitted by network applications, resulting in an increase in the network bandwidth of the backbone network. bigger. Therefore, higher and higher requirements are put forward for the processing efficiency of the data packets of the network equipment. [0003] figure 1 , 2 is a conventional data packet processing scheme. In the figure, Worker can be multiple independent processes, or multiple different threads of the same process. The prior art mainly has the following deficiencies: [0004] 1) The efficiency is low. In the process...

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): G06F9/50G06F9/54
CPCG06F9/5027G06F9/544
Inventor 陈志华
Owner 湖北微源卓越科技有限公司
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