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

Method and device for saving DMA channel resources in high-speed intelligent network card/DPU

A smart network card, high-speed technology, applied in multi-programming devices, resource allocation, energy-saving computing, etc., can solve the problems of increasing logic complexity and corresponding costs, consuming CPU resources, occupying logic resources, etc., to reduce costs and save CPU Resources, the effect of saving logic resources

Active Publication Date: 2022-08-09
浙江锐文科技有限公司
View PDF8 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The existing high-speed smart network card / DPU interacts with the host through PCIe / DMA, supports 1-4 ports, and each port supports multiple queues. If it is implemented in the network card chip, multiple ports need to have DMA correspondence To support multiple channels one by one, at the same time, in order to support multiple queues, it is necessary to implement multi-queue forwarding in the high-speed smart network card / DPU. Multiple DMA channels and multi-queue forwarding will occupy logical resources in the network card / DPU chip , increasing logic complexity and corresponding costs; if implemented at the software level, the software level is required to realize packet parsing and forwarding, which consumes a lot of CPU 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
  • Method and device for saving DMA channel resources in high-speed intelligent network card/DPU
  • Method and device for saving DMA channel resources in high-speed intelligent network card/DPU
  • Method and device for saving DMA channel resources in high-speed intelligent network card/DPU

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0054] The smart network card / DPU parses the packets entering the network card from the optical port; for example, it parses the Ethernet packets and parses out quintuple or user-defined fields.

[0055]Matching is performed by port and quintuple or other user-defined rules; for example, the incoming data from port 1 is marked as port number 1, the incoming packet from port 2 is marked as port number 2, and the user-defined source IP address is marked as port number 2. For matching, 192.168.0.* is marked as queue 2, and for user-defined source IP addresses, 192.168.1.* is marked as queue 3;

[0056] Add the metadata of the port and queue number at the end of the matched message,

[0057] In order to avoid accidental repetition of port and queue numbers and data packets, the metadata format for defining ports and queue numbers is as follows:

[0058]

[0059] where aabbcc is the identifier;

[0060] The port number is 1 byte, which is determined by the port number of the n...

example 1

[0067] Example 1: port number 01, queue number 0002, random number 0305,

[0068] The first 8 bytes of the added message are aabbcc01 00020305

[0069] 8 prime numbers V (hexadecimal) are

[0070] aa (170) corresponds to prime number V0: 4bc5d4f3

[0071] bb(187) corresponds to prime number V1: 42dff19f

[0072] cc(204) corresponds to prime number V2: 1ee35bb

[0073] 01(1) corresponds to prime number V3: 3a907251

[0074] 00 (0) corresponds to prime number V4: 1fb0dfc9

[0075] 02 (51) corresponds to prime number V5: 7b720269

[0076] 03 (03) corresponds to prime number V6: 6850364b

[0077] 05 (05) corresponds to prime number V7: 02b3b673

[0078] According to the formula R=(R<<1)+V

[0079] R0=265aa7bb

[0080] R1=(R0 << 1)+V1 =(4bc5d4f3<< 1) + 42dff19f = da6b9b85

[0081] R2=(R1 << 1)+V2 =( da6b9b85<< 1)+ 1ee35bb = d3c36cc5

[0082] R3=(R2 << 1)+V3 = (d3c36cc5<<1)+ 3a907251= e2174bdb

[0083] R4=(R3 << 1)+V4=( e2174bdb << 1)+ 1fb0dfc9=e3df777f

[0084] R5=(R4 ...

example 2

[0089] Example 2: port number 02, queue number 0008, random number 0305,

[0090] The first 16 bytes of the added message are aabbcc0200080305

[0091] 8 prime numbers V (hexadecimal) are

[0092] aa (170) corresponds to prime number V0: 4bc5d4f3

[0093] bb(187) corresponds to prime number V1: 42dff19f

[0094] cc(204) corresponds to prime number V2: 1eec35bb

[0095] 02 (2) corresponds to prime number V3: 56cb4033

[0096] 00 (0) corresponds to prime number V4: 1fb0dfc9

[0097] 08 (8) corresponds to prime number V5: 45039065

[0098] 03 (3) corresponds to prime number V6: 6850364b

[0099] 05 (5) corresponds to prime number V7: 02b3b673

[0100] According to the formula R=(R<<1)+V

[0101] R0=4bc5d4f3

[0102] R1=(R0 << 1)+V1 =(4bc5d4f3<< 1) + 42dff19f = da6b9b85

[0103] R2=(R1 << 1)+V2 =( da6b9b85<< 1)+ 1eec35bb = d3c36cc5

[0104] R3=(R2 << 1)+V3 = (d3c36cc5<<1)+ 56cb4033= fe5219bd

[0105] R4=(R3 << 1)+V4=( fe5219bd << 1)+ 1fb0dfc9=1c551343

[0106] R5=(R4 ...

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 relates to a method and a device for saving DMA (Direct Memory Access) channel resources in a high-speed intelligent network card / DPU (Data Processing Unit). The method comprises the following steps: analyzing a network message entering the intelligent network card / DPU; carrying out matching on the analyzed network message; obtaining a queue number; combining the queue number with the port number, the identifier, the random number and the check code to form metadata; adding metadata at the tail of the network message; the network message is transmitted to the software layer through PCIe / DMA; after the software layer identifies the metadata in the network message, checking calculation is carried out through the identifier, the port number, the queue number and the random number, and a checking calculation result is compared with the check code; if the checking calculation result is consistent with the check code, extracting a port number and a queue number in the metadata; if the checking result is inconsistent with the check code, identifying the message as a queue-free message, and sending the message to a default queue; and sending the network message to a specified queue of the specified CPU. A plurality of corresponding ports and a plurality of queues are realized by using a single channel in the high-speed intelligent network card / DPU; logical resources in the chip are saved, CPU resources are saved, and the cost is reduced.

Description

technical field [0001] The present invention relates to the technical field of intelligent network card / DPU, in particular to a method and device for saving DMA channel resources in a high-speed intelligent network card / DPU. Background technique [0002] With the application of 5G, IoT and other technologies and the deployment of the network, the network throughput and access volume have increased significantly, and the pressure of network packet processing has converged on the server side. With the increase in bandwidth, from 25GbE to 100GbE, the network needs multiple The CPU core participates in processing, which has to affect the business being processed by the CPU. Using an intelligent NIC to assist the CPU in processing network packets can free up CPU resources. The DPU (Data Processing Unit) is an upgraded version of the smart network card, which can also offload the network and storage load on the basis of the smart network card, allowing the CPU to participate in mo...

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): H04L69/22H04L69/06H04L47/50G06F9/50G06F13/28G06F13/42
CPCH04L69/22H04L69/06H04L47/50G06F9/5027G06F13/28G06F13/4282G06F2213/0026Y02D10/00
Inventor 阎燕唐青松
Owner 浙江锐文科技有限公司