A conflict detection method based on B+ tree and bitmap index fusion tree

Through the fusion tree method of B+ tree and bitmap index, the seven-tuple attributes of the new insertion strategy and the existing strategy are quickly compared, which solves the timeliness and accuracy problems of policy conflict detection in industrial control networks and achieves faster policy conflict detection. Detection effect.

CN114168800BInactive Publication Date: 2024-09-13HARBIN ENG UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111421577.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-26
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In industrial control networks, the configuration of security policies is complex and error-prone. Existing technologies are difficult to detect policy conflicts quickly and accurately, affecting network security consistency and availability.

Method used

The fusion tree method based on B+ tree and bitmap index is used to organize the seven-tuple into a policy tree, quickly compare the attributes of the newly inserted policy and the existing policy, and determine the conflict type, including redundancy, generalization and coverage conflicts.

Benefits of technology

It improves the timeliness and accuracy of policy conflict detection, avoids attribute-by-attribute comparison, achieves faster and more accurate policy conflict detection, and ensures network security consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114168800B
    Figure CN114168800B
Patent Text Reader

Abstract

The present invention belongs to the technical field of index search and conflict detection, and specifically relates to a conflict detection method based on a B+ tree and a bitmap index fusion tree. The present invention establishes the seven-tuple policy of the network security device into a fusion tree. If there are no overlapping attributes, it can be quickly determined whether there is a policy that conflicts with the policy to be inserted by comparing only one attribute, which solves the problem that the consistency detection in the policy conflict cannot quickly improve the timeliness and accuracy. Using the fusion model of B+ tree and bitmap index, the seven-tuple attributes of the newly inserted policy and the existing policy can be quickly compared, avoiding comparing all the attributes. The present invention divides the seven-tuple of the policy through the fusion model of B+ tree and bitmap index, so that the model can more quickly determine the position of the current policy, thereby achieving a more accurate and faster policy conflict detection effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of index search and conflict detection, and in particular relates to a conflict detection method based on a B+ tree and a bitmap index fusion tree. Background Art

[0002] Since there are many types of security devices in industrial control networks, and the description methods of various security policies are different, when the security policies of the entire network are adjusted uniformly, the security administrators need to have high professional knowledge for security policy configuration, which is labor-intensive and error-prone. At the same time, security policies may involve a variety of security devices, hosts, servers, network devices, etc., which may have complex effects on network connectivity and application availability. Due to the huge amount of communication data, the number of security policies will also increase dramatically. In order to ensure the consistency of security policies, it is necessary to effectively and quickly detect conflicts in security policies so as to resolve the detected conflicts. Therefore, whether adding new security policies or processing the feedback results of security policy execution, it is conducive to intelligent optimization of security policies to effectively prevent conflicts, and can quickly and accurately detect type policy conflicts to ensure network security. Summary of the invention

[0003] The object of the present invention is to provide a conflict detection method based on a B+ tree and a bitmap index fusion tree.

[0004] A conflict detection method based on a B+ tree and a bitmap index fusion tree comprises the following steps:

[0005] Step 1: Extract a large number of seven-tuples consisting of protocol, source IP, destination IP, source port, destination port, time, and action from various security devices, and organize these seven-tuples into a policy tree required for subsequent conflict detection training;

[0006] Step 2: When adding a new strategy, define the strategy to be inserted as x, the current root node of the B+ tree as root, and determine the insertion position;

[0007] Step 2.1: First determine whether the root node is full. Each node can contain at most 2*M-1 strategies. If the root node is full, generate a new node node as the new root node of the tree, and add the root as a node to the node. M is the order of the B+ tree.

[0008] Step 2.2: If the root node cannot contain more strategies, use the subtree partitioning method to divide the strategies in the root node into two parts, put the first half of the strategies into a new node, and then add this node to the new root node;

[0009] Step 2.3: Insert strategy x into the unsatisfied root node, first determine whether the current node is a leaf node; if it is not a leaf node, compare the strategy x to be inserted with all strategies in the current node starting from the last one, and once a node smaller than the current strategy is found, first determine whether the node is full, if it is full, directly divide the child, and then compare which child the current strategy should be inserted into; if the current strategy is larger than the first half of the strategy, recursively compare whether the next subtree is a leaf node; if it is already a leaf node and the current node is not full, because if it is full, the current node will be divided into two subtrees when judging the parent node, and the insertion position will be determined accordingly;

[0010] Step 3: After the division, index from bottom to top and insert from top to bottom in order; perform conflict detection on the newly inserted strategy through the fusion tree algorithm model;

[0011] Step 3.1: Compare the currently inserted policy with the policy in the current node; first perform a bitmap index on the protocol attribute, which is equivalent to dividing the B+ tree vertically to determine the fusion tree range where the current policy is located;

[0012] Step 3.2: Compare the size of the source IP again. If the two source IPs are the same, compare the size of the destination IP. If the destination IPs are also the same, compare the size of the source port, and so on.

[0013] Step 4: By comparing the relationship between the various attributes of the seven-tuple, determine whether there is a conflict and what type of conflict it is if so; finally, compare the last attribute action, which means that the current strategy and the comparison strategy have at least some of the same information. If the actions are the same, it is a redundant conflict; if the actions are different, it is divided into three types of conflicts: generalization conflict, coverage conflict and association conflict.

[0014] The beneficial effects of the present invention are:

[0015] The present invention establishes the seven-tuple policy of the network security device into a fusion tree. If there are no overlapping attributes, it is possible to quickly determine whether there is a policy that conflicts with the policy to be inserted by comparing only one attribute, thereby solving the problem that consistency detection in policy conflicts cannot quickly improve timeliness and accuracy. By adopting the fusion model of B+ tree and bitmap index, the seven-tuple attributes of the newly inserted policy and the existing policy can be quickly compared, avoiding comparing all the attributes. The present invention divides the seven-tuple of the policy through the fusion model of B+ tree and bitmap index, so that the model can determine the position of the current policy more quickly, thereby achieving a more accurate and faster policy conflict detection effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0017] The present invention is further described below in conjunction with the accompanying drawings.

[0018] The present invention is to effectively and quickly detect conflicts in security policies and solve the problem of how to quickly detect whether a new policy inserted into a policy library conflicts with an existing policy. In traditional B+ tree conflict detection, a tree is established for each of the multiple attributes and conflict detection is performed on each of the attributes. Although the accuracy of the overall policy conflict is improved, the impact of time performance on conflict detection is ignored, so that the detection efficiency in the conflict detection consistency of policies involving network security devices cannot achieve satisfactory results. The present invention proposes a conflict detection method based on a fusion tree of B+ tree and bitmap index, which can perform conflict detection of a fusion tree for seven-tuple information of different security device policies, greatly improving the time performance of detection and the conflict accuracy performance, thereby achieving the purpose of consistency of network policies.

[0019] Step 1: Extract a large number of seven-tuples consisting of protocol (Protocol), source IP (SourceIP), destination IP (DestIP), source port (SourcePost), destination port (DestPost), time (Time), and action (Action) from various security devices, and organize these seven-tuples into a fusion tree required for subsequent conflict detection training.

[0020] Step 2: When adding a new strategy, define the strategy to be inserted as x, and the current root node of the B+ tree as root.

[0021] Step 3: First determine whether the root node is full. Each node can contain at most 2*M-1 (M is the order of the B+ tree) strategies. If the root node is full, generate a new node node as the new root node of the tree, and add the root as a node to the node. If the root node can no longer hold more strategies, use the method of dividing the subtree to divide the strategies in the root node into two parts, put the first half of the strategies into a new node, and then add this node to the new root node.

[0022] Step 4: Insert strategy x into the unsatisfied root node, and first determine whether the current node is a leaf node. If it is not a leaf node, compare the strategy x to be inserted with all strategies in the current node starting from the last one. Once a node smaller than the current strategy is found, first determine whether the node is full. If it is full, directly divide the child. Then compare which child the current strategy should be inserted into. If the current strategy is larger than the first half of the strategies, recursively compare whether the next subtree is a leaf node; if it is already a leaf node and the current node is not full, because if it is full, the current node will be divided into two subtrees when judging the parent node.

[0023] Step 5: Compare the currently inserted policy with the policy in the current node. First, perform a bitmap index on the protocol attribute, which is equivalent to dividing the B+ tree vertically, determine the fusion tree range where the current policy is located, and determine whether the current policy conflicts with a policy in the current fusion tree.

[0024] Step 6: After the division, index from bottom to top and insert from top to bottom in order. First compare the size of the source IP. If the two source IPs are the same, compare the size of the destination IP. If the destination IPs are also the same, compare the size of the source port, and so on. If the comparison reaches the last attribute action, it means that the current strategy and the comparison strategy have at least part of the same information. If the actions are the same, it is a redundant conflict. If the actions are different, it is divided into three types of conflicts: generalization conflict, coverage conflict, and association conflict.

[0025] Compared with the existing technology, the beneficial effect of the present invention is that the seven-tuple policy of the network security device is established into a fusion tree. If there is no overlapping attribute, it is possible to quickly determine whether there is a policy that conflicts with the policy to be inserted by comparing only one attribute, thereby solving the problem that consistency detection in policy conflicts cannot quickly improve timeliness and accuracy. By adopting the fusion model of B+ tree and bitmap index, the seven-tuple attributes of the newly inserted policy and the existing policy can be quickly compared, avoiding comparing all the attributes. The present invention divides the seven-tuple of the policy through the fusion model of B+ tree and bitmap index, so that the model can determine the position of the current policy more quickly, thereby achieving a more accurate and faster policy conflict detection effect.

[0026] Embodiment 1:

[0027] Figure 1 The following is a flow chart of a conflict detection method based on a B+ tree and a bitmap index fusion tree according to the present invention. The specific implementation of the method includes:

[0028] Step 1: Extract a large number of seven-tuples consisting of protocol (Protocol), source IP (SourceIP), destination IP (DestIP), source port (SourcePost), destination port (DestPost), time (Time), and action (Action) from various security devices, and organize these seven-tuples into a policy tree required for subsequent conflict detection training.

[0029] Step 2: When adding a new strategy, define the strategy to be inserted as x, the current root node of the B+ tree as root, and determine the insertion position.

[0030] Step 2.1: First determine whether the root node is full. Each node can contain at most 2*M-1 (M is the order of the B+ tree) strategies. If the root node is full, generate a new node node as the new root node of the tree, and add the root as a node to the node.

[0031] Step 2.2: If the root node can no longer hold more strategies, use the subtree partitioning method to divide the strategies in the root node into two parts, put the first half of the strategies into a new node, and then add this node to the new root node.

[0032] Step 2.3: Insert strategy x into the unsatisfied root node, first determine whether the current node is a leaf node. If it is not a leaf node, compare the strategy x to be inserted with all strategies in the current node starting from the last one. Once a node smaller than the current strategy is found, first determine whether the node is full. If it is full, directly divide the child. Then compare which child the current strategy should be inserted into. If the current strategy is larger than the first half of the strategy, recursively compare whether the next subtree is a leaf node; if it is already a leaf node and the current node is not full, because if it is full, the current node will be divided into two subtrees when judging the parent node, and the insertion position will be determined.

[0033] Step 3: After the partition, index from bottom to top and insert from top to bottom in order. Through the algorithm model of the fusion tree, conflict detection is performed on the newly inserted strategy.

[0034] Step 3.1: Compare the currently inserted strategy with the strategy in the current node. First, perform a bitmap index on the protocol attribute, which is equivalent to dividing the B+ tree vertically to determine the fusion tree range where the current strategy is located.

[0035] Step 3.2: Compare the size of the source IP again. If the two source IPs are the same, compare the size of the destination IP. If the destination IPs are also the same, compare the size of the source port, and so on.

[0036] Step 4: By comparing the relationship between the attributes of the seven-tuple, determine whether there is a conflict and what type of conflict it is. Finally, if the last attribute action is compared, it means that the current strategy and the comparison strategy have at least some of the same information. If the actions are the same, it is a redundant conflict. If the actions are different, it is divided into three types of conflicts: generalization conflict, coverage conflict and association conflict.

[0037] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A conflict detection method based on B+ tree and bitmap index fusion tree, It is characterized in that The following steps are involved: Step 1: Extract a large number of seven-tuples consisting of protocol, source IP, destination IP, source port, destination port, time, and action from various security devices, and organize these seven-tuples into a policy tree required for subsequent conflict detection training; Step 2: When adding a new strategy, define the strategy to be inserted as x, the current root node of the B+ tree as root, and determine the insertion position; Step 2.1: First determine whether the root node is full. Each node can contain at most 2*M-1 strategies. If the root node is full, generate a new node node as the new root node of the tree, and add the root as a node to the node. M is the order of the B+ tree. Step 2.2: If the root node cannot contain more strategies, use the subtree partitioning method to divide the strategies in the root node into two parts, put the first half of the strategies into a new node, and then add this node to the new root node; Step 2.3: Insert strategy x into the unsatisfied root node. First, determine whether the current node is a leaf node. If it is not a leaf node, compare the strategy x to be inserted with all strategies in the current node starting from the last one. Once a node smaller than the current strategy is found, first determine whether the node is full. If it is full, directly divide the child, and then compare which child the current strategy should be inserted into. If the current strategy is larger than the first half of the strategies, recursively compare whether the next subtree is a leaf node. If it is already a leaf node and the current node is not full, because if it is full, the current node will be divided into two subtrees when judging the parent node, and the insertion position will be determined; Step 3: After the division, index from bottom to top and insert from top to bottom in order; perform conflict detection on the newly inserted strategy through the fusion tree algorithm model; Step 3.1: Compare the currently inserted policy with the policy in the current node; first perform a bitmap index on the protocol attribute, which is equivalent to dividing the B+ tree vertically to determine the fusion tree range where the current policy is located; Step 3.2: Compare the size of the source IP again. If the two source IPs are the same, compare the size of the destination IP. If the destination IPs are also the same, compare the size of the source port, and so on. Step 4: By comparing the relationship between the various attributes of the seven-tuple, determine whether there is a conflict and what type of conflict it is if so; finally, compare the last attribute action, which means that the current strategy and the comparison strategy have at least some of the same information. If the actions are the same, it is a redundant conflict; if the actions are different, it is divided into three types of conflicts: generalization conflict, coverage conflict and association conflict.

Citation Information

Patent Citations

  • Index record management method and device

    CN103714121A

  • Decision tree-based firewall policy conflict detection method

    CN105743871A

  • Security strategy conflict detecting and eliminating method based on Hicuts algorithm

    CN106453387A

  • An index execution method and device

    CN109408515A

  • Index establishment method and device

    US20180276264A1