彈性節能正規表示式比對加速器之關鍵架構最佳化
A Feature-Rich and Energy-Efficient Regular Expression Matching Accelerator via Non-Volatile Memory Architecture
摘要
隨著物聯網設備的快速發展以及普及,物聯網的網絡安全問題已經成為一個重大的挑戰,因為在有限的硬體資源下(例如:頻寬、儲存空間、效能…等),我們將無法藉由純軟體的方式,從這些封包傳遞中找出或分析出隱藏在資料內容中的威脅及病毒,因此需要硬體的支援將大量的封包資料經過快速且精確的比對運算。在這樣的比對加速器,有兩個重要的特徵需要實現彈性(feature-rich)與高效能(energy-efficient)。因此,我們設計了一個比對加速器,它使用了三元內容定址記憶體(TCAM)及非揮發性記憶體(non-volatile memory)來進行關鍵架構的最佳化,因為其具有快速搜尋、平行處理、高效能的特色。
另一方面,面對到網路攻擊與病毒內容的多樣化,需要比對的內容也越來越複雜而其速度也越來越慢,嚴重影響到封包傳遞。我們透過演算法和架構共同設計的方式,來有效的減少比對內容及次數,並且大幅降低所需要的硬體資源,使其可以廣泛的應用在物聯網設備上。
另一方面,面對到網路攻擊與病毒內容的多樣化,需要比對的內容也越來越複雜而其速度也越來越慢,嚴重影響到封包傳遞。我們透過演算法和架構共同設計的方式,來有效的減少比對內容及次數,並且大幅降低所需要的硬體資源,使其可以廣泛的應用在物聯網設備上。
Regular expression matching becomes indispensable elements of Internet of Things (IoT) network security. However, traditional TCAM search engine is unable to handle patterns with wildcards, as it precisely tracks only one active state with single transition. This work proposes a promising Simultaneous Pattern Matching methodology for wildcard patterns by two separated engines to represent Discrete Finite Automata (Discrete-FA). A key preprocessing to encode possible postfix pattern by a unique key ensures that follow-up patterns can accurately traverse all possible matches with limited hardware resources. This approach is practical and scalable for achieving good performance and low space consumption in network security, and it can be applicable to any regular expressions even with multi-wildcard patterns.
Also, Ternary content-addressable memory (TCAM)-based search engines generally need a priority encoder to select the highest priority match entry for resolving the multiple match problem due to the don’t care (X) features of TCAM. However, the use of priority encoder results in increased energy consumption for pattern updates and search operations. Instead of using priority encoders to determine the match, our solution is a three-phase search operation that utilizes the length information of the matched patterns to decide the longest pattern match data. This study proposes a promising memory technology called Priority-Decision in Memory (PDM), which eliminates the need for priority encoders and removes restrictions on ordering, implying that patterns can be stored in an arbitrary order without sorting their lengths. Moreover, we present a Sequential Input-State Search (SIS) scheme to disable the mass of redundant search operations in state segments on the basis of an analysis distribution of hex signatures in a virus database.
On the other hand, non-volatile memory (NVM) has commonly been used to address increasingly large last-level caches (LLCs) requirements by reducing leakage. However, frequent data-writing operations result in increased energy consumption. A promising memory technology, Non-volatile SRAM (nvSRAM), enables normal and standby operation modes which can be used to store various types of data. However, nvSRAM suffers from high dynamic energy usage due to frequent switching between operation modes. In this work, we propose a redundant store elimination (RSE) scheme which, on average, discards 94% of needless bit-write operations. Moreover, we present a retention-aware cache management policy to reduce data updates of cache blocks, based on the correlation between data lifetime and cache types.
Also, Ternary content-addressable memory (TCAM)-based search engines generally need a priority encoder to select the highest priority match entry for resolving the multiple match problem due to the don’t care (X) features of TCAM. However, the use of priority encoder results in increased energy consumption for pattern updates and search operations. Instead of using priority encoders to determine the match, our solution is a three-phase search operation that utilizes the length information of the matched patterns to decide the longest pattern match data. This study proposes a promising memory technology called Priority-Decision in Memory (PDM), which eliminates the need for priority encoders and removes restrictions on ordering, implying that patterns can be stored in an arbitrary order without sorting their lengths. Moreover, we present a Sequential Input-State Search (SIS) scheme to disable the mass of redundant search operations in state segments on the basis of an analysis distribution of hex signatures in a virus database.
On the other hand, non-volatile memory (NVM) has commonly been used to address increasingly large last-level caches (LLCs) requirements by reducing leakage. However, frequent data-writing operations result in increased energy consumption. A promising memory technology, Non-volatile SRAM (nvSRAM), enables normal and standby operation modes which can be used to store various types of data. However, nvSRAM suffers from high dynamic energy usage due to frequent switching between operation modes. In this work, we propose a redundant store elimination (RSE) scheme which, on average, discards 94% of needless bit-write operations. Moreover, we present a retention-aware cache management policy to reduce data updates of cache blocks, based on the correlation between data lifetime and cache types.
所屬典藏
資訊科學與工程研究所引用此條目
Tsai, H.-J. (2017). A Feature-Rich and Energy-Efficient Regular Expression Matching Accelerator via Non-Volatile Memory Architecture. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/64892
引用文字依 APA 第 7 版格式自動產生,使用前請再核對。
分享
永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/64892