# US 2023/0056330 A1 · 2 layer alpha based buffer management with dynamic red

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

- Number: US 2023/0056330 A1
- Document ID: US20230056330A1
- Status: Published application
- Kind: A1
- Application number: 17/968,713
- Filed: 2022-10-18
- Published: 2023-02-23
- Earliest claimed: 2022-10-18
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Sarig LIVNE; Nrupal JANI; Eli SHAPIRO; Parthasarathy SARANGAM; Neerav PARIKH
- Web page: https://patentgrep.com/patent/US20230056330A1

## CPC

- H04L 47/11: Identifying congestion
- H04L 49/9005: using dynamic buffer space allocation
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Methods and apparatus for two-layer Alpha-based buffer management with dynamic RED. A two-layer hierarchical sharing scheme using alpha parameters is provided. A buffer is dynamically shared across upper-level entities, such as hosts, using one set of alpha parameters, then a dynamically-adjusted buffer portion allocated for an upper level entity is shared among its lower level entities (e.g., sub queues) using a separate set of low-level alpha parameters. The memory spaces for the upper- and lower-level entities may be dynamically redistributed. Determinations to drop and/or mark and ECN field of received packets are performed using Dynamic RED, which employs dynamic thresholds and associated dynamic probabilities.

## Claims

### Claim 1

A method for operating a buffer, comprising:
dynamically sharing the buffer across a plurality of upper-level entities using a first set of alpha parameters; and
for at least one upper-level entity, dynamically sharing buffer space in the upper-level entity among one or more lower-level entities using a second set of alpha parameters.

### Claim 2 (depends on 1)

The method of claim 1, wherein the upper-level entities comprise Hosts, and the one or more lower-level entities comprise Sub Queues.

### Claim 3 (depends on 1)

The method of claim 1, further comprising, for each of the upper-level entities, dynamically sharing buffer space in the upper-level entity among one or more lower-level entities associated with the upper-level entity using a respective second set of alpha parameters.

### Claim 4 (depends on 1)

The method of claim 1, further comprising employing Dynamic Random Early Detection (DRED) to one or more buffers associated with at least one of the upper-level entities and lower-level entities, wherein DRED is used to determine whether a packet should be dropped or an Explicit Congestion Notification (ECN) field in a packet header should be marked, and wherein DRED uses dynamically determined thresholds.

### Claim 5 (depends on 4)

The method of claim 4, wherein DRED is employed for both an upper-level entity and one or more lower-level entities associated with the upper-level entity concurrently.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
for an upper-level entity,
calculating a current maximum buffer size; and
calculating a potential buffer comprising a maximum size the buffer can grow to.

### Claim 7 (depends on 1)

The method of claim 1, further comprising calculating a maximum size a buffer for a lower-level entity can grow to.

### Claim 8 (depends on 7)

The method of claim 7, further comprising dynamically determining a RED minimum threshold and an RED maximum threshold to be employed by Dynamic Random Early Detection (DRED) for the lower-entity buffer, wherein the RED minimum threshold and RED maximum threshold are determined as a function of the maximum size of the lower-entity buffer.

### Claim 9 (depends on 8)

The method of claim 8, further comprising dynamically determining a drop probability to be used by DRED for the lower-entity buffer, wherein the drop probability is a function of at least the RED minimum threshold and the RED maximum threshold.

### Claim 10 (depends on 1)

The method of claim 1, wherein the buffer resides in memory for one of a Network Interface Controller (NIC), SmartNIC, Infrastructure Processing Unit (IPU), a Data Processing Unit (DPU), or a switch.

### Claim 11

An apparatus, comprising:
a network port, configured to receive packets from a network;
an Input/Output (I/O) interface, configured to couple the apparatus in communication with multiple hosts;
memory; and
circuitry and logic coupled to the network port and the memory to,
implement a portion of memory as a buffer;
dynamically share the buffer across the hosts using a first set of alpha parameters, wherein a portion of memory space for the buffer is dynamically allocated for each host; and
for at least one host, dynamically share buffer space allocated to that host among one or more sub queues using a second set of alpha parameters.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the circuitry and logic are further configured to:
employ Dynamic Random Early Detection (DRED) for one or more host buffers or sub queue buffers, wherein DRED uses dynamically determined thresholds to determine whether a packet received at the network port should be dropped or an Explicit Congestion Notification (ECN) field in a packet header for the packet should be marked.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein DRED is employed for both a host buffer and one or more sub queue buffers associated with the host buffer concurrently.

### Claim 14 (depends on 11)

The apparatus of claim 11, wherein the circuitry and logic are further configured to:
calculate a host potential buffer comprising a maximum size a host buffer can grow to; and
calculate a sub queue potential buffer (SQmax) comprising a maximum size a sub queue buffer can grow to.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the circuitry and logic are further configured to dynamically determine, as a function of SQmax, a RED minimum threshold and a RED maximum threshold to be employed by Dynamic Random Early Detection (DRED) for the sub queue buffer.

### Claim 16 (depends on 11)

The apparatus of claim 11, wherein the apparatus is one of a Network Interface Controller (NIC), SmartNIC, Infrastructure Processing Unit (IPU), a Data Processing Unit (DPU), or a switch.

### Claim 17

An integrated circuit (IC) configured to be installed in an apparatus having a network port and an Input/Output (I/O) interface used to facilitate communication with multiple hosts, the IC comprising circuitry and logic to:
implement a portion of on-die memory internal to the IC or memory external to the IC as a buffer;
dynamically share the buffer across the hosts using a first set of alpha parameters; and
for at least one host, dynamically share buffer space allocated to that host among one or more sub queues using a second set of alpha parameters.

### Claim 18 (depends on 17)

The IC of claim 17, further comprising circuitry and logic to:
employ Dynamic Random Early Detection (DRED) for one or more host buffers or sub queue buffers, wherein DRED uses dynamically determined thresholds to determine whether a packet received at the network port should be dropped or an Explicit Congestion Notification (ECN) field in a packet header for the packet should be marked.

### Claim 19 (depends on 18)

The IC of claim 18, further comprising circuitry and logic to:
calculate a sub queue potential buffer (SQmax) comprising a maximum size a sub queue buffer can grow to; and
dynamically determine, as a function of SQmax, a RED minimum threshold and a RED maximum threshold to be employed by DRED for the sub queue buffer.

### Claim 20 (depends on 17)

The IC of claim 17, wherein a portion of the circuitry comprises a Field Programmable Gate Array (FPGA).
