Method and device for matching messages
A matching method and message technology, applied in the field of communication, can solve the problems of reducing the speed of rule matching and small rule capacity, and achieve the effect of improving the speed of message matching.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] The embodiment of the present invention provides a message matching method, which is applied to a message detection device. The message detection device includes an on-chip memory and an off-chip memory; the on-chip memory is used to store on-chip rules, and the on-chip External memory is used to store off-chip rules; see figure 2 , the message matching method includes the following steps:
[0027] S11. Match the received message using the on-chip rule, if the match is successful, output the match result; if the match is unsuccessful, use the off-chip rule to match, and output the match result;
[0028] S12. Count the matching times of the on-chip rules and the off-chip rules according to the matching results output within a period of time, and output the statistical results;
[0029] S13. Move one or more off-chip rules with a relatively large number of matches to the on-chip memory according to the statistical results, and move one or more on-chip rules with a relat...
Embodiment 2
[0040] On the basis of Embodiment 1, the embodiment of the present invention provides a message matching method, including the following steps:
[0041]S21. Divide the rules into two parts, the on-chip rules and the off-chip rules, the on-chip rules are stored in the on-chip memory, and the off-chip rules are stored in the off-chip memory;
[0042] The rules here are compiled from rule source files (usually regular expressions); each rule is represented by a rule ID (a specific value) before and after compilation.
[0043] In order to keep the device in a relatively optimized state from the beginning, commonly used rules can also be stored in the on-chip memory as on-chip rules. Whether the rules are commonly used can be determined based on historical experience data and actual application conditions. For example, when the device is located in When P2P (Peer to Peer, peer-to-peer) traffic accounts for most of the environment, common P2P rules can be stored in the on-chip memor...
Embodiment 3
[0079] Embodiment 1 of the present invention provides a message detection device 40, see Figure 4 , including an on-chip memory 41 and an off-chip memory 42; the on-chip memory is used to store on-chip rules, and the off-chip memory is used to store off-chip rules; the embodiment of the present invention also includes:
[0080] The message matching unit 43 is used to match the received message using the in-chip rules, and if the match is successful, output the match result; if the match is unsuccessful, use the off-chip rule to match, and output the match result;
[0081] A statistics unit 44, configured to count the matching times of the intra-chip rules and the off-chip rules according to the matching results output within a period of time, and output the statistical results;
[0082] The management unit 45 is configured to move one or more off-chip rules with a relatively large number of matches to the on-chip memory according to the statistical results, and move one or mo...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com