摘要 |
A method of pattern matching is provided, including: determining whether there is flow status information corresponding to a current pattern for a transmission flow to which a current segment belongs; if yes, performing pattern matching for the current segment by taking the flow status information as assistant information of the pattern matching; otherwise, creating the flow status information corresponding to the current pattern for the transmission flow and performing pattern matching for the current segment by taking the flow status information as assistant information of the pattern matching. An apparatus of pattern matching is also provided, including a flow status information configuration module and a pattern matching processing module. The solution of the present invention can avoid the defects caused by flow-reassembly.
|