# US 12,120,037 B2 · Boosting linked list throughput

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

- Number: US 12,120,037 B2
- Document ID: US12120037B2
- Status: Granted
- Kind: B2
- Application number: 16/854,212
- Filed: 2020-04-21
- Published: 2020-08-06
- Granted: 2024-10-15
- Earliest claimed: 2013-11-05
- Assignees: Cisco Technology, Inc.
- Applicants: Cisco Technology, Inc.
- Inventors: Sha Ma; Felice Bonardi; Philip Chen
- Web page: https://patentgrep.com/patent/US12120037B2

## CPC

- H04L 47/6275: based on priority
- G06F 5/16: Multiplexed systems, i.e. using two or more similar devices which are alternately accessed for enqueue and dequeue operations, e.g. ping-pong buffers
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- H04L 45/74: Address processing for routing
- H04L 47/50: Queue scheduling
- H04L 47/562: {Attaching a time tag to queues}
- H04L 47/62: characterised by scheduling criteria
- H04L 47/623: {Weighted service order}
- G06F 2205/064: Linked list, i.e. structure using pointers, e.g. allowing non-contiguous address segments in one logical buffer or dynamic buffer space allocation
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Multiple listlets function as a single master linked list to manage data packets across one or more banks of memory in a first-in first-out (FIFO) order, while allowing multiple push and/or pop functions to be performed per cycle. Each listlet can be a linked list that tracks pointers and is stored in a different memory bank. The nodes can include a pointer to a data packet, a pointer to the next node in the listlet and a next listlet identifier that identifies the listlet that contains the next node in the master linked list. The head and tail of each listlet, as well as an identifier each to track the head and tail of the master linked list, can be maintained in cache. The individual listlets are updated accordingly to maintain order of the master linked list as pointers are pushed and popped from the master linked list.

## Claims

### Claim 1

A method comprising:
receiving an enqueue request to push a first data packet and a second data packet to a master linked list simultaneously, wherein head nodes and tail nodes of multiple listlets of the master linked list are stored in a cache rather than in a memory bank;
pushing the first data packet and the second data packet to the master linked list simultaneously in a single cycle by:
pushing the first data packet to a first listlet and pushing the second data packet to a second listlet;
adding a first new node to a first tail node of the first listlet and including a first data pointer to the first data packet;
removing a first previous node of the first listlet from the cache to a first memory bank;
adding a second new node to a second tail node of the second listlet and including a second data pointer to the second data packet;
removing a second previous node of the second listlet from the cache to a second memory bank;
wherein simultaneously pushing the first data packet to the first listlet and pushing the second data packet to the second listlet comprises a single access to the first memory bank and the second memory bank, respectively, without conflict;
accessing, via the cache, a tail identifier of the master linked list, wherein the first new node of the first listlet includes the first data pointer to a next node in the second listlet, wherein the first new node includes the first data pointer to a location of the first data packet stored in the first memory bank of a plurality of memory banks;
determining, from the tail identifier of the master linked list, that the second listlet includes a tail of the master linked list;
setting a next listlet identifier of a tail node of the second listlet to identify the first listlet; and
pushing subsequent data packets to the first listlet of a corresponding memory bank by updating the tail identifier of the master linked list in the cache from identifying the second listlet to identifying the first listlet.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving a dequeue request to pop the second data packet from the master linked list;
accessing, via the cache, a head identifier of the master linked list;
determining from the head identifier of the master linked list that the first listlet includes a head of the master linked list, the head stored in the cache;
dequeueing a first head node from the first listlet; and
updating the head identifier of the master linked list from identifying the first listlet to identifying the second listlet.

### Claim 3 (depends on 2)

The method of claim 2, wherein the cache stores heads and tails of the multiple listlets, the head identifier of the master linked list, and the tail identifier of the master linked list.

### Claim 4 (depends on 2)

The method of claim 2, wherein the master linked list is stored via a plurality of memory banks.

### Claim 5 (depends on 2)

The method of claim 2, wherein the first head node includes a pointer to another node of the first listlet.

### Claim 6 (depends on 2)

The method of claim 2, wherein the master linked list is formed by the multiple listlets.

### Claim 7 (depends on 2)

The method of claim 2, wherein the first head node includes another listlet identifier that identifies another one of the multiple listlets that includes a new head of the master linked list.

### Claim 8

A system comprising:
a processor; and
a memory storing instructions that, when executed, cause the processor to:
receive an enqueue request to push a first data packet and a second data packet to a master linked list simultaneously, wherein head nodes and tail nodes of multiple listlets of the master linked list are stored in a cache rather than in a memory bank;
push the first data packet and the second data packet to the master linked list simultaneously in a single cycle by causing the processor to:
push the first data packet to a first listlet and pushing the second data packet to a second listlet;
add a first new node to a first tail node of the first listlet and including a first data pointer to the first data packet;
remove a first previous node of the first listlet from the cache to a first memory bank;
add a second new node to a second tail node of the second listlet and including a second data pointer to the second data packet;
remove a second previous node of the second listlet from the cache to a second memory bank;
wherein simultaneously pushing the first data packet to the first listlet and pushing the second data packet to the second listlet comprises a single access to the first memory bank and the second memory bank, respectively, without conflict;
access, via the cache, a tail identifier of the master linked list, wherein the first new node of the first listlet includes the first data pointer to a next node in the second listlet, wherein the first new node includes the first data pointer to a location of the first data packet stored in the first memory bank of a plurality of memory banks;
determine, from the tail identifier of the master linked list, that the second listlet includes a tail of the master linked list;
set a next listlet identifier of a tail node of the second listlet to identify the first listlet; and
push subsequent data packets to the first listlet of a corresponding memory bank by updating the tail identifier of the master linked list in the cache from identifying the second listlet to identifying the first listlet.

### Claim 9 (depends on 8)

The system of claim 8, wherein the instructions further cause the processor to:
receive a dequeue request to pop the second data packet from the master linked list;
access, via the cache, a head identifier of the master linked list;
determine from the head identifier of the master linked list that the first listlet includes a head of the master linked list, the head stored in the cache;
dequeue a first head node from the first listlet; and
update the head identifier of the master linked list from identifying the first listlet to identifying the second listlet instead.

### Claim 10 (depends on 9)

The system of claim 9, wherein the cache stores heads and tails of the multiple listlets, the head identifier of the master linked list, and the tail identifier of the master linked list.

### Claim 11 (depends on 9)

The system of claim 9, wherein the master linked list is stored via the plurality of memory banks.

### Claim 12 (depends on 9)

The system of claim 9, wherein the first head node includes a pointer to another node of the first listlet.

### Claim 13 (depends on 9)

The system of claim 9, wherein the master linked list is formed by the multiple listlets.

### Claim 14 (depends on 9)

The system of claim 9, wherein the first head node includes another listlet identifier that identifies another one of the multiple listlets that includes a new head of the master linked list.

### Claim 15

At least one non-transitory computer-readable medium storing instructions that, when
executed by a processor, cause the processor to:
receive an enqueue request to push a first data packet and a second data packet to a master linked list simultaneously, wherein head nodes and tail nodes of multiple listlets of the master linked list are stored in a cache rather than in a memory bank;
push the first data packet to and the second data packet to the master linked list simultaneously in a single cycle by causing the processor to:
push the first data packet to a first listlet and pushing the second data packet to a second listlet;
add a first new node to a first tail node of the first listlet and including a first data pointer to the first data packet;
remove a first previous node of the first listlet from the cache to a first memory bank;
add a second new node to a second tail node of the second listlet and including a second data pointer to the second data packet;
remove a second previous node of the second listlet from the cache to a second memory bank;
wherein simultaneously pushing the first data packet to the first listlet and pushing the second data packet to the second listlet comprises a single access to the first memory bank and the second memory bank, respectively, without conflict;
access, via the cache, a tail identifier of the master linked list, wherein the first new node of the first listlet includes the first data pointer to a next node in the second listlet, wherein the first new node includes the first data pointer to a location of the first data packet stored in the first memory bank of a plurality of memory banks;
determine, from the tail identifier of the master linked list, that the second listlet includes a tail of the master linked list;
push subsequent data packets to the first listlet of a corresponding memory bank by setting a next listlet identifier of a tail node of the second listlet to identify the first listlet; and
update the tail identifier of the master linked list in the cache from identifying the second listlet to identifying the first listlet.

### Claim 16 (depends on 15)

The at least one non-transitory computer-readable medium of claim 15, wherein the instructions further cause the processor to:
receive a dequeue request to pop the second data packet from the master linked list;
access, via the cache, a head identifier of the master linked list;
determine from the head identifier of the master linked list that the first listlet includes a head of the master linked list, the head stored in the cache;
dequeue a first head node from the first listlet; and
update the head identifier of the master linked list from identifying the first listlet to identifying the second listlet.

### Claim 17 (depends on 16)

The at least one non-transitory computer-readable medium of claim 16, wherein the cache stores heads and tails of the multiple listlets, the head identifier of the master linked list, and the tail identifier of the master linked list.

### Claim 18 (depends on 16)

The at least one non-transitory computer-readable medium of claim 16, wherein the master linked list is stored via the plurality of memory banks.

### Claim 19 (depends on 16)

The at least one non-transitory computer-readable medium of claim 16, wherein the master linked list is formed by the multiple listlets.

### Claim 20 (depends on 16)

The at least one non-transitory computer-readable medium of claim 16, wherein the first head node includes another listlet identifier that identifies another one of the multiple plurality of listlets that includes a new head of the master linked list.
