Research on Parallelizing Technique of Regular Expression Matching Algorithms
- Author
- ShaoZuo
- Advisor
- FangBinXing
- School
- Beijing University of Posts and Telecommunications
- Major
- Computer Science and Technology
- Classification
- TP338.6 Parallel computer
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 28
- Citations
- 0
Abstract
Regular expression matching technique plays a fundamental role in network content analysis and filtering system. With the rapid development of Internet technology and the emergence of numerous new network applications and protocols, the amount of analyzed data and rules grows dramatically and the syntax of regular expressions is increasingly complex, which challenges regular expression matching technique in terms of both matching speed and storage space. The parallel hardwares developes rapidly, but it seems impossible to directly utilizes these parallel hardwares to inmprove performance of the classic regular expression matching based on serial processing.The thesis put its emphasis on parallelizing technique of regular expression matching and carried out research on parallel acceleration technique of DFA construction, parallel DFA decomposition technique and parallel acceleration technique of DFA minimization. The main contribution of the thesis is summarized as follows:(1) Two parallel DFA construction algorithm:The thesis followed the way that k-Reduction algorithm organized DFAs, and studied parallel acceleration technology of the classic subset construction method. Two DFA construction algorithms based on multithreading technique were propose, i.e. the DFA construction algorithm based on parallel reading and writing named PRW and the DFA construction algorithm based on alternation of multi-threaded stage and single-threaded stage named SMA. The former algorithm ensured the multithreading safety of public data by locking and unlocking of the state mapping table, and its fastest DFA construction speed was1.716times as fast as that of k-Reduction algorithm. Based on the fact that the state mapping table is read much more frequently than written, the later algorithm assigned reading permission and write permission of state mapping table to multi-threaded stage and single-threaded stage respectively and alternate these two stages. The fastest DFA construction speed of the later algorithm was2.714times as fast as that of k-Reduction algorithm.(2)A parallel DFA decomposition algorithm:The thesis proposed a parallel DFA decomposition algorithm named PDFA from the view of character set decomposition. PDFA algorithm decomposed one DFA on large character set into several DFAs on small character set and simulated the state transference of original large-character-setted DFA with these small-character-setted DFAs. The state swithing time of PDFA algorithm was O(1) based on multi-core parallel acceleration. The experimental results showed that PDFA algorithm was able to significantly compress the storage space of the vast majority of DFAs, and achieved best compressibility among known algorithms.(3)A parallel DFA minimization algorithm:The thesis studied parallel acceleration technology of a classic DFA minimization algorithm named Hopcroft and proposed a multi-threaded DFA minimization algorithm named P-Hopcroft. P-Hopcroft algorithm assigned division permission of equivalence classes to different threads respectively in order to accelerate Hopcroft algorithm using parallel technology. The experimental results showed that the fastest DFA minimization speed of P-Hopcroft algorithm was2.236times as fast as that of Hopcroft algorithm.
Table of contents
Summary 4-6
ABSTRACT 6-10
Chapter 1 Introduction 10-16
1.1 Background and Significance 10 - 14
1.2 research organizational structure 14-15
1.3 papers 15-16
regular expression matching the second chapter technical Summary 16 - 28
2.1 basic Concepts of regular expressions 16-18
2.2 classic regex matching 18-19
2.2.1 regular expression matching the general flow basic concepts 18
2.2.2 NFA and DFA and comparison 18-19
2.3 based on deterministic finite state automata regular expression matching research status 19-27
2.3.1 DFA spatial compression techniques 20-23
2.3.2 DFA build acceleration technology 23-24
2.3.3 DFA minimization and parallel technology 24-26
2.3.4 hardware-based acceleration matching technology 26-27
2.4 Summary 27-28 <br / > Chapter DFA constructed parallel acceleration technology 28-47
issues raised 3.1 28-30
3.2 classic DFA construction algorithm : subset construction 30-31
3.3 based on multi -threaded parallel concurrent read and write DFA construction algorithm : PRW 31-34
3.3.1 PRW algorithm basic idea 31-32
3.3.2 PRW algorithm design and implementation 32-34
3.4 based on single-threaded and multi-threaded parallel cycle alternating DFA construction algorithm : SMA 34-39
the basic idea 3.4.1 SMA algorithm 34-37
nbsp 3.4.2 SMA design and implementation of algorithms ; 37-39
3.5 experimental evaluation 39-45
3.5.1 experimental environment with the experimental data compare nbsp 39-40
3.5.2 PRW algorithm and k-Reduction algorithm ; 40-41
3.5.3 threads impact on PRW algorithm compare nbsp 41-42
3.5.4 SMA algorithm and k-Reduction algorithm ; 42-43
number 3.5.5 thread SMA algorithm affect affect 43-44
3.5.6 switching threshold of the SMA algorithm 44-45
3.6 Summary 45-47
Chapter IV parallel DFA decomposition proposed 47-62
4.1 issues 47-48
4.2 DFA -based character sets decomposition parallel decomposition algorithm PDFA 48-55
the basic idea 4.2.1 PDFA algorithm formal definition 48
4.2.2 PDFA algorithm and correctness proof 48-50
4.2.3 PDFA algorithm overall process preprocessing stage 50-51
4.2.4 PDFA algorithm 51-52
4.2.5 PDFA filtering algorithms and calibration phase 52-53
4.2.6 PDFA algorithm to affect the size of the state transition table 53-55
4.3 experimental evaluation 55-61
4.3.1 experimental environment with the experimental data 55
4.3.2 experiment one : Space PDFA compression algorithm 55-58
4.3.3 experiment II : comparison nbsp PDFA compression algorithms and related compression algorithms ; 58
4.3.4 experiment III : filtering effect PDFA algorithm 58-60
4.3.5 experiment IV: PDFA matching algorithm using time 60-61
4.4 Summary 61-62
Chapter DFA minimization parallel acceleration technology proposed 62-71
5.1 issues 62-63
5.2 classic DFA minimization algorithm Hopcroft 63-64
5.3 based on multi -threaded parallel DFA minimization algorithm P-Hopcroft 64-67
5.3.1 P-Hopcroft algorithms the basic idea 64-65
5.3.2 P-Hopcroft algorithm design and implementation 65-67
5.4 experimental evaluation 67-70
5.4 .1 experimental environment with the experimental data 67-68
5.4.2 experiment 1: Comparison nbsp P-Hopcroft algorithm with the original Hopcroft algorithm ; 68
5.4.3 8 experiment II : affect the number of threads on P-Hopcroft algorithm performance 68-70
5.5 summary 70-71
Chapter VI summary and Outlook 71-73 <br / > 6.1 This work summarizes 71-72
6.2 next research 72-73
References 73-78
Thanks published during 78-80
hired to pursue a degree or academic 80
Related dissertations
- The Research on Regular Expression Matching Algorithms for Deep Packet Inspection
- Research on Storage Optimization of High-Speed Rule Matching Algorithms
- Research on High Throughput Regular Expression Matching Algorithm in Deep Packet Inspection
- Research on Regular Expression Matching Algorithm for Network Packet
- Research on Regular Expression Matching of Successive Packets in High-speed Networks
- TCAM-based Fast and Scalable Regular Expression Matching
- Research on Deep Packet Inspection Algorithm in High-speed IP Network
- The Research on High Performance Content Filtering and Distribution Technologies
- Core technology strategy script based Gigabit Intrusion Detection System
- Design and Implementation of a General Command-Line Interface Module
- Application protocol conformance inspection technology research and application
- The Research on Time and Space Efficient Regular Expression Matching Algorithm
- Design and Implementation of the intrusion detection system based on SOPC