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

Inter-multi-core buffer dynamic migration method and device based on DPDK

A dynamic migration, multi-core technology, applied in the field of data communication, can solve the problems of business interruption, uneven distribution of buffer resources, insufficient effective utilization of buffer resources, etc., to increase stability and reliability, improve buffer resource utilization, reduce The effect of packet loss

Active Publication Date: 2021-01-29
FENGHUO COMM SCI & TECH CO LTD +1
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] During use, when the buffer in the buffer_cache of a core is insufficient or empty, there may still be a certain amount of idle buffer in the buffer_cache of other cores, that is, the buffer resources may be unevenly distributed among the buffer_cache of each core.
However, since the buffer_cache is private to each core, that is, each core can only obtain buffer resources from the buffer_cache of the core, so when the buffer resources in the buffer_cache of a core are tight, and there are not enough buffer resources in the shared pool mempool, even The remaining cores have buffer surplus, and this core cannot apply for buffers from the buffer_cache of other cores for forwarding.
This allocation management defect leads to insufficient effective utilization of buffer resources. When buffer resources are available, the core will still lose packets due to insufficient buffers, resulting in service interruptions and increasing the stability and reliability of the forwarding plane.

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
  • Inter-multi-core buffer dynamic migration method and device based on DPDK
  • Inter-multi-core buffer dynamic migration method and device based on DPDK
  • Inter-multi-core buffer dynamic migration method and device based on DPDK

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] In order to solve the technical problem of insufficient effective utilization of buffer resources caused by buffer allocation management defects in the traditional technology, the present invention provides a DPDK-based multi-core buffer dynamic migration method. Among them, in order to realize the buffer dynamic migration when the CPU core applies for a buffer, it is first necessary to optimize and improve the buffer management framework structure based on DPDK; The optimization process is introduced.

[0042] combine figure 1 It can be seen that in the traditional DPDK-based buffer management framework, each CPU core (hereinafter also referred to as core) corresponds to a buffer cache pool (hereinafter also referred to as buffer_cache), and multiple buffer cache pools share a buffer shared pool (hereinafter also referred to as mempool). The embodiment of the present invention is exactly in figure 1 On the basis of the shown buffer management framework, further opti...

Embodiment 2

[0081]Based on the buffer management framework provided in Embodiment 1 above, the embodiment of the present invention provides a DPDK-based method for dynamically migrating buffers between multi-cores. As can be seen from Example 1, in the optimized and improved buffer management framework, each core still has a corresponding buffer_cache, and multiple buffer_caches share a mempool; wherein, each buffer_cache is set with a shared waterline red_level, and buffers below red_level As a shareable buffer, and set a buffer lock for the shareable buffer in each buffer_cache, thus building a parallel intercommunication channel between the buffer_cache of each core, such as Figure 6 shown.

[0082] In the embodiment of the present invention, when any CPU core applies for a buffer, it will still preferentially search for buffer resources from the buffer cache pool of the core for allocation; only when the buffer cache pool of the core and the buffer shared pool cannot satisfy, Only t...

Embodiment 3

[0105] On the basis of the DPDK-based multi-core buffer dynamic migration method provided in the above-mentioned embodiment 2, the present invention also provides a DPDK-based multi-core buffer dynamic migration device that can be used to implement the above method, such as Figure 8 Shown is a schematic diagram of the device architecture of the embodiment of the present invention. The device for dynamically migrating buffers between multiple cores based on DPDK in this embodiment includes one or more processors 21 and a memory 22 . in, Figure 8 A processor 21 is taken as an example.

[0106] The processor 21 and the memory 22 may be connected via a bus or in other ways, Figure 8 Take connection via bus as an example.

[0107] The memory 22 is a non-volatile computer-readable storage medium based on a DPDK-based multi-core buffer dynamic migration method, and can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, as in ...

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 an inter-multi-core buffer dynamic migration method and device based on DPDK. Each CPU core is correspondingly provided with a buffer cache pool, a plurality of buffer cache pools share one buffer sharing pool, each buffer cache pool is provided with a shared waterline, and a buffer below the shared waterline is used as a shareable buffer; when any CPU core applies for a buffer, if the residual buffer amount in the buffer cache pool of the core does not meet the application and the available buffer amount in the buffer sharing pool is insufficient, inter-core buffer migration is triggered, that is, buffer locks of other CPU cores are obtained, then shareable buffers in buffer cache pools of other CPU cores are obtained, the buffer resource dynamic migration is achieved, and the buffer resource utilization rate is increased.

Description

technical field [0001] The invention belongs to the technical field of data communication, and more specifically relates to a DPDK-based multi-core buffer dynamic migration method and device. Background technique [0002] The forwarding platform of traditional network equipment is built based on dedicated network chips, such as cavium's cn78xx network processor and the private NP of various communication manufacturers. The technical solution based on dedicated network chips leads to a high degree of hardware dependence, and the flexibility of business development is limited by the hardware, which further results in longer business development cycles, delayed market delivery cycles, and further increased product development costs. Data Plane Development Kit (DPDK for short) technology is based on general-purpose processors (such as x86 and arm) to build a multi-core soft forwarding platform. This technical solution not only guarantees data processing performance and throughpu...

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): G06F9/50G06F9/54
CPCG06F9/5016G06F9/5022G06F9/544G06F2209/5011
Inventor 孙琳洋
Owner FENGHUO COMM SCI & 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