Data pattern analysis using optimized deterministic finite automaton
Abstract
Techniques for data pattern analysis using deterministic finite automaton are described herein. In one embodiment, a number of transitions from a current node to one or more subsequent nodes representing one or more sequences of data patterns is determined, where each of the current node and subsequent nodes is associated with a deterministic finite automaton (DFA) state. A data structure is dynamically allocated for each of the subsequent nodes for storing information associated with each of the subsequent nodes, where data structures for the subsequent nodes are allocated in an array maintained by a data structure corresponding to the current node if the number of transitions is greater than a predetermined threshold. Other methods and apparatuses are also described.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 41 · Forward citations: 0.
Claims (8 — 1 Independent, 7 Dependent)
- Claim 1Independent Claim
A method for data pattern analysis, the method comprising: receiving a plurality of data packets sent over a communication network to a network access device; inspecting the plurality of data packets to identify a set of states corresponding to a set of transitions associated with a set of nodes, wherein the set of transitions is associated with movement from a first state to one or more second states of the set of states; dynamically allocating a data structure maintained for each of the second states based on a comparison of a number of transitions associated with a number of the second states to a predetermined number of transitions; and performing the data pattern analysis in accordance with the data structure maintained for each of the second states, wherein performing the data pattern analysis includes accessing the data structure allocated by a first type of data structure or a second type of data structure.
- Claim 2Depends on #1
The method of claim 1, wherein the data structure includes information about the second states, and wherein the information includes target data, match data, or link references to different data structures.
- Claim 3Depends on #1
The method of claim 1, wherein dynamically allocating the data structure is further based on the set of states having at least a threshold number of transitions in the set of transitions.
- Claim 4Depends on #3
The method of claim 3, wherein the data structure is allocated by the first type of data structure when the set of states has at least the threshold number of transitions, wherein the first type of data structure is an array.
- Claim 5Depends on #3
The method of claim 3, wherein the data structure is allocated by the second type of data structure when the set of states has less than the threshold number of transitions, and wherein the second type of data structure is in a linked-list configuration.
- Claim 6Depends on #5
The method of claim 5, wherein the linked-list configuration includes a link referencing an address of the second data structure.
- Claim 7Depends on #1
The method of claim 1, wherein a data structure of a first node allows for direct access to a data structure of a second node.
- Claim 8Depends on #1
The method of claim 1, wherein the data structure is dynamically allocated based on a comparison of a distance between a first node and a second node of the set of nodes to a predetermined distance.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS The present application is a continuation and claims the priority benefit of U.S. patent application Ser. No. 15/445,687 filed Feb. 28, 2017, now U.S. Pat. No. 11,475,315, which is a continuation and claims the priority benefit of U.S. patent application Ser. No. 14/096,866 filed Dec. 4, 2013, now U.S. Pat. No. 9,582,756, which is a continuation and claims the priority benefit of U.S. patent application Ser. No. 13/196,484 filed Aug. 2, 2011, now U.S. Pat. No. 8,626,689, which is a continuation and claims the priority benefit of U.S. patent application Ser. No. 11/778,546 filed Jul. 16, 2007, now U.S. Pat. No. 7,991,723, the disclosures of which are incorporated herein by reference. BACKGROUND OF THE INVENTION Field of the Invention The present invention relates generally to data pattern analysis. More particularly, this invention relates to data pattern analysis using deterministic finite automaton. Description of the Related Art Deterministic finite automaton (DFA) or deterministic finite state machine is a set of states tied together by a set of transitions, where transitions specify movement from one state to another based on some input. Thus, a deterministic finite automaton at a given state and for a given input has only one transition to a next state. Examples of such deterministic finite automaton may be designed in hardware or software to produce results based on the state and any input. Some applications for deterministic finite automaton are used in electronic systems, such as network equipment and computer operated systems, to control and run processes. To increase the speed at which a deterministic finite automaton operates on an electronic system current systems load an array into memory for each state of the deterministic finite automaton. Each array contains information on the current state and defines what the next state will be given a certain input. As the number of states and transitions between states of a
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (41)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Watson, Bruce W.
- “
- Practical optimizations for automata.
- ”
- International Workshop on Implementing Automata. Berlin, Heidelberg: Springer Berlin Heidelberg, 1997. (Year: 1997).
- Bernstein, David, Doron Cohen, and Dror E. Maydan.
- “
- Dynamic memory disambiguation for array references.
- ”
- Proceedings of the 27th annual international symposium on Microarchitecture. 1994. (Year: 1994).