DPDK-based received packet two-level caching method and system

A secondary cache and packet receiving technology, which is applied in transmission systems, digital transmission systems, electrical components, etc., can solve problems such as packet loss, and achieve the effects of avoiding excessive system memory, stable processing flow, and small memory usage

Active Publication Date: 2018-10-09
RAYSOLUTION DIGITAL MEDICAL IMAGING CO LTD
View PDF2 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when it is necessary to process data with continuous large traffic (such as >10Gbps), this method is used for data caching. Due to the large amount of data, there is still the problem of 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
  • DPDK-based received packet two-level caching method and system
  • DPDK-based received packet two-level caching method and system
  • DPDK-based received packet two-level caching method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038]The specific implementation manners of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0039] Such as figure 1 As shown, in the first embodiment, the present invention discloses a DPDK-based packet receiving secondary cache method, which specifically includes

[0040] (1) Structure definition, customize the mbulk structure and the secondary cache structure, and customize the mbulk_pool memory pool variable at the same time. Among them, the mbulk is used to store the mbuf pointer, and the mbuf pointer points to the address of the original mbuf data packet in the mbulf-pool, that is, the mbulk only stores the mbuf pointer, and does not copy the data in the mbuf; the size of each mbuf is the same, that is, each The mbulk stores the same number of mbuf pointers.

[0041] mbulk_pool is a custom DPDK memory pool, and the storage element is mbulk;

[0042] The secondary cache structure includes a self-defined first-lev...

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 DPDK-based received packet two-level caching method. The method comprises the following steps that a mbulk structure and a two-level caching structure are customized, mbulksstore mbuf pointers and have the same size, received packet first-level queues store mbuf pointers, and a received packet second-level queue stores mbulk pointers; a DPDK is initialized; received packet caching is conducted, wherein a first received packet processing thread is used for caching portmbuf pointers into the received packet first-level queues, a second received packet processing threadis used for taking out the mbulks from a mbulk_pool memory pool, taking out the mbuf pointers from the corresponding received packet first-level queues and putting the mbuf pointers into the mbulks,and after any one mbulk is full, the second received packet processing thread puts the corresponding mbulk pointer into the received packet second-level queue and takes out the next mbulk from the mbulk_pool for next operation; and a public worker thread takes out the mbulk pointers from the received packet second-level queue and processes the mbulk pointers. According to the method, stable dequeuing operation needing the appropriate data amount is provided for a back end to enable back end processing to be more stable, therefore, real-time and stable packet receiving and processing are achieved, and the packet loss probability is decreased.

Description

technical field [0001] The present invention relates to the technical field of big data collection, and specifically relates to a packet receiving and caching method based on DPDK. This method makes data processing more stable and reduces the packet loss rate by adding a second-level pipeline. Background technique [0002] In big data applications such as PET, it is necessary to collect and analyze the flow data packets of multiple network outlets. As the accuracy required by the application becomes higher and higher, the corresponding data flow will also increase, and the rate of general applications will increase. To achieve 10Gbps, how to receive and process packets stably in real time and reduce the probability of packet loss is a challenge for data packet collection. [0003] At present, for data collection based on Linux, if traditional Socket packet capture is used, the program needs to switch frequently between user mode and kernel mode, resulting in weakened perform...

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): H04L12/861
CPCH04L49/90
Inventor 陈荣闫礼飞
Owner RAYSOLUTION DIGITAL MEDICAL IMAGING CO LTD
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