Skip to main content
QUICK REVIEW

[Paper Review] Cuckoo++ Hash Tables: High-Performance Hash Tables for Networking Applications

Nicolas Le Scouarnec|arXiv (Cornell University)|Dec 27, 2017
Network Packet Processing and OptimizationComputer Science16 references6 citations
TL;DR

Cuckoo++ introduces a high-performance hash table for networking by integrating a bloom filter into each primary bucket to eliminate unnecessary memory accesses to secondary buckets, achieving up to 60M lookups per second per core—50% faster than DPDK for negative lookups and 45% faster on 18 cores. The design also natively supports entry expiration via 16-bit timestamps, improving efficiency in connection-tracking workloads.

ABSTRACT

Hash tables are an essential data-structure for numerous networking applications (e.g., connection tracking, firewalls, network address translators). Among these, cuckoo hash tables provide excellent performance by allowing lookups to be processed with very few memory accesses (2 to 3 per lookup). Yet, for large tables, cuckoo hash tables remain memory bound and each memory access impacts performance. In this paper, we propose algorithmic improvements to cuckoo hash tables allowing to eliminate some unnecessary memory accesses; these changes are conducted without altering the properties of the original cuckoo hash table so that all existing theoretical analysis remain applicable. On a single core, our hash table achieves 37M lookups per second for positive lookups (i.e., when the key looked up is present in the table), and 60M lookups per second for negative lookups, a 50% improvement over the implementation included into the DPDK. On a 18-core, with mostly positive lookups, our implementation achieves 496M lookups per second, a 45% improvement over DPDK.

Motivation & Objective

  • To address the performance bottleneck in large-scale cuckoo hash tables caused by redundant memory accesses during lookups.
  • To improve both positive and negative lookup performance uniformly across varying workloads, especially under uncontrolled or malicious traffic.
  • To integrate connection expiration support directly into the hash table structure, eliminating external timer management overhead.
  • To maintain compatibility with existing theoretical guarantees of cuckoo hashing while enhancing practical efficiency.
  • To outperform existing implementations like DPDK and Horton tables in both throughput and memory access reduction.

Proposed method

  • Integrate a bloom filter into each primary bucket to pre-check whether a key might exist in the secondary bucket, avoiding unnecessary memory access.
  • Use a simple, fast bloom filter with bitwise AND operations to minimize computational cost and enable efficient pruning of secondary bucket lookups.
  • Adopt a compact memory layout that stores bloom filters in 64-byte cache lines alongside slots, leveraging CPU cache line alignment.
  • Incorporate 16-bit timestamps directly in table entries to support automatic expiration of stale connections without external tracking.
  • Design the system to support batched lookups and maintain compatibility with existing cuckoo hashing properties and theoretical analysis.
  • Optimize for both optimistic and pessimistic prefetching strategies by making the bloom filter decision independent of prefetching policy.

Experimental results

Research questions

  • RQ1Can a bloom filter embedded in the primary bucket reduce unnecessary memory accesses in cuckoo hash tables without compromising correctness or performance?
  • RQ2Does the integration of a bloom filter lead to uniformly better performance across diverse workloads, including high negative lookup rates and uncontrolled traffic?
  • RQ3Can native support for entry expiration be efficiently integrated into the hash table structure to eliminate external timer overhead?
  • RQ4How does the performance of Cuckoo++ compare to DPDK and other state-of-the-art implementations under real-world networking workloads?
  • RQ5Can the design maintain the theoretical guarantees of cuckoo hashing while improving practical throughput and reducing memory access count?

Key findings

  • Cuckoo++ achieves 37 million positive lookups per second per core and 60 million negative lookups per second per core on a single core, representing a 50% improvement over DPDK.
  • On an 18-core system with predominantly positive lookups, Cuckoo++ achieves 496 million lookups per second, a 45% improvement over DPDK.
  • The use of bloom filters in primary buckets reduces the average number of memory accesses from 2 to 1, significantly improving performance under high load and malicious traffic.
  • The integrated 16-bit timestamp mechanism enables efficient connection expiration without external timer management, reducing system complexity and overhead.
  • Cuckoo++ outperforms both DPDK and Horton tables across all workloads, including high negative lookup rates and varying load factors.
  • The design maintains compatibility with existing cuckoo hashing theory and supports batched lookups, making it suitable for high-performance packet processing applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.