Network attack detection method, apparatus and related device

By calculating the cross-regional traffic ratio of the link and the number of slice subnets that depend on the link, combined with the link health, the problem of low accuracy in detecting link flooding attacks is solved, and more efficient attack identification is achieved.

CN123164440APending Publication Date: 2026-11-24中国移动通信集团江西有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611418842.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-14
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing link flooding attack detection methods are prone to misjudgment or omission during the detection process, resulting in low detection accuracy.

Method used

By acquiring traffic data and link information of the target link in the target network, the cross-regional traffic ratio and the number of slice subnets dependent on the link are calculated to determine the topology correlation. Combined with the link health, LFA correlation information is sent to the core node for accurate detection.

Benefits of technology

It improves the accuracy of link flooding attack detection, reduces false positives and false negatives, and can more accurately identify links that have been subjected to link flooding attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164440A_ABST
    Figure CN123164440A_ABST
Patent Text Reader

Abstract

This application provides a network attack detection method, apparatus, and related equipment, belonging to the field of communication technology. The method includes: acquiring traffic data and link information of a target link in a target network; determining the cross-regional traffic proportion of the target link based on the traffic data of the target link; determining the number of slice subnets corresponding to the dependent links based on the link information of the target link; determining the topology correlation degree of the target link based on the cross-regional traffic proportion and the number of slice subnets of the dependent links; and sending LFA association information related to a link flooding attack (LFA) to a core node, wherein the LFA association information includes the topology correlation degree, and the LFA association information is used by the core node to determine the first network attack detection result of the target link regarding the LFA. The method can improve the accuracy of link flooding attack detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a method, apparatus and related equipment for detecting network attacks. Background Technology

[0002] Link-flooding attacks (LFA) preemptively seize bandwidth from critical network links by scheduling massive amounts of low-speed, distributed traffic. They are characterized by high stealth and attack traffic patterns that closely resemble normal service traffic. LFA is a typical network attack threat faced by target networks (such as 4G or 5G networks). Existing LFA detection methods often analyze single-link traffic metrics in isolation during the detection process, making them prone to misjudgment or missed detection of LFA attacks, resulting in low accuracy in LFA attack detection. Summary of the Invention

[0003] This application provides a network attack detection method, apparatus, and related equipment, which can solve the technical problem of low accuracy in detecting link flooding attacks.

[0004] In a first aspect, embodiments of this application provide a network attack detection method applied to edge nodes, the method comprising:

[0005] Obtain traffic data and link information of a target link in the target network, wherein the target link is the communication link where the edge node is located in the target network;

[0006] The cross-regional traffic proportion of the target link is determined based on the traffic data of the target link. The cross-regional traffic proportion of the target link is the proportion of the first data traffic in the total data traffic of the target link within a first time period. The first data traffic is the data traffic that passes through the target link in the middle.

[0007] The number of slice subnets corresponding to the dependent links is determined based on the link information of the target link. The dependent links are the communication links of the target link after removing the link source node and the link destination node.

[0008] The topology correlation of the target link is determined based on the cross-regional traffic ratio and the number of slice subnets of the dependent link. The topology correlation is used to characterize the criticality of the target link in the target network.

[0009] Send LFA association information associated with the Link Flooding Attack (LFA) to the core node. The LFA association information includes the topology association degree. The LFA association information is used by the core node to determine the first network attack detection result of the target link with respect to the LFA.

[0010] Optionally, the LFA association information also includes the link health of the target link, and sending the LFA association information associated with the LFA to the core node includes:

[0011] Obtain the round-trip time (RTT), packet loss rate, and latency jitter of packets in the target link during the second time period;

[0012] The link health of the target link is obtained by weighting and summing the RTT, packet loss rate, and latency jitter according to preset weights.

[0013] Under either the first condition or the second condition, the LFA association information associated with the LFA is sent to the core node. The first condition is that the link health is less than or equal to a first threshold, and the second condition is that the link health drops from greater than or equal to a second threshold to a first range for the first time. The first range is a numerical range greater than the first threshold and less than the second threshold, where the first threshold is less than the second threshold.

[0014] Secondly, embodiments of this application provide a network attack detection method applied to core nodes, the method comprising:

[0015] Obtain LFA association information sent by edge nodes in the target network that is associated with Link Flooding Attack (LFA). The LFA association information includes the topology correlation degree of the communication link where the edge node is located. The topology correlation degree is used to characterize the criticality of the communication link where the edge node is located in the target network.

[0016] Based on the LFA association information, a list of suspicious communication links containing LFAs is determined in the target network;

[0017] The communication links in the list of suspicious communication links are subjected to LFA mode verification to obtain the first network attack detection result of the communication links of the target network regarding LFA.

[0018] Optionally, determining the list of suspicious communication links with LFAs in the target network based on the LFA association information includes:

[0019] In the communication links of the target network, the communication links where non-associative edge nodes are located are filtered to obtain an intermediate communication link list. The non-associative edge nodes are the edge nodes whose Internet Protocol IP addresses come from different Autonomous System (AS) domains or have different Tracking Area Codes (TACs).

[0020] The communication links that satisfy the third and fourth conditions are removed from the intermediate communication link list to obtain a list of suspicious communication links in the target network that contain LFA. The third condition is that the topological correlation degree is greater than or equal to the third threshold, and the fourth condition is that the number of times the edge node corresponding to the communication link sends the LFA correlation information is greater than or equal to the fourth threshold.

[0021] Optionally, the LFA attack association information also includes the link health of the communication link where the edge node is located. The link health is obtained by weighting and summing the round-trip time (RTT), packet loss rate, and latency jitter of the target packet according to a preset weight. The target packet is the packet in the communication link where the edge node is located within the second time period.

[0022] Optionally, the step of verifying the LFA attack pattern of the communication links in the list of suspicious communication links to obtain the first network attack detection result of the target network's communication links regarding LFA attacks includes:

[0023] Obtain link trajectory data of suspicious communication links in the list of suspicious communication links. The link trajectory data of the suspicious communication links includes: the number of bypass links for traffic in the target node within a third time period, the link health change value of the communication link where the target node is located, and the traffic change of the target node. The target node is the upstream node and / or downstream node of the suspicious communication link.

[0024] The similarity calculation results are obtained by using the Dynamic Time Warping (DTW) algorithm to calculate the link trajectory data of the suspected communication link and the link trajectory data under the preset LFA attack mode.

[0025] If the similarity calculation result is greater than or equal to the fifth threshold, the number of bypass links in the target node is greater than or equal to the sixth threshold, and the source edge node of the suspicious communication link is a non-associated edge node, then the suspicious communication link in the target network is determined to conform to the LFA attack mode.

[0026] If the similarity calculation result is less than the fifth threshold, the number of bypass links in the target node is less than the sixth threshold, or the source edge node of the suspicious communication link is not a non-associated edge node, the suspicious communication link in the target network is determined not to conform to the LFA attack mode.

[0027] Thirdly, embodiments of this application provide a network attack detection device, the device comprising:

[0028] The acquisition module is used to acquire traffic data and link information of a target link in the target network, wherein the target link is the communication link where the edge node is located in the target network;

[0029] The first processing module is used to determine the cross-regional traffic ratio of the target link based on the traffic data of the target link. The cross-regional traffic ratio of the target link is the proportion of the first data traffic in the total data traffic of the target link within a first time period. The first data traffic is the data traffic that passes through the target link.

[0030] The second processing module is used to determine the number of slice subnets corresponding to the dependent links based on the link information of the target link. The dependent links are the communication links of the target link after removing the link source node and the link destination node.

[0031] The third processing module is used to determine the topology correlation degree of the target link based on the cross-regional traffic ratio and the number of slice subnets of the dependent link. The topology correlation degree is used to characterize the link criticality of the target link in the target network.

[0032] The sending module is used to send LFA association information related to the Link Flooding Attack (LFA) to the core node. The LFA association information includes the topology association degree. The LFA association information is used by the core node to determine the first network attack detection result of the target link with respect to the LFA.

[0033] Fourthly, embodiments of this application provide a network attack detection device, the device comprising:

[0034] The acquisition module is used to acquire LFA association information sent by edge nodes in the target network that is associated with Link Flooding Attack (LFA). The LFA association information includes the topology association degree of the communication link where the edge node is located. The topology association degree is used to characterize the criticality of the communication link where the edge node is located in the target network.

[0035] The first processing module is used to determine a list of suspicious communication links in the target network that contain LFAs based on the LFA association information.

[0036] The second processing module is used to perform LFA mode verification on the communication links in the list of suspicious communication links to obtain the first network attack detection result of the communication links of the target network regarding LFA.

[0037] Fifthly, embodiments of this application provide an electronic device, including: a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, it implements the steps of the network attack detection method as described in the first aspect, or implements the steps of the network attack detection method as described in the second aspect.

[0038] In a sixth aspect, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the network attack detection method as described in the first aspect, or implements the steps of the network attack detection method as described in the second aspect.

[0039] In a seventh aspect, embodiments of this application provide a computer program product, including computer instructions that, when executed by a processor, implement the steps of the network attack detection method as described in the first aspect, or implement the steps of the network attack detection method as described in the second aspect.

[0040] In this embodiment, the cross-regional traffic proportion of the target link accurately reflects the load level of the target link in handling cross-regional traffic; the number of slice subnets corresponding to the dependent links accurately reflects the scope of slice service impact that a failure of the target link can affect. Therefore, based on the cross-regional traffic proportion of the target link and the number of slice subnets of the dependent links, the topology correlation of the target link is determined. This topology correlation can more accurately measure the criticality of the target link from two dimensions: the load level of cross-regional traffic and the scope of slice service impact. Sending the topology correlation, which more accurately reflects the criticality of the link, to the core node allows the core node to detect link flooding attacks based on this more accurate topology correlation, thereby improving the accuracy of link flooding attack detection. Attached Figure Description

[0041] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1 This is one of the flowcharts of a network attack detection method provided in the embodiments of this application;

[0043] Figure 2 This is a second flowchart of a network attack detection method provided in the embodiments of this application;

[0044] Figure 3This is one of the structural schematic diagrams of a network attack detection device provided in the embodiments of this application;

[0045] Figure 4 This is a second schematic diagram of the structure of a network attack detection device provided in the embodiments of this application;

[0046] Figure 5 This is one of the structural schematic diagrams of an electronic device provided in the embodiments of this application;

[0047] Figure 6 This is a second schematic diagram of the structure of an electronic device provided in the embodiments of this application. Detailed Implementation

[0048] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0049] The terms "first," "second," etc., used in this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same class, not limited in number; for example, the first object can be one or more. Furthermore, "and / or" in this application indicates at least one of the connected objects. For example, the scope of protection of "A and / or B" covers at least three scenarios: Scenario 1: including A but not B; Scenario 2: including B but not A; Scenario 3: including both A and B. Additionally, the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0050] See Figure 1 , Figure 1 This is one of the flowcharts of a network attack detection method provided in the embodiments of this application, such as... Figure 1 As shown, applied to edge nodes, the method includes the following steps:

[0051] Step 101: Obtain traffic data and link information of the target link in the target network, wherein the target link is the communication link where the edge node is located in the target network;

[0052] The target network can be selected by those skilled in the art based on actual application needs; it can be a complete communication network or a part of a communication network. For example, the target network can be a 5th-generation mobile communication technology (5G) network or a 4th-generation mobile communication technology (4G) network. In this application, a 5G network will be used as the target network for description.

[0053] The edge nodes can be edge computing servers or edge gateway devices close to the user end. The core nodes described below can be cloud core servers, network core processing nodes, core routers or core gateways deployed in the central location of the network side. They can be used to manage all edge nodes in a coordinated manner, aggregate business data, and perform global scheduling and data storage.

[0054] The traffic data of the target link in the target network may include the traffic characteristics, traffic content and traffic size of the target link. The link information of the target link in the target network may include link bandwidth, link latency, link packet loss rate, remaining available resources of the link, link working status and link identifier.

[0055] In this step, traffic data and link information of the target link in the target network are obtained, providing a data basis for determining the cross-regional traffic share of the target link and the number of slice subnets corresponding to the dependent links described later.

[0056] Step 102: Determine the cross-regional traffic proportion of the target link based on the traffic data of the target link. The cross-regional traffic proportion of the target link is the proportion of the first data traffic in the total data traffic of the target link within the first time period. The first data traffic is the data traffic that passes through the target link.

[0057] The duration of the first time period can be set as needed by those skilled in the art; for example, the duration of the first time period is 1 hour, 2 hours, or 1.5 hours.

[0058] It should be noted that the first traffic data can be obtained by extracting all or part of the traffic data of the target link. For example, the traffic data generated by the target link within a predetermined period of time (such as 3 hours) is defined as the second traffic data, and traffic data of any one hour can be extracted from the second traffic data as the first traffic data.

[0059] For example, taking the target network as a 5G communication network for illustration: the first traffic data can be obtained by extracting the traffic log of the link within 1 hour from the User Plane Function (UPF) of the core network based on the regional isolation characteristics of 5G slicing, and filtering the cross-regional traffic where the source tracking area (TA) ≠ the destination TA (for international links, traffic where the source public land mobile network (PLMN) ≠ the destination PLMN is counted).

[0060] At this point, choosing a 1-hour statistical period is to balance "real-time performance" and "statistical stability," to avoid distortion of results due to short-term traffic fluctuations, and because cross-TA traffic needs to be transmitted through backbone links, it is the main target of LFA attacks.

[0061] It is understood that the total data traffic on the target link may include at least two types: one is local traffic whose origin and destination are both within the coverage area of ​​the target link, and the other is transit traffic that passes through the target link (i.e., the first traffic data mentioned above).

[0062] At this point, the cross-regional traffic percentage of the target link = first traffic data / total data traffic of the target link.

[0063] In this step, the cross-regional traffic ratio of the target link is determined based on the traffic data of the target link. The cross-regional traffic ratio of the target link can reflect the importance of the target link in undertaking cross-regional forwarding services, and thus it is used as one of the key indicators to accurately measure the criticality of the target link in the topology of the target network.

[0064] Step 103: Determine the number of slice subnets corresponding to the dependent links based on the link information of the target link. The dependent links are the communication links of the target link after removing the link source node and the link destination node.

[0065] The slice subnet can be an independent virtual subnet divided according to predetermined rules within the target network. Specifically, the list of links-bound slices can be obtained from the Session Management Function (SMF) of the Slice Controller (SC), thus determining the number of slice subnets corresponding to the dependent links. More specifically, after obtaining the slice list, "idle slices" with no traffic within one hour can be excluded, and the number of active slices can be counted. If it is a shared slice (such as a public IoT slice), it is weighted according to priority (high-priority slices, such as industrial control slices, have a weight of 1.2, and ordinary slices have a weight of 1.0). Because high-priority slices have a greater impact on business after being attacked, the Topology Correlation Degree (TCD) of critical links is increased through weighting. Excluding idle slices is to avoid "slices created but not used" leading to an artificially high TCD, ensuring that the located links truly carry core business.

[0066] For example, taking the target link as an example, which includes five nodes connected end to end, the dependent link is the communication link excluding the first and last nodes.

[0067] In this step, the dependent links are communication links excluding the source and destination nodes. They are communication links that must be traversed during data transmission on the target link, reflecting the target link's support for the transmission of services in multiple slice subnets. If the target link fails, the slice subnet services carried by all its dependent links will be affected. Therefore, the more slice subnets to which the dependent links belong, the wider the range of slice services affected by the target link, and the higher the link's criticality in the network topology.

[0068] Step 104: Determine the topology correlation degree of the target link based on the cross-regional traffic ratio and the number of slice subnets of the dependent link. The topology correlation degree is used to characterize the link criticality of the target link in the target network.

[0069] The determination of the topological relevance of the target link based on the cross-regional traffic share and the number of slice subnets corresponding to the dependent link can be achieved by using a weighted summation, averaging, a preset lookup table algorithm, or an artificial intelligence algorithm to calculate the topological relevance of the target link. Specifically, refer to the following first formula:

[0070]

[0071] In the first formula, TCD can represent the topological correlation of the target link, describe the criticality of the link between two nodes in the target network topology, and can be used to locate the target link in a Link Flooding Attack (LFA) attack.

[0072] Understandably, Topology Correlation Degree (TCD) uses two dimensions—the proportion of cross-regional traffic and the number of slices with dependent links—to quantify the criticality of links in the topology, providing a basis for subsequent screening of LFA attack target links.

[0073] In this step, on the one hand, the cross-regional traffic ratio accurately reflects the load level of the target link in handling cross-regional transit traffic, demonstrating the importance of the link traffic level; on the other hand, the number of slice subnets corresponding to the dependent link reflects the scope of slice service impact that a link failure can affect, demonstrating the importance of the topology service level. Combining these two indicators yields the topology correlation degree, which can more accurately measure the criticality of the target link from both traffic load and service impact scope dimensions, providing a more accurate data foundation for LFA detection.

[0074] Step 105: Send LFA association information associated with the Link Flooding Attack (LFA) to the core node. The LFA association information includes the topology association degree. The LFA association information is used by the core node to determine the first network attack detection result of the target link with respect to the LFA.

[0075] The LFA association information may also include data such as the link health, link type identifier, and synchronization timestamp of the target link, which are used to assist in judging the LFA detection results.

[0076] In this step, the topology correlation degree is reported to the core node along with the LFA correlation information. When performing LFA detection, the core node can make a comprehensive judgment based on the topological criticality of the link itself, in addition to traffic anomaly characteristics. For links with high topology correlation, even if the traffic anomaly is relatively limited, they are still considered high-risk targets, which can reduce missed detections caused by relying solely on traffic threshold detection. For ordinary links with low topology correlation, the probability of false alarms can be reduced, thereby effectively improving the detection accuracy of LFA attacks. This allows the core node to accurately distinguish between real attacks and normal network traffic fluctuations, providing a reliable basis for subsequent attack response.

[0077] In this embodiment, the cross-regional traffic proportion of the target link accurately reflects the load level of the target link in handling cross-regional traffic; the number of slice subnets corresponding to the dependent links accurately reflects the scope of slice service impact that a failure of the target link can affect. Therefore, based on the cross-regional traffic proportion of the target link and the number of slice subnets of the dependent links, the topology correlation of the target link is determined. This topology correlation can more accurately measure the criticality of the target link from two dimensions: the load level of cross-regional traffic and the scope of slice service impact. Sending the topology correlation, which more accurately reflects the criticality of the link, to the core node allows the core node to detect link flooding attacks based on this more accurate topology correlation, thereby improving the accuracy of link flooding attack detection.

[0078] In some implementations, the LFA association information also includes the Link Health Degree (LHD) of the target link, and sending the LFA association information associated with the LFA to the core node includes:

[0079] Obtain the round-trip time (RTT), packet loss rate, and latency jitter of packets in the target link during the second time period;

[0080] The link health of the target link is obtained by weighting and summing the Round-Trip Time (RTT), the packet loss rate, and the latency jitter according to a preset weight.

[0081] Under either the first condition or the second condition, the LFA association information associated with the LFA is sent to the core node. The first condition is that the link health is less than or equal to a first threshold, and the second condition is that the link health drops from greater than or equal to a second threshold to a first range for the first time. The first range is a numerical range greater than the first threshold and less than the second threshold, where the first threshold is less than the second threshold.

[0082] The duration of the second time can be set as needed by those skilled in the art; for example, it can be 1000 milliseconds, 2000 milliseconds, 1500 milliseconds or 5000 milliseconds; in this application, latency jitter can also be simply referred to as jitter;

[0083] The LHD can be used to measure the real-time status of a target link; specifically, it can dynamically allocate weights based on multi-dimensional status (RTT, packet loss rate, and latency jitter) and link type, and set thresholds to match the 5G service quality of service (QoS) requirements, thereby achieving a quantitative representation of the real-time status of a single link.

[0084] Optionally, the LHD can be determined by the packet loss rate and the latency jitter of the RTT, specifically by the mean algorithm, the preset rule algorithm, the artificial intelligence algorithm, or the weighted summation algorithm mentioned above.

[0085] Specifically, it can adapt to monitoring needs at predetermined time intervals (e.g., 5 milliseconds). RTT can be obtained using the One-way Active Measurement Protocol (OAMP), which involves continuously sending 10 probe packets (100ms apart) to the peer node of the link and taking the average value. Compared with the traditional Packet Internet Groper (ping) command, OAMP supports one-way latency measurement, which can avoid the bidirectional latency deviation caused by 5G core network Network Address Translation (NAT) forwarding. Packet loss rate can be calculated by passively counting the difference between "number of packets sent - number of packets received" at the edge node / core router interface, directly reflecting the integrity of link data transmission. Jitter can be calculated by the standard deviation of 10 RTT values. Jitter is used to capture the link latency fluctuation characteristics.

[0086] More specifically, the calculation of the jitter can be referenced to the following second formula:

[0087]

[0088] In the second formula, Jitter can represent the aforementioned latency jitter; n can represent the number of sample data packets; i can represent the sequence number of the sample data packets; This can represent the round-trip time of the i-th sample data packet; It can represent the arithmetic mean of the round-trip delay of n sample data packets.

[0089] More specifically, the weighted summation of the RTT, packet loss rate, and latency jitter according to preset weights can be performed by directly weighting the RTT, packet loss rate, and latency jitter according to preset weights, or by performing data processing on the RTT, packet loss rate, and latency jitter before weighting the summation; please refer to the following third formula for details:

[0090]

[0091] In the third formula, This can represent the link health of the target link; , and This can represent the aforementioned preset weights; This can represent the round-trip time of a message in the target link during the second time period; It can represent a reference latency baseline (e.g., the average RTT over a 7-day historical period). This can represent the maximum tolerable latency of the target link (e.g., 100ms in the Ultra-Reliable Low-Latency Communication (URLLC) scenario). This can represent the message reception success rate in the target link within the second time period; This can represent the latency jitter of packets in the target link during the second time period; It can represent the preset maximum latency jitter value, such as the maximum latency jitter tolerance of the target link.

[0092] Specifically, in the third formula, the preset weights can be assigned α (RTT weight), β (packet loss rate weight), and γ (latency jitter weight) based on the link fault sensitivity characteristics, as shown in the following example:

[0093] Backbone wired links (such as cross-region cross-route (CR-CR) links) have large bandwidth (100Gbps+), and latency jitter has little impact on services such as Internet Protocol Television (IPTV). Therefore, we set α=0.4, β=0.4, and γ=0.2.

[0094] In edge wireless links (such as E-UTRA-NR next generation NodeB (EN-gNB) links), the latency jitter of 5G millimeter wave (28GHz / 60GHz) when it is blocked will suddenly increase from 10ms to 50ms, which can easily lead to signal interruption. Therefore, γ is increased to 0.4, and α and β are each reduced to 0.3.

[0095] The first and second conditions can be referenced in URLLC (latency ≤100ms, packet loss rate ≤10⁻) in the 3rd Generation Partnership Project Technical Specification (3GPP TS) 23.501 standard. 5 The QoS requirements (bandwidth ≥ 100Mbps) for enhanced mobile broadband (eMBB) are determined; a first threshold can be set to 0.5, a second threshold to 0.8, and a first range of 0.5. <LHD<0.8;

[0096] More specifically, LHD ≥ 0.8 is set as normal (meeting the requirements of both types of services), 0.5 < LHD < 0.8 as warning (eMBB is available but URLLC delay may exceed the standard), and LHD ≤ 0.5 as abnormal (insufficient eMBB bandwidth and URLLC interruption risk ≥ 80%); the warning threshold is set to 0.5 to reserve an "abnormal buffer space", so as to avoid false alarms triggered by instantaneous 5G signal fluctuations caused by rapid movement of the mobile device when the edge node is installed in a mobile device (e.g., a vehicle).

[0097] That is, the link health degree threshold: LHD greater than or equal to 0.8 is normal, between 0.5 and 0.8 is warning, and less than or equal to 0.5 is abnormal.

[0098] More specifically, one is LHD ≤ 0.5 (clearly abnormal), and the other is that the LHD drops from ≥ 0.8 to 0.5-0.8 (warning, only triggered for the first time), so as to avoid repeated reporting caused by 5G signal fluctuations (for example, when the LHD fluctuates between 0.6 and 0.7, only the first drop triggers).

[0099] In this embodiment, the RTT, the packet loss rate, and the delay jitter are weighted and summed according to preset weights to obtain the link health degree of the target link, and the LFA association information includes the link health degree of the target link, which can comprehensively reflect the real transmission state of the link and avoid misjudgment of link flooding attacks by a single indicator.

[0100] In addition, two levels of judgment conditions are set: on the one hand, reporting is triggered when the link health degree is less than or equal to the first threshold, and on the other hand, a sudden change scenario in which the link health degree drops from high to low and enters the intermediate interval is monitored, which can timely capture early signs of link performance transitioning from normal to degraded, realize early warning of LFA, and reduce misjudgment of LFA by the core node; under the above first condition or the above second condition, the LFA association information associated with the LFA is sent to the core node; the core node can detect the LFA according to the link health degree of the target link and the topology association degree of the target link, which can reduce the misjudgment probability caused by a single indicator and improve the accuracy of link flooding attack detection.

[0101] See Figure 2 , Figure 2 is the second flowchart of a network attack detection method provided by an embodiment of the present application, as shown in Figure 2 , the method is applied to a core node and includes the following steps:

[0102] Step 201: Obtain LFA association information sent by edge nodes in the target network that is associated with the Link Flooding Attack (LFA). The LFA association information includes the topology correlation degree of the communication link where the edge node is located. The topology correlation degree is used to characterize the criticality of the communication link where the edge node is located in the target network.

[0103] The core node can be a cloud-based core server, network core processing node, core router, or core gateway deployed at the center of the network side. It can be used to manage all edge nodes, aggregate business data, and perform global scheduling and data storage. The edge node can be an edge computing server or edge gateway device located close to the user end.

[0104] The LFA association information may include some or all of the edge nodes in the target network sending topology-state synchronization frames periodically to construct a real-time network topology map. The topology-state synchronization frames in this application can add LHD, TCD, link type identifier, and synchronization timestamp to the standard fields of the Link Layer Discovery Protocol (LLDP) (such as ChassisID and PortID), ensuring that each frame contains both topology connectivity and link status.

[0105] The transmission period of synchronization frames varies depending on the node type: 5 seconds / time for core nodes (e.g., CR / SMF) and 2 seconds / time for edge nodes (e.g., EN / gNB). The 2-second period ensures that topology update lag is ≤50 meters (matching the coverage radius of 5G base stations), avoiding topology information distortion caused by movement. Simultaneously, the core controller (such as the Access and Mobility Management Function (AMF) / UPF of the 5G core network) is configured to maintain the topology-state database and update link LHD, TCD, and node connection relationships in real time (e.g., link switching due to edge node movement).

[0106] Based on the cloud-based architecture of the 5G core network, distributed databases such as Cassandra are used. Nodes are deployed in segments according to "geographic regions" (such as North China and East China). After receiving the synchronization frame, the core controller updates the LHD and TCD data of the link in real time, while retaining nearly 1 hour of historical data to cover the typical duration of LFA attacks (5-30 minutes), providing comparative data of "before attack - during attack" for subsequent abnormal trajectory analysis.

[0107] The topology correlation can be determined based on the cross-regional traffic proportion of the target link where the edge node is located and the number of slice subnets of the dependent link. Specifically, the number of slice subnets corresponding to the dependent link can be determined based on the link information of the target link, where the dependent link is the communication link of the target link excluding the link source node and the link destination node; the cross-regional traffic proportion of the target link can be determined based on the traffic data of the target link, where the cross-regional traffic proportion of the target link is the proportion of the first data traffic in the total data traffic of the target link in the first time period, and the first data traffic is the data traffic that passes through the target link.

[0108] In this step, LFA association information sent by edge nodes in the target network that is associated with LFA is obtained, providing a data basis for determining a list of suspicious communication links with LFA.

[0109] Step 202: Determine a list of suspicious communication links in the target network containing LFAs based on the LFA association information;

[0110] In this step, based on the acquired LFA association information, a list of suspicious communication links in the target network containing LFA is determined. This can quickly identify links suspected of being involved in link flooding attacks, filter out most normal links, narrow the detection range, avoid traversing and analyzing all links in the network, and reduce computational resource consumption. By relying on the LFA association information for initial screening, the accuracy of suspicious link identification is improved, the risk of missed or false positives is reduced, and the efficiency of LFA detection and processing is further improved.

[0111] Step 203: Perform LFA mode verification on the communication links in the list of suspicious communication links to obtain the first network attack detection result of the target network's communication links regarding LFA.

[0112] In this step, LFA pattern verification is performed on the links in the list of suspicious communication links. Based on the suspicious links identified in the initial screening, further pattern verification is performed to eliminate false alarms caused by the initial screening and reduce the probability of false judgment. Targeted confirmation is made based on the attack pattern characteristics of the links, which effectively reduces missed detections and outputs reliable first network attack detection results, improving the accuracy and credibility of the link flooding attack detection results. It can also narrow the detection scope, avoid traversing the entire network, and save computing resources.

[0113] In this embodiment, the LFA association information reported by the edge nodes is obtained. Since this association information includes topological correlation degree, which represents the criticality of the link, when screening the list of suspicious communication links, the link criticality represented by the topological correlation degree is comprehensively evaluated to initially screen ordinary network disturbances and real attack signs, thereby improving the accuracy of the list of suspicious communication links. Based on the list of suspicious communication links with improved accuracy, LFA pattern verification can be performed to further verify and identify the initial screening results, reduce the risk of missed detection, and improve the efficiency and accuracy of link flooding attack detection.

[0114] In some implementations, determining a list of suspicious communication links containing LFAs in the target network based on the LFA association information includes:

[0115] In the communication links of the target network, the communication links where non-associated edge nodes are located are filtered to obtain an intermediate communication link list. The non-associated edge nodes are those edge nodes whose Internet Protocol (IP) addresses come from different Autonomous System (AS) domains or have different Tracking Area Codes (TACs).

[0116] The communication links that satisfy the third and fourth conditions are removed from the intermediate communication link list to obtain a list of suspicious communication links in the target network that contain LFA. The third condition is that the topological correlation degree is greater than or equal to the third threshold, and the fourth condition is that the number of times the edge node corresponding to the communication link sends the LFA correlation information is greater than or equal to the fourth threshold.

[0117] The values ​​of the third and fourth thresholds can be set as needed by those skilled in the art. For example, the third threshold is 0.6 and the fourth threshold is 2 times; the third condition is TCD≥0.6 and the fourth condition is the number of times the edge node corresponding to the communication link sends the LFA association information ≥2 times.

[0118] Specifically, a distributed detection architecture can be constructed by deploying the aforementioned edge nodes and core nodes. Lightweight sensing modules are deployed on the edge nodes (i.e., local nodes close to the user end): the module size can be less than 10MB, and the collection range is limited to a 3-hop link: edge node → base station → access router → core router. Since the coverage radius of 5G edge nodes is ≤10 kilometers, 3 hops can cover the critical path from edge to access to core, and the data volume is controllable. Simultaneously, local filtering logic is added—if LHD≥0.8, only buffering is performed and no reporting is done, reducing invalid data transmission on the 5G air interface (e.g., Sub-6GHz band single cell bandwidth ≤100MHz), saving bandwidth. A collaborative analysis module is deployed on the core nodes: utilizing the computing power redundancy of the core nodes, an analysis strategy combining batch processing and frequency statistics is adopted.

[0119] Data is received from edge nodes once every 100ms, grouped and summarized by link identifier, and the number of reports within 100ms for the same link (from different edge nodes) is counted. By batch processing every 100ms, a balance between real-time performance (second-level response to LFA attacks) and computing power consumption is achieved.

[0120] Then, filtering can be performed using the set rule "reporting times ≥ 2 times and TCD ≥ 0.6". The TCD ≥ 0.6 filtering takes into account that 90% of LFA attacks target core critical links, reducing invalid analysis of ordinary links.

[0121] For example, local awareness at the edge node can include local real-time monitoring and anomaly triggering. The edge node autonomously completes metric collection and LHD calculation, reporting only in case of anomalies, reducing reliance on core systems. The specific process includes:

[0122] First, the edge node completes the indicator collection and LHD calculation: the edge node triggers one collection every 1 second, in the order of "OWAMP RTT measurement → packet loss rate statistics → jitter and LHD calculation"; in 5G networks, LFA attacks usually take 3-5 seconds from "traffic injection" to "link saturation", and the 1-second cycle can ensure early detection of attacks;

[0123] Then, based on the requirements of the aforementioned edge nodes, anomaly reporting is triggered according to the two types of triggering conditions set above.

[0124] First, LHD ≤ 0.5 (clearly abnormal); second, LHD drops from ≥ 0.8 to 0.5-0.8 (warning, triggered only on the first drop), to avoid repeated reporting caused by 5G signal fluctuations (e.g., when LHD fluctuates between 0.6 and 0.7, it is triggered only on the first drop).

[0125] The reported data can be in JavaScript Object Notation (JSON) format, including "link identifier, exception time, 3-hop path, and LHD value", ensuring that the core node parsing time is ≤1ms and improving data processing efficiency.

[0126] At core nodes, preliminary screening is performed based on data reported from the edge stages to eliminate false alarms and focus on critical links. This is achieved through non-associated node identification and TCD (Tracking Control Detection) screening to narrow down the range of suspicious links. The specific process includes:

[0127] First, determine the unrelated edge nodes. This can be done based on the "distributed source" characteristic of LFA attacks, using a two-dimensional approach: "source IP attribution" and / or "geographic region."

[0128] By querying the edge node IP using a query protocol (such as WHOIS protocol), if it comes from a different AS (Autonomous System) domain, or if it belongs to a different city based on the TAC (such as 460-00-TA12345), it is determined to be unrelated. For example, EN1 (IP belongs to AS123, TAC belongs to Beijing) and EN2 (IP belongs to AS456, TAC belongs to Shanghai) are unrelated. This determination can filter out more than 80% of normal fault false alarms (such as local signal blockage only causing nodes in the same area to report).

[0129] Then, key suspicious links are marked. First, links that are reported ≥2 times within 100ms are filtered (to avoid false alarms due to single-node failures), and then the condition of "TCD≥0.6" is added (focusing on core and critical links). Finally, a "list of key suspicious links" is generated, which includes the link identifier, the number of reporting nodes, the TCD value, and the current LHD value, to narrow down the scope for subsequent trajectory analysis.

[0130] In this embodiment, by filtering links corresponding to non-associated edge nodes in different AS domains and different TACs, interference caused by local network failures is filtered out; furthermore, links with high topological correlation and high reporting frequency are eliminated, and false alarms caused by normal high-frequency reporting of core links are excluded, so as to accurately obtain a list of suspicious communication links, reduce invalid links to be verified, reduce subsequent verification overhead, and improve the accuracy of the list of suspicious communication links.

[0131] In some implementations, the LFA attack association information also includes the link health of the communication link where the edge node is located. The link health is obtained by weighting and summing the round-trip time (RTT), packet loss rate, and latency jitter of the target packet according to a preset weight. The target packet is a packet in the communication link where the edge node is located within the second time period.

[0132] The calculation of the link health can be made with reference to the third formula mentioned above; the meaning of the link health is the same as that in the above embodiments.

[0133] In this embodiment, the LFA association information includes not only the topological correlation degree characterizing the criticality of the link, but also the link health status reported by the edge nodes. The link health status is obtained by weighted fusion of round-trip latency, packet loss rate, and latency jitter, directly reflecting the current actual operational degradation state of the link. When determining the list of suspicious communication links, the core node can simultaneously evaluate both the criticality of the link and its real-time operational degradation, avoiding the limitations of isolated analysis of single-link traffic indicators, thereby improving the accuracy of the suspicious communication link list. LFA pattern verification based on the improved accuracy of the suspicious communication link list further verifies and identifies the initial screening results, reducing the risk of missed detections and improving the efficiency and accuracy of link flooding attack detection.

[0134] In some implementations, the step of verifying the LFA attack pattern of the communication links in the list of suspicious communication links to obtain the first network attack detection result of the target network's communication links regarding LFA attacks includes:

[0135] Obtain link trajectory data of suspicious communication links in the list of suspicious communication links. The link trajectory data of the suspicious communication links includes: the number of bypass links for traffic in the target node within a third time period, the link health change value of the communication link where the target node is located, and the traffic change of the target node. The target node is the upstream node and / or downstream node of the suspicious communication link.

[0136] The similarity calculation results are obtained by using the Dynamic Time Warping (DTW) algorithm to calculate the similarity between the link trajectory data of the suspected communication link and the link trajectory data under the preset LFA attack mode.

[0137] If the similarity calculation result is greater than or equal to the fifth threshold, the number of bypass links in the target node is greater than or equal to the sixth threshold, and the source edge node of the suspicious communication link is a non-associated edge node, then the suspicious communication link in the target network is determined to conform to the LFA attack mode.

[0138] If the similarity calculation result is less than the fifth threshold, the number of bypass links in the target node is less than the sixth threshold, or the source edge node of the suspicious communication link is not a non-associated edge node, the suspicious communication link in the target network is determined not to conform to the LFA attack mode.

[0139] The duration of the third time period (e.g., 10 seconds), the fifth threshold, and / or the sixth threshold can be set as needed by those skilled in the art. The specific number of upstream nodes and / or downstream nodes in the target node can be set as needed by those skilled in the art. The sixth threshold can be three.

[0140] For example, based on the 5G control plane and data plane separation architecture, trajectory tracking commands can be issued through the Software Defined Networking (SDN) controller to obtain full-link trajectory data, thereby achieving full-path data synchronization and aggregation.

[0141] Specifically, the target of the trajectory tracking command can be "3 upstream nodes + 2 downstream nodes" of a key suspicious link (i.e., the communication link in the aforementioned suspicious communication link). For example, for link CR3-CR5, the upstream nodes are EN1, gNB2, and R4, and the downstream nodes are CR6 and UPF7. Since LFA attack traffic needs to pass through "EN→gNB→access router→core router" from the edge to the core, the 3 upstream nodes can cover the complete attack path, and the 2 downstream nodes can monitor the traffic spread. The link trajectory data corresponding to the trajectory tracking command can include the collection content corresponding to a collection duration of 10 seconds. The collection content can include the number of bypass links, LHD, and traffic changes. The reporting time can be 1 second (or other durations can be set as needed by those skilled in the art). The 1-second reporting interval can collect 10 sets of data within 10 seconds, thereby constructing a continuous trajectory curve.

[0142] Then, the link trajectory data is aggregated. The timestamps of all nodes are calibrated based on the Network Time Protocol (NTP) server of the 5G core network (synchronization accuracy ≤1ms) to ensure data time alignment; the core controller is grouped according to "timestamp + link identifier" to form "full network trajectory snapshot every 1 second", which provides the basis for the time series matching of the subsequent DTW algorithm and avoids trajectory misalignment caused by time deviation.

[0143] For example, the step of using the Dynamic Time Warping (DTW) algorithm to calculate the similarity between the link trajectory data of the suspicious communication link and the link trajectory data under a preset LFA attack mode, and obtaining the similarity calculation result, may include the following steps:

[0144] First, the DTW algorithm parameters are set. The specific parameter values ​​can be set as needed by those skilled in the art.

[0145] The input is a 3D time series of "number of bypass links, LHD change value, and traffic change value" within 10 seconds (e.g., X=[x1, x2, x3, ..., xn]); where xn can represent the data collected in the nth second, and n is an integer greater than 0; while the link trajectory data under the preset LFA attack mode can be a 3D time series in the same format (e.g., Y=[y1, y2, y3, ..., yn]), where yn can represent the link trajectory data in the nth second under the preset LFA attack mode;

[0146] The window size can be set to 3 (allowing ±3 seconds of time offset) to adapt to the different LFA attack traffic growth rates (such as 100Mbps / s or 200Mbps / s).

[0147] Distance can be measured using Euclidean distance: Calculations are performed, in which, The link trajectory data of the suspected communication link in the i-th second can be represented respectively, corresponding to the number of detour links, LHD change value, and traffic change value; where, The link trajectory data at second i under the preset LFA attack mode can be represented separately, corresponding to the number of bypass links, LHD change value, and traffic change value, respectively. It can be understood that the above three-dimensional indicators of the number of bypass links, LHD change value, and traffic change value can be pre-processed data (e.g., mapped to the 0-1 range), and the similarity is accurately quantified using Euclidean distance to obtain the above similarity calculation results. A similarity of ≥0.85 can be set to "DTW distance ≤ 5" to balance sensitivity and false positive rate.

[0148] Then, pattern matching is performed:

[0149] It can verify whether "the abnormal starting point is a link with TCD ≥ 0.6" (i.e., the third condition mentioned above); it can determine that "DTW similarity and number of bypass links ≥ 3" are not related to "source IP".

[0150] If the DTW similarity and number of bypass links are ≥3 and there is no association with the source IP, or if the abnormal starting point is a link with a TCD ≥ 0.6, it can be determined that the link "matches the LFA attack trajectory" and conforms to the LFA attack pattern. Otherwise, if the aforementioned conditions are not met, the suspicious communication links in the target network are determined to not conform to the LFA attack pattern. The above multi-feature combination can reduce the false positive rate from 10% to below 3%, and the multi-dimensional feature priority verification of the basic conditions can reduce the computational load of DTW.

[0151] In this embodiment, link trajectory data of upstream and downstream target nodes of suspicious communication links are acquired, and the number of bypass links, changes in link health, and traffic changes are used as verification criteria. The DTW algorithm is used to calculate the similarity between the measured link trajectory data and the link trajectory data under a preset LFA attack mode. The DTW algorithm can adapt to the timing offset problem caused by sampling delay jitter and inconsistent attack duration, achieving effective comparison of timing features. Simultaneously, the similarity calculation results, the number of bypass links in the target node's traffic, and whether the source edge node is a non-associated edge node are combined for multi-condition joint judgment, avoiding misjudgment or missed judgment caused by single-condition judgment, accurately identifying real LFA attacks and ordinary network anomalies, obtaining reliable first network attack detection results, and improving the accuracy of link flooding attack mode verification.

[0152] In some implementations, the presence of an LFA can be further determined more accurately if the attack pattern conforms to the LFA attack pattern; the attack can be determined by weighting the votes of multiple roles based on topological correlation.

[0153] A voting node pool is constructed: the node pool contains "2 edge nodes (EN / gNB) + 2 core nodes (CR / UPF) + 1 slice controller (SMF)" for key suspicious links, covering three perspectives: wireless side, backbone side, and slice side. The edge nodes detect wireless anomalies, the core nodes detect backbone status, and the slice controller detects slice traffic. The screening criteria are "LHD ≥ 0.8 (no faults) in the last minute + data reporting integrity rate ≥ 95%" to avoid faulty nodes providing incorrect data. Then, through weighted scoring and majority voting, the existence of an attack is confirmed to obtain the second network attack detection result.

[0154] Each dimension is weighted according to the "core attack characteristics": Dimension 1 (LHD duration): Query the duration in seconds when the local link LHD ≤ 0.5, ≥ 5 seconds gets 20 points (excluding instantaneous fluctuations); Dimension 2 (source and destination concentration): Calculate the source IP concentration (top 10 source IP traffic share) ≤ 5%, and the destination IP concentration ≤ 10%, if satisfied, gets 30 points (matching the distributed characteristics of the attack source); Dimension 3 (trajectory matching degree): Calculate the DTW similarity between the local trajectory and the LFA pattern, if greater than or equal to 0.85, gets 50 points (directly associated with the attack pattern); The total score of a single node = the sum of the scores of the three dimensions, and the weight setting reflects the logic of "trajectory pattern is the most critical, source characteristics are secondary, and duration is auxiliary".

[0155] Ultimately, the core controller counts the number of nodes with a total score ≥ 60 (indicating an attack) out of the five nodes: if three or more nodes meet the standard, an LFA attack is confirmed and defense is triggered; if two or fewer nodes meet the standard, it is marked as "suspicious anomaly," and a re-vote is conducted every minute. If three consecutive nodes have a score of 22 or fewer, the suspicion is lifted. Thus, through this fault-tolerant mechanism, it addresses the 3-5 second instantaneous fluctuations in 5G wireless signals (such as when the edge node is deployed on a high-speed train, and the train rapidly passes the base station), avoiding misjudgments.

[0156] In some implementations, communication links subjected to LFA attacks can also be located; specifically, the core elements of the attack and the target link can be located through traffic convergence tracing and legitimate service filtering.

[0157] First, based on the traffic forwarding logs (including "inbound interface - outbound interface" mapping) of upstream and downstream nodes of key suspicious links, the final destination of distributed attack traffic of edge nodes is traced in reverse: along the path "EN→gNB→R→CR", the "links to which all traffic finally exits" are counted. If ≥80% of the traffic points to the same link (such as CR3-CR5), it is determined to be an attack target.

[0158] Here, by setting an 80% percentage (which can be configured as needed by those skilled in the art), random aggregation of normal business is excluded (normal business is usually distributed across multiple core links), and the 5G router supports interface-level traffic statistics to ensure tracking accuracy.

[0159] Then, based on the 5G service identifier, the traffic of slice services containing "slice ID (e.g., S-NSSAI=123)" and IoT service traffic with "device certificate verification passed" are excluded, and the source IP of the remaining traffic is marked as "suspicious attack source".

[0160] Finally, by querying the Border Gateway Protocol (BGP) protocol, the geographical scope of the attack source is narrowed down, and the AS domain affiliation of the suspicious IP is queried, thus locating the attack source and providing a basis for subsequent coordinated defense and blocking measures.

[0161] In some implementations, based on the SDN and elastic bandwidth characteristics of 5G, precise filtering commands can be issued in combination with bandwidth adjustment and backup link activation to quickly block and ensure service continuity.

[0162] The SDN controller issues the following traffic filtering command to the upstream core node (such as CR3) of the target link:

[0163] "Matching criteria: Source IP ∈ Suspicious attack source list, and destination interface = CR3-CR5 inbound interface; Action to execute: Drop; Duration: 30 minutes"

[0164] This precise matching avoids the interruption of legitimate services caused by traditional "one-size-fits-all" blocking. The 30-minute effective period is typically less than 30 minutes due to LFA attacks, and automatic expiration upon expiration reduces the risk of false blocking. Simultaneously, backup links and bandwidth adjustments are activated. Backup links (such as CR3-CR7) with "TCD≥0.5 (core carrying capacity) and LHD≥0.9 (no anomalies)" are selected from the topology-state database. Routing adjustment commands are then issued through the SDN controller to switch legitimate services (such as industrial slices or Vehicle to Everything (V2X) traffic) on the target link to the backup link.

[0165] At the same time, query the current bandwidth utilization rate of the backup link (e.g., 30%), and increase the bandwidth limit from 100Gbps to 150Gbps to avoid traffic overload after the switchover by utilizing the elastic bandwidth feature of 5G.

[0166] In some implementations, the attack signature database can also be updated; features such as "protocol percentage (e.g., UDP data accounts for 80%), packet size (e.g., average 1500 bytes), and sending interval (e.g., 10ms / packet)" can be extracted from the attack traffic, and the core controller adds them to the "global attack signature database" and distributes them to all edge node lightweight perception modules.

[0167] When edge nodes collect traffic, if the traffic matches the features in the feature library, they will directly report "highly suspicious attack". The core node will directly add the suspicious communication link list, reducing the detection time from 3-5 seconds to within 1 second. This meets the millisecond-level defense requirements of URLLC services in 5G networks and achieves precise defense and service continuity assurance.

[0168] It should be noted that the network attack detection method described above in this application can be executed by an electronic device, that is, all the steps included in the above method are executed by the electronic device, which can be a communication link node, gateway or routing device or other electronic device.

[0169] See Figure 3 , Figure 3 This is one of the structural schematic diagrams of a network attack detection device provided in the embodiments of this application, such as... Figure 3 As shown, the network attack detection device 300 includes:

[0170] The acquisition module 301 is used to acquire traffic data and link information of a target link in the target network, wherein the target link is the communication link where the edge node is located in the target network;

[0171] The first processing module 302 is used to determine the cross-regional traffic ratio of the target link based on the traffic data of the target link. The cross-regional traffic ratio of the target link is the proportion of the first data traffic in the total data traffic of the target link within a first time period. The first data traffic is the data traffic that passes through the target link.

[0172] The second processing module 303 is used to determine the number of slice subnets corresponding to the dependent links based on the link information of the target link, wherein the dependent links are the communication links of the target link after removing the link source node and the link destination node.

[0173] The third processing module 304 is used to determine the topology correlation degree of the target link based on the cross-regional traffic ratio and the number of slice subnets of the dependent link. The topology correlation degree is used to characterize the link criticality of the target link in the target network.

[0174] The sending module 305 is used to send LFA association information related to the Link Flooding Attack (LFA) to the core node. The LFA association information includes the topology association degree. The LFA association information is used by the core node to determine the first network attack detection result of the target link with respect to the LFA.

[0175] Optionally, the LFA association information also includes the link health of the target link, and sending the LFA association information associated with the LFA to the core node includes:

[0176] Obtain the round-trip time (RTT), packet loss rate, and latency jitter of packets in the target link during the second time period;

[0177] The link health of the target link is obtained by weighting and summing the RTT, packet loss rate, and latency jitter according to preset weights.

[0178] Under either the first condition or the second condition, the LFA association information associated with the LFA is sent to the core node. The first condition is that the link health is less than or equal to a first threshold, and the second condition is that the link health drops from greater than or equal to a second threshold to a first range for the first time. The first range is a numerical range greater than the first threshold and less than the second threshold, where the first threshold is less than the second threshold.

[0179] The network attack detection device 300 can implement each process of the above-described network attack detection method applied to edge nodes. The technical features are one-to-one and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0180] See Figure 4 , Figure 4 This is a second schematic diagram of a network attack detection device provided in an embodiment of this application, as shown below. Figure 4 As shown, the network attack detection device 400 includes:

[0181] The acquisition module 401 is used to acquire LFA association information sent by edge nodes in the target network that is associated with the Link Flooding Attack (LFA). The LFA association information includes the topology association degree of the communication link where the edge node is located. The topology association degree is used to characterize the criticality of the communication link where the edge node is located in the target network.

[0182] The first processing module 402 is used to determine a list of suspicious communication links containing LFAs in the target network based on the LFA association information.

[0183] The second processing module 403 is used to perform LFA mode verification on the communication links in the list of suspicious communication links to obtain the first network attack detection result of the communication links of the target network regarding the LFA.

[0184] Optionally, determining the list of suspicious communication links with LFAs in the target network based on the LFA association information includes:

[0185] In the communication links of the target network, the communication links where non-associative edge nodes are located are filtered to obtain an intermediate communication link list. The non-associative edge nodes are the edge nodes whose Internet Protocol IP addresses come from different Autonomous System (AS) domains or have different Tracking Area Codes (TACs).

[0186] The communication links that satisfy the third and fourth conditions are removed from the intermediate communication link list to obtain a list of suspicious communication links in the target network that contain LFA. The third condition is that the topological correlation degree is greater than or equal to the third threshold, and the fourth condition is that the number of times the edge node corresponding to the communication link sends the LFA correlation information is greater than or equal to the fourth threshold.

[0187] Optionally, the LFA attack association information also includes the link health of the communication link where the edge node is located. The link health is obtained by weighting and summing the round-trip time (RTT), packet loss rate, and latency jitter of the target packet according to a preset weight. The target packet is the packet in the communication link where the edge node is located within the second time period.

[0188] Optionally, the step of verifying the LFA attack pattern of the communication links in the list of suspicious communication links to obtain the first network attack detection result of the target network's communication links regarding LFA attacks includes:

[0189] Obtain link trajectory data of suspicious communication links in the list of suspicious communication links. The link trajectory data of the suspicious communication links includes: the number of bypass links for traffic in the target node within a third time period, the link health change value of the communication link where the target node is located, and the traffic change of the target node. The target node is the upstream node and / or downstream node of the suspicious communication link.

[0190] The similarity calculation results are obtained by using the Dynamic Time Warping (DTW) algorithm to calculate the link trajectory data of the suspected communication link and the link trajectory data under the preset LFA attack mode.

[0191] If the similarity calculation result is greater than or equal to the fifth threshold, the number of bypass links in the target node is greater than or equal to the sixth threshold, and the source edge node of the suspicious communication link is a non-associated edge node, then the suspicious communication link in the target network is determined to conform to the LFA attack mode.

[0192] If the similarity calculation result is less than the fifth threshold, the number of bypass links in the target node is less than the sixth threshold, or the source edge node of the suspicious communication link is not a non-associated edge node, the suspicious communication link in the target network is determined not to conform to the LFA attack mode.

[0193] The network attack detection device 400 can implement each process of the above-described network attack detection method applied to core nodes. The technical features are one-to-one and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0194] This application also provides an electronic device, including: a processor, a memory, and a program stored in the memory and executable on the processor. When the program is executed by the processor, it implements the various processes of the above-described network attack detection method embodiment applied to edge nodes and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0195] For details, see Figure 5 This application also provides an electronic device, including a bus 501, a transceiver 502, an antenna 503, a bus interface 504, a processor 505, and a memory 506.

[0196] The transceiver 502 is used to acquire traffic data and link information of a target link in the target network, wherein the target link is the communication link where the edge node is located in the target network.

[0197] The processor 505 is configured to determine the cross-regional traffic proportion of the target link based on the traffic data of the target link. The cross-regional traffic proportion of the target link is the proportion of the first data traffic in the total data traffic of the target link within a first time period. The first data traffic is the data traffic that passes through the target link in the middle.

[0198] The processor 505 is further configured to determine the number of slice subnets corresponding to the dependent links based on the link information of the target link, wherein the dependent links are the communication links of the target link excluding the link source node and the link destination node.

[0199] The processor 505 is further configured to determine the topology correlation degree of the target link based on the cross-regional traffic ratio and the number of slice subnets of the dependent link, wherein the topology correlation degree is used to characterize the link criticality of the target link in the target network;

[0200] Transceiver 502 is also used to send LFA association information associated with the Link Flooding Attack (LFA) to the core node. The LFA association information includes the topology association degree. The LFA association information is used by the core node to determine the first network attack detection result of the target link with respect to the LFA.

[0201] Optionally, the LFA association information also includes the link health of the target link, and sending the LFA association information associated with the LFA to the core node includes:

[0202] Obtain the round-trip time (RTT), packet loss rate, and latency jitter of packets in the target link during the second time period;

[0203] The link health of the target link is obtained by weighting and summing the RTT, packet loss rate, and latency jitter according to preset weights.

[0204] Under either the first condition or the second condition, the LFA association information associated with the LFA is sent to the core node. The first condition is that the link health is less than or equal to a first threshold, and the second condition is that the link health drops from greater than or equal to a second threshold to a first range for the first time. The first range is a numerical range greater than the first threshold and less than the second threshold, where the first threshold is less than the second threshold.

[0205] exist Figure 5In this document, a bus architecture (represented by bus 501) is used. Bus 501 can include any number of interconnected buses and bridges, linking various circuits including one or more processors represented by processor 505 and memory represented by memory 506. Bus 501 can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. Bus interface 504 provides an interface between bus 501 and transceiver 502. Transceiver 502 can be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by processor 505 is transmitted over a wireless medium via antenna 503, which further receives data and transmits it to processor 505.

[0206] Processor 505 manages bus 501 and general processing, and also provides various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory 506 can be used to store data used by processor 505 during operation.

[0207] Optionally, the processor 505 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or a complex programmable logic device (CPLD).

[0208] This application also provides an electronic device, including: a processor, a memory, and a program stored in the memory and executable on the processor. When the program is executed by the processor, it implements the various processes of the above-described network attack detection method embodiment applied to core nodes and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0209] For details, see Figure 6 This application also provides an electronic device, including a bus 601, a transceiver 602, an antenna 603, a bus interface 604, a processor 605, and a memory 606.

[0210] Transceiver 602 is used to acquire LFA association information sent by edge nodes in the target network that is associated with Link Flooding Attack (LFA). The LFA association information includes the topology association degree of the communication link where the edge node is located. The topology association degree is used to characterize the criticality of the communication link where the edge node is located in the target network.

[0211] Processor 605 is configured to determine a list of suspicious communication links in the target network containing LFAs based on the LFA association information;

[0212] The processor 605 is also configured to perform LFA mode verification on the communication links in the list of suspicious communication links to obtain the first network attack detection result of the communication links of the target network regarding the LFA.

[0213] Optionally, determining the list of suspicious communication links with LFAs in the target network based on the LFA association information includes:

[0214] In the communication links of the target network, the communication links where non-associative edge nodes are located are filtered to obtain an intermediate communication link list. The non-associative edge nodes are the edge nodes whose Internet Protocol IP addresses come from different Autonomous System (AS) domains or have different Tracking Area Codes (TACs).

[0215] The communication links that satisfy the third and fourth conditions are removed from the intermediate communication link list to obtain a list of suspicious communication links in the target network that contain LFA. The third condition is that the topological correlation degree is greater than or equal to the third threshold, and the fourth condition is that the number of times the edge node corresponding to the communication link sends the LFA correlation information is greater than or equal to the fourth threshold.

[0216] Optionally, the LFA attack association information also includes the link health of the communication link where the edge node is located. The link health is obtained by weighting and summing the round-trip time (RTT), packet loss rate, and latency jitter of the target packet according to a preset weight. The target packet is the packet in the communication link where the edge node is located within the second time period.

[0217] Optionally, the step of verifying the LFA attack pattern of the communication links in the list of suspicious communication links to obtain the first network attack detection result of the target network's communication links regarding LFA attacks includes:

[0218] Obtain link trajectory data of suspicious communication links in the list of suspicious communication links. The link trajectory data of the suspicious communication links includes: the number of bypass links for traffic in the target node within a third time period, the link health change value of the communication link where the target node is located, and the traffic change of the target node. The target node is the upstream node and / or downstream node of the suspicious communication link.

[0219] The similarity calculation results are obtained by using the Dynamic Time Warping (DTW) algorithm to calculate the link trajectory data of the suspected communication link and the link trajectory data under the preset LFA attack mode.

[0220] If the similarity calculation result is greater than or equal to the fifth threshold, the number of bypass links in the target node is greater than or equal to the sixth threshold, and the source edge node of the suspicious communication link is a non-associated edge node, then the suspicious communication link in the target network is determined to conform to the LFA attack mode.

[0221] If the similarity calculation result is less than the fifth threshold, the number of bypass links in the target node is less than the sixth threshold, or the source edge node of the suspicious communication link is not a non-associated edge node, the suspicious communication link in the target network is determined not to conform to the LFA attack mode.

[0222] exist Figure 6 In this document, a bus architecture (represented by bus 601) is used. Bus 601 may include any number of interconnected buses and bridges, linking various circuits including one or more processors represented by processor 605 and memory represented by memory 606. Bus 601 may also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. Bus interface 604 provides an interface between bus 601 and transceiver 602. Transceiver 602 may be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by processor 605 is transmitted over a wireless medium via antenna 603, which further receives data and transmits data to processor 605.

[0223] Processor 605 manages bus 601 and general processing, and also provides various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. Memory 606 can be used to store data used by processor 605 during operation.

[0224] Optionally, the processor 605 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or a complex programmable logic device (CPLD).

[0225] This application also provides a computer-readable storage medium storing a computer program. When executed by a processor, this computer program implements the various processes of the above-described embodiments of the network attack detection method applied to edge nodes, or the various processes of the above-described embodiments of the network attack detection method applied to core nodes, and achieves the same technical effect. To avoid repetition, it will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0226] This application also provides a computer program product, including computer instructions. When executed by a processor, the computer instructions implement the various processes of the above-described network attack detection method embodiment applied to edge nodes, or implement the various processes of the above-described network attack detection method embodiment applied to core nodes, and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0227] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0228] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0229] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A network attack detection method characterized by, Applied to edge nodes, the method includes: Obtain traffic data and link information of a target link in the target network, wherein the target link is the communication link where the edge node is located in the target network; The cross-regional traffic proportion of the target link is determined based on the traffic data of the target link. The cross-regional traffic proportion of the target link is the proportion of the first data traffic in the total data traffic of the target link within a first time period. The first data traffic is the data traffic that passes through the target link in the middle. The number of slice subnets corresponding to the dependent links is determined based on the link information of the target link. The dependent links are the communication links of the target link after removing the link source node and the link destination node. The topology correlation of the target link is determined based on the cross-regional traffic ratio and the number of slice subnets of the dependent link. The topology correlation is used to characterize the criticality of the target link in the target network. Send LFA association information associated with the Link Flooding Attack (LFA) to the core node. The LFA association information includes the topology association degree. The LFA association information is used by the core node to determine the first network attack detection result of the target link with respect to the LFA.

2. The method of claim 1, wherein, The LFA association information also includes the link health of the target link, and sending the LFA association information associated with the LFA to the core node includes: Obtain the round-trip time (RTT), packet loss rate, and latency jitter of packets in the target link during the second time period; The link health of the target link is obtained by weighting and summing the RTT, packet loss rate, and latency jitter according to preset weights. Under either the first condition or the second condition, the LFA association information associated with the LFA is sent to the core node. The first condition is that the link health is less than or equal to a first threshold, and the second condition is that the link health drops from greater than or equal to a second threshold to a first range for the first time. The first range is a numerical range greater than the first threshold and less than the second threshold, where the first threshold is less than the second threshold.

3. A network attack detection method characterized by, Applied to core nodes, the method includes: Obtain LFA association information sent by edge nodes in the target network that is associated with Link Flooding Attack (LFA). The LFA association information includes the topology correlation degree of the communication link where the edge node is located. The topology correlation degree is used to characterize the criticality of the communication link where the edge node is located in the target network. Based on the LFA association information, a list of suspicious communication links containing LFAs is determined in the target network; The communication links in the list of suspicious communication links are subjected to LFA mode verification to obtain the first network attack detection result of the communication links of the target network regarding LFA.

4. The method of claim 3, wherein, The step of determining a list of suspicious communication links containing LFAs in the target network based on the LFA association information includes: In the communication links of the target network, the communication links where non-associative edge nodes are located are filtered to obtain an intermediate communication link list. The non-associative edge nodes are the edge nodes whose Internet Protocol IP addresses come from different Autonomous System (AS) domains or have different Tracking Area Codes (TACs). The communication links that satisfy the third and fourth conditions are removed from the intermediate communication link list to obtain a list of suspicious communication links in the target network that contain LFA. The third condition is that the topological correlation degree is greater than or equal to the third threshold, and the fourth condition is that the number of times the edge node corresponding to the communication link sends the LFA correlation information is greater than or equal to the fourth threshold.

5. The method according to claim 3 or 4, characterized in that, The LFA attack association information also includes the link health of the communication link where the edge node is located. The link health is obtained by weighting and summing the round-trip time (RTT), packet loss rate, and latency jitter of the target packet according to a preset weight. The target packet is the packet in the communication link where the edge node is located within the second time period.

6. The method of claim 5, wherein, The step of verifying the LFA attack pattern of the communication links in the list of suspicious communication links to obtain the first network attack detection result of the target network's communication links regarding LFA attacks includes: Obtain link trajectory data of suspicious communication links in the list of suspicious communication links. The link trajectory data of the suspicious communication links includes: the number of bypass links for traffic in the target node within a third time period, the link health change value of the communication link where the target node is located, and the traffic change of the target node. The target node is the upstream node and / or downstream node of the suspicious communication link. The similarity calculation results are obtained by using the Dynamic Time Warping (DTW) algorithm to calculate the link trajectory data of the suspected communication link and the link trajectory data under the preset LFA attack mode. If the similarity calculation result is greater than or equal to the fifth threshold, the number of bypass links in the target node is greater than or equal to the sixth threshold, and the source edge node of the suspicious communication link is a non-associated edge node, then the suspicious communication link in the target network is determined to conform to the LFA attack mode. If the similarity calculation result is less than the fifth threshold, the number of bypass links in the target node is less than the sixth threshold, or the source edge node of the suspicious communication link is not a non-associated edge node, the suspicious communication link in the target network is determined not to conform to the LFA attack mode.

7. A network attack detection apparatus characterized by comprising: The device includes: The acquisition module is used to acquire traffic data and link information of a target link in the target network, wherein the target link is the communication link where the edge node is located in the target network; The first processing module is used to determine the cross-regional traffic ratio of the target link based on the traffic data of the target link. The cross-regional traffic ratio of the target link is the proportion of the first data traffic in the total data traffic of the target link within a first time period. The first data traffic is the data traffic that passes through the target link. The second processing module is used to determine the number of slice subnets corresponding to the dependent links based on the link information of the target link. The dependent links are the communication links of the target link after removing the link source node and the link destination node. The third processing module is used to determine the topology correlation degree of the target link based on the cross-regional traffic ratio and the number of slice subnets of the dependent link. The topology correlation degree is used to characterize the link criticality of the target link in the target network. The sending module is used to send LFA association information related to the Link Flooding Attack (LFA) to the core node. The LFA association information includes the topology association degree. The LFA association information is used by the core node to determine the first network attack detection result of the target link with respect to the LFA.

8. A network attack detection apparatus characterized by comprising: The device includes: The acquisition module is used to acquire LFA association information sent by edge nodes in the target network that is associated with Link Flooding Attack (LFA). The LFA association information includes the topology association degree of the communication link where the edge node is located. The topology association degree is used to characterize the criticality of the communication link where the edge node is located in the target network. The first processing module is used to determine a list of suspicious communication links in the target network that contain LFAs based on the LFA association information. The second processing module is used to perform LFA mode verification on the communication links in the list of suspicious communication links to obtain the first network attack detection result of the communication links of the target network regarding LFA.

9. An electronic device, comprising: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the method as claimed in any one of claims 1 to 2, or implements the steps of the method as claimed in any one of claims 3 to 6.

10. A computer program product, characterised in that, Includes computer instructions that, when executed by a processor, implement the steps of the method as described in any one of claims 1 to 2, or implement the steps of the method as described in any one of claims 3 to 6.