Policy rule matching query tree generating method, matching method and device
A strategy configuration and matching method technology, applied in the field of computer networks, can solve the problem of not being able to meet the needs of high efficiency and high accuracy of routing addressing, and achieve the effect of convenient matching and flexible formulation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0061] like figure 1 As shown, it is a principle flowchart of the policy rule matching query tree generation method provided by Embodiment 1 of the present invention, specifically as follows:
[0062] Step 11, set the current node position S as the node root, and set the current character C as the first character of the string to be added to the query tree.
[0063] As mentioned above, in the integrated network, a large number of rich policy rules can be set based on UTAG+STAG, that is, the information of the leaf nodes proposed in the embodiment of the present invention, each leaf node is a form of (UTAG, STAG) policy rules. A (STAG, UTAG) will be generated every time the user accesses the service, and whether these policy rules allow the user to access the resource is queried through the method of the embodiment of the present invention. For the query tree in this embodiment, the first step of adding the string information that needs to be added to the query tree accuratel...
Embodiment 2
[0075] like figure 2 As shown, the embodiment of the present invention provides a policy rule matching method, specifically as follows:
[0076] Step 21, set the current node position S as the node root, and set the current character C as the first character of the character string to be matched in the query tree.
[0077]The process of policy matching is similar to the process of query tree generation. It is a cyclic process of matching and comparing each character in the string that needs to be matched in the query tree one by one in the query tree. First, you need to set the current node position S as the node root, that is, the root node. Then set the current character C as the first character of the string to be matched in the query tree, and start matching the first character.
[0078] Step 22, compare the current character C with the lower-level nodes of node S, if there are nodes n1, n2, ... nk equal to character C in the lower-level nodes of node S, then set the cu...
Embodiment 3
[0105] like Figure 4 As shown, the embodiment of the present invention provides a policy rule matching device, the device includes a setting unit 31, a matching unit 32 and a judging unit 33, wherein,
[0106] The setting unit 31 is configured to set the current node position S as the node root, and the current character C as the first character of the character string to be matched in the query tree.
[0107] The matching unit 32 is used to compare the current character C with the lower-level node of the node S. If the lower-level node of the node S has nodes n1, n2, ... nk equal to the character C, the setting unit 31 is notified to set the current The node positions S are respectively set as nodes n1, n2, . . . nk.
[0108] Judgment unit 33, for judging whether the current character C is the last character of the character string that needs to be matched in the query tree, if not the last character, notify the setting unit 31 to set the current character C as the characte...
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