CN101051321A - Multiple character string matching method and chip - Google Patents

Multiple character string matching method and chip Download PDF

Info

Publication number
CN101051321A
CN101051321A CNA200710099389XA CN200710099389A CN101051321A CN 101051321 A CN101051321 A CN 101051321A CN A200710099389X A CNA200710099389X A CN A200710099389XA CN 200710099389 A CN200710099389 A CN 200710099389A CN 101051321 A CN101051321 A CN 101051321A
Authority
CN
China
Prior art keywords
state
character
buffer memory
transformation rule
rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA200710099389XA
Other languages
Chinese (zh)
Other versions
CN100495407C (en
Inventor
嵩天
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHEAN TECH Co Ltd BEIJING
Original Assignee
ZHEAN TECH Co Ltd BEIJING
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHEAN TECH Co Ltd BEIJING filed Critical ZHEAN TECH Co Ltd BEIJING
Priority to CNB200710099389XA priority Critical patent/CN100495407C/en
Publication of CN101051321A publication Critical patent/CN101051321A/en
Priority to PCT/CN2008/000293 priority patent/WO2008141519A1/en
Application granted granted Critical
Publication of CN100495407C publication Critical patent/CN100495407C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Document Processing Apparatus (AREA)

Abstract

A method for matching multi-character includes seeking next state in conversion rule library according to current state and buffer storage state as ell as current character after current character is received, using state stored according to preset buffer storage rule as said buffer storage state, jumping to next state if seeking is successful, using said next state as current state and repeating above said steps till there is no character to be inputted. The chip used for realizing said method is also disclosed.

Description

A kind of multi-string matching method and chip
Technical field
The present invention relates to field of information processing, particularly a kind of multi-string matching method and chip.
Background technology
Many character strings matching technique also is the multi-key word matching technique, comparative maturity, and be widely used in a lot of fields such as text-processing, information filtering.This technology can be found one or more in predefined one group of character string in the content to be matched of one dimension, in the process of matched text, make full use of one group of characteristic in the character string, carry out pre-service, and carry out content match according to pretreated intermediate data structure, thereby realize coupling one group of predefine character string.
The performance of multiword symbol string matching algorithm is influenced by following several respects mainly: occur the possibility of coupling etc. in the quantity of string assemble (also being rule set, feature set, keyword set), the minimum length of string assemble, the text to be matched.According to the difference of many character strings matching technique to the string assemble preprocess method, correlation matching algorithm can be divided into following three classes:
The prefix algorithm comprises: KMP, AC, Shift-AND, Shift-OR etc.;
The suffix algorithm comprises: Boyer-Moore, Wu-Manber etc.;
The substring pattern algorithm comprises: BDM, BOM, SBDM, SBOM etc.
In network safety filed, there is the content-based Secure Application of a class need utilize many character strings matching technique, the typical case uses as intrusion detection and system of defense, Spam filtering, virus scan and filtration, malicious code scanning and filtration, information filtering etc.The typical use-pattern that this class is used many character strings matching technique is by the packet in the program extracting network, and it is reduced into the data of particular network layer, mate in data according to predefined rule set (as intrusion rule, virus rule, spam rule etc.).
Because the development of the network bandwidth is very rapid, and is in order to satisfy the Secure Application demand of content under the gigabit even the higher network bandwidth, very urgent to the demand of high performance many character strings matching technique.In order to improve constantly the matching performance of many character strings matching technique, some improved software algorithms have appearred, although improved algorithmic match performance improves, increase rate is still very limited, can improve performance 20%-40% than traditional algorithm usually.Only realize that by software above-mentioned existing algorithm can't satisfy the performance requirement of real system to this technology.
In many character strings matching technique of reality is used, have an algorithm to gain great popularity because having the following characteristics: the performance that the performance of coupling and the size of rule base have nothing to do, mate and the minimum length of rule base performance and the relation between rule base and the text to be matched irrelevant, that mate is irrelevant.This software algorithm is called AC (Aho-Corasick) algorithm.
As shown in Figure 1, wherein, circle is represented state, lines are represented transformation rule, 6 states and 16 transformation rules are arranged, and with string assemble P={SIG, SSH} mates and is example, the AC algorithm carries out pre-service with P, to its structure finite-state automata (DFA, Deterministic Finite Automata), by this finite-state automata, to one dimension text (such as SSSIG) to be matched, can read in a character at every turn, and in said structure according to transformational relation, the position of at every turn advancing forward, when arriving S3 or S5 position, algorithm is reported out an effectively coupling.
Although the AC algorithm has above-mentioned advantage, apparent in view defective is arranged also.For P={SIG, the so simple rule set of SSH}, the intermediate structure of this algorithm (being DFA) needs 6 states and 16 transformation rules altogether.Along with the increase of regular quantity in the rule set, the scale of AC algorithm intermediate structure increases progressively the exponentially form, causes the storage space blast, and application is very limited.
Proposed a kind of transformation rule storage means in the prior art in addition, the transformation rule of in the AC algorithm state being taken back the following state of original state and original state can be merged into maximum 256 rules with priority.In actual applications, can reduce the quantity of transformation rule to a certain extent.The transformation rule that this technology is taken back original state with state is decided to be high priority, and the transformation rule of state being taken back the following state of original state is decided to be time priority.Referring to Fig. 2, wherein, circle is represented state, and lines are represented transformation rule, and 14 rules of 6 states are arranged, and describes by priority, and in esse rule is 6, and is as shown in table 1:
Table 1
Rule Current state Input character NextState Priority
R 1 S 2 1 S 3 2
R 2 Free position 1 S 1 1
R 3 S 1 2 S 2 1
R 4 S 4 B S 5 1
R 5 Free position A S 4 1
R 6 Free position Non-1,2, A and B S 0 0
This method does not have to solve the problem that increases the storage space blast along with regular quantity yet, and mating at extensive feature set still needs great space cost.
Along with increasing of malicious code in the network security application, the regular quantity that comprises in the predefined rule set also increases sharply.For example, for the inbreak detection rule storehouse, existing regular quantity surpasses 5,000; For the virus rule, existing regular quantity surpasses 200,000.For this reason, when pursuing the raising matching performance, also need matching technique can handle the extensive rule base matching problem of (rule base that surpasses rule more than 50,000 can be called extensive rule base).Although traditional algorithm can be supported fairly large rule base is carried out many string matchings, to the influence of storage space clearly, reduced matching speed, generally do not have practicality.
Summary of the invention
In order to solve network safety filed at present to the actual demand of many character strings matching technique, promptly high matching speed and to extensive rule set coupling etc. the invention provides a kind of multi-string matching method and chip.Described technical scheme is as follows:
A kind of multi-string matching method, described method comprises:
Steps A: after receiving current character, in the transformation rule storehouse, search next state according to current state, buffer status and described current character; Described buffer status is the state according to default buffer memory rale store;
Step B: after searching successfully, jump to next state, described next state as current state, is returned steps A, until there not being the character input.
Described steps A specifically comprises:
Steps A 1: whether after receiving current character, checking has next state in the basic transformation rule, if having, with described next state cache or empty buffer memory, and carries out described step B according to the buffer memory rule; Otherwise, execution in step A2;
Steps A 2: check in basic transformation rule current state is whether the character of buffer status, reception has next state when being described current character,, with described next state cache or empty buffer memory, and carry out described step B according to the buffer memory rule if having; Otherwise, execution in step A3;
Steps A 3: check in basic transformation rule current state is whether the character of original state, reception has next state when being described current character,, with described next state cache or empty buffer memory, and carry out described step B according to the buffer memory rule if having; Otherwise, jump to original state.
Described default buffer memory rule is specially:
When checking that original state receives current character in basic transformation rule, if there is next state, then with described next state cache, if there is no next state then empties buffer memory.
Also comprise before the described steps A:
Merge the isomorphism path in the basic transformation rule.
Described default buffer memory rule is specially:
If current state is the state of converging, then with described current state buffer memory; If current state is a disengaged position, then take out the buffer status in the buffer memory, and empty buffer memory, if current state is a general state, then buffer memory is not operated.
Described steps A specifically comprises:
After receiving current character, judge the type of current state;
If described current state is the state of converging, according to described default buffer memory rule described current state is stored in the buffer memory, and searches next state according to basic transformation rule;
If described current state is a general state, then search next state according to basic transformation rule;
If described current state is a disengaged position, the buffer status in the buffer memory is taken out, in the transformation rule storehouse, search next state according to described current state, buffer status and current character.
The present invention also provides a kind of many character strings matching chip, and described chip comprises: interface module, status register, buffer status register, transformation rule module and control module.
Described interface module is used to receive the character of input;
Described status register is used to store current state;
Described buffer status register is used for the memory buffers state;
Described transformation rule module is used for store status transformation rule storehouse, and searches next state according to the buffer status of storing in current state of storing in the character of described interface module reception, the described status register and the described buffer status register;
Described control module is used to control that character, the described state of a control register that described interface module normally receives input upgrades current state, described control buffer status register upgrades the state of buffer memory and controls the next state of described transformation rule module searches.
Basic transformation rule in the described transformation rule storehouse is the basic transformation rule behind the merging isomorphism path.
The beneficial effect of technical scheme provided by the invention is:
The present invention proposes a kind of buffer status machine principle,, can eliminate most cross over transition rules and the isomorphism path in the basic transformation rule, solve space blast problem up hill and dale, can effectively reduce space requirement by utilizing buffer status machine principle.
Description of drawings
Fig. 1 is of the prior art based on finite-state automata AC algorithm transformation rule synoptic diagram;
Fig. 2 is the AC algorithm transformation rule synoptic diagram based on finite-state automata band priority of the prior art;
Fig. 3 is the structural representation of finite-state automata of the prior art;
Fig. 4 is the structural representation of buffer status machine provided by the invention;
Fig. 5 is the process flow diagram of the multi-string matching method that provides of the embodiment of the invention 1;
Fig. 6 is the DFA synoptic diagram of the existing AC algorithm construction that provides of the embodiment of the invention 1;
Fig. 7 is that Fig. 6 that the embodiment of the invention 1 provides eliminates the transformation rule synoptic diagram that intersects after the rule;
Fig. 8 is the basic transformation rule synoptic diagram that the embodiment of the invention 2 provides;
Fig. 9 is the transformation rule synoptic diagram of Fig. 8 after merging the isomorphism path that the embodiment of the invention 2 provides;
Figure 10 is the structural drawing of many character strings matching chip of providing of the embodiment of the invention 3.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
The embodiment of the invention determines NextState by the current input character of reference, current state and buffer status when carrying out many string matchings, thereby avoids the problem of storage space blast.
In order to satisfy demand to the extensive many character strings matching technique of high speed, present embodiment provides a kind of multi-string matching method, this method is characterized in based on buffer status machine principle: the performance of coupling and the size of rule base are irrelevant, the performance of coupling is irrelevant with the minimum length of rule base, the performance and the relation between rule base and the text to be matched of coupling have nothing to do, can support extensive rule set, along with the increase storage space sublinear increase of regular quantity.
Buffer status machine principle: the buffer status machine is a model method, and design philosophy derives from definite finite-state automata DFA.Referring to Fig. 3, each DFA has a current state in status register, finds out the transformation rule of this character correspondence according to input character and current state by the state transition rules storehouse, enters next state, and next state is deposited in the status register.In the character late arrival, " next state " becomes " current state ".DFA can carry out state exchange according to the data structure of inside under the driving of input character.Principal feature is: its next state is only determined by the character of current state and current input.
Referring to Fig. 4, buffer status machine (CDFA, Cached Deterministic Finite Automata) also comprises a buffer status register except comprising a status register and state transition rules storehouse, be used for the memory buffers state.In the buffer status machine, the next state of current state is by character and three parameter decisions of buffer status of current state, current input, next buffer status does not need outside input by the internal mechanism decision of buffer status machine, can be according to the specific needs flexible customization of buffer status machine.
Variation has taken place in CDFA on the built-in function mode of state machine, the external interface of CDFA is consistent with DFA.
The definition of CDFA:
CDFA can be defined as one eight tuple, cM={K, ∑, N, C, s0, F, δ, θ }, buffer area C (N) expression, wherein,
K is the finite state collection;
∑ is a character list;
S0 represents original state;
N is the spatial cache size that CDFA safeguards, the i.e. state number of buffer memory;
C is the spatial cache that CDFA safeguards;
F  K is the final state collection;
δ is a state transition function, δ: K * K N* ∑ → K;
θ is the buffer status function, is used for describing the buffer memory rule, and promptly the decision state is placed into the rule of buffer area, θ: K * ∑ → C.
With Fig. 1 is example, and the transformation rule among the figure (lines of band arrow) is divided into four classes, is described below:
Basic transformation rule: the lines at numbering 1,2,3,4,5 places are the paths that correctly receive rule set;
Cross over transition rule: number the lines at 6 places, the path of between a plurality of regular paths, changing;
Restart transformation rule: the lines at numbering 8,9,10,11 places, get back to the path of a state after the original state;
The failure transformation rule: numbering 7,12,13,14, the lines at 15,16 places are got back to the path of original state.
The formalized description of this four rule-like is as follows:
The AC algorithm of realizing based on DFA can cause the problem that increases the storage space blast along with rule when carrying out many string matchings, the space blast derives from three class transformation rules---the cross over transition rule, restart transformation rule and failure transformation rule.Wherein, the method for band priority of the prior art can be controlled at the quantity of restarting transformation rule and failure transformation rule within 256.
Embodiment 1
Present embodiment provides a kind of multi-string matching method, this method is specially based on buffer status machine principle, is principal feature to eliminate the cross over transition rule, multi-string matching method.Simultaneously, this method also can all be eliminated with the failure transformation rule restarting transformation rule.Referring to Fig. 5, with current state S i, the current K that is input as, it is that example describes that store status is counted N=1, this method may further comprise the steps:
Step 101: according to the buffer memory rule of applicable cases definition buffer status machine, i.e. buffer status function.
The buffer memory rule of present embodiment is specifically described with buffer status function (being θ), is specially: after current state receives current character, if original state S 0Receiving current character has next state in basic transformation rule, then next state is deposited among the buffer memory C (1); If S 0Receiving current character does not have next state in basic transformation rule, then buffer memory C (1) is emptied.
Step 102: the inspection current state is S i, when the character that receives is K, whether there is next state in the basic transformation rule, if, execution in step 103; Otherwise, execution in step 104.
Step 103: find that next state is S in the basic transformation rule j, jump to next state S j, and carry out state cache, if i.e.: original state S according to the buffer status function 0Receiving character K has next state in basic transformation rule, then next state is deposited among the buffer memory C (1); If S 0Receiving character K does not have next state in basic transformation rule, then buffer memory C (1) is emptied.
Step 104: check among the buffer memory C (1) whether have buffer status, if, execution in step 105; Otherwise, execution in step 107.
The state of buffer memory is Sc among step 105: the buffer memory C (1).
Step 106: the inspection current state is Sc, when the character that receives is K, whether has next state in the basic transformation rule, if, execution in step 103; Otherwise, execution in step 107.
Step 107: check original state S 0After receiving character K, in basic transformation rule, whether there is next state, if, execution in step 108; Otherwise execution in step 109.
Step 108: the next state Sm that will find according to the buffer memory rule carries out buffer memory, and jumps to state Sm.
Step 109: jump to original state S 0
With P={slice, cross} is an example, the DFA of AC algorithm construction as shown in Figure 6, basic transformation rule, is restarted transformation rule and failure transformation rule at the cross over transition rule.If text to be matched is croslice, use the method that present embodiment provides, referring to Fig. 7, detailed process is as follows:
Original state S 0After receiving character c, execution in step 103 will jump to state S according to basic transformation rule 1
State S 1After receiving character r, execution in step 103 will jump to state S according to basic transformation rule 2
In like manner, state S 2After receiving character o, execution in step 103 jumps to state S 3
As state S 3After receiving character s, will jump to state S according to basic transformation rule 4, according to step 102 and step 103, with state S 6Be buffered among the C (1);
State S 4To receive character l,,, learn state S execution in step 104, step 105 and step 106 according to above method 6After receiving character l, jump to state S 7, and empty buffer memory C (1);
In like manner, as state S 7After receiving i, jump to state S 8, state S 8After receiving character c, jump to state S 9, state S 9After receiving character e, jump to state S 10, finish the coupling of the text.Wait for the input of character late, if the input of new character, will be according to the step rebound S0 of front or the following state of S0, thus begin new coupling.
More than describing is at N=1, promptly only utilizes a storage space among the CDFA, can state of buffer memory.This method also can be applied to the situation of N>1, and method is similar, repeats no more.
Embodiment 2
Present embodiment provides a kind of multi-string matching method, based on buffer status machine principle, is principal feature with isomorphism path folding, multi-string matching method.
Earlier existing basic transformation rule is merged the operation in isomorphism path, with P={betters, pattern} is an example, referring to Fig. 8, DFA figure (wherein do not comprise and restart transformation rule and failure transformation rule) for the AC algorithm construction needs 14 basic transformation rules and 15 states, state S altogether 2-S 5With state S 9-S 12Having identical character, promptly all is to receive character string " tter ", and this form is called the isomorphism path.For the isomorphism path, adopt the buffer status machine that it is merged.
Referring to Fig. 9, be the synoptic diagram of the buffer status machine of Fig. 8 after merging, it is the state S of a state that next state is converged 1With state S 8Being called the state of converging, is the state S of two states with next state 6Be called disengaged position, all the other states are called normal state.Wherein, 5 states and 4 basic transformation rules are removed, and the overhead that needs is that the storage of a unit (a state storage space) is as buffer memory (figure Zhong $P position), the further like this space of having saved.
The rule of buffer status function (being θ): if current C DFA is when converging state, then this state of converging is deposited among the C (X), wherein C (X) expression is applied to the spatial cache of this method, and the size of present embodiment C (X) is 1 unit; If current C DFA is in disengaged position, then the state with storage among the C (X) takes out; When normal state, C (X) is not operated.
With current state S i, the current K that is input as, it is that example describes that store status is counted N=1, judges the classification of state Si: converge state, disengaged position, normal state;
If converge state, then Si is deposited among the buffer memory C (X);
If disengaged position is then taken out the state among the buffer memory C (X), and is emptied C (X);
If general state is not done any operation.
After finishing merging isomorphism path, as state S iWhen receiving character K, will carry out many string matchings by the following method:
At first, judge the classification of Si: converge state, disengaged position, normal state;
If converge state and general state, C (X) does not participate in determining next state, finds next state according to basic transformation rule;
If disengaged position is taken out the state among the buffer memory C (X), establishing this state is Sj; Searching with Si according to Si, Sj and k then is the transformation rule storehouse of starting point, judges next state.
With Fig. 9 is example, and current state is S 6, the character of receiving is n, if the state of buffer memory is S 1, then next state is S 7If the state of buffer memory is S 8, search the transformation rule storehouse, there is not next state, the rebound original state.
Transformation rule and other states that with the disengaged position are starting point are that the transformation rule of starting point is different, and this class transformation rule Rule of judgment has three: current state, converge state and input character.
Embodiment 3
Referring to Figure 10, present embodiment provides a kind of many character strings matching chip, and this chip comprises: interface module, status register, buffer status register, transformation rule module and control module.
Wherein, interface module is used to receive the character of input;
Status register is used to store current state;
The buffer status register is used for the memory buffers state, and buffer status is N, and N can be 1 or other numerical value;
The transformation rule module is used for store status transformation rule storehouse, and the buffer status of storing in current state of storing in the character that receives according to interface module, status register and the buffer memory status register is searched next state;
Control module is used for character, state of a control register that the control interface module normally receives input and upgrades current state, control buffer status register and upgrade the state and the control transformation rule module of buffer memory and search next state.
Basic transformation rule in the transformation rule storehouse is the basic transformation rule behind the merging isomorphism path, merges the isomorphism route method with embodiment 2, repeats no more here.
Above embodiment utilizes buffer status machine principle, can eliminate most cross over transition rules, as eliminate in the whole transformation rules of ClamAV virus rule base 95.9% transformation rule, eliminate in its cross over transition rule 96.9% cross over transition rule, 79.2% transformation rule in the whole transformation rules in elimination Snort inbreak detection rule storehouse, eliminate in its cross over transition rule 89.9% cross over transition rule, thereby solve space blast problem completely.In addition, the present invention utilizes buffer status machine principle, carry out the merging in isomorphism path, can reduce basic transformation rule quantity, as eliminate in the Snort inbreak detection rule storehouse 78.6% of basic transformation rule, thereby realize that storage space increases along with regular quantity increases sublinear, can effectively reduce space requirement.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a multi-string matching method is characterized in that, described method comprises:
Steps A: after receiving current character, in the transformation rule storehouse, search next state according to current state, buffer status and described current character; Described buffer status is the state according to default buffer memory rale store;
Step B: after searching successfully, jump to next state, described next state as current state, is returned steps A, until there not being the character input.
2. multi-string matching method as claimed in claim 1 is characterized in that, described steps A specifically comprises:
Steps A 1: whether after receiving current character, checking has next state in the basic transformation rule, if having, with described next state cache or empty buffer memory, and carries out described step B according to the buffer memory rule; Otherwise, execution in step A2;
Steps A 2: check in basic transformation rule current state is whether the character of buffer status, reception has next state when being described current character,, with described next state cache or empty buffer memory, and carry out described step B according to the buffer memory rule if having; Otherwise, execution in step A3;
Steps A 3: check in basic transformation rule current state is whether the character of original state, reception has next state when being described current character,, with described next state cache or empty buffer memory, and carry out described step B according to the buffer memory rule if having; Otherwise, jump to original state.
3. multi-string matching method as claimed in claim 1 or 2 is characterized in that, described default buffer memory rule is specially:
When checking that original state receives current character in basic transformation rule, if there is next state, then with described next state cache, if there is no next state then empties buffer memory.
4. multi-string matching method as claimed in claim 1 is characterized in that, also comprises before the described steps A:
Merge the isomorphism path in the basic transformation rule.
5. multi-string matching method as claimed in claim 4 is characterized in that, described default buffer memory rule is specially:
If current state is the state of converging, then with described current state buffer memory; If current state is a disengaged position, then take out the buffer status in the buffer memory, and empty buffer memory, if current state is a general state, then buffer memory is not operated.
6. multi-string matching method as claimed in claim 5 is characterized in that, described steps A specifically comprises:
After receiving current character, judge the type of current state;
If described current state is the state of converging, according to described default buffer memory rule described current state is stored in the buffer memory, and searches next state according to basic transformation rule;
If described current state is a general state, then search next state according to basic transformation rule;
If described current state is a disengaged position, the buffer status in the buffer memory is taken out, in the transformation rule storehouse, search next state according to described current state, buffer status and current character.
7. character string matching chip more than a kind is characterized in that, described chip comprises: interface module, status register, buffer status register, transformation rule module and control module;
Described interface module is used to receive the character of input;
Described status register is used to store current state;
Described buffer status register is used for the memory buffers state;
Described transformation rule module is used for store status transformation rule storehouse, and searches next state according to the buffer status of storing in current state of storing in the character of described interface module reception, the described status register and the described buffer status register;
Described control module is used to control that character, the described state of a control register that described interface module normally receives input upgrades current state, described control buffer status register upgrades the state of buffer memory and controls the next state of described transformation rule module searches.
8. many character strings matching chip as claimed in claim 7 is characterized in that, the basic transformation rule in the described transformation rule storehouse is the basic transformation rule behind the merging isomorphism path.
CNB200710099389XA 2007-05-18 2007-05-18 Multiple character string matching method and chip Expired - Fee Related CN100495407C (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNB200710099389XA CN100495407C (en) 2007-05-18 2007-05-18 Multiple character string matching method and chip
PCT/CN2008/000293 WO2008141519A1 (en) 2007-05-18 2008-02-03 Method and chip structure for matching multi-character string

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200710099389XA CN100495407C (en) 2007-05-18 2007-05-18 Multiple character string matching method and chip

Publications (2)

Publication Number Publication Date
CN101051321A true CN101051321A (en) 2007-10-10
CN100495407C CN100495407C (en) 2009-06-03

Family

ID=38782733

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200710099389XA Expired - Fee Related CN100495407C (en) 2007-05-18 2007-05-18 Multiple character string matching method and chip

Country Status (2)

Country Link
CN (1) CN100495407C (en)
WO (1) WO2008141519A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008141519A1 (en) * 2007-05-18 2008-11-27 Beijing Zhean Technology Corporation Method and chip structure for matching multi-character string
CN101901257A (en) * 2010-07-21 2010-12-01 北京理工大学 Multi-string matching method
CN104361097A (en) * 2014-11-21 2015-02-18 国家电网公司 Real-time detection method for electric power sensitive mail based on multimode matching
CN104714951A (en) * 2013-12-13 2015-06-17 世纪禾光科技发展(北京)有限公司 Parallel multi-pattern matching method and system
CN107967219A (en) * 2017-11-27 2018-04-27 北京理工大学 A kind of extensive character string high-speed searching method based on TCAM
CN108133052A (en) * 2018-01-18 2018-06-08 广州汇智通信技术有限公司 A kind of searching method of multiple key, system, medium and equipment
CN110222143A (en) * 2019-05-31 2019-09-10 北京小米移动软件有限公司 Character string matching method, device, storage medium and electronic equipment

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445891A (en) * 2016-08-09 2017-02-22 中国科学院计算技术研究所 Method and device for accelerating string matching algorithm
CN111078963B (en) * 2019-12-31 2023-08-15 奇安信科技集团股份有限公司 Method and device for converting NFA (network File Access) into DFA (distributed File Access)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4241402A (en) * 1978-10-12 1980-12-23 Operating Systems, Inc. Finite state automaton with multiple state types
US6961693B2 (en) * 2000-04-03 2005-11-01 Xerox Corporation Method and apparatus for factoring ambiguous finite state transducers
JP3827067B2 (en) * 2001-03-29 2006-09-27 Kddi株式会社 Finite state automaton generator
CN100361128C (en) * 2006-01-13 2008-01-09 清华大学 Multi-keyword matching method for text or network content analysis
CN100495407C (en) * 2007-05-18 2009-06-03 北京哲安科技有限公司 Multiple character string matching method and chip

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008141519A1 (en) * 2007-05-18 2008-11-27 Beijing Zhean Technology Corporation Method and chip structure for matching multi-character string
CN101901257A (en) * 2010-07-21 2010-12-01 北京理工大学 Multi-string matching method
CN101901257B (en) * 2010-07-21 2012-07-04 北京理工大学 Multi-string matching method in a search engine
CN104714951A (en) * 2013-12-13 2015-06-17 世纪禾光科技发展(北京)有限公司 Parallel multi-pattern matching method and system
CN104361097A (en) * 2014-11-21 2015-02-18 国家电网公司 Real-time detection method for electric power sensitive mail based on multimode matching
CN107967219A (en) * 2017-11-27 2018-04-27 北京理工大学 A kind of extensive character string high-speed searching method based on TCAM
CN107967219B (en) * 2017-11-27 2021-08-06 北京理工大学 TCAM-based large-scale character string high-speed searching method
CN108133052A (en) * 2018-01-18 2018-06-08 广州汇智通信技术有限公司 A kind of searching method of multiple key, system, medium and equipment
CN110222143A (en) * 2019-05-31 2019-09-10 北京小米移动软件有限公司 Character string matching method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2008141519A1 (en) 2008-11-27
CN100495407C (en) 2009-06-03

Similar Documents

Publication Publication Date Title
CN101051321A (en) Multiple character string matching method and chip
CN1794236A (en) Efficient CAM-based techniques to perform string searches in packet payloads
CN1139884C (en) Method and device for information treatment and storage medium for storaging and impelementing said method program
US8397285B2 (en) Multi-pattern packet content inspection mechanisms employing tagged values
JP4598127B2 (en) Stateful packet content matching mechanism
US20100179929A1 (en) SYSTEM FOR FINDING QUERIES AIMING AT TAIL URLs
CN1308826C (en) System and method for CPI scheduling in SMT processor
CN1195279C (en) Method and device for comparison of schema range of software management tree
CN1890669A (en) Incremental search of keyword strings
CN1193779A (en) Method for dividing sentences in Chinese language into words and its use in error checking system for texts in Chinese language
CN101039271A (en) Method and apparatus for taking effect rules of access control list
CN1492361A (en) Processing method for embedded data bank searching
CN1141666C (en) Online character recognition system for recognizing input characters using standard strokes
CN1543150A (en) Packet classification apparatus and method using field level tries
CN1716246A (en) Multi-column multi-data type internationalized sort extension method for WEB applications
CN1901549A (en) Data transmission method, device, data processing method and data transmission system
CN1879354A (en) Network message processing using inverse pattern matching
CN1924816A (en) Method and apparatus for improving speed of multi-core system accessing critical resources
CN1400546A (en) Protocal mode recognizing method and device for protocol data unit
CN101030897A (en) Method and apparatus for matching mode in invading detection
CN1852261A (en) Method for maintenance of neighbor entry
CN101055574A (en) Domain name information storage and inquiring method and system
CN1870498A (en) Adaptive multi-model matching method and system
Wang et al. Strifa: Stride finite automata for high-speed regular expression matching in network intrusion detection systems
CN1719769A (en) Method for classifying received data pocket in network apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090603

Termination date: 20110518