Hyperflex:一种基于SIMD的DFA模型用于深度包检测
Hyperflex: A SIMD-based DFA Model for Deep Packet Inspection
AI总结:
Hyperflex是一种基于SIMD的DFA模型,用于提升深度包检测的正则表达式匹配性能,通过区域检测和混合状态转换算法实现高效处理。
摘要:
深度包检测(DPI)已被广泛用于网络安全。它通过使用确定性有限自动机(DFA)模型搜索正则表达式(regex)来检查流量负载。然而,随着网络带宽和规则集大小的迅速增加,传统DFA模型已成为DPI的主要性能瓶颈。利用单指令多数据(SIMD)指令执行状态转换可以显著提高DFA模型的效率。在本文中,我们提出了Hyperflex,一种新的基于SIMD的DFA模型,用于高性能的正则表达式匹配。Hyperflex结合了区域检测算法,以识别整个DFA图中适合通过SIMD指令加速的区域。此外,我们设计了一种混合状态转换算法,使状态转换可以在SIMD加速区域和正常区域中进行,并确保在两种类型区域之间无缝进行状态转换。我们已经在通用CPU上实现了Hyperflex,并使用实际网络流量和DPI正则表达式进行了评估。我们的评估结果表明,Hyperflex达到了8.89Gbit/s的吞吐量,比Hyperscan中默认的DFA模型Mcclellan提高了多达2.27倍。因此,Hyperflex已成功部署在Hyperscan中,显著提高了其性能。
英文摘要:
Deep Packet Inspection (DPI) has been extensively employed for network security. It examines traffic payloads by searching for regular expressions (regex) with the Deterministic Finite Automaton (DFA) model. However, as the network bandwidth and ruleset size are increasing rapidly, the conventional DFA model has emerged as a significant performance bottleneck of DPI. Leveraging the Single-Instruction-Multiple-Data (SIMD) instruction to perform state transitions can substantially boost the efficiency of the DFA model. In this paper, we propose Hyperflex, a novel SIMD-based DFA model designed for high-performance regex matching. Hyperflex incorporates a region detection algorithm to identify regions suitable for acceleration by SIMD instructions across the whole DFA graph. Also, we design a hybrid state transition algorithm that enables state transition in both SIMD-accelerated and normal regions, and ensures seamless state transition across the two types of regions. We have implemented Hyperflex on the commodity CPU and evaluated it with real network traffic and DPI regexes. Our evaluation results indicate that Hyperflex reaches a throughput of 8.89Gbit/s, representing an improvement of up to 2.27 times over Mcclellan, the default DFA model of the prominent multi-pattern regex matching engine Hyperscan. As a result, Hyperflex has been successfully deployed in Hyperscan, significantly enhancing its performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。