Method and apparatus for content matching
A matching method and matching device technology, applied in the field of data processing, can solve the problems of large resource consumption, unfavorable thermal upgrade, performance degradation, etc., and achieve the effects of high matching efficiency, easy upgrade and maintenance, and improved matching speed.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] figure 1 This is a flowchart of the content matching method provided in the first embodiment of the present invention. The content matching method can be specifically applied to various application scenarios, typically such as URL filtering, message filtering, etc., carried by software and / or hardware The content matching device in the server executes it, for example, it is carried by a gateway GPRS support node (Gateway GPRS Support Node, GGSN for short). The method specifically includes the following steps:
[0027] Step 110: The content matching device performs a hash operation on at least one target character string based on the set at least one hash algorithm to obtain each target hash result corresponding to each target character string and each hash algorithm.
[0028] Step 120: The content matching device forms a hash table entry of each target character string according to each target hash result of each target character string, and combines the hash table entries o...
Embodiment 2
[0036] On the basis of the technical solutions of the foregoing embodiments, it is preferable that the number of hash algorithms is at least two, and forming the hash table entry of the target string according to the target hash results of each target string may specifically include: The first target hash result of each target string is used as the hash table entry index, and the other target hash results are used as the hash table entry content; in the above steps, the first measured hash result is selected as the hash table Item index, but in actual application, it is not limited to determine which result is the table item index according to the order of the hash result. The order of the hash algorithm can be set arbitrarily, and the first target hash result obtained can be arbitrarily determined as Hash table entry index.
[0037] Then in step 140, matching is performed in each hash table entry of the hash matching table according to each tested hash result of the tested chara...
Embodiment 3
[0096] image 3 This is a flowchart of the content matching method provided in the third embodiment of the present invention. This embodiment may be based on the above-mentioned embodiment and further includes an upgrade operation of adding a target character string. On the basis of the foregoing process, it also includes the following steps:
[0097] Step 310: The content matching device performs a hash operation on the target character string to be added based on at least one set hash algorithm according to the target character string to be added in the received target character string addition request, to obtain the target character string to be added. The target string of and each target hash result corresponding to each hash algorithm;
[0098] In the above steps, other restrictions on the adding operation can also be set. For example, it is first judged whether the entries of the hash matching table have reached the upper limit, so as to determine whether to allow adding a new...
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