Illegal node determination method and device and storage medium
By using flow detection and hop-by-hop detection technologies in the network, data flow information between the ingress gateway device and the egress gateway device is obtained, routing path abnormalities are determined and illegal nodes are located, which solves the problem of poor real-time performance in attack path reconstruction in the existing technology. problem, achieving accurate and rapid identification of illegal nodes in the network.
Patent Information
- Application Number
- CN202410924025.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-10
AI Technical Summary
In the existing technology, attack path reconstruction based on traffic characteristics requires the controller to collect data flow information within a certain period of time. The real-time performance of path backtracking is poor, and it is difficult to accurately determine illegal nodes in the network.
By sending flow detection instructions to the ingress gateway device, adding the flow detection identification, obtaining the flow detection data between the ingress gateway device and the egress gateway device, determining whether there are network abnormalities in the routing path, and adding hop-by-hop detection in abnormal situations Identification, obtaining the delay information of the intermediate node to determine the location of the illegal node.
It improves the real-time determination ability of illegal nodes in the network, solves the problem of poor real-time performance, and achieves accurate illegal node location.
Smart Images

Figure CN118764265A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a method, device and storage medium for determining an illegal node. Background Art
[0002] At present, a trusted and secure data flow network needs to have the ability to monitor and trace attacks and illegal path traffic in real time. The common network path tracing method is to reconstruct the attack path based on the difference between the attacked traffic and normal traffic characteristics, and then determine the location of the illegal node. However, the attack path reconstruction based on traffic characteristics requires the controller to collect data flow information within a certain period of time, and the real-time performance of path tracing is poor, making it difficult to accurately determine the illegal nodes in the network. Summary of the invention
[0003] The present invention provides a method, device and storage medium for determining illegal nodes, which solve the technical problems in related technologies that attack path reconstruction based on traffic characteristics requires the controller to collect data flow information within a certain period of time, the real-time performance of path backtracing is poor, and it is difficult to accurately determine illegal nodes in the network.
[0004] In order to achieve the above objectives, the present invention adopts the following technical solutions:
[0005] In a first aspect, a method for determining an illegal node is provided, the method comprising: sending a flow detection instruction to an ingress gateway device; the flow detection instruction is used to instruct the ingress gateway device to add a flow detection identifier to a data flow; the flow detection identifier is used to obtain flow detection data of the ingress gateway device and the egress gateway device; obtaining the flow detection data from the egress gateway; the flow detection data is used to characterize whether there is a network anomaly in the routing path between the ingress gateway device and the egress gateway device; when it is determined that there is a network anomaly in the routing path, instructing the ingress gateway device to add a hop-by-hop detection identifier to the data flow; the hop-by-hop detection identifier is used to instruct multiple intermediate nodes between the ingress gateway device and the egress gateway device to send target flow detection data; the target flow detection data is the flow detection data measured by each of the multiple intermediate nodes; based on the delay information reported by the multiple intermediate nodes in the target flow detection data, determining the location of the illegal node.
[0006] In combination with the above-mentioned first aspect, in a possible implementation method, the flow detection data includes: delay information of multiple intermediate nodes; the method specifically includes: determining the delay between each pair of adjacent intermediate nodes in the routing path based on the delay information of multiple intermediate nodes; and determining the location of the illegal node based on the delay between each pair of adjacent intermediate nodes.
[0007] In combination with the above-mentioned first aspect, in a possible implementation, the method specifically includes: determining that in each pair of adjacent intermediate nodes, the adjacent intermediate nodes whose delay between the adjacent intermediate nodes is greater than a first preset threshold are target intermediate nodes; and determining that the illegal node is located between the target intermediate nodes.
[0008] In combination with the above-mentioned first aspect, in a possible implementation method, the method specifically includes: determining the packet loss rate and delay between the ingress gateway device and the egress gateway device based on the flow detection data; when it is determined that the packet loss rate is greater than the second preset threshold and / or the delay is greater than the third preset threshold, determining that there is a network anomaly in the routing path; instructing the ingress gateway device to add a hop-by-hop detection identifier to the data flow.
[0009] In combination with the above-mentioned first aspect, in a possible implementation method, when it is determined that there is a network anomaly in the routing path, after instructing the ingress gateway device to add a hop-by-hop detection identifier to the data flow, the method also includes: determining whether multiple intermediate nodes between the ingress gateway device and the egress gateway device that send target flow detection data are all preset intermediate nodes; when it is determined that there is a non-preset intermediate node among the multiple intermediate nodes, determining that the network anomaly of the routing path is caused by path tuning.
[0010] In combination with the above-mentioned first aspect, in a possible implementation method, the target flow detection data also includes: the packet loss rate of each intermediate node, and the method also includes: determining the packet loss rate of each intermediate node; in determining the packet loss rate of each intermediate node, the intermediate node whose packet loss rate is greater than a fourth preset threshold is under network attack.
[0011] In combination with the above-mentioned first aspect, in a possible implementation manner, the method also includes: determining the amount of data transmitted by each of multiple intermediate nodes based on the target flow detection data; among the multiple intermediate nodes, if there is a situation where the amount of transmitted data is greater than the data transmission threshold of the intermediate node, determining that the network anomaly is caused by routing path congestion.
[0012] In a second aspect, an illegal node determination device is provided, the device comprising: a communication unit and a processing unit; the communication unit sends a flow detection instruction to an ingress gateway device; the flow detection instruction is used to instruct the ingress gateway device to add a flow detection identifier to a data flow; the flow detection identifier is used to obtain flow detection data of the ingress gateway device and the egress gateway device; the communication unit is used to obtain the flow detection data from the egress gateway; the flow detection data is used to characterize whether there is a network anomaly in the routing path between the ingress gateway device and the egress gateway device; the processing unit is used to instruct the ingress gateway device to add a hop-by-hop detection identifier to the data flow when it is determined that there is a network anomaly in the routing path; the hop-by-hop detection identifier is used to instruct multiple intermediate nodes between the ingress gateway device and the egress gateway device to send target flow detection data; the target flow detection data is the flow detection data measured by each of the multiple intermediate nodes; the processing unit is used to determine the location of the illegal node based on the delay information reported by the multiple intermediate nodes in the target flow detection data.
[0013] In combination with the above-mentioned second aspect, in a possible implementation method, the flow detection data includes: delay information of multiple intermediate nodes; a processing unit, specifically used to: determine the delay between each pair of adjacent intermediate nodes in the routing path based on the delay information of multiple intermediate nodes; and determine the location of the illegal node based on the delay between each pair of adjacent intermediate nodes.
[0014] In combination with the above-mentioned second aspect, in a possible implementation method, the processing unit is specifically used to: determine that in each pair of adjacent intermediate nodes, the adjacent intermediate nodes whose delay between the adjacent intermediate nodes is greater than a first preset threshold are target intermediate nodes; and determine that the illegal node is located between the target intermediate nodes.
[0015] In combination with the above-mentioned second aspect, in a possible implementation method, the processing unit is specifically used to: determine the packet loss rate and delay between the ingress gateway device and the egress gateway device based on the flow detection data; when it is determined that the packet loss rate is greater than the second preset threshold and / or the delay is greater than the third preset threshold, determine that there is a network anomaly in the routing path; instruct the ingress gateway device to add a hop-by-hop detection identifier for the data flow.
[0016] In combination with the above-mentioned second aspect, in a possible implementation method, when it is determined that there is a network anomaly in the routing path, after instructing the ingress gateway device to add a hop-by-hop detection identifier to the data flow, the processing unit is also used to: determine whether multiple intermediate nodes for sending target flow detection data between the ingress gateway device and the egress gateway device are all preset intermediate nodes; when it is determined that there is a non-preset intermediate node among the multiple intermediate nodes, determine that the network anomaly of the routing path is caused by path tuning.
[0017] In combination with the above-mentioned second aspect, in a possible implementation method, the target flow detection data also includes: the packet loss rate of each intermediate node, and the processing unit is also used to determine the packet loss rate of each intermediate node; in determining the packet loss rate of each intermediate node, the intermediate node whose packet loss rate is greater than the fourth preset threshold is under network attack.
[0018] In combination with the above-mentioned second aspect, in a possible implementation method, the processing unit is also used to: determine the amount of data transmitted by each of multiple intermediate nodes based on the target flow detection data; among multiple intermediate nodes, if the amount of transmitted data is greater than the data transmission threshold of the intermediate node, determine that the network anomaly is caused by routing path congestion.
[0019] In a third aspect, an illegal node determination device is provided, comprising: a processor and a memory; wherein the memory is used to store computer execution instructions, and when the illegal node determination device is running, the processor executes the computer execution instructions stored in the memory to enable the illegal node determination device to perform the illegal node determination method as recorded in the above-mentioned first aspect and any possible implementation method thereof.
[0020] In a fourth aspect, a computer-readable storage medium is provided, in which instructions are stored. When the instructions in the computer-readable storage medium are executed by a processor of an illegal node determination device, the illegal node determination device executes the illegal node determination method as described in the first aspect and any possible implementation method thereof.
[0021] In a fifth aspect, a chip is provided, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instruction to implement the illegal node determination method as recorded in the above-mentioned first aspect and any possible implementation method thereof.
[0022] In the present disclosure, the name of the illegal node determination device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of the present disclosure, they belong to the scope of the present disclosure and its equivalent technologies.
[0023] The technical solution provided by the present disclosure brings at least the following beneficial effects: the illegal node determination device in the present disclosure first sends a flow detection instruction to the inlet gateway device, instructing the inlet gateway device to add a flow detection identifier to the data flow, and then obtains the flow detection data used to characterize whether there is a network anomaly in the routing path between the inlet gateway device and the egress gateway device from the egress gateway; when it is determined that there is a network anomaly in the routing path, instruct the inlet gateway device to add a hop-by-hop detection identifier to the data flow; so that multiple intermediate nodes between the inlet gateway device and the egress gateway device send target flow detection data to the illegal node determination device based on the hop-by-hop detection identifier; finally, based on the real-time delay information reported by multiple intermediate nodes in the target flow detection data, the location of the illegal node is determined. When it is determined that there is a network anomaly in the routing path between the inlet gateway device and the egress gateway device, the illegal node determination device obtains the real-time delay information of all intermediate nodes between the inlet gateway device and the egress gateway device based on the hop-by-hop detection identifier, and determines the location of the illegal node, thereby solving the technical problem in the related art that the attack path reconstruction based on traffic characteristics requires the controller to collect data flow information within a certain period of time, the real-time performance of path backtracking is poor, and it is difficult to accurately determine the illegal nodes in the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0025] Figure 1 A schematic diagram of the structure of an illegal node determination system provided by an embodiment of the present disclosure;
[0026] Figure 2 A schematic diagram of the hardware structure of an illegal node determination device provided by an embodiment of the present disclosure;
[0027] Figure 3 A flowchart of a method for determining an illegal node provided by an embodiment of the present disclosure;
[0028] Figure 4 A flowchart of another illegal node determination method provided by an embodiment of the present disclosure;
[0029] Figure 5 A flowchart of another illegal node determination method provided by an embodiment of the present disclosure;
[0030] Figure 6 A flowchart of another illegal node determination method provided by an embodiment of the present disclosure;
[0031] Figure 7 A flowchart of another illegal node determination method provided by an embodiment of the present disclosure;
[0032] Figure 8 A flowchart of another illegal node determination method provided by an embodiment of the present disclosure;
[0033] Fig. 9 A flowchart of another illegal node determination method provided by an embodiment of the present disclosure;
[0034] Fig.10 A schematic diagram of the structure of an illegal node determination device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] The following is a detailed description of an illegal node determination method, device and storage medium provided by an embodiment of the present disclosure in conjunction with the accompanying drawings.
[0036] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0037] The terms “first”, “second” and the like in the specification and drawings of the present disclosure are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
[0038] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present disclosure are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes other steps or units that are not listed, or optionally includes other steps or units that are inherent to these processes, methods, products or devices. It should be noted that in the embodiments of the present disclosure, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present disclosure should not be interpreted as being more preferred or more advantageous than other embodiments or design. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0039] In the description of the present disclosure, unless otherwise specified, “plurality” means two or more.
[0040] The following explains the terms involved in the embodiments of the present disclosure to facilitate readers' understanding.
[0041] 1. Flow detection technology
[0042] Flow detection technology is a detection technology that directly detects network performance indicators by marking network service flows. It can significantly improve the timeliness and effectiveness of network operation and maintenance and promote the development of intelligent operation and maintenance. Compared with traditional network operation and maintenance technologies, flow detection technology has the advantages of high precision, real-time performance, and visualization. It can flexibly adapt to a variety of business scenarios and further lay a solid foundation for the development of intelligent operation and maintenance through the combination with big data platforms and intelligent algorithms.
[0043] At present, a trusted and secure data flow network needs to have the ability to monitor and trace attacks and illegal path traffic in real time. The common network path tracing method is to reconstruct the attack path based on the difference between the attacked traffic and normal traffic characteristics, and then determine the location of the illegal node. However, the attack path reconstruction based on traffic characteristics requires the controller to collect data flow information within a certain period of time, and the real-time performance of path tracing is poor, making it difficult to accurately determine the illegal nodes in the network.
[0044] In order to solve the above technical problems, the present disclosure provides an illegal node determination method, device and storage medium, which are used to solve the technical problem that the reconstruction of the attack path based on traffic characteristics requires the controller to collect data flow information within a certain period of time, the real-time performance of path backtracking is poor, and it is difficult to accurately determine the illegal nodes in the network. The method includes: the illegal node determination device first sends a flow detection instruction to the inlet gateway device, instructing the inlet gateway device to add a flow detection identifier to the data flow, and then obtains the flow detection data used to characterize whether there is a network anomaly in the routing path between the inlet gateway device and the egress gateway device from the egress gateway; when it is determined that there is a network anomaly in the routing path, instruct the inlet gateway device to add a hop-by-hop detection identifier to the data flow; so that multiple intermediate nodes between the inlet gateway device and the egress gateway device send target flow detection data to the illegal node determination device based on the hop-by-hop detection identifier; finally, based on the real-time delay information reported by multiple intermediate nodes in the target flow detection data, the location of the illegal node is determined. When determining that there is a network anomaly in the routing path between the inlet gateway device and the outlet gateway device, the illegal node determination device obtains the real-time delay information of all intermediate nodes between the inlet gateway device and the outlet gateway device based on the hop-by-hop detection identifier, and determines the location of the illegal node, thereby solving the technical problem in the related technology that the attack path reconstruction based on traffic characteristics requires the controller to collect data flow information within a certain period of time, the real-time performance of path backtracing is poor, and it is difficult to accurately determine the illegal nodes in the network.
[0045] In a possible implementation, the above illegal node determination method can be applied to the illegal node determination system 100. Figure 1 An illegal node determination system 100 provided in an embodiment of the present application is described in detail. Figure 1 As shown, Figure 1 An illegal node determination system 100 is provided in an embodiment of the present disclosure. The system includes: an ingress gateway device 101, a plurality of intermediate node devices 102, an egress gateway device 103, and an illegal node determination apparatus 104.
[0046] Among them, the ingress gateway device 101 is used to receive a flow detection instruction from the illegal node determination device 104, and add a flow detection identifier to the data flow based on the flow detection instruction; and, when the illegal node determination device 104 determines that there is a network anomaly in the routing path between the ingress gateway device 101 and the egress gateway device 103, receive the instruction information from the illegal node determination device 104, add a hop-by-hop detection identifier to the data flow, so that multiple intermediate node devices 102 between the ingress gateway device 101 and the egress gateway device 103 send the flow detection data of the node to the illegal node determination device 104.
[0047] The intermediate node device 102 is used to send target flow detection data to the illegal node determination device 104 based on the hop-by-hop detection identifier in the data flow. The target flow detection data is the flow detection data measured by each intermediate node device 102 in the plurality of intermediate nodes.
[0048] The egress gateway device 103 is configured to send the accompanying flow detection data to the illegal node determination device 104 based on the accompanying flow detection identifier in the data flow.
[0049] The illegal node determination device 104 is used to send a flow detection instruction to the ingress gateway device 101; the flow detection instruction is used to instruct the ingress gateway device 101 to add a flow detection identifier to the data flow; the flow detection identifier is used to obtain the flow detection data of the ingress gateway device 101 and the egress gateway device 103; the flow detection data is obtained from the egress gateway 103; the flow detection data is used to characterize whether there is a network anomaly in the routing path between the ingress gateway device 101 and the egress gateway device 103; when it is determined that there is a network anomaly in the routing path, instruct the ingress gateway device 101 to add a hop-by-hop detection identifier to the data flow; the hop-by-hop detection identifier is used to instruct multiple intermediate node devices 102 between the ingress gateway device 101 and the egress gateway device 103 to send target flow detection data; finally, based on the delay information reported by the multiple intermediate node devices 102 in the target flow detection data, the location of the illegal node is determined.
[0050] In a possible implementation, the hardware structure of the illegal node determination device includes: Figure 2 The components of the illegal node determination device 200 shown in FIG. Figure 2 The illegal node determination device 200 shown in the figure is used as an example to introduce the hardware structure of the illegal node determination device. Figure 2As shown, the illegal node determination device 200 includes at least one processor 201, a communication line 202, and at least one communication interface 204, and may also include a memory 203. The processor 201, the memory 203 and the communication interface 204 may be connected via the communication line 202.
[0051] The processor 201 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present disclosure, such as one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA).
[0052] The communication link 202 may include a pathway for transmitting information between the above-mentioned components.
[0053] The communication interface 204 is used to communicate with other devices or communication networks, and can use any transceiver-like device, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.
[0054] The memory 203 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to include or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0055] In one possible design, the memory 203 can exist independently of the processor 201, that is, the memory 203 can be a memory outside the processor 201. In this case, the memory 203 can be connected to the processor 201 through the communication line 202, and is used to store execution instructions or application code, and the processor 201 controls the execution to implement the illegal node determination method provided in the following embodiment of the present disclosure. In another possible design, the memory 203 can also be integrated with the processor 201, that is, the memory 203 can be the internal memory of the processor 201, for example, the memory 203 is a high-speed cache, which can be used to temporarily store some data and instruction information.
[0056] As an implementation method, the processor 201 may include one or more CPUs, such as Figure 2 As another possible implementation, the illegal node determination device 200 may include multiple processors, such as Figure 2 As another implementation, the illegal node determination device 200 may further include an output device 205 and an input device 206.
[0057] In the following, a method for determining an illegal node provided by an embodiment of the present disclosure is described in detail.
[0058] like Figure 3 As shown, Figure 3 A method for determining an illegal node provided in an embodiment of the present disclosure can be applied to Figure 2 In the illegal node determination device shown, the method includes the following S301-S304, which are described in detail below.
[0059] S301. The illegal node determination device sends a flow detection instruction to an ingress gateway device.
[0060] In a possible implementation, the flow detection instruction is used to instruct the ingress gateway device to add a flow detection identifier to the data flow.
[0061] The flow detection identifier is used to obtain the flow detection data of the ingress gateway device and the egress gateway device.
[0062] S302: The illegal node determination device obtains flow detection data from the egress gateway.
[0063] The flow detection data is used to characterize whether there is a network anomaly in the routing path between the ingress gateway device and the egress gateway device.
[0064] In a possible implementation, the flow detection data includes performance indicators such as delay, packet loss, and jitter of the network between the ingress gateway device and the egress gateway device.
[0065] S303: When determining that a network anomaly exists in the routing path, the illegal node determination device instructs the ingress gateway device to add a hop-by-hop detection identifier to the data flow.
[0066] The hop-by-hop detection identifier is used to instruct multiple intermediate nodes between the ingress gateway device and the egress gateway device to send target flow detection data; the target flow detection data is flow detection data measured by each of the multiple intermediate nodes.
[0067] In one possible implementation, when the illegal node determination device determines that there is a network anomaly in the routing path, in order to determine the specific cause of the network anomaly, the illegal node determination device instructs the ingress gateway device to add a hop-by-hop detection identifier to the data flow, obtains the along-flow detection data measured by each of the multiple intermediate nodes, and thereby determines the cause of the network anomaly based on the along-flow detection data measured by each of the multiple intermediate nodes.
[0068] S304: The illegal node determination device determines the location of the illegal node based on the delay information reported by multiple intermediate nodes in the target flow detection data.
[0069] In one possible implementation, the illegal node determination device obtains the flow detection data reported by all intermediate nodes between the inlet gateway device and the outlet gateway device, determines the delay of the data flow between each intermediate node, and determines the location of the illegal node based on the delay of the data flow between each intermediate node.
[0070] The technical solution provided by the above embodiment can at least bring the following beneficial effects: the illegal node determination device first sends a flow detection instruction to the inlet gateway device, instructing the inlet gateway device to add a flow detection identifier to the data flow, and then obtains the flow detection data used to characterize whether there is a network anomaly in the routing path between the inlet gateway device and the egress gateway device from the egress gateway; when it is determined that there is a network anomaly in the routing path, instruct the inlet gateway device to add a hop-by-hop detection identifier to the data flow; so that multiple intermediate nodes between the inlet gateway device and the egress gateway device send target flow detection data to the illegal node determination device based on the hop-by-hop detection identifier; finally, based on the real-time delay information reported by multiple intermediate nodes in the target flow detection data, the location of the illegal node is determined. When it is determined that there is a network anomaly in the routing path between the inlet gateway device and the egress gateway device, the illegal node determination device obtains the real-time delay information of all intermediate nodes between the inlet gateway device and the egress gateway device based on the hop-by-hop detection identifier, and determines the location of the illegal node, thereby solving the technical problem that the attack path reconstruction based on traffic characteristics in the related technology requires the controller to collect data flow information within a certain period of time, the real-time performance of path backtracking is poor, and it is difficult to accurately determine the illegal nodes in the network.
[0071] In a possible implementation, the flow detection data includes: delay information of multiple intermediate nodes, combined with Figure 3 ,like Figure 4 As shown, the above S304, the illegal node determination device determines the location of the illegal node based on the delay information reported by multiple intermediate nodes in the target flow detection data, which can be specifically implemented through the following S401-S402, which is described in detail below.
[0072] S401. An illegal node determination device determines the delay between each pair of adjacent intermediate nodes in a routing path based on delay information of multiple intermediate nodes.
[0073] In a possible implementation, the illegal node determination device obtains the flow detection data of all intermediate nodes between the ingress gateway device and the egress gateway device, and determines the delay between each adjacent intermediate node based on the flow detection data of all intermediate nodes.
[0074] S402: The illegal node determination device determines the location of the illegal node based on the time delay between each pair of adjacent intermediate nodes.
[0075] In a possible implementation, the illegal node determination device determines the delay between each adjacent intermediate node based on the flow detection data of all intermediate nodes, and determines that the illegal node is located between the adjacent intermediate nodes with higher delay.
[0076] The technical solution provided by the above embodiment can at least bring the following beneficial effects: the illegal node determination device obtains the flow detection data of all intermediate nodes between the inlet gateway device and the outlet gateway device, determines the delay between each adjacent intermediate node based on the flow detection data of all intermediate nodes, and determines that the illegal node is located between the adjacent intermediate nodes with higher delay, thereby solving the technical problem in the related technology that the reconstruction of the attack path based on traffic characteristics requires the controller to collect data flow information within a certain period of time, the real-time performance of path backtracing is poor, and it is difficult to accurately determine the illegal nodes in the network.
[0077] In one possible implementation, combining Figure 4 ,like Figure 5 As shown, the above S402, the illegal node determination device determines the location of the illegal node based on the time delay between each pair of adjacent intermediate nodes, which can be specifically determined by the following S501-S502, which is described in detail below.
[0078] S501: An illegal node determining device determines, in each pair of adjacent intermediate nodes, an adjacent intermediate node whose delay between the adjacent intermediate nodes is greater than a first preset threshold as a target intermediate node.
[0079] In a possible implementation, the illegal node determination device determines the delay between each adjacent intermediate node based on the flow detection data of all intermediate nodes, and then determines the adjacent intermediate nodes whose delay between each adjacent intermediate node is greater than a first preset threshold as target intermediate nodes.
[0080] It can be understood that when the delay between adjacent intermediate nodes is greater than the first preset threshold, it can be determined that the data flow has undergone routing detours between the adjacent nodes, and the data flow has detoured to an illegal node.
[0081] S502: The illegal node determining device determines that the illegal node is located between target intermediate nodes.
[0082] In one possible implementation, the illegal node determination device determines that the adjacent intermediate nodes whose delay between each adjacent intermediate node is greater than a first preset threshold are target intermediate nodes, that is, it is determined that the data flow has undergone a routing line detour between the target adjacent intermediate nodes, and the data flow has detoured to an illegal node. The illegal node determination device determines that the illegal node is located between the target intermediate nodes.
[0083] The technical solution provided by the above embodiment can at least bring the following beneficial effects: the illegal node determination device determines the delay between each adjacent intermediate node based on the flow detection data of all intermediate nodes, and then determines the adjacent intermediate nodes whose delay between each adjacent intermediate node is greater than the first preset threshold as the target intermediate node. When the delay between adjacent intermediate nodes is greater than the first preset threshold, it can be determined that the data flow has undergone a routing line detour between the adjacent nodes, and the data flow has detoured to the illegal node, thereby determining that the illegal node is located between the target intermediate nodes.
[0084] In one possible implementation, combining Figure 5 ,like Figure 6 As shown, the above S303, the illegal node determination device instructs the ingress gateway device to add a hop-by-hop detection identifier to the data stream when determining that there is a network anomaly in the routing path, can be specifically implemented through the following S601-S603, which is described in detail below.
[0085] S601. An illegal node determination device determines a packet loss rate and a delay between an ingress gateway device and an egress gateway device based on flow detection data.
[0086] In a possible implementation, the illegal node determination device determines the overall packet loss rate and delay of the data flow when it is transmitted in the routing path between the ingress gateway device and the egress gateway device based on the ingress detection data reported by the ingress gateway device and the egress gateway device.
[0087] S602: When determining that the packet loss rate is greater than a second preset threshold and / or the delay is greater than a third preset threshold, the illegal node determination device determines that a network anomaly exists in the routing path.
[0088] In one possible implementation, the illegal node determination device determines that there is a network attack in the overall routing path when it determines that the packet loss rate of the data stream during transmission in the routing path between the ingress gateway device and the egress gateway device is greater than a second preset threshold.
[0089] In a possible implementation, the illegal node determination device determines that routing detour occurs when the data flow is transmitted in the routing path between the ingress gateway device and the egress gateway device when the delay in the data flow transmission in the routing path between the ingress gateway device and the egress gateway device is greater than a third preset threshold.
[0090] S603: The illegal node determination device instructs the ingress gateway device to add a hop-by-hop detection identifier to the data flow.
[0091] In one possible implementation, when the illegal node determination device determines that there is a network attack in the overall routing path and / or determines that a routing detour has occurred when the data flow is transmitted in the routing path, it instructs the ingress gateway device to add a hop-by-hop detection identifier to the data flow, so that all intermediate nodes between the ingress gateway device and the egress gateway device send target flow detection data based on the hop-by-hop detection identifier.
[0092] The technical solution provided by the above embodiment can at least bring the following beneficial effects: the illegal node determination device first determines the packet loss rate and delay between the ingress gateway device and the egress gateway device, and when the packet loss rate of the routing path between the ingress gateway device and the egress gateway device is greater than the second preset threshold and / or the delay is greater than the third preset threshold, determines that there is a network anomaly in the routing path, and instructs the ingress gateway device to add a hop-by-hop detection identifier to the data stream, so that all intermediate nodes between the ingress gateway device and the egress gateway device send target flow detection data based on the hop-by-hop detection identifier, so that the illegal node determination device determines the specific reason for the network anomaly in the routing path based on the target flow detection data.
[0093] In one possible implementation, Figure 7 As shown, in the above S303, when the illegal node determination device determines that there is a network anomaly in the routing path, it instructs the ingress gateway device to add a hop-by-hop detection identifier to the data stream. It is necessary to determine whether the cause of the network anomaly is path optimization. This process can be specifically implemented through the following S701-S702, which is described in detail below.
[0094] S701: An illegal node determination device determines whether multiple intermediate nodes between an ingress gateway device and an egress gateway device that send target flow detection data are all preset intermediate nodes.
[0095] In a possible implementation, the target flow detection data includes an identifier of a sending node, and the illegal node determination device determines whether multiple intermediate nodes that send the target flow detection data are all preset intermediate nodes based on the identifier of the sending node in the target flow detection data and the identifier of the preset intermediate node.
[0096] S702: When determining that a node among the plurality of intermediate nodes is not a preset intermediate node, the illegal node determining device determines that the network abnormality of the routing path is caused by path optimization.
[0097] In one possible implementation, when a physical link failure occurs in the routing path between the ingress gateway device and the egress gateway device, the routing path will be optimized, the path of the data stream transmission will be adjusted, and the data will be transmitted and the in-flow detection data will be reported by a non-preset intermediate node. When the illegal node determination device determines that there is a non-preset intermediate node among multiple intermediate nodes, it determines that the network abnormality of the routing path is caused by path optimization.
[0098] The technical solution provided by the above embodiment can at least bring the following beneficial effects: when it is determined that there is a network anomaly in the routing path, the illegal node determination device instructs the ingress gateway device to add a hop-by-hop detection identifier to the data flow, and then determines whether multiple intermediate nodes that send the target flow detection data are all preset intermediate nodes according to the identifier of the sending end node in the target flow detection data and the identifier of the preset intermediate node, and when it is determined that there is a non-preset intermediate node among the multiple intermediate nodes, it is determined that the network anomaly of the routing path is caused by path optimization.
[0099] In a possible implementation, the target flow detection data also includes: the packet loss rate of each intermediate node, such as Figure 8 As shown, when it is determined that multiple intermediate nodes sending target flow detection data between the inlet gateway device and the outlet gateway device are all preset intermediate nodes, it is necessary to determine the intermediate node where the network attack occurs in the routing path. This process can be specifically implemented through the following S801-S802, which is described in detail below.
[0100] S801. The illegal node determination device determines the packet loss rate of each intermediate node.
[0101] In a possible implementation, the illegal node determination device determines the packet loss rate of the data flow when it is transmitted at each intermediate node between the ingress gateway device and the egress gateway device based on the target flow detection data.
[0102] S802: The illegal node determination device determines the packet loss rate of each intermediate node, and the intermediate node whose packet loss rate is greater than a fourth preset threshold is under network attack.
[0103] In one possible implementation, the illegal node determination device determines the packet loss rate of the data stream when it is transmitted at each intermediate node between the inlet gateway device and the outlet gateway device based on the target flow detection data, and determines that the intermediate node whose packet loss rate is greater than a fourth preset threshold is under network attack.
[0104] The technical solution provided by the above embodiment can at least bring the following beneficial effects: when the illegal node determination device determines that multiple intermediate nodes sending target flow detection data between the inlet gateway device and the outlet gateway device are all preset intermediate nodes, the illegal node determination device determines the packet loss rate of the data flow when it is transmitted at each intermediate node between the inlet gateway device and the outlet gateway device based on the target flow detection data, and determines the intermediate node where the network attack occurs in the routing path according to the packet loss rate.
[0105] In one possible implementation, Fig. 9 As shown, the illegal node determination device also needs to determine whether the network anomaly is caused by routing path congestion. This process can be specifically implemented through the following S901-S902, which is described in detail below.
[0106] S901. An illegal node determination device determines the amount of data transmitted by each of a plurality of intermediate nodes based on target flow detection data.
[0107] In a possible implementation manner, the illegal node determination device determines the amount of data transmitted by each intermediate node based on the flow detection data reported by each intermediate node in the routing path.
[0108] It is understandable that the data flow may increase the data to be transmitted during the transmission along the routing path, and data may be lost, so the amount of data transmitted by each intermediate node may be different.
[0109] S902: When the amount of data transmitted is greater than the data transmission threshold of the intermediate node among multiple intermediate nodes, the illegal node determination device determines that the network abnormality is caused by routing path congestion.
[0110] In one possible implementation, the illegal node determination device obtains the data transmission threshold of each intermediate node in the routing path, and when it is determined that the amount of data transmitted by the intermediate node in the routing path is greater than the data transmission threshold of the intermediate node, it is determined that the network anomaly is caused by routing path congestion.
[0111] The technical solution provided by the above embodiment can at least bring the following beneficial effects: the illegal node determination device determines the amount of data transmitted by each node in multiple intermediate nodes based on the target flow detection data, and when there is a transmission data amount greater than the data transmission threshold of the intermediate node among multiple intermediate nodes, it is determined that the network abnormality is caused by routing path congestion.
[0112] It can be seen that the above mainly introduces the technical solution provided by the embodiment of the present disclosure from the perspective of the method. In order to achieve the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.
[0113] The embodiments of the present disclosure may divide the illegal node determination device into functional modules according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiments of the present disclosure is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0114] In one possible implementation, Fig.10 , Fig.10 A schematic diagram of the structure of an illegal node determination device 1000 provided in the present disclosure.
[0115] The illegal node determination device 1000 includes: a communication unit 1001 and a processing unit 1002; the communication unit 1001 sends a flow detection instruction to an ingress gateway device; the flow detection instruction is used to instruct the ingress gateway device to add a flow detection identifier to a data flow; the flow detection identifier is used to obtain flow detection data of the ingress gateway device and the egress gateway device; the communication unit 1001 is used to obtain the flow detection data from the egress gateway; the flow detection data is used to characterize whether there is a network anomaly in the routing path between the ingress gateway device and the egress gateway device; the processing unit 1002 is used to instruct the ingress gateway device to add a hop-by-hop detection identifier to the data flow when it is determined that there is a network anomaly in the routing path; the hop-by-hop detection identifier is used to instruct multiple intermediate nodes between the ingress gateway device and the egress gateway device to send target flow detection data; the target flow detection data is the flow detection data measured by each of the multiple intermediate nodes; the processing unit 1002 is used to determine the location of the illegal node based on the delay information reported by the multiple intermediate nodes in the target flow detection data.
[0116] In one possible implementation, the flow detection data includes: delay information of multiple intermediate nodes; the processing unit 1002 is specifically used to: determine the delay between each pair of adjacent intermediate nodes in the routing path based on the delay information of the multiple intermediate nodes; and determine the location of the illegal node based on the delay between each pair of adjacent intermediate nodes.
[0117] In a possible implementation, the processing unit 1002 is specifically used to: determine that, in each pair of adjacent intermediate nodes, the adjacent intermediate nodes whose delay is greater than a first preset threshold are target intermediate nodes; and determine that the illegal node is located between the target intermediate nodes.
[0118] In one possible implementation, the processing unit 1002 is specifically used to: determine the packet loss rate and delay between the ingress gateway device and the egress gateway device based on the flow detection data; when it is determined that the packet loss rate is greater than the second preset threshold and / or the delay is greater than the third preset threshold, determine that there is a network anomaly in the routing path; and instruct the ingress gateway device to add a hop-by-hop detection identifier to the data flow.
[0119] In one possible implementation, when it is determined that there is a network anomaly in the routing path, after instructing the ingress gateway device to add a hop-by-hop detection identifier to the data stream, the processing unit 1002 is also used to: determine whether multiple intermediate nodes that send target flow detection data between the ingress gateway device and the egress gateway device are all preset intermediate nodes; when it is determined that there is a non-preset intermediate node among the multiple intermediate nodes, determine that the network anomaly of the routing path is caused by path tuning.
[0120] In a possible implementation, the target flow detection data also includes: the packet loss rate of each intermediate node, and the processing unit 1002 is also used to determine the packet loss rate of each intermediate node; in determining the packet loss rate of each intermediate node, the intermediate node whose packet loss rate is greater than the fourth preset threshold is under network attack.
[0121] In a possible implementation, the processing unit 1002 is further used to: determine the amount of data transmitted by each of multiple intermediate nodes based on the target flow detection data; and determine that the network anomaly is caused by routing path congestion when there is a situation in which the amount of transmitted data among the multiple intermediate nodes is greater than the data transmission threshold of the intermediate node.
[0122] An embodiment of the present disclosure also provides an illegal node determination device, which includes a processor and a memory; wherein the memory is used to store computer execution instructions, and when the illegal node determination device is running, the processor executes the computer execution instructions stored in the memory, so that the illegal node determination device executes the illegal node determination method recorded in the embodiment of the present disclosure.
[0123] An embodiment of the present disclosure provides a computer program product including instructions. When the instructions are executed on a computer, the computer is enabled to execute the illegal node determination method in the above method embodiment.
[0124] An embodiment of the present disclosure provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run a computer program or instruction to implement the illegal node determination method in the above method embodiment.
[0125] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), registers, hard disks, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any other form of computer-readable storage medium in a suitable combination of the above, or numerical values in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an Application Specific Integrated Circuit (ASIC). In the embodiments of the present disclosure, computer-readable storage media may be any tangible media that contains or stores a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0126] Since the apparatus, device, computer-readable storage medium, and computer program product in the embodiments of the present disclosure can be applied to the above-mentioned method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present disclosure will not be repeated here.
[0127] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for determining an illegal node, characterized in that: include: Send a flow detection instruction to the ingress gateway device; The accompanying flow detection instruction is used to instruct the ingress gateway device to add an accompanying flow detection identifier to the data flow; The flow detection identifier is used to obtain the flow detection data of the ingress gateway device and the egress gateway device; Acquire the flow detection data from the egress gateway; The flow detection data is used to indicate whether there is a network anomaly in the routing path between the ingress gateway device and the egress gateway device; In the case where it is determined that a network anomaly exists in the routing path, instructing the ingress gateway device to add a hop-by-hop detection identifier to the data flow; The hop-by-hop detection identifier is used to instruct multiple intermediate nodes between the ingress gateway device and the egress gateway device to send target flow detection data; The target flow detection data is flow detection data measured by each intermediate node among the plurality of intermediate nodes; The location of the illegal node is determined based on the delay information reported by multiple intermediate nodes in the target flow detection data.
2. The method according to claim 1, characterized in that The flow detection data includes: delay information of the plurality of intermediate nodes; and determining the location of the illegal node based on the delay information reported by the plurality of intermediate nodes in the target flow detection data includes: Determine the delay between each pair of adjacent intermediate nodes in the routing path based on the delay information of the plurality of intermediate nodes; Based on the time delay between each pair of adjacent intermediate nodes, the position of the illegal node is determined.
3. The method according to claim 2, characterized in that The determining the location of the illegal node based on the time delay between each pair of adjacent intermediate nodes includes: Determine, in each pair of adjacent intermediate nodes, an adjacent intermediate node whose delay between the adjacent intermediate nodes is greater than a first preset threshold as a target intermediate node; It is determined that the illegal node is located between the target intermediate nodes.
4. The method according to claim 3, characterized in that Instructing the ingress gateway device to add a hop-by-hop detection identifier to the data flow when it is determined that a network anomaly exists in the routing path includes: Determine the packet loss rate and delay between the ingress gateway device and the egress gateway device based on the flow detection data; In the case where it is determined that the packet loss rate is greater than a second preset threshold and / or the delay is greater than a third preset threshold, it is determined that a network anomaly exists in the routing path; Instruct the ingress gateway device to add a hop-by-hop detection identifier to the data flow.
5. The method according to claim 4, characterized in that When it is determined that a network anomaly exists in the routing path, after instructing the ingress gateway device to add a hop-by-hop detection identifier to the data flow, the method further includes: Determine whether a plurality of intermediate nodes between the ingress gateway device and the egress gateway device that send the target flow detection data are all preset intermediate nodes; When it is determined that a non-preset intermediate node exists among the plurality of intermediate nodes, it is determined that the network abnormality of the routing path is caused by path optimization.
6. The method according to claim 5, characterized in that The target flow detection data also includes: a packet loss rate of each intermediate node; when it is determined that the multiple intermediate nodes between the ingress gateway device and the egress gateway device that send the target flow detection data are all preset intermediate nodes, the method further includes: Determining a packet loss rate of each intermediate node; In determining the packet loss rate of each intermediate node, an intermediate node having a packet loss rate greater than a fourth preset threshold is under network attack.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Determine the amount of data transmitted by each of the plurality of intermediate nodes based on the target flow detection data; In the case where there is a transmission data volume greater than an intermediate node data transmission threshold among the multiple intermediate nodes, it is determined that the network abnormality is caused by congestion of the routing path.
8. An illegal node determination device, characterized in that: include: a communication unit and a processing unit; The communication unit sends a flow detection instruction to the ingress gateway device; The flow detection instruction is used to instruct the ingress gateway device to add a flow detection identifier to the data flow; the flow detection identifier is used to obtain the flow detection data of the ingress gateway device and the egress gateway device; The communication unit is used to obtain the flow detection data from the egress gateway; The flow detection data is used to indicate whether there is a network anomaly in the routing path between the ingress gateway device and the egress gateway device; The processing unit is configured to instruct the ingress gateway device to add a hop-by-hop detection identifier to the data flow when it is determined that a network anomaly exists in the routing path; The hop-by-hop detection identifier is used to instruct multiple intermediate nodes between the ingress gateway device and the egress gateway device to send target flow detection data; The target flow detection data is flow detection data measured by each intermediate node among the plurality of intermediate nodes; The processing unit is used to determine the location of the illegal node based on the delay information reported by multiple intermediate nodes in the target flow detection data.
9. An illegal node determination device, characterized in that: include: A processor and a memory; wherein the memory is used to store computer execution instructions, and when the illegal node determination device is running, the processor executes the computer execution instructions stored in the memory to enable the illegal node determination device to perform the illegal node determination method described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions. When the instructions in the computer-readable storage medium are executed by the processor for illegal node determination, the illegal node determination device executes the illegal node determination method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Systems and methods for proactive congestion detection in radio access networks
CN105659541A
Routing node quality monitoring method and device and related equipment
CN116055361A
Method for acquiring internal memory of 64a package avr mcu using voltage glitching and apparatus for the same
KR1020250151825A
Lateral movement detection using a mixture of online anomaly scoring models
US11606378B1
