我要评分
获取效率
正确性
完整性
易理解

KDADK-MMPM

Kunpeng Data Analytics Development Kit (KDADK) is a high-performance data analytics development kit developed by Kunpeng BoostKit. Million-rule Multi-Pattern Matcher (MMPM) is integrated into KDADK and can effectively process matching based on tens of millions of rules.

Rule matching is a fundamental requirement in intelligent data analytics scenarios. However, massive-scale rule matching is a big challenge. Rule matching libraries, such as Ultrascan, experience performance degradation when processing over 100,000 rules. In such cases, KDADK-MMPM expresses itself as a dedicated algorithm library essential for massive-scale rule matching.

MMPM provides different algorithms for two different scenarios. For rule sets containing hundreds of thousands of variable-length rules, it employs an Aho-Corasick (AC) Trie-based unanchored multi-pattern matching algorithm. For rule sets with tens of millions of fixed-length rules, it utilizes a Hash-based anchored multi-pattern matching algorithm.

MMPM operates in two phases: rule preprocessing and rule matching.

MMPM uses a two-level hash structure to maintain rules in an ultra-large rule set, improving the search speed without deteriorating the efficiency of adding, deleting, and modifying rules.

Key technologies:

AC Trie array-based table lookup optimization, AC automaton, multi-level hashing, parallelized hashing, and vectorized collision check.

Applicable scenarios:

Information security data distribution, fine-grained data distribution for carriers, public safety data distribution, IDPS, WAF, foundation model application firewalls, etc.