# US 2022/0292626 A1 · Packet processing acceleration using parallel processing

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0292626 A1
- Document ID: US20220292626A1
- Status: Published application
- Kind: A1
- Application number: 17/228,426
- Filed: 2021-04-12
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: NVIDIA Corporation
- Applicants: NVIDIA Corporation
- Inventors: Elena Agostini
- Web page: https://patentgrep.com/patent/US20220292626A1

## CPC

- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 1/60: Memory management
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Apparatuses, systems, and techniques to process packet data in parallel. In at least one embodiment, packet data is processed by (e.g., one or more algorithms expressed in CUDA code executing on) a Graphics Processing Unit (“GPU”).

## Claims

### Claim 1

A computer-implemented method for use with a network interface, the computer-implemented method comprising:
detecting, by a first processor, receipt of a set of packets by the network interface;
writing, by the first processor, an indication to memory associated with a second processor that packet data transmitted by the set of packets is available for processing by the second processor;
detecting, by the second processor, the indication; and
as a result of detecting the indication, the second processor processing the packet data to obtain processed packet data.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein a second signal transmission distance between the second processor and the memory is shorter than a first signal transmission distance between the first processor and the memory.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein writing the indication comprises the first processor setting a ready flag to indicate the packet data is available for processing; and
detecting the indication comprises the second processor polling the ready flag to determine when the ready flag has been set to indicate the packet data is available for processing.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1 for use with the network interface storing the packet data in the memory associated with the second processor, the computer-implemented method further comprising:
flushing, by the first processor, at least a portion of the memory before writing the indication.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the second processor is a parallel processing unit.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1 for use with the network interface storing the packet data in the memory associated with the second processor, wherein the memory is a second memory, and the computer-implemented method further comprises:
obtaining first packet data from the set of packets, the packet data being the first packet data;
obtaining second packet data from the set of packets; and
storing the second packet data in a first memory associated with the first processor.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1 for use with the network interface, wherein the network interface is to receive the set of packets from a computing device and store the packet data in the memory associated with the second processor, and wherein the computer-implemented method further comprises:
retrieving the processed packet data from the memory;
formulating a set of transmitted packets based at least in part on the processed packet data; and
transmitting the set of transmitted packets to the computing device.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, further comprising:
launching, by the first processor, a first thread that causes the network interface to store the packet data in the memory associated with the second processor, and writes the indication after the packet data is stored in the memory; and
launching, by the first processor, a second thread that causes the network interface to retrieve the processed packet data from the memory.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, further comprising:
creating a memory pool in the memory associated with the second processor, the memory pool comprising a set of memory buffers comprising a different memory buffer for each packet in the set of packets; and
storing the set of packets in the set of memory buffers, wherein the second processor obtains the packet data from the set of memory buffers and processes the packet data to obtain the processed packet data.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein the memory is a second memory, and the computer-implemented method further comprises:
creating a set of first memory buffers in a first memory associated with the first processor, the set of first memory buffers comprising a corresponding first memory buffer for each of the set of packets;
storing a first portion of each of the set of packets in the corresponding first memory buffer;
creating a set of second memory buffers in the second memory associated with the second processor, the set of second memory buffers comprising a corresponding second memory buffer for each of the set of packets; and
storing a second portion of each of the set of packets in the corresponding second memory buffer, wherein the second processor obtains the packet data from the set of second memory buffers and processes the packet data to obtain the processed packet data.

### Claim 11 (depends on 10)

The computer-implemented method of claim 10, wherein the first portion of each of the set of packets comprises a packet header; and
the second portion of each of the set of packets comprises a payload transmitted by the packet.

### Claim 12

A system comprising:
a Parallel Processing Unit (“PPU”) executing a process;
a PPU memory associated with the PPU;
a network interface;
one or more processors; and
one or more memories to store instructions executable by the one or more processors and when executed by the one or more processors cause the one or more processors to at least:
detect receipt of a set of packets by the network interface; and
write, to a shared memory portion of the PPU memory that is shared between the one or more processors and the PPU, an indication that packet data transmitted by the set of packets is available for processing, the process being executed by the PPU before the indication is written to the shared memory portion, the process processing the packet data to obtain processed packet data after the PPU detects the indication.

### Claim 13 (depends on 12)

The system of claim 12, further comprising:
a computing device to send the set of packets to the network interface.

### Claim 14 (depends on 13)

The system of claim 13, wherein the computing device is connected to the network interface over a network.

### Claim 15 (depends on 12)

The system of claim 12, further comprising:
a connection connecting the PPU to the one or more processors and the network interface.

### Claim 16 (depends on 15)

The system of claim 15, wherein the connection is a Peripheral Component Interconnect Express (“PCIe”) bus.

### Claim 17 (depends on 12)

The system of claim 12, wherein the network interface stores the packet data in the PPU memory,
the one or more processors write the indication after the packet data is stored in the PPU memory, and
the PPU obtains the packet data from the PPU memory and processes the packet data to obtain the processed packet data after detecting the indication.

### Claim 18 (depends on 17)

The system of claim 17, wherein the instructions, when executed by the one or more processors, cause the one or more processors to instruct the network interface to:
obtain the packet data from the set of packets;
obtain host data from the set of packets; and
store the host data in the one or more memories.

### Claim 19 (depends on 18)

The system of claim 18, wherein the packet data comprises a payload transmitted by each of the set of packets; and
the host data comprises a packet header transmitted by each of the set of packets.

### Claim 20 (depends on 17)

The system of claim 17, wherein the instructions, when executed by the one or more processors, cause the one or more processors to:
flush at least a portion of the PPU memory before writing the indication.

### Claim 21 (depends on 12)

The system of claim 12, wherein the indication comprises a ready flag stored in the shared memory portion,
writing the indication comprises setting the ready flag to indicate the packet data is available for processing, and
the PPU detects the indication by polling the ready flag to determine when the ready flag has been set to indicate the packet data is available for processing.

### Claim 22 (depends on 12)

The system of claim 12, wherein the PPU provides a notification indicating the process has obtained processed packet data, and the instructions, when executed by the one or more processors, cause the one or more processors to:
detect the notification provided by the PPU; and
instruct the network interface to retrieve the processed packet data.

### Claim 23 (depends on 22)

The system of claim 22, wherein the shared memory portion is a first shared memory portion,
the notification comprises a done flag stored in a second shared memory portion of the one or more memories,
the second shared memory portion is shared between the one or more processors and the PPU,
the PPU provides the indication by setting the done flag to indicate that the processed packet data has been obtained, and
the one or more processors detect the notification by polling the done flag to determine when the done flag has been set to indicate the processed packet data has been obtained.

### Claim 24 (depends on 23)

The system of claim 23, wherein a first signal travel time between the PPU and the first shared memory portion is shorter than a second signal travel time between the one or more processors and the first shared memory portion, and
a third signal travel time between the one or more processors and the second shared memory portion is shorter than a fourth signal travel time between the PPU and the second shared memory portion.

### Claim 25 (depends on 12)

The system of claim 12, wherein a first signal travel time between the PPU and the shared memory portion is shorter than a second signal travel time between the one or more processors and the shared memory portion.

### Claim 26

A machine-readable medium having stored thereon a set of instructions, which if performed by one or more processors, cause the one or more processors to at least:
detect receipt of a set of packets by a network interface; and
write, to a shared memory that is shared between the one or more processors and a Parallel Processing Unit (“PPU”) executing a process, an indication that packet data transmitted by the set of packets is available for processing, a PPU memory associated with the PPU comprising the shared memory, the process being executed by the PPU before the indication is written to the shared memory, the process processing the packet data to obtain processed packet data after the PPU detects the indication.

### Claim 27 (depends on 26)

The machine-readable medium of claim 26, wherein the network interface comprises a data processing unit (“DPU”), and wherein the set of instructions, when performed by the one or more processors, cause the one or more processors to at least:
cause the network interface to store the packet data in the PPU memory associated with the PPU.

### Claim 28 (depends on 27)

The machine-readable medium of claim 27, wherein the set of instructions, when performed by the one or more processors, cause the one or more processors to at least:
create a set of PPU memory buffers in the PPU memory, the set of PPU memory buffers comprising a corresponding PPU memory buffer for each of the set of packets, wherein causing the network interface to store the packet data in the PPU memory comprises storing each of the set of packets in the corresponding PPU memory buffer.

### Claim 29 (depends on 27)

The machine-readable medium of claim 27, wherein the packet data comprises a first portion of each of the set of packets, and the set of instructions, when performed by the one or more processors, cause the one or more processors to at least:
create a set of PPU memory buffers in the PPU memory, the set of PPU memory buffers comprising a corresponding PPU memory buffer for each of the set of packets, wherein causing the network interface to store the packet data in the PPU memory comprises storing the first portion of each of the set of packets in the corresponding PPU memory buffer;
creating a set of host memory buffers in a system memory, the set of host memory buffers comprising a corresponding host memory buffer for each of the set of packets; and
storing a second portion of each of the set of packets in the corresponding host memory buffer.

### Claim 30 (depends on 26)

The machine-readable medium of claim 26, wherein the set of instructions, when performed by the one or more processors, cause the one or more processors to at least:
flush at least a portion of the PPU memory; and
write the indication after flushing the portion of the PPU memory.

### Claim 31 (depends on 30)

The machine-readable medium of claim 30, wherein flushing the portion of the PPU memory comprises the one or more processors performing a read operation on the PPU memory.

### Claim 32 (depends on 30)

The machine-readable medium of claim 30, wherein flushing the portion of the PPU memory comprises instructing the network interface to perform a read operation on the PPU memory.

### Claim 33 (depends on 26)

The machine-readable medium of claim 26, wherein the PPU provides a notification indicating that the process has obtained processed packet data, and the instructions, when performed by the one or more processors, cause the one or more processors to:
detect the notification provided by the PPU; and
instruct the network interface to retrieve the processed packet data.

### Claim 34 (depends on 33)

The machine-readable medium of claim 33, wherein the notification comprises a done flag stored in a shared memory portion of a system memory associated with the one or more processors,
the PPU provides the indication by setting the done flag to indicate that the processed packet data has been obtained, and
the one or more processors detect the notification by polling the done flag to determine when the done flag has been set to indicate the processed packet data has been obtained.

### Claim 35 (depends on 26)

The machine-readable medium of claim 26, wherein the set of packets are a set of received packets received from a computing device, and the set of instructions, when performed by the one or more processors, cause the one or more processors to at least:
instruct the network interface to obtain a set of transmitted packets based at least in part on the processed packet data; and
transmit the set of transmitted packets to the computing device.

### Claim 36

A computer-implemented method comprising:
initiating, by a second processor, execution of at least one process;
after initiating execution of at least one process, the second processor polling a memory location in memory associated with the second processor for an indication, written by a first processor, that a set of packets has been received by a network interface, the first processor being different from the second processor, the memory location being accessible to both the first processor and the second processor; and
processing, by the second processor, packet data transmitted by the set of packets after the second processor detects the indication that the set of packets has been received by the network interface.

### Claim 37 (depends on 36)

The computer-implemented method of claim 36, wherein the second processor is a Parallel Processing Unit (“PPU”).

### Claim 38 (depends on 36)

The computer-implemented method of claim 36, further comprising:
modifying, by the second processor, the memory location to no longer indicate that the set of packets has been received by the network interface after the second processor detects the indication.

### Claim 39 (depends on 36)

The computer-implemented method of claim 36, further comprising:
providing, by the second processor, a notification to the first processor indicating that the second processor has finished processing the packet data.

### Claim 40 (depends on 39)

The computer-implemented method of claim 39, wherein the memory is first memory,
the notification comprises a done flag stored in a shared memory that is shared between the first processor and the second processor,
the shared memory is a portion of second memory associated with the first processor, and
the second processor provides the notification by setting the done flag to indicate that the second processor has finished processing the packet data.

### Claim 41 (depends on 40)

The computer-implemented method of claim 40, wherein a first signal travel time between the second processor and the memory location is shorter than a second signal travel time between the first processor and the memory location, and
a third signal travel time between the first processor and the shared memory is shorter than a fourth signal travel time between the second processor and the shared memory.

### Claim 42 (depends on 36)

The computer-implemented method of claim 36, wherein a first signal travel time between the second processor and the memory location is shorter than a second signal travel time between the first processor and the memory location.
