# US 2017/0286006 A1 · Pipelined hash table with reduced collisions

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

- Number: US 2017/0286006 A1
- Document ID: US20170286006A1
- Status: Published application
- Kind: A1
- Application number: 15/088,726
- Filed: 2016-04-01
- Published: 2017-10-05
- Earliest claimed: 2016-04-01
- Assignees: Intel Corporation
- Inventors: Sanjeev Jain; Karl S. Papadantonakis; Robert G. Southworth; Alain Gravel; Jonathan A. Dama
- Web page: https://patentgrep.com/patent/US20170286006A1

## CPC

- G06F 12/023: {Free address space management}
- G06F 9/54: Interprogram communication
- G06F 12/0292: {using tables or multilevel address translation means (G06F12/023 takes precedence; address translation in virtual memory systems G06F12/10)}
- G06F 2212/1024: Latency reduction
- G06F 2212/1044: Space efficiency improvement
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Apparatuses and methods for pipelined hashing are described herein. An example apparatus to perform a pipelined hash function may include a first memory to store a first plurality of bucket records, a second memory to store a second plurality of bucket records, and a hash circuit to receive a key and to perform a pipelined hash function using the key to provide a hash value. The hash circuit further to select a first bucket record of the first plurality of bucket records from the first memory based on a first subset of bits of the hash value. The hash circuit further to provide a location of a particular entry of an entry record of the plurality of entry records based on contents of the first bucket record and a second subset of bits of the hash value.

## Claims

### Claim 1

An network device to perform a pipelined hash function comprising:
a first memory to store a plurality of bucket records,
a second memory to store a plurality of entry records; and
a hash circuit to receive a key and to perform a pipelined hash function using the key to provide a hash value, the hash circuit further to select a first bucket record of the plurality of bucket records from the first memory based on a first subset of bits of the hash value, the hash circuit further to provide an indication of a location of a particular entry of an entry record of the plurality of entry records based on contents of the first bucket record and a second subset of bits of the hash value.

### Claim 2 (depends on 1)

The network device of claim 1, wherein the hash circuit comprises bucket logic circuitry to generate an entry pointer based on the first hash bucket record and the second subset of bits of the hash value, wherein the entry pointer provides the indication of the location of the particular entry of the entry record.

### Claim 3 (depends on 2)

The network device of claim 2, wherein the first bucket record comprises a select field that includes a plurality of select values, wherein the bucket logic circuitry includes an entry selection module to select an individual bit of the second subset of bits of the hash value corresponding to each of the plurality of select values to provide an entry select value.

### Claim 4 (depends on 3)

The network device of claim 3, wherein the first bucket record comprises a mask field to identify one or more entries currently stored in the entry record, wherein the bucket logic circuitry further includes a previous array identifier to identify which of the mask field bits less than the entry select value have high logical value to provide a previous set array.

### Claim 5 (depends on 4)

The network device of claim 4, wherein the first bucket record comprises bucket pointer field to indicate a location of a first entry of the entry record, wherein the bucket logic circuitry further includes an entry pointer generator to identify the particular entry of the one or more entries of the entry record by adding a count of high logical values in the previous set array multiplied by an entry size to the bucket pointer to provide the entry pointer.

### Claim 6 (depends on 1)

The network device of claim 1, further comprising a third memory to store a third plurality of bucket records.

### Claim 7 (depends on 6)

The network device of claim 6, wherein the first memory and the second memory are each random-access memories and the third memory is content-addressable memory.

### Claim 8 (depends on 6)

The network device of claim 6, further comprising an output logic circuit to provide a hit indication in response to a hit in an entry of a bucket record of the third plurality of bucket records or in response to a match between the key and a key value stored in the particular entry of the entry record.

### Claim 9 (depends on 8)

The network device of claim 8, wherein the output logic circuit further to provide an output action stored in an entry of a bucket record of the third plurality of bucket records responsive to a hit associated with the entry of the bucket record of the third plurality of bucket records, the output logic circuit further to provide an output action stored in the particular entry of the entry record responsive a miss associated with the entry of the bucket record of the third plurality of bucket records.

### Claim 10 (depends on 1)

The network device of claim 1, further comprising a receiving circuit to receive a packet and to generate the key based on data in the packet.

### Claim 11

A machine-readable medium including instructions that, when executed on a machine cause the machine to:
receive a key associated with a packet;
perform a hash function using the key to provide a first hash value and a second hash value;
select a first bucket record of a plurality of bucket records based on contents of the first hash value; and
provide an indication of a location of a particular entry of a an entry record of a plurality of entry records based on contents of the first bucket record and the second hash value.

### Claim 12 (depends on 11)

The machine-readable medium of claim 11, including instructions that, when executed on the machine, cause the machine to provide the indication of the location of the particular entry of the entry record of the plurality of entry records includes instructions to select an individual bit of the second hash value corresponding to each of a plurality of select values included in the first bucket record to provide an entry select value.

### Claim 13 (depends on 12)

The machine-readable medium of claim 12, including instructions that, when executed on the machine, cause the machine to identify, up to a bit corresponding to the entry select value, which bits of a mask field of the first bucket record have high logical value to provide a previous set array.

### Claim 14 (depends on 13)

The machine-readable medium of claim 13, including instructions that, when executed on the machine, cause the machine to identify the particular entry by adding a count of set values in the previous set array multiplied by an entry size to a bucket pointer of the first bucket record.

### Claim 15 (depends on 11)

The machine-readable medium of claim 11, including instructions that, when executed on the machine, cause the machine to provide a hit indication in response to a hit associated with an entry of a third plurality of bucket records or a match between a key value stored at the particular entry of the entry record and the key.

### Claim 16

A method to generate a mask for colliding hash values, comprising:
generating a list of mask values, wherein each mask value of the list of mask values has a predetermined number of bits set;
receiving a set of hash values;
determining a respective count of collisions for a mask value of the list of mask values using the set of hash values; and
selecting a mask value from the list of mask values having a fewest respective count of collisions.

### Claim 17 (depends on 16)

The method of claim 16, wherein the predetermined number of bits set is based on a total count of bits in a hash value of the set of hash values.

### Claim 18 (depends on 16)

The method of claim 16, further comprising, responsive to a determination that the respective count of collisions for the mask value of the list of mask values is equal to zero, selecting the mask value.

### Claim 19 (depends on 16)

The method of claim 16, further comprising, responsive to a determination that the respective count of collisions for the mask value of the list of mask values is a non-zero number, determining a respective count of collisions for a next mask value of the list of mask values using the set of hash values.

### Claim 20 (depends on 16)

The method of claim 16, wherein determining the respective count of collisions for the mask value of the list of mask values using the set of hash values comprises:
applying the mask value to a first hash value of the set of hash values to generate a first value;
applying the mask value to a second hash value of the set of hash values to generate a second value;
comparing the first value to the second value; and
responsive to the first value matching the second value, incrementing the respective count of collisions for the mask value.

### Claim 21 (depends on 16)

The method of claim 16, wherein generating the list of mask values comprising randomizing a set of mask values to provide the list of mask values.

### Claim 22

A device to perform a pipelined hash function having plurality of memories and a processor for packet processing, comprising:
the plurality of memories; and
the processor configured to:
receive a packet;
provide a key based on data included in the packet;
perform a hash function on the key to generate a hash value;
provide a pointer to indicate a location of an entry of a particular entry record stored at a first memory of the plurality of memories based on the hash value and contents of a bucket record stored at a second memory of the plurality of memories;
provide a hit indication in response to a match between a key value stored at the entry of the particular entry record and the key; and
provide, to an output, an action stored at the particular entry of the entry record.

### Claim 23 (depends on 22)

The device of claim 22, wherein the processor configured to provide a pointer to indicate the location of the entry of an entry of a particular entry record stored at a first memory of the plurality of memories based on the hash value and contents of the bucket record stored at a second memory of the plurality of memories comprises the processor configured to:
retrieve the bucket record from the second memory based on a first subset of bits of the hash value; and
provide the pointer to indicate the location of the particular entry of the entry record based on information included in the entry record and a second subset of bits of the hash value.

### Claim 24 (depends on 22)

The device of claim 22, wherein the processor is further configured to compare the key value stored at the entry of the particular entry record with the key.

### Claim 25 (depends on 22)

The device of claim 22, wherein the processor is further configured to provide the hit indication responsive to a hit detected between the key and an entry of a second entry record stored at a third memory of the plurality of memories.
