Hash Table Selection Order for Faster Packet Classification

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing packet processing systems in networking devices face inefficiencies due to the need to search multiple hash tables, leading to increased memory access costs and potential collisions, especially with large rule sets, which current strategies like table merging and Bloom filters fail to adequately address.

Innovation Solution

Implementing a machine learning model to dynamically determine the hash table selection order based on packet information, combined with an approximate membership check filter, to optimize the search process and reduce the number of tables accessed.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If multiple hash tables are searched to classify packets, then classification accuracy is improved, but processing time and memory access costs increase

Engineering Contradiction:
Improveclassification accuracyVSAvoidprocessing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent implements dynamic hash table selection where the system adaptively chooses which hash table to search based on packet characteristics and current network conditions. Instead of statically searching all hash tables, the system dynamically determines the optimal search order and selection, reducing unnecessary memory accesses while maintaining classification accuracy.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system employs machine learning models that automatically learn and optimize hash table selection strategies without manual intervention. The ML models self-adjust to network traffic patterns and rule set characteristics, enabling the system to serve itself by optimizing its own packet classification performance.

Inventive Principle:
Principle #25Self-service

2Measurement precision

If multiple hash tables are searched to classify packets, then classification accuracy is improved, but memory access costs increase

Engineering Contradiction:
Improveclassification accuracyVSAvoidmemory access costs
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The system dynamically selects and orders hash tables based on packet characteristics, avoiding unnecessary memory accesses to hash tables that are unlikely to match the current packet. This dynamic approach reduces memory access costs while maintaining the ability to achieve accurate classification when needed.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system performs preliminary filtering using approximate membership check filters before searching hash tables. This preliminary action eliminates packets that cannot possibly match any rules, preventing unnecessary memory accesses to hash tables and reducing overall memory access costs.

Inventive Principle:
Principle #10Preliminary action

3Productivity

If hash table search order is optimized using machine learning, then packet classification speed is improved, but device complexity increases

Engineering Contradiction:
Improvepacket classification speedVSAvoiddevice complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent introduces machine learning models as intermediary components that sit between the packet classification circuits and the hash tables. These ML models act as mediators that analyze packet characteristics and determine optimal hash table search orders, improving classification speed while isolating the complexity of ML algorithms from the core packet processing path.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system segments the packet classification function into distinct components: approximate membership check filters, machine learning-based hash table selection, and actual hash table search. This segmentation allows each component to be optimized independently and facilitates implementation using existing hardware structures.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS12580859B2Optimizing hash table selection
Publication Date: 2026.03.17 MELLANOX TECHNOLOGIES LTD(IL)
  • US12580859B2 patent drawing
  • US12580859B2 patent drawing
  • US12580859B2 patent drawing

AI summary

Network devices, systems, and methods are provided. In one example, a network device includes one or more packet classification circuits and one or more hash selection circuits that cooperate with the one or more packet classification circuits to provide the one or more packet classification circuits with a hash table selection order. The hash table selection order may be determined for a packet to be classified with the support of machine learning by the one or more packet classification circuits based on information contained in the packet.