# US 2024/0394065 A1 · Nic line-rate hardware packet processing

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

- Number: US 2024/0394065 A1
- Document ID: US20240394065A1
- Status: Published application
- Kind: A1
- Application number: 18/796,511
- Filed: 2024-08-07
- Published: 2024-11-28
- Earliest claimed: 2023-01-03
- Assignees: Hewlett Packard Enterprise Development LP
- Applicants: Hewlett Packard Enterprise Development LP
- Inventors: Gregg Bernard Lesartre; Anthony M. Ford
- Web page: https://patentgrep.com/patent/US20240394065A1

## CPC

- G06F 9/3824: {Operand accessing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A packet-processing method includes looking up a first match-action table on a network interface card (NIC) for a received packet; in response to finding a matching entry indicating an action, queuing the received packet in a first queue and storing the action data in an instruction memory; and responsive to not finding a matching entry, queuing the received packet in the first queue and a second queue. The method includes selecting a first packet from the first queue for processing, which comprises performing a corresponding action stored in the instruction memory; selecting a second packet from the second queue for processing, which comprises forwarding a portion of the second packet to a processor, which looks up a second match-action table; and receiving, from the processor, a lookup result, thereby allowing a third packet in the first queue corresponding to the second packet to be processed based on the lookup result.

## Claims

### Claim 1

A method for processing packets, the method comprising:
performing a lookup operation in a first match-action table located on a network interface card (NIC) based on a header of a received packet;
in response to finding a matching entry indicating an action to be performed on the received packet, queueing the received packet in a first queue and storing data associated with the action in an instruction memory on the NIC;
in response to not finding a matching entry in the first match-action table, queueing the received packet in both the first queue and a second queue;
selecting a first packet from the first queue for processing, wherein the processing comprises performing a corresponding action indicate by data stored in the instruction memory;
selecting a second packet from the second queue for processing, wherein the processing comprises forwarding at least a portion of the second packet to a processor coupled to the NIC to allow the processor to perform a second lookup operation in a second match-action table; and
receiving, from the processor, a lookup result of the second lookup operation indicating an action to be performed on the second packet, thereby allowing a third packet in the first queue and corresponding to the second packet to be processed based on the lookup result.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first match-action table comprises a hash table stored in a memory located on the NIC.

### Claim 3 (depends on 1)

The method of claim 1, wherein the second match-action table is larger than the first match-action table, and wherein the second match-action table is stored in a memory associated with the processor.

### Claim 4 (depends on 1)

The method of claim 1, wherein the second queue has a higher priority than the first queue, and wherein forwarding at least a portion of the second packet comprises:
truncating the second packet to obtain a predetermined number of initial bytes of the second packet, wherein the predetermined number of initial bytes comprise a header of the second packet; and
forwarding the predetermined number of initial bytes of the second packet to a management process executed by the processor.

### Claim 5 (depends on 1)

The method of claim 1, further comprising storing the received lookup result of the second lookup operation in the first match-action table.

### Claim 6 (depends on 5)

The method of claim 5, further comprising removing one or more old entries in the first match-action table to provide space for storing the received lookup result.

### Claim 7 (depends on 1)

The method of claim 1, wherein the first queue is a packet-class-specific queue, and wherein the method further comprises queuing received packets of different classes to different packet-class-specific queues.

### Claim 8 (depends on 1)

The method of claim 1, further comprising storing the lookup result of the second lookup operation in the instruction memory.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
in response to the third packet in the first queue being selected for processing, determining whether the lookup result is stored in the instruction memory; and
in response to determining that the lookup result is stored in the instruction memory, performing the action indicated by the lookup result on the third packet.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
in response to determining that the lookup result is not stored in the instruction memory, keeping the third packet in the first queue.

### Claim 11

A packet engine located on a network interface card (NIC) for processing packets, comprising:
a first match-action table comprising a plurality of match-action entries;
a lookup logic to perform a lookup operation in the first match-action table based on a header of a received packet;
an instruction memory to store a result of the lookup operation indicating an action to be performed on the received packet;
a queuing logic to queue the received packet in a first queue in response to the lookup logic finding a match-action entry corresponding to the header of the received packet and to queue the received packet in both the first queue and a second queue in response to the lookup logic not finding the match-action entry;
an arbiter to select, from a plurality of queues comprising the first queue and the second queue, a packet for processing;
a packet-processing logic to:
perform, on a first packet selected from the first queue, a corresponding action based on data stored in the instruction memory; and
forward at least a portion of a second packet selected from the second queue to a processor coupled to the NIC to allow the processor to perform a second lookup operation in a second match-action table; and
a receiving logic to receive, from the processor, a lookup result of the second lookup operation indicating an action to be performed on the second packet, thereby allowing a third packet in the first queue and corresponding to the second packet to be processed based on the lookup result.

### Claim 12 (depends on 11)

The packet engine of claim 11, wherein the first match-action table comprises a hash table.

### Claim 13 (depends on 11)

The packet engine of claim 11, wherein the second match-action table is larger than the first match-action table, and wherein the second match-action table is stored in a memory associated with the processor.

### Claim 14 (depends on 11)

The packet engine of claim 11, wherein the second queue has a higher priority than the first queue, and wherein, while forwarding the at least a portion of the second packet, the packet-process logic is to:
truncate the second packet to obtain a predetermined number of initial bytes of the second packet, wherein the predetermined number of initial bytes comprise a header of the second packet; and
forward the predetermined number of initial bytes of the second packet to a management process executed by the processor.

### Claim 15 (depends on 11)

The packet engine of claim 11, further comprising a table-update logic to store the received lookup result of the second lookup operation in the first match-action table.

### Claim 16 (depends on 15)

The packet engine of claim 15, wherein the table-update logic is to remove one or more old entries in the first match-action table to provide space for storing the received lookup result.

### Claim 17 (depends on 11)

The packet engine of claim 11, wherein the first queue is a packet-class-specific queue, and wherein queuing logic is to queue received packets of different classes to different packet-class-specific queues.

### Claim 18 (depends on 11)

The packet engine of claim 11, wherein the receiving logic is to store the lookup result of the second lookup operation in the instruction memory.

### Claim 19 (depends on 18)

The packet engine of claim 18, wherein the packet-processing logic is to:
in response to the third packet in the first queue being selected for processing, determine whether the lookup result is stored in the instruction memory; and
in response to determining that the lookup result is stored in the instruction memory, perform the action indicated by the lookup result on the third packet.

### Claim 20 (depends on 19)

The packet engine of claim 19, wherein the packet-processing logic is to:
in response to determining that the lookup result is not stored in the instruction memory, keep the third packet in the first queue.
