Data processing method and system for network attack

By generating a threshold interval based on the number of parent nodes and child nodes, malicious nodes are judged and eliminated, which solves the problem of frequent topology changes in the RPL protocol, implements an effective method to combat network attacks, and ensures network stability and security.

CN118713863APending Publication Date: 2024-09-27HUIZHIAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410694722.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The RPL protocol has security risks in IoT networking. Black hole attacks and sinkhole attacks cause frequent topology changes by tampering with the node's RANK value, making it unable to work properly. There is a lack of effective data processing methods to combat network attacks.

Method used

By generating the first threshold and the second threshold based on the number of parent nodes and the number of child nodes, a buffer interval is constructed to determine whether the RANK value of the target node is within the interval. If not, it is determined to be a malicious node and removed from the RPL topology, and the behavior is used The data trains the malicious node prediction model to prevent frequent topology changes.

Benefits of technology

It effectively avoids frequent changes in RPL topology, prevents network attacks, and ensures network stability and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713863A
    Figure CN118713863A
Patent Text Reader

Abstract

The invention provides a data processing method and system for network attacks, and the method comprises the steps: generating a first threshold value and a second threshold value for a target node whose rank value changes based on the current rank value of the target node, the first threshold value being generated based on the number of father nodes of the target node, and the second threshold value being generated based on the number of father nodes of the target node; the second threshold value is generated based on the number of child nodes of the target node; determining a buffer area formed by the first threshold value and the second threshold value, and judging whether the current rank value of the target node is located in the buffer area; and if the current rank value of the target node is located outside the buffer area, judging that the target node is a malicious node, and removing the target node from the current RPL topology. According to the technical scheme provided by the invention, network attacks can be effectively resisted, and frequent change of RPL topology is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a data processing method and system for network attacks. Background Art

[0002] Many current IoT networking protocols use the RPL protocol, which is low-power and simple. However, the RPL protocol has many security risks. In the RPL protocol, each node has a RANK value, which determines the position of each node in the topology. Black hole attacks and sinkhole attacks use malicious nodes to deliberately tamper with the RANK value, causing the RPL topology to keep changing and unable to work properly.

[0003] In view of this, there is a need for a data processing method that can effectively counter network attacks. Summary of the invention

[0004] The present invention provides a data processing method and system for network attacks, which can effectively resist network attacks and avoid frequent changes in RPL topology.

[0005] In view of this, the present invention provides a data processing method for network attacks on one hand, the method comprising:

[0006] For a target node whose rank value changes, a first threshold and a second threshold are generated based on the current rank value of the target node, wherein the first threshold is generated based on the number of parent nodes of the target node, and the second threshold is generated based on the number of child nodes of the target node;

[0007] Determine a buffer zone formed by the first threshold and the second threshold, and determine whether the current rank value of the target node is within the buffer zone;

[0008] If the current rank value of the target node is outside the buffer zone, the target node is determined to be a malicious node, and the target node is removed from the current RPL topology.

[0009] In one embodiment, the first threshold is generated in the following manner:

[0010]

[0011] Among them, D(r,N p ) represents the first threshold, α represents a preset tolerance parameter, β represents a preset simulation parameter, r represents the current rank value of the target node, N p Indicates the number of parent nodes of the target node.

[0012] In one embodiment, the second threshold is generated in the following manner:

[0013]

[0014] Among them, I(r,N p ) represents the second threshold, α represents the preset tolerance parameter, r represents the current rank value of the target node, N d Indicates the number of child nodes of the target node.

[0015] In one embodiment, after determining that the target node is a malicious node, the method further includes:

[0016] The behavior data of the target node is obtained and used as a training sample. After adding a behavior label representing a malicious node to the behavior data, the training sample with the behavior label is added to a training sample set to train a malicious node prediction model through the training sample set.

[0017] In one embodiment, the method further comprises:

[0018] If the current rank value of the target node is within the buffer zone, the RPL topology is updated based on the current rank value of the target node, and routing forwarding is performed based on the updated RPL topology.

[0019] Another aspect of the present invention provides a data processing system for network attacks, the system comprising:

[0020] A threshold generating unit, for generating a first threshold and a second threshold based on the current rank value of a target node whose rank value has changed, wherein the first threshold is generated based on the number of parent nodes of the target node, and the second threshold is generated based on the number of child nodes of the target node;

[0021] An interval determination unit, used to determine a buffer interval formed by the first threshold and the second threshold, and determine whether the current rank value of the target node is within the buffer interval;

[0022] The node removal unit is used to determine that the target node is a malicious node if the current rank value of the target node is outside the buffer zone, and remove the target node from the current RPL topology.

[0023] In one embodiment, the threshold generating unit generates the first threshold in the following manner:

[0024]

[0025] Among them, D(r,N p ) represents the first threshold, α represents a preset tolerance parameter, β represents a preset simulation parameter, r represents the current rank value of the target node, N p Indicates the number of parent nodes of the target node.

[0026] In one embodiment, the threshold generating unit generates the second threshold in the following manner:

[0027]

[0028] Among them, I(r,N p ) represents the second threshold, α represents the preset tolerance parameter, r represents the current rank value of the target node, N d Indicates the number of child nodes of the target node.

[0029] The technical solution provided by the present application uses the first threshold and the second threshold to construct a buffer zone, which can effectively limit the change of the rank value. If the changed rank value is within the buffer zone, it can be considered as a normal rank value update behavior. However, if the changed rank value is outside the buffer zone, it indicates that the current node is a malicious node. Removing malicious nodes from the RPL topology can avoid frequent changes in the RPL topology, thereby effectively counteracting network attacks.

[0030] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.

[0031] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0033] Figure 1 A schematic diagram of the steps of a data processing method for network attacks according to an embodiment of the present invention;

[0034] Figure 2 The figure is a schematic diagram of functional modules of a data processing system for network attacks according to an embodiment of the present invention. DETAILED DESCRIPTION

[0035] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0036] See also Figure 1 One embodiment of the present application provides a data processing method for network attacks, the method comprising:

[0037] S1: For a target node whose rank value has changed, generate a first threshold and a second threshold based on the current rank value of the target node, wherein the first threshold is generated based on the number of parent nodes of the target node, and the second threshold is generated based on the number of child nodes of the target node;

[0038] S2: Determine a buffer zone formed by the first threshold and the second threshold, and determine whether the current rank value of the target node is within the buffer zone;

[0039] S3: If the current rank value of the target node is outside the buffer zone, the target node is determined to be a malicious node, and the target node is removed from the current RPL topology.

[0040] In one embodiment, the first threshold is generated in the following manner:

[0041]

[0042] Among them, D(r,N p ) represents the first threshold, α represents a preset tolerance parameter, β represents a preset simulation parameter, r represents the current rank value of the target node, N p Indicates the number of parent nodes of the target node.

[0043] In one embodiment, the second threshold is generated in the following manner:

[0044]

[0045] Among them, I(r,N p ) represents the second threshold, α represents the preset tolerance parameter, r represents the current rank value of the target node, N d Indicates the number of child nodes of the target node.

[0046] Through the above calculation method, no matter how the rank value changes, the first threshold and the second threshold will approach their respective critical values, so that a fixed buffer zone can be determined by the first threshold and the second threshold. If the current changed rank value of the target node is within the buffer zone, it can be shown that this is a normal rank value update behavior. However, if the changed rank value is outside the buffer zone, the target node can be judged as a malicious node.

[0047] In one embodiment, after determining that the target node is a malicious node, the method further includes:

[0048] The behavior data of the target node is obtained and used as a training sample. After adding a behavior label representing a malicious node to the behavior data, the training sample with the behavior label is added to a training sample set to train a malicious node prediction model through the training sample set.

[0049] By collecting a large amount of malicious node behavior data, a malicious node prediction model can be trained through machine learning. Subsequently, as long as the behavior data of a node over a period of time is input into the malicious node prediction model, the judgment result of the node can be output. Among them, the behavior data can be the update of the rank value of the node within a certain period of time. During the training process, if the judgment result output by the malicious node prediction model is inconsistent with the result of the behavior label, error information can be generated, and the model can be corrected using the error information.

[0050] In one embodiment, the method further comprises:

[0051] If the current rank value of the target node is within the buffer zone, the RPL topology is updated based on the current rank value of the target node, and routing forwarding is performed based on the updated RPL topology.

[0052] That is to say, if the target node is judged to be a normal node, the RPL topology can be updated according to the actual rank value of the target node, and this update is considered to be a reasonable dynamic update.

[0053] In one embodiment, since the target node rank value changes, the number of its parent nodes and child nodes may also change. For the case where the number of parent nodes and child nodes has not changed, the above-mentioned first threshold and second threshold method is effective in determining whether it is a malicious node. However, when the number of parent nodes and child nodes changes, the above-mentioned determination method may fail, thereby missing malicious attack nodes, causing the RPL topology to keep changing, making the system unable to work normally. In order to avoid the above situation, when it is found that the number of parent nodes or child nodes has changed and the rank value of the target node has also changed, the following algorithm is used to determine whether the target node is a malicious node, as follows:

[0054] When the number of parent nodes or child nodes of the target node changes and the rank value of the target node also changes, the following steps are used to determine whether the target node is a malicious node, as follows:

[0055] Step 1: Assume that the number of parent nodes of the target node after the change is N p ′ , the number of child nodes of the target node after the change is N d ′ , the current rank value of the target node is r; then the loop detection value of the target node level after the change is:

[0056]

[0057] Where H is the target node level loop detection value after the change, R is the node level of the target node, and R(P) is the target node after the change. p ′ The level of the nearest parent node among the parent nodes. The node level can be obtained through the RPL topology. When H is 1, it indicates that the target node loop detection fails. When H is 0, it indicates that the target node loop detection passes.

[0058] Step 2: When the target node level loop detection value calculated in step 1 is 1, determine whether the current node is a malicious node. The determination formula is as follows:

[0059]

[0060] where f H1 is the judgment value for judging whether the current node is a malicious node when the target node level loop detection value calculated in step 1 is 1, k is an empirical parameter, which is flexibly set according to the situation of historical malicious nodes; when f H1 If the value is greater than the first preset value, the current node is determined to be a malicious node, otherwise it is determined that the current node is not a malicious node;

[0061] Step 3: When the target node level loop detection value calculated in step 1 is 0, determine whether the current node is a malicious node. The determination formula is as follows:

[0062]

[0063] Among them, f H0 is the judgment value for judging whether the current node is a malicious node when the target node level loop detection value calculated in step 1 is 0, and t is the verification parameter; when f H0 When the value is greater than the second preset value, it is determined that the current node is a malicious node; otherwise, it is determined that the current node is not a malicious node.

[0064] Among them, k, t, the first preset value, and the second preset value can be adjusted according to actual conditions. For example, the value range of k can be greater than 0 and less than 1, and the value range of t can be greater than 0.5 and less than 1; at this time, the first preset value can be 1, and the second preset value can be 0.5.

[0065] This algorithm accurately judges whether a target node is a malicious node when the number of parent nodes or child nodes changes and the rank value of the target node also changes based on information such as the number of parent nodes, the number of child nodes, and the node level after the change, so as to avoid missing malicious attack nodes, causing the RPL topology to keep changing and the system to fail to work properly.

[0066] See also Figure 2 Another aspect of the present invention provides a data processing system for network attacks, the system comprising:

[0067] A threshold generating unit, for generating a first threshold and a second threshold based on the current rank value of a target node whose rank value has changed, wherein the first threshold is generated based on the number of parent nodes of the target node, and the second threshold is generated based on the number of child nodes of the target node;

[0068] An interval determination unit, used to determine a buffer interval formed by the first threshold and the second threshold, and determine whether the current rank value of the target node is within the buffer interval;

[0069] The node removal unit is used to determine that the target node is a malicious node if the current rank value of the target node is outside the buffer zone, and remove the target node from the current RPL topology.

[0070] In one embodiment, the threshold generating unit generates the first threshold in the following manner:

[0071]

[0072] Among them, D(r,N p ) represents the first threshold, α represents a preset tolerance parameter, β represents a preset simulation parameter, r represents the current rank value of the target node, N p Indicates the number of parent nodes of the target node.

[0073] In one embodiment, the threshold generating unit generates the second threshold in the following manner:

[0074]

[0075] Among them, I(r,N p ) represents the second threshold, α represents the preset tolerance parameter, r represents the current rank value of the target node, N d Indicates the number of child nodes of the target node.

[0076] The technical solution provided by the present application uses the first threshold and the second threshold to construct a buffer zone, which can effectively limit the change of the rank value. If the changed rank value is within the buffer zone, it can be considered as a normal rank value update behavior. However, if the changed rank value is outside the buffer zone, it indicates that the current node is a malicious node. Removing malicious nodes from the RPL topology can avoid frequent changes in the RPL topology, thereby effectively counteracting network attacks.

[0077] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A data processing method for network attacks, It is characterized in that The method comprises: For a target node whose rank value changes, a first threshold and a second threshold are generated based on the current rank value of the target node, wherein the first threshold is generated based on the number of parent nodes of the target node, and the second threshold is generated based on the number of child nodes of the target node; Determine a buffer zone formed by the first threshold and the second threshold, and determine whether the current rank value of the target node is within the buffer zone; If the current rank value of the target node is outside the buffer zone, the target node is determined to be a malicious node, and the target node is removed from the current RPL topology.

2. The method according to claim 1, It is characterized in that The first threshold is generated in the following manner: Among them, D(r,N p ) represents the first threshold, α represents a preset tolerance parameter, β represents a preset simulation parameter, r represents the current rank value of the target node, N p Indicates the number of parent nodes of the target node.

3. The method according to claim 1, It is characterized in that The second threshold is generated in the following manner: Among them, I(r,N p ) represents the second threshold, α represents the preset tolerance parameter, r represents the current rank value of the target node, N d Indicates the number of child nodes of the target node.

4. The method according to claim 1, It is characterized in that After determining that the target node is a malicious node, the method further includes: The behavior data of the target node is obtained and used as a training sample. After adding a behavior label representing a malicious node to the behavior data, the training sample with the behavior label is added to a training sample set to train a malicious node prediction model through the training sample set.

5. The method according to claim 1, It is characterized in that The method further comprises: If the current rank value of the target node is within the buffer zone, the RPL topology is updated based on the current rank value of the target node, and routing forwarding is performed based on the updated RPL topology.

6. The method according to claim 1, It is characterized in that The method further comprises: When the number of parent nodes or child nodes of the target node changes and the rank value of the target node also changes, the following steps are used to determine whether the target node is a malicious node, as follows: Step 1: Assume that the number of parent nodes of the target node after the change is N p ′ , the number of child nodes of the target node after the change is N d ′ , the current rank value of the target node is r; then the loop detection value of the target node level after the change is: Where H is the target node level loop detection value after the change, R is the node level of the target node, and R(P) is the target node after the change. p ′ The level of the nearest parent node among the parent nodes. The node level can be obtained through the RPL topology. When H is 1, it indicates that the target node loop detection fails. When H is 0, it indicates that the target node loop detection passes. Step 2: When the target node level loop detection value calculated in step 1 is 1, determine whether the current node is a malicious node. The determination formula is as follows: where f H1 is the judgment value for judging whether the current node is a malicious node when the target node level loop detection value calculated in step 1 is 1, and k is an empirical parameter; when f H1 If the value is greater than the first preset value, the current node is determined to be a malicious node, otherwise it is determined that the current node is not a malicious node; Step 3: When the target node level loop detection value calculated in step 1 is 0, determine whether the current node is a malicious node. The determination formula is as follows: Among them, f H0 is the judgment value for judging whether the current node is a malicious node when the target node level loop detection value calculated in step 1 is 0, and t is the verification parameter; when f H0 When the value is greater than the second preset value, it is determined that the current node is a malicious node; otherwise, it is determined that the current node is not a malicious node.

7. A data processing system for network attacks, It is characterized in that The system comprises: A threshold generating unit, for generating a first threshold and a second threshold based on the current rank value of a target node whose rank value has changed, wherein the first threshold is generated based on the number of parent nodes of the target node, and the second threshold is generated based on the number of child nodes of the target node; An interval determination unit, used to determine a buffer interval formed by the first threshold and the second threshold, and determine whether the current rank value of the target node is within the buffer interval; The node removal unit is used to determine that the target node is a malicious node if the current rank value of the target node is outside the buffer zone, and remove the target node from the current RPL topology.

8. The system according to claim 7, It is characterized in that The threshold generating unit generates the first threshold in the following manner: Among them, D(r,N p ) represents the first threshold, α represents a preset tolerance parameter, β represents a preset simulation parameter, r represents the current rank value of the target node, N p Indicates the number of parent nodes of the target node.

9. The system according to claim 7, It is characterized in that The threshold generating unit generates the second threshold in the following manner: Among them, I(r,N p ) represents the second threshold, α represents the preset tolerance parameter, r represents the current rank value of the target node, N d Indicates the number of child nodes of the target node.