The Design and Implementation of Regular Expression Engines Based on Deterministic Finite Automata
- Author
- XuQiang
- Advisor
- HuangJianBin , YaoTie
- School
- Xi'an University of Electronic Science and Technology
- Major
- Software Engineering
- Classification
- TP393.08 Computer Network Security
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 78
- Citations
- 0
- Regular Expressions
- Lexical analysis
- DFA Regular Expression
- Matching engine
- DFA Grouping Algorithm
- Similarity of the RegularExpression
Abstract
With the development of network security auditing techniques, the phenomenon ofattacks against the application layer becoming more and more. As the flexiblevariability of the regular expression, this audit technology based on it has the ability ofstrong-expression and flexible-scalability, which that based on the string matching doesnot have. A growing number of network audit technology has been using it to describeand support. Traditional reguar expression matching engine is divied in to NFA-basedand DFA-based regular expression matching engine. Because DFA has a widelyapplication in some areas such as network monitoring, its focus position in the lexicalanalysis is more and more prominent. Based on the research and analysis of existingDFA construct engine optimization technology, this paper has studied the optimizationtechnology and implementation program of the DFA engine from two aspects: Firstly,construction and optimization based on a single DFA engine; Secondly, constructionand optimization based on the grouping-algorithm DFAconstruct engine.For the first, we study the regular expressions match ASCII characters in thespecial conditions. In the study of using a subset of the construction method constructsDFA engine process, a subset of the original construction process is optimized, so thatthe generation of a single DFA engine efficiency is greatly improved, and on this basisto achieve a single DFA regular expression matching engine; for the second, DFAregular expressions or similar relationship between the structure, during the study ofusing the grouping method of the process of DFA engine construction, we collected alarge number of test data, proposed the concept of similarity of regular expressions andformulas, and on this basis to achieve a grouping regular expression matching enginebased on grouping method.For the two regular expression engine which have achieved to develop a detailedtest plan, from the time consumption and space occupied, the two engines were madefor targeted performance test, the results show that, both in terms of time consumption,or in the space occupancy, optimized DFA engine is better than no optimizationalgorithm introduced DFAengine.
Table of contents
Summary 3-4
Abstract 4-7
first chapter 7-13
1.1 Project Background and Significance topics 1.2 Status of domestic and foreign research 7-8
8-10
1.3 contents and main work 10
1.4 nbsp paper tissue structure ; 10-11
1.5 Summary 11-13
chapter related technical overview 13-29
2.1 Introduction to network security auditing technology 13-14 <br / > regular Expressions 2.2 technical Overview 14-17
2.3 lexical analysis engine based on regular expressions related technology research 17-27
2.3.1 NFA regex -based related technology research engine 17-22
2.3.2 DFA -based regular expression engine related technology research 22-25
2.3.3 comparison and selection of DFA engine implementations the reason 25-27
2.4 Summary studies 27-29
Chapter III single DFA engine and implementation 29-39
3.1 based optimization of a subset of the NFA to determine the structure of law and propose cost-effective method to achieve 29-35
3.2 single DFA engine architecture design and implementation 35-37
3.2.1 RegtoNFA module 36-37
3.2.2 NFAtoDFA DFA engine optimization modules and module 37
3.2.3 serialization module 37
3.2.4 matching module 37
3.3 Summary study Chapter Four groups of 37-39
DFA engine and achieve 39-51
4.1 DFA -related grouping algorithm Research 39-42
4.2 regex similarity study and propose concepts and formulas 42-45
4.3 based on regular study similarity grouping algorithm optimized with DFA achieve performance comparison and analysis 45-47
4.4 optimized DFA engine 47-48
4.5 grouping DFA engine architecture design and implementation 48-50
4.5.1 RegtoNFA module 48-49
4.5.2 NFAtoDFA module 49-50
4.5.3 packet optimization module 50
4.5.4 serialization module 50
4.5.5 matching module 50
4.6 Summary 50-51
Chapter V system testing 51-57
5.1 for a single DFA engine test 51-54
5.1.1 test Environment Profile 51
5.1.2 testing process and results analysis 51-54
5.1.3 analysis of test results 54
5.2 engine for packet DFA test 54-55
5.2.1 Introduction to the test environment 54-55
5.2.2 analysis of test results 55
5.3 Summary 55-57
Chapter VI Conclusion 57 - 59
Thanks 59-61
References 61-65
research 65-66
Related dissertations
- The Automatic Marking Method of Script
- The Name of Shanxi Wheaten Food and Cultural
- Regular Expression Matching with Multi-step Speculation
- The Design and Implementation of the Netfilter-Based Content Filtering System
- The Design and Implementation of an Arithmetic Expression Parsing Engine
- Mail Address Automatic Extraction System Based on Search Engine Secondary Development
- Using Lexical and Semantic Analysis for Ontology Integration
- Design and implementation of C language programming automatic marking system based on WEB
- Design and Implementation of Uyghur Words Automatic Proofreading System
- Implementation and application of C++ general lexical, syntax analysis framework based on
- The Application Layer Network Protocol Identification Mechanism and Software Implementation
- The Security Operation Center Collector Based on Information Security Technology
- The Vocabulary Acquisition Learning Strategies in a Chinese Context
- A Corpus-based Study on the Vocabulary in China’s Contemporary College English Coursebooks
- Chinese Lexical with the Same Morpheme Teaching as a Second Language
- A Literary Stylistic Study of Paper Pills,Mother and Death in Winesburg, Ohio
- Statistical Chinese Lexical Analysis and Its Reinforcement Learning Mechanism
- Security Architecture and Practical Model Research in Application Area Boundary
- Source Code Assessment System Research and Development
- Visual Implementation of Operational Semantics of Procedural Programming Languages