Skip to main content
QUICK REVIEW

[Paper Review] RVH: Range-Vector Hash for Fast Online Packet Classification

Tong Shen, Gaogang Xie|arXiv (Cornell University)|Sep 16, 2019
Network Packet Processing and OptimizationComputer Science34 references5 citations
TL;DR

RVH proposes a novel hash-based packet classification algorithm that accelerates both fast rule updates and high-speed packet classification by introducing range-vectors to partition rules based on prefix length distribution, reducing hash table count and collision probability. It achieves up to 15.7× faster classification and 2.3× faster updates than state-of-the-art methods, with 44% lower memory usage.

ABSTRACT

Packet classification according to multi-field ruleset is a key component for many network applications. Emerging software defined networking and cloud computing need to update the rulesets frequently for flexible policy configuration. Their success depends on the availability of the new generation of classifiers that can support both fast ruleset updating and high-speed packet classification. However, existing packet classification approaches focus either on high-speed packet classification or fast rule update, but no known scheme meets both requirements. In this paper, we propose Range-vector Hash (RVH) to effectively accelerate the packet classification with a hash-based algorithm while ensuring the fast rule update. RVH is built on our key observation that the number of distinct combinations of each field prefix lengths is not evenly distributed. To reduce the number of hash tables for fast classification, we introduce a novel concept range-vector with each specified the length range of each field prefix of the projected rules. RVH can overcome the major obstacle that hinders hash-based packet classification by balancing the number of hash tables and the probability of hash collision. Experimental results demonstrate that RVH can achieve the classification speed up to 15.7 times and the update speed up to 2.3 times that of the state-of-the-art algorithms on average, while only consuming 44% less memory.

Motivation & Objective

  • To address the longstanding challenge of simultaneously achieving high-speed packet classification and fast rule updates in dynamic network environments.
  • To overcome the trade-off between classification speed and update efficiency in existing hash-based and tree-based packet classification algorithms.
  • To design a scalable, online classifier that supports frequent rule updates without sacrificing classification performance.
  • To minimize hash collisions and reduce the number of hash tables through intelligent rule partitioning based on prefix length distribution.
  • To optimize memory usage while maintaining high throughput for real-world cloud and SDN workloads.

Proposed method

  • Introduces the concept of range-vector to group rules based on the distribution of field prefix lengths, enabling efficient partitioning of the rule space.
  • Uses base-vectors to guide hash key construction in heterogeneous-length prefix environments, improving hash function efficiency.
  • Employs an analytical model to determine the optimal number of hash tables, minimizing classification time by balancing table count and collision probability.
  • Applies a partitioning policy that reduces rule overlap across hash tables, minimizing additional overhead from hash conflicts.
  • Utilizes cuckoo hashing to improve memory utilization and supports online rule updates with only one average hash operation per update.
  • Designs a multi-core extension strategy using Run-to-Complete and Software Pipeline modes to further accelerate classification and update operations.

Experimental results

Research questions

  • RQ1Can a hash-based classifier achieve both high-speed packet classification and fast rule updates simultaneously?
  • RQ2How can rule partitioning based on prefix length distribution reduce hash table count and collision probability?
  • RQ3What is the optimal number of hash tables that minimizes classification time while maintaining low memory usage?
  • RQ4How does rule overlap affect classification performance, and can it be reduced through intelligent partitioning?
  • RQ5Can the proposed method scale effectively in multi-core environments for further performance gains?

Key findings

  • RVH achieves an average classification speedup of 15.7× compared to Tuple Space Search (TSS), 14.1× compared to PartitionSort (PS), and 1.6× compared to TupleMerge (TM).
  • The update speed of RVH is 3.9× faster than PS, 1.7× faster than TM, and 1.1× faster than TSS on average.
  • RVH reduces memory footprint to only 38% of PS and 56% of TSS, while maintaining performance comparable to TM.
  • When update rates exceed 10,000 updates per second, only RVH maintains stable classification performance, while PS and others degrade significantly.
  • The average number of overlapping rules per hash entry remains below 1.0 when range-vector sizes are kept under 8, validating the effectiveness of the partitioning policy.
  • In multi-core extensions, locking only the relevant rule segments during updates reduces contention and enables further performance gains.

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.