A method and apparatus for detecting an interrupt event, an electronic device, and a storage medium
By constructing a state transition table and an exception AS subgraph, and based on the valley-free principle, the accuracy problem of BGP interrupt event detection is solved, enabling rapid location of the interrupt source and improving detection efficiency and accuracy.
Patent Information
- Application Number
- CN202511285440.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-09
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2045-09-09
AI Technical Summary
Existing technologies lack accuracy in detecting interruption events, especially BGP interruption events, making it difficult to identify interruptions in critical ASs and pinpoint the source, resulting in long waiting times for maintenance personnel and impacting customer experience.
A state transition table is constructed based on the valleyless principle. By traversing the AS business relationship topology, an abnormal AS subgraph is generated. The number of interruptions and upstream and downstream relationships in the abnormal AS subgraph are used to determine the abnormal parameters to trace the source of the interruption event.
It improves the accuracy of interruption event detection, reduces computational complexity, quickly locates core ASs with significant global impact, and solves the problem of ambiguous responsibility transfer in multi-hop AS networks.
Smart Images

Figure CN121125461B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network security technology, and in particular to a method, apparatus, electronic device, and storage medium for detecting interruption events. Background Technology
[0002] Border Gateway Protocol (BGP) is a decentralized dynamic routing protocol for inter-autonomous systems on the Internet. While BGP plays a crucial role in the Internet, its security is quite vulnerable. This vulnerability makes BGP highly susceptible to attacks, and it is prone to large-scale routing fluctuations when directly or indirectly affected by various malicious attacks, configuration errors, etc. Analyzing route updates using rule matching reveals thousands of routing disruptions every day.
[0003] Traditional methods typically filter outage events based on the number of Internet Protocol (IP) interruptions or their duration, but they fail to consider the importance of different Autonomous Systems (AS) within the network. For example, an outage in a Tier 1 AS can cascade through customer-provider relationships, affecting hundreds of downstream ASs. Therefore, while the number of directly interrupted IPs may be small, the impact is significant. In such cases, filtering outage events based solely on the number of interrupted IPs may fail to identify outages affecting that Tier 1 AS. Furthermore, because routing outages propagate between ASs, traditional methods, even if they detect simultaneous outages in multiple ASs, struggle to pinpoint the source of the routing outage. This results in maintenance personnel spending considerable time locating the outage source and negatively impacts customer experience.
[0004] Therefore, improving the accuracy of interrupt event detection is an urgent problem to be solved. Summary of the Invention
[0005] This application provides a method, apparatus, electronic device, and storage medium for detecting interrupt events, so as to improve the accuracy of interrupt event detection.
[0006] In a first aspect, embodiments of this application provide a method for detecting interruption events, including:
[0007] Based on the valley-free principle, a state transition table is constructed between all ASes by traversing all ASes in the obtained autonomous system AS business relationship topology; the state transition table is used to describe the first legal path between all ASes; all ASes include: abnormal ASes and normal ASes.
[0008] Based on the obtained routing data, determine the set of abnormal ASs that have been interrupted within the target spatiotemporal range;
[0009] Based on the state transition table, in the AS business relationship topology, a second legal path is determined between any two abnormal ASs in the abnormal AS set, and an abnormal AS subgraph corresponding to the abnormal AS set is obtained based on each second legal path.
[0010] Based on the number of interruptions of each abnormal AS and the upstream and downstream relationships between each abnormal AS in the abnormal AS subgraph, the abnormal parameters of each abnormal AS are determined, and the interruption event is traced according to the abnormal parameters; the abnormal parameters are used to reflect the probability that the corresponding abnormal AS is the source of the interruption event.
[0011] Secondly, embodiments of this application provide an interruption event detection device, comprising:
[0012] A construction unit is used to construct a state transition table between all ASes by traversing all ASes in the obtained autonomous system AS business relationship topology based on the valley-free principle; the state transition table is used to describe the first legal path between all ASes; all ASes include: abnormal ASes and normal ASes.
[0013] The first determining unit is used to determine the set of abnormal ASs that have been interrupted within the target spatiotemporal range based on the obtained routing data;
[0014] The second determining unit is used to determine, based on the state transition table, a second legal path between any two abnormal ASs in the abnormal AS set in the AS business relationship topology, and to obtain an abnormal AS subgraph corresponding to the abnormal AS set based on each of the second legal paths.
[0015] The tracing unit is used to determine the abnormal parameters of each abnormal AS based on the number of interruptions of each abnormal AS and the upstream and downstream relationships between each abnormal AS in the abnormal AS subgraph, and to trace the interruption event according to the abnormal parameters; the abnormal parameters are used to reflect the probability that the corresponding abnormal AS is the source of the interruption event.
[0016] In some embodiments, the building unit is specifically used for:
[0017] The standard paths that conform to the valley-free principle are constructed as a state transition diagram;
[0018] For each of the entire set of ASs, perform the following operation:
[0019] Set the AS as the current AS;
[0020] Based on the state transition diagram, search for the next hop AS of the current AS in the AS business relationship topology;
[0021] If the next-hop AS is found, the business state of the current AS and the path state corresponding to the business state of the next-hop AS are combined with the next-hop AS to form an AS-path state pair, and the next-hop AS is used as the current AS.
[0022] If the next-hop AS is not found, at least one AS-path state pair is connected into a state transition line according to the upstream and downstream relationship between all ASs.
[0023] The individual state transition rows are combined to form the state transition table.
[0024] In some embodiments, the path states include: a first path state, a second path state, and a third path state; the state transition diagram is composed of at least one of the first path state, the second path state, and the third path state in sequence; the first path state indicates a state transition from an AS with a business state of customer to an AS with a business state of provider; the second path state indicates a state transition from an AS with a business state of peer to an AS with a business state of peer; the third path state indicates a state transition from an AS with a business state of provider to an AS with a business state of customer.
[0025] In some embodiments, the second determining unit is specifically used for:
[0026] Each of the aforementioned abnormal ASs is taken as the starting point of the path, and the following iterative operation is performed on each of the aforementioned abnormal ASs:
[0027] Use the abnormal AS as the current AS;
[0028] In the state transition table, the next hop AS is searched along the first valid path;
[0029] If the next-hop AS is a normal AS, then record the path status corresponding to the business relationship between the current AS and the next-hop AS; use the current AS as the predecessor AS, and update the next-hop AS to the current AS;
[0030] If the next-hop AS is an abnormal AS, then record the path status of the current AS corresponding to the business relationship of the current AS and the business relationship of the next-hop AS; use the current AS as the predecessor AS, and construct a second legal path based on at least one predecessor AS.
[0031] In some embodiments, the second determining unit is specifically used for:
[0032] Each normal AS and each abnormal AS in each second legal path is assigned to the node set of the abnormal AS subgraph, and the path state of each normal node and each abnormal node in each second legal path is assigned to the edge set of the abnormal AS subgraph.
[0033] The abnormal AS subgraph is constructed based on the node combinations and the edge set.
[0034] In some embodiments, the tracing unit is specifically used for:
[0035] For each of the aforementioned abnormal AS, perform the following operation:
[0036] The interruption count of each abnormal AS located downstream of the abnormal AS in the abnormal AS subgraph is multiplied by the corresponding attenuation factor and used as the interruption propagation parameter.
[0037] The sum of the number of interrupts of the abnormal AS and the interrupt propagation parameter is used as the abnormal parameter.
[0038] In some embodiments, the building unit is specifically used for:
[0039] Determine whether the state transition table is stored in the cache;
[0040] If the state transition table is not stored in the cache, then determine whether the state transition table is stored in the local file;
[0041] If the state transition table is stored in the local file, the state transition table is added to the cache, and old cache files are deleted from the cache according to the cache time from oldest to newest, so that the number of cache files in the cache does not exceed a preset number threshold.
[0042] If the state transition table is not stored in the local file, then based on the valley-free principle, the state transition table between all ASs is constructed by traversing all ASs in the obtained autonomous system AS business relationship topology, and the state transition table is added to the cache. Then, according to the cache time from oldest to newest, the old cache files in the cache are deleted so that the number of cache files in the cache does not exceed the preset number threshold.
[0043] Thirdly, embodiments of this application provide an electronic device, including:
[0044] Memory, used to store program instructions;
[0045] The processor is used to call the program instructions stored in the memory and execute the above-mentioned interrupt event detection method according to the obtained program instructions.
[0046] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the aforementioned method for detecting interrupt events.
[0047] Fifthly, embodiments of this application provide a computer program product, including a computer program stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, causing the electronic device to perform the aforementioned interrupt event detection method.
[0048] This application provides a method, apparatus, electronic device, and storage medium for detecting interruption events. First, this application constructs a state transition table for all Action Systems (AS) based on the valley-free principle. When searching subsequent ASs, the state transition conditions in the state transition table can be used to force the search path to conform to business rules. This fundamentally solves the problem of illegal path interference, ensures the physical authenticity of subsequently generated abnormal AS subgraphs, and lays the foundation for interruption tracing.
[0049] Then, this application proposes an abnormal AS subgraph focusing strategy, which generates abnormal AS subgraphs by traversing only the second legal path between ASs and eliminating irrelevant ASs. Compared to traversing all ASs, the computational complexity is reduced from O(N^2) to O(N^2). 2 The number of edges in the subgraph of abnormal ASs is reduced to O(k·E) (where N is the total number of ASs, k is the number of abnormal ASs, and E is the number of edges in the subgraph of abnormal ASs), achieving efficient pruning and significantly improving analysis efficiency.
[0050] Finally, based on the routing propagation direction in commercial scenarios, this application embodiment calculates upstream anomaly parameters by accumulating the number of downstream interruptions, thereby quantifying the "upstream impact range," quickly locating core ASs with significant global impact, solving the key problem of ambiguous responsibility transmission in multi-hop AS networks, and thus improving the accuracy of interruption event detection. Attached Figure Description
[0051] Figure 1 A schematic diagram of the structure of an interruption event detection method provided in an embodiment of this application;
[0052] Figure 2 A flowchart illustrating an interruption event detection method provided in an embodiment of this application;
[0053] Figure 3 This is a schematic diagram of a state transition diagram provided in an embodiment of this application;
[0054] Figure 4 A schematic diagram of a state transition table provided in an embodiment of this application;
[0055] Figure 5 A caching flowchart for a state transition table is provided in an embodiment of this application;
[0056] Figure 6 A visualized anomaly AS subgraph provided for embodiments of this application;
[0057] Figure 7 A schematic diagram of another interruption event detection method provided in an embodiment of this application;
[0058] Figure 8 This is a schematic diagram of the structure of an electronic device for an interruption event detection method according to an embodiment of this application;
[0059] Figure 9 This is a schematic diagram of the hardware structure of an electronic device using an embodiment of this application. Detailed Implementation
[0060] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0061] The following describes some of the concepts involved in the embodiments of this application.
[0062] AS: In the Internet, a combination of all IP networks and routers under the jurisdiction of one or more entities that enforce a common routing policy on the Internet.
[0063] BGP is a decentralized dynamic routing protocol between Autonomous Systems on the Internet. It allows different ASes on the Internet to automatically exchange IP routing information and reachability information.
[0064] Breadth-First Search (BFS) is an algorithm for traversing or searching a tree or graph. In level-order traversal, starting from a root node, the root node is visited first, then all its adjacent nodes are visited in turn, and so on, until all reachable nodes have been visited. This method is typically implemented using a queue. In this embodiment, each AS can be considered a node.
[0065] The design concept of the embodiments of this application is briefly introduced below:
[0066] Border Gateway Protocol (BGP) is a decentralized dynamic routing protocol between Autonomous Systems (AS) on the Internet. It allows different ASs on the Internet to automatically exchange IP routing and reachability information. While BGP plays a crucial role in the Internet, its security is vulnerable. ASs interconnected via BGP lack an effective authentication mechanism for received prefix routes, leading to the unconditional acceptance or propagation of routes from neighboring ASs, creating security risks. This security vulnerability makes BGP highly susceptible to attacks, easily causing large-scale routing fluctuations when faced with various malicious attacks, configuration errors, or other direct or indirect influences. Analysis of route updates using rule matching reveals thousands of routing outages daily. However, only a small fraction of these outages truly represent abnormal or malicious behavior. Therefore, identifying noteworthy outage events from a large pool of outages based on routing control plane data is a pressing issue that needs to be addressed.
[0067] In view of this, embodiments of this application provide a method, apparatus, electronic device, and storage medium for detecting interruption events. First, embodiments of this application construct a state transition table for all ASs based on the valley-free principle. When searching subsequent ASs, the state transition conditions in the state transition table can be used to force the search path to conform to business rules. This fundamentally solves the problem of illegal path interference, ensures the physical authenticity of subsequently generated abnormal AS subgraphs, and lays the foundation for interruption tracing.
[0068] Then, this application proposes an abnormal AS subgraph focusing strategy, which generates abnormal AS subgraphs by traversing only the second legal path between ASs and eliminating irrelevant ASs. Compared to traversing all ASs, the computational complexity is reduced from O(N^2) to O(N^2). 2 The number of edges in the subgraph of abnormal ASs is reduced to O(k·E) (where N is the total number of ASs, k is the number of abnormal ASs, and E is the number of edges in the subgraph of abnormal ASs), achieving efficient pruning and significantly improving analysis efficiency.
[0069] Finally, based on the routing propagation direction in commercial scenarios, this application embodiment calculates upstream anomaly parameters by accumulating the number of downstream interruptions, thereby quantifying the "upstream impact range," quickly locating core ASs with significant global impact, solving the key problem of ambiguous responsibility transmission in multi-hop AS networks, and thus improving the accuracy of interruption event detection.
[0070] The interruption event detection method provided in this application can be applied to the following network security scenarios:
[0071] 1. Detect and analyze routing security threats such as BGP outages.
[0072] The embodiments of this application can achieve automated, high-real-time detection of routing outage events based on BGP routing control plane data. By selecting different routing observation points, routing outage detection models from different perspectives can be constructed. For example, based on the operator's live network data, routing outages at the AS level can be detected from a Chinese perspective, which helps to further study the causes of routing outages and provide event analysis reports.
[0073] 2. Construct a state transition table based on the valleyless principle to achieve fast route path search and route leakage detection.
[0074] This application's embodiments transform the valley-free principle into a state transition graph, which can efficiently search for legitimate AS paths based on AS business relationship topology. In addition to being used to construct abnormal AS subgraphs for the target AS set, it can also be used to quickly provide all paths for a given starting AS and ending AS, or to verify whether a path conforms to the valley-free principle. If it does not conform, route leakage may have occurred.
[0075] 3. Provide auxiliary analysis for other routing anomalies with graph relationships.
[0076] In addition to performing correlation analysis on routing outage anomalies, this application's embodiments can also study other types of routing anomalies by changing the method of obtaining the abnormal AS set. For example, using the hijacked or leaked AS set as the target set to construct an abnormal AS subgraph can enable analysis of the connection relationships of hijacked or leaked ASs, helping to discover the main targets of routing attacks or the core nodes of network fluctuations, and providing a basis for judgment in related fields of analysis.
[0077] like Figure 1 As shown, the interruption event detection method provided in this application involves the following modules:
[0078] The module includes a data input and business relationship parsing module, a state transition table pre-calculation module, an exception AS acquisition module, an exception AS subgraph construction module, and an interruption event tracing module.
[0079] Data Input and Business Relationship Parsing Module: Based on AS business relationship data, it parses all AS business relationships and constructs an AS adjacency table that represents the topology of AS business relationships, so as to store different business relationship types at the same time.
[0080] State transition table pre-computation module: Based on the business relationship topology between all ASs, each AS has three business states. Based on the valley-free principle, it traverses all ASs to obtain a state transition table consisting entirely of the first legal path.
[0081] Anomaly AS Acquisition Module: A set of anomaly ASs that have been interrupted within the target spatiotemporal range, calculated based on routing data.
[0082] Anomaly AS Subgraph Construction Module: For any two ASs in the anomaly AS set, construct all their second legal paths based on the state transition table, and obtain the smallest anomaly AS subgraph containing all feasible paths based on each second legal path.
[0083] Interruption event tracing module: Visualizes the abnormal AS subgraph and traces the interruption source based on its in-degree and other attributes.
[0084] The following is combined with Figure 2 This paper introduces each module and the interrupt event detection method provided in this application.
[0085] Figure 2 A flowchart of an interruption event detection method provided in an embodiment of this application is shown, as follows: Figure 1 As shown, the method may include the following steps S201 to S204:
[0086] S201: Based on the valley-free principle, construct a state transition table between all ASs by traversing all ASs in the obtained autonomous system AS business relationship topology.
[0087] The state transition table describes the first legal path among all ASs. The first legal path is an AS path that conforms to the valley-free principle. All ASs include: abnormal ASs and normal ASs.
[0088] Specifically, before constructing the state transition table, this application embodiment can use the data input and business relationship parsing module to parse all AS business relationships based on the AS business relationship data published by the Center for Applied Internet Data Analysis (CAIDA), construct an AS adjacency table, and store different business relationship types.
[0089] Specifically, in this application embodiment, AS business relationship data can be obtained from CAIDA and stored in the database monthly (or weekly, daily, etc.) via a scheduled task. The original business relationship data obtained from CAIDA includes: (AS1, AS2, rel), where rel only contains two values: 0 and -1. When rel is 0, it means that AS1 and AS2 are peers. When rel is -1, it means that AS1 is the provider of AS2 and AS2 is the customer of AS1.
[0090] After periodically acquiring AS business relationship data and storing it in the database, data parsing is automatically triggered. The AS business relationship data is reconstructed using a method similar to a directed graph adjacency list. For each AS in the AS business relationship data, all its neighboring AS nodes are stored in a dictionary. Since the edges (business relationships) between two AS nodes may have three types: peer-peer (p2p), provider-customer (p2c), and customer-provider (c2p), the numbers 0 represent p2p, -1 represents p2c, and 1 represents c2p, respectively, and these three edge types are added to the adjacency list. In this embodiment, the AS business relationship topology can be represented by this adjacency list.
[0091] In this case, type "1" means that the business relationship between the previous AS and the current AS is customer-provider, that is, the previous AS is the customer of the current AS, and the current AS is the provider of the previous AS.
[0092] In an optional implementation, embodiments of this application can construct a state transition table using a state transition table pre-calculation module:
[0093] (A1) Construct a state transition diagram for the standard path that conforms to the valley-free principle.
[0094] In this embodiment of the application, the path state can refer to the type of business relationship between two ASs. Since the types of business relationships are divided into three types: 0 (p2p), -1 (p2c), and 1 (c2p), the path state in this embodiment of the application is also divided into three types: 0, -1, and 1.
[0095] The state transition diagram consists of at least one of the following: a first path state, a second path state, and a third path state. The first path state represents a state transition from an AS with a business state of customer to an AS with a business state of provider, i.e., the first path state corresponds to the business relationship type represented by "1" above. The second path state represents a state transition from an AS with a business state of peer to an AS with a business state of peer, i.e., the second path state corresponds to the business relationship type represented by "0" above. The third path state represents a state transition from an AS with a business state of provider to an AS with a business state of customer, i.e., the third path state corresponds to the business relationship type represented by "-1" above.
[0096] In this embodiment, when establishing the first legal path between any two ASs based on the AS business relationship topology, the first legal path must satisfy the valley-free principle of AS business relationships. The business relationships between two adjacent ASs should sequentially satisfy: 0 or more customer-provider + 0 or 1 peer-peer + 0 or more provider-customer. Therefore, the state transition diagram is composed of at least one of the following sequentially: first path state, second path state, and third path state.
[0097] like Figure 3 As shown, this is a schematic diagram of a state transition diagram provided in an embodiment of this application. When the business relationship between the previous hop AS and the current AS in the path is 1, 0, or -1 respectively, the business relationship between the current AS and the next hop AS can only be determined according to... Figure 3 The state transition is performed in the indicated direction. If the current AS is the first AS in the path, its state transition condition is the same as when the business relationship is "1". Figure 3 The "1" in the text refers to the business relationship between the previous AS and the current AS as customer-provider, that is, the previous AS is the customer of the current AS, and the current AS is the provider of the previous AS. Figure 3 The “0” in the text refers to the peer-peer relationship between the previous AS and the current AS, that is, the previous AS is the peer of the current AS, and the current AS is the peer of the previous AS. Figure 3 The "-1" indicates that the business relationship between the previous AS and the current AS is provider-customer, meaning that the previous AS is the provider of the current AS, and the current AS is the customer of the previous AS.
[0098] Therefore, by Figure 3 It can be seen that the business relationships between ASs in the first legal path corresponding to the state transition diagram that conforms to the valley-free principle can be:
[0099] One or more 1s → one 0 → one or more -1s, one or more 1s → one 0, one 0 → one or more -1s, one or more 1s → one or more -1s, one or more 1s, one 0, one or more -1s.
[0100] (A2) For each AS in the entire AS, perform the following operation:
[0101] Set AS as the current AS; based on the state transition graph, search for the next hop AS of the current AS in the AS business relationship topology;
[0102] If a next-hop AS is found, the business state of the current AS and the path state corresponding to the business state of the next-hop AS are combined with the next-hop AS to form an AS-path state pair, and the next-hop AS is used as the current AS; if no next-hop AS is found, at least one AS-path state pair is connected into a state transition line according to the upstream and downstream relationships between all ASs.
[0103] Specifically, in this embodiment of the application, considering that directly searching for AS paths in the AS business relationship topology would involve traversing a large number of illegal paths, in order to improve the time efficiency of subsequently constructing abnormal AS subgraphs, a state transition table between all AS nodes is directly constructed based on the valleyless principle state transition graph and the AS business relationship topology. This state transition table is updated synchronously with the AS business relationship data, so a pre-computation method can be used to further improve reading efficiency.
[0104] Similar to a node state transition graph, when the next hop AS is searched using path state s, the type of business relationship between the next hop AS and the current AS is considered. Therefore, in this embodiment, the state transition table can be composed of "ASn, s" AS-path state pairs, where ASn refers to the AS with sequence number n.
[0105] Specifically, when constructing each state transition row in the state transition diagram, an AS is selected from all ASs as the first current AS. In the AS business relationship topology, the next-hop AS is searched. The type of business relationship between the current AS and the next-hop AS should conform to the state transition diagram. If a next-hop AS is found, the type of business relationship between the current AS and the next-hop AS, i.e., the corresponding path state, is recorded, and this path state is paired with the next-hop AS to form an AS-path state pair. If no next-hop AS is found, at least one AS-path state pair is combined according to the upstream and downstream relationships between the ASs to form a state transition row.
[0106] (A3) Combine the state transition rows into a state transition table.
[0107] Specifically, since the current AS can have multiple next-hop ASs that conform to the state transition diagram, an AS can have multiple state transition lines.
[0108] Combine the various state transition lines into Figure 4 The state transition table is shown.
[0109] like Figure 4 As shown, it is a schematic diagram of a state transition table provided in an embodiment of this application. Figure 4As shown, in the first state transition line, starting from AS1, the current node is AS1. When the path state is 1, the next hop AS that conforms to the first valid path includes AS11537. At the same time, the path state (i.e., the business relationship between AS1 and AS11537 is peer-peer) becomes 0. AS11537 and 0 are recorded as an AS-path state pair, and AS11537 is taken as the current AS. At this time, the next hop AS that conforms to the first valid path includes or AS25139. At the same time, the path state becomes -1 (i.e., the business relationship between AS11537 and AS25139 is provider-customer). And so on, traversing all AS, to obtain a state transition table consisting only of valid states.
[0110] This embodiment of the application takes into account that the pre-computed state transition table needs to traverse all ASs, and the update frequency of AS business relationship data is low. Therefore, this embodiment of the application can save the pre-computed state transition table locally in the form of a file, and maintain the upper limit of the number of cache files through the Least Recently Used (LRU) caching mechanism to retain the cache of recently accessed files. Each time there is a new abnormal AS subgraph construction request, the date version corresponding to the request is first obtained, and then the state transition table reading and cache update are performed according to the following process, and then the abnormal AS acquisition module is entered.
[0111] In an optional implementation, the specific implementation method for reading the state transition table and updating the cache in this application embodiment is as follows: Figure 5 As shown:
[0112] S501: Get the version of the requested date;
[0113] S502: Determine whether the state transition table is stored in the cache;
[0114] If the state transition table is not stored in the cache, execute S504; otherwise, execute S503.
[0115] S503: Obtain the state transition table;
[0116] S504: Determine whether a state transition table is stored in a local file;
[0117] If the state transition table is stored in the local file, then execute S505; otherwise, execute S508.
[0118] S505: Obtain the state transition table and add it to the cache;
[0119] S506: Determine whether the number of cached files exceeds a preset threshold;
[0120] If the number of cached files exceeds the preset threshold, execute S507;
[0121] S507: Delete the oldest cache file;
[0122] Specifically, based on the cache time from oldest to newest, the oldest cache file is deleted to ensure that the number of cache files in the cache does not exceed a preset threshold.
[0123] S508: Determine if AS business relationship data exists;
[0124] If it exists, proceed to S509; otherwise, proceed to S510.
[0125] S509: Based on the valley-free principle, by traversing all ASs in the obtained autonomous system AS business relationship topology, construct a state transition table between all ASs, and add the state transition table to the cache.
[0126] S510: Error message.
[0127] S202: Based on the obtained routing data, determine the set of abnormal ASs that have been interrupted within the target spatiotemporal range.
[0128] Specifically, this application embodiment can detect network-wide AS-level routing outage events based on the Routing Information Base (RIB) and BGP Update Message files in the routing data, by real-time monitoring of the number of IPs advertised by each AS and setting an outage threshold. For a selected time range and spatial range (such as a country), it can filter out the set of abnormal ASs that have experienced outages, as well as parameters such as the number of outage events, outage duration, and scope of impact.
[0129] S203: Based on the state transition table, in the AS business relationship topology, determine the second legal path between any two abnormal ASs in the abnormal AS set, and obtain the abnormal AS subgraph corresponding to the abnormal AS set based on each second legal path.
[0130] The second legal path refers to the AS path between abnormal ASs that conform to the valley-free principle.
[0131] In this application embodiment, for a set of abnormal ASs, this application needs to obtain the most comprehensive network topology architecture related to these abnormal ASs, that is, an abnormal AS subgraph of the AS business relationship topology, while minimizing its resource consumption, i.e., maintaining the smallest size of the abnormal AS subgraph. The basic principle of the method adopted in this application embodiment is that for an abnormal AS set containing n abnormal ASs, any two abnormal ASs can form a originating AS-arriving AS pair. Based on the valley-free principle, all second legal paths between these two abnormal ASs are found in the AS business relationship topology, forming a path set P. Then, for all originating AS-arriving AS pairs, the union of all path sets P is the smallest abnormal AS subgraph sought. Since the valley-free principle has symmetry, the path set obtained by swapping originating AS-arriving AS pairs is the same as the original. Therefore, the originating AS-arriving AS pairs can be unordered, i.e., there are a total of n(n-1) / 2 originating AS-arriving AS pairs.
[0132] Specifically, to further improve time efficiency, this embodiment performs AS path search on a pre-computed state transition table. For each abnormal AS in the abnormal AS set, it is used as the starting point of the path, and all second legal paths are searched on the state transition table. Since the state transition table only stores the state transitions of the first legal path (which conforms to the valley-free principle), the time efficiency is greatly improved.
[0133] In an alternative implementation, embodiments of this application can determine a second legitimate path using an abnormal AS subgraph construction module:
[0134] Each exception AS is used as the starting point of the path, and the following iterative operation is performed on each exception AS:
[0135] The abnormal AS is set as the current AS; in the state transition table, the next hop AS is searched along the first valid path.
[0136] If the next-hop AS is a normal AS, record the path status corresponding to the business relationship between the current AS and the next-hop AS; use the current AS as the predecessor AS and update the next-hop AS to the current AS; if the next-hop AS is an abnormal AS, record the path status of the current AS corresponding to the business relationship between the current AS and the next-hop AS; use the current AS as the predecessor AS and construct a second legal path based on at least one predecessor AS.
[0137] Specifically, in this embodiment, a BFS (Browse-First Search) approach can be used to search for the first valid path. First, an abnormal AS (Application Server) is used as the starting point of the path. Then, along the first valid path, the next-hop AS is searched. Each time a next-hop AS is reached, it is added to a queue, and the path state of the current AS corresponding to the business relationship of the current AS and the next-hop AS is recorded. The current AS is designated as the predecessor AS. If the next-hop AS encountered also exists in the set of abnormal ASs, a second valid path is considered to have been found. Subsequently, backtracking is used to reconstruct the complete second valid path using the predecessor AS.
[0138] It should be noted that, in the embodiments of this application, the set of abnormal AS used to construct the abnormal AS subgraph can be a subset of abnormal AS for a certain abnormality from the total set of abnormal AS composed of all abnormal AS.
[0139] For example, an abnormal AS can be an AS corresponding to a leakage abnormal event, an AS corresponding to a hijacking abnormal event, or an AS corresponding to an interruption abnormal event. Therefore, when the total set of abnormal ASs contains abnormal ASs of the above three types of abnormal events, an abnormal AS subgraph can be constructed only for the abnormal ASs of the leakage abnormal events. In this case, only the abnormal AS of the leakage abnormal event is used as the starting point of the path, and the above steps of determining the second legal path and constructing the abnormal AS subgraph are executed.
[0140] In one optional implementation, the present application embodiments employ the following specific implementation method when constructing the abnormal AS subgraph:
[0141] Each normal AS and each abnormal AS in each second legal path is assigned to a node set of the abnormal AS subgraph, and the path states of each normal node and each abnormal node in each second legal path are assigned to an edge set of the abnormal AS subgraph; the abnormal AS subgraph is constructed based on the node combination and the edge set.
[0142] Specifically, the AS on the second valid path and the second valid path are added to the node set V and the edge set E, respectively. After all the abnormal ASs in the abnormal AS set have been visited, all related second valid paths and abnormal ASs in the abnormal AS set have been added. At this point, the abnormal AS subgraph can be constructed using the node set V and the edge set E.
[0143] In this embodiment, based on the node set V and the edge set E, a force-directed graph tool can be used to visualize the abnormal AS subgraph. Since upstream ASs in the network often establish peer relationships with multiple tier-1 ASs, involving a large number of edges and complex connection relationships, drawing ASs with peer relationships separately is more helpful in reflecting the AS hierarchy.
[0144] like Figure 6 As shown, it is a visualized abnormal AS subgraph provided in an embodiment of this application. Figure 6 Dark nodes represent normal AS nodes, while light nodes represent abnormal AS nodes. Edges between any two AS nodes point from the customer to the provider, and two peer AS nodes are connected by dashed lines.
[0145] S204: Based on the number of interruptions of each abnormal AS and the upstream and downstream relationships between each abnormal AS in the abnormal AS subgraph, determine the abnormal parameters of each abnormal AS, and trace the source of the interruption event according to the abnormal parameters.
[0146] The abnormal parameter is used to reflect the probability that the corresponding abnormal AS is the source of the interruption event. In this embodiment, the larger the abnormal parameter, the more interruptions the downstream abnormal AS has, and the greater the probability that the abnormal AS is the source of the interruption event.
[0147] In an optional implementation, embodiments of this application can determine abnormal parameters through an interrupt event tracing module:
[0148] For each abnormal AS, perform the following operation:
[0149] In the abnormal AS subgraph, the product of the number of interruptions of each abnormal AS downstream of the abnormal AS and the corresponding attenuation factor is used as the interruption propagation parameter; the sum of the number of interruptions of the abnormal AS and the interruption propagation parameter is used as the abnormal parameter.
[0150] Specifically, in this embodiment, abnormal ASs that have experienced outages are marked in the constructed abnormal AS subgraph, which allows for a direct visual observation of whether multiple abnormal ASs have a business relationship correlation. Simultaneously, the edge pointing relationship is defined as from an AS with a business state of "customer" to an AS with a business state of "provider," while edges between peers do not have a pointing relationship. The in-degree of each AS node represents the number of directly connected downstream ASs in its business relationship, and the out-degree represents the number of directly connected upstream ASs. For all abnormal ASs that have experienced outages, an abnormal parameter x is assigned equal to the number of times the AS experienced an outage. Then, all abnormal ASs are propagated one hop to their upstream provider ASs. For example, if the current AS's abnormal parameter is x, then the abnormal parameters of all its one-hop upstream nodes are increased by c*x, where c is a decay factor. Finally, the magnitude of the abnormal parameters of all ASs in the abnormal AS subgraph is statistically analyzed, which allows for a preliminary determination of the suspected source of the routing outage. The larger the abnormal parameter, the more outages have occurred in the AS itself or its directly connected downstream ASs, making it more worthy of attention.
[0151] like Figure 7As shown, it is a structural schematic diagram of another interruption event detection method provided in the embodiments of this application. Figure 7 In the process, after the business relationship data is updated, AS business relationship data is collected, and an adjacency list reflecting the AS business relationship topology is constructed. Based on the adjacency list and the valley-free principle, the state transition table is pre-calculated, and a caching acceleration mechanism is set up. After storing the state transition table locally, it is cached. An abnormal AS subgraph is constructed based on the abnormal AS set. After visualizing the abnormal AS subgraph, graph index analysis and source tracing are performed.
[0152] The method for detecting interruption events in this application will be described below with reference to embodiments:
[0153] Step 1: Collect AS business relationship data, parse it, and store it in the database. Collect AS business relationship data from the CAIDA website. CAIDA updates the latest business relationship data at the beginning of each month. Use a scheduled task on the data storage server to automatically collect AS business relationship data files, parse them, and store the AS business relationship data with the update time into the database.
[0154] Step 2: State Transition Table Pre-calculation. After the AS business relationship data file is imported into the database, the state transition table pre-calculation process is automatically initiated. For all ASs contained in the AS business relationship data file, a transition node with three states is created for each AS. These three states correspond to the valley-free principle state transition graph of ASs, namely 1, 0, and -1, corresponding to c2p, p2p, and p2c relationships respectively. The state transition table only stores the first valid path that conforms to the valley-free principle. An adjacency list is used to store the state transition table, and each node contains two pieces of information: the current AS number and the current path state. This is then converted into a JSON file and saved locally.
[0155] Step 3: Obtain the set of anomalous ASes within the target spatiotemporal range. Obtain the set of anomalous ASes used to construct the AS subgraph for this purpose. In this example, the anomalous AS subgraph is constructed from ASes with routing outages, covering ASes in country A that have experienced routing outages within the past month. Other types of anomalous AS sets, such as those related to hijacking or data leaks, can also be used to investigate other types of anomalous events.
[0156] Step 4: Read the State Transition Table. Based on the time range of the given abnormal AS set, determine the AS business relationship to be used and the version of the state transition table. First, check if the calculated state transition table exists in the cache. If not, search in the local JSON file. If it exists, load the file and save it to the cache. The number of cached files should not exceed the set limit, such as 10. If it does, release the oldest cached file.
[0157] Step 5: Construct the Abnormal AS Subgraph. Based on the state transition table and BFS, construct the minimum abnormal AS subgraph. Starting with each abnormal AS in the abnormal AS set, search the state transition table and use BFS to find the first valid path starting from that AS, continuing until the next hop AS is also an abnormal AS, which is considered a second valid path found. Then, reconstruct the complete path using predecessor nodes using backtracking, and add the AS and edges on the path to the node set V and edge set E, respectively. Once all nodes in the abnormal AS set have been visited, all second valid paths and ASs in the abnormal AS set have been added. At this point, the abnormal AS subgraph can be constructed using the node set V and edge set E.
[0158] Step Six: Visualize the Relationship Graph. Based on the node set V and edge set E, the returned anomalous AS subgraph can be visualized using a force-directed relationship graph tool. ASs that are interconnected and have p2p connections are considered to form a peer layer. The coordinates of these nodes are calculated individually, and their positions in the force-directed graph are fixed. Anomalous ASs within the anomalous AS set are individually marked in the visualization graph, and arrows are used to indicate c2p relationships between edges, providing a clear visual understanding of the connectivity relationships within the anomalous AS set.
[0159] Step 7: Graph Indicator Analysis and Interruption Tracing. Based on the node set V and edge set E, relevant attributes can be calculated based on the graph structure to achieve AS clustering or interruption tracing. An example is shown below:
[0160] (1) AS node in-degree: By statistically analyzing the in-degree of each AS in the graph (i.e. the number of customers when it acts as a provider) and the proportion of abnormal ASs, we can obtain the connectivity of ASs and downstream abnormality indicators.
[0161] (2) AS Node Anomaly Parameters: Initially, all abnormal ASs in the subgraph are assigned an anomaly parameter x, where x is the number of times the AS experienced routing interruptions within a specified time range. Normal ASs have an anomaly parameter of 0. For all ASs in the abnormal AS subgraph, one-hop propagation of the anomaly parameter is performed simultaneously, from the customer AS to the provider AS. For each abnormal AS, the anomaly parameter x corresponding to its terminal count is multiplied by a propagation attenuation factor c and added to its provider AS. Therefore, the anomaly parameter of an AS in an abnormal AS subgraph is the sum of the propagation results of all its one-hop downstream ASs and the anomaly parameter corresponding to its terminal count, as shown in Formula 1 below:
[0162]
[0163] Where m represents the number of abnormal ASs whose downstream is the customer when the AS acts as a provider, x0 represents the exception parameter corresponding to the number of interruptions of the AS, and x i The exception AS for its downstream customer i The abnormal parameters corresponding to the number of terminal attempts.
[0164] Finally, by statistically analyzing the abnormal parameters of all ASs in the abnormal AS subgraph, we can preliminarily determine the suspected source AS of the routing outage. The larger the abnormal parameter, the more outages have occurred in the AS itself or its directly connected downstream ASs, and the more attention it deserves.
[0165] (3) AS Node Hierarchy and Clustering: For ASs with peer relationships, the involved ASs and p2p edges can be used to form a peer layer. Based on whether all ASs in the peer layer are connected, it can be divided into multiple internally connected sub-peer layers. Using the sub-peer layers as a benchmark, the customer AS of the current AS node is considered a downstream AS, and the provider AS is considered an upstream AS. This allows for hierarchical division of the abnormal AS subgraph, which helps analyze the differences in the impact of each level of AS on the overall abnormal event. Simultaneously, the hierarchy allows for clustering of ASs in the abnormal AS subgraph according to their network location, further analyzing whether the abnormal events exhibit clustering characteristics, and providing a basis for judging the causes of the anomalies.
[0166] In the above embodiments, the present application's embodiments combine AS business relationship topology to construct abnormal AS subgraphs, which can cluster and trace the source of large-scale routing interruption events from a macroscopic visualization level. At the same time, combined with AS hierarchy, it can more effectively locate the main location of the anomaly and determine the event subject.
[0167] This application embodiment uses AS business relationship data to construct AS business relationship topology, which simplifies complex network paths and avoids data distortion caused by a single observation point when analyzing complex routing paths. It also saves the huge space and time resources required to extract business relationships between ASs using routing data, greatly improving the timeliness of the interruption tracing method and providing a data foundation for its application in platforms such as real-time routing data monitoring.
[0168] The total number of Access Servers (AS) in the network is approximately 100,000. For a routing outage event occurring within a certain period, the number of affected ASs is typically in the tens to hundreds. To quickly locate all potentially involved AS nodes, it is necessary to extract an abnormal AS subgraph containing all outage ASs from the network's AS business relationship topology. Simultaneously, to trace the source of the outage, the abnormal AS subgraph needs to include the common upstream ASs of these ASs and intermediate ASs on the second legitimate path. This application embodiment uses an abnormal AS subgraph construction method based on BFS and state transition graphs to efficiently find second legitimate paths between all abnormal ASs that conform to the valley-free principle. Furthermore, the front-end uses a visualization component to comprehensively display the connection relationships between these AS nodes, intuitively locating the source of the routing anomaly.
[0169] To address the difficulty in identifying the source of outages in large-scale routing disruptions, this application proposes a BGP outage tracing method based on graph networks. It constructs a network-wide AS business relationship topology using AS business relationship data and uses BFS to search for all second legitimate paths between sets of abnormal AS nodes, building an abnormal AS subgraph. Simultaneously, the search process employs the valley-free principle to establish all possible state transition graphs for each AS. The BFS search is based on these state transition graphs, ensuring that the first legitimate path found conforms to the valley-free principle of AS business relationships. In the resulting abnormal AS subgraph, by defining the edge direction as from customer to provider, the abnormal parameters of all AS nodes in the subgraph can be calculated through propagation, thereby identifying the upstream AS that may have caused further AS outages and achieving source tracing for large-scale routing disruptions.
[0170] Based on the same inventive concept, this application also provides a device for detecting interruption events, such as... Figure 8 As shown, the interruption event detection device 8000 includes:
[0171] Building unit 8001 is used to construct a state transition table between all ASs based on the valley-free principle by traversing all ASs in the obtained autonomous system AS business relationship topology; the state transition table is used to describe the first legal path between all ASs; all ASs include: abnormal ASs and normal ASs.
[0172] The first determining unit 8002 is used to determine the set of abnormal ASs that have been interrupted within the target spatiotemporal range based on the obtained routing data.
[0173] The second determining unit 8003 is used to determine, based on the state transition table, the second legal path between any two abnormal ASs in the abnormal AS set in the AS business relationship topology, and to obtain the abnormal AS subgraph corresponding to the abnormal AS set based on each second legal path.
[0174] The tracing unit 8004 is used to determine the abnormal parameters of each abnormal AS based on the number of interruptions of each abnormal AS and the upstream and downstream relationships between each abnormal AS in the abnormal AS subgraph, and to trace the interruption event based on the abnormal parameters; the abnormal parameters are used to reflect the probability that the corresponding abnormal AS is the source of the interruption event.
[0175] In some embodiments, the construction unit 8001 is specifically used for:
[0176] The standard path that conforms to the valley-free principle is constructed as a state transition diagram;
[0177] For each AS in the entire AS, perform the following operation:
[0178] Set AS as the current AS;
[0179] Based on the state transition diagram, search for the next hop AS of the current AS in the AS business relationship topology;
[0180] If a next-hop AS is found, the business state of the current AS and the path state corresponding to the business state of the next-hop AS are combined to form an AS-path state pair with the next-hop AS, and the next-hop AS is used as the current AS.
[0181] If no next-hop AS is found, at least one AS-path state pair is connected into a state transition line according to the upstream and downstream relationships between all ASs.
[0182] Combine the individual state transition rows into a state transition table.
[0183] In some embodiments, the path states include: a first path state, a second path state, and a third path state; the state transition diagram is composed of at least one of the first path state, the second path state, and the third path state in sequence; the first path state represents: a state transition from an AS with a business state of customer to an AS with a business state of provider; the second path state represents: a state transition from an AS with a business state of peer to an AS with a business state of peer; the third path state represents: a state transition from an AS with a business state of provider to an AS with a business state of customer.
[0184] In some embodiments, the second determining unit 8003 is specifically used for:
[0185] Each exception AS is used as the starting point of the path, and the following iterative operation is performed on each exception AS:
[0186] Set the abnormal AS as the current AS;
[0187] In the state transition table, search for the next hop AS along the first valid path;
[0188] If the next-hop AS is a normal AS, then record the path status corresponding to the business relationship between the current AS and the next-hop AS; use the current AS as the predecessor AS, and update the next-hop AS to the current AS;
[0189] If the next-hop AS is an abnormal AS, record the path status of the current AS corresponding to the business relationship of the current AS and the business relationship of the next-hop AS; take the current AS as the predecessor AS, and construct a second legal path based on at least one predecessor AS.
[0190] In some embodiments, the second determining unit 8003 is specifically used for:
[0191] Each normal AS and each abnormal AS in each second legal path is assigned to a node set of the abnormal AS subgraph, and the path state of each normal node and each abnormal node in each second legal path is assigned to an edge set of the abnormal AS subgraph.
[0192] Anomaly AS subgraphs are constructed based on node combinations and edge sets.
[0193] In some embodiments, the tracing unit 8004 is specifically used for:
[0194] For each abnormal AS, perform the following operation:
[0195] The interruption count of each abnormal AS located downstream of the abnormal AS in the abnormal AS subgraph is multiplied by the corresponding attenuation factor and used as the interruption propagation parameter.
[0196] The sum of the number of interrupts of the abnormal AS and the interrupt propagation parameters is used as the abnormal parameter.
[0197] In some embodiments, the construction unit 8001 is specifically used for:
[0198] Determine whether the state transition table is stored in the cache;
[0199] If the state transition table is not stored in the cache, then determine whether the state transition table is stored in the local file.
[0200] If a state transition table is stored in a local file, the state transition table is added to the cache, and older cache files are deleted from the cache according to their cache time from oldest to newest, so that the number of cache files in the cache does not exceed a preset threshold.
[0201] If the state transition table is not stored in the local file, then based on the valley-free principle, the state transition table between all ASs is constructed by traversing all ASs in the obtained autonomous system AS business relationship topology, and the state transition table is added to the cache. Then, according to the cache time from oldest to newest, the old cache files in the cache are deleted to ensure that the number of cache files in the cache does not exceed the preset number threshold.
[0202] Based on the same inventive concept, this application also provides an electronic device. In this embodiment, the structure of the electronic device can be as follows: Figure 9 As shown, it includes a memory 901, a communication module 903, and one or more processors 902.
[0203] The memory 901 is used to store computer programs executed by the processor 902. The memory 901 may mainly include a program storage area and a data storage area. The program storage area may store the operating system and programs required to run instant messaging functions, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.
[0204] Memory 901 may be volatile memory, such as random-access memory (RAM); memory 901 may also be non-volatile memory, such as read-only memory, flash memory, hard disk drive (HDD), or solid-state drive (SSD); or memory 901 may be any other medium capable of carrying or storing a desired computer program having the form of instructions or data structures and accessible by a computer, but is not limited thereto. Memory 901 may be a combination of the above-described memories.
[0205] Processor 902 may include one or more central processing units (CPUs) or digital processing units, etc. Processor 902 is used to implement the above-mentioned interrupt event detection method when calling the computer program stored in memory 901.
[0206] The communication module 903 is used to communicate with terminal devices and other servers.
[0207] This application embodiment does not limit the specific connection medium between the memory 901, communication module 903, and processor 902 described above. This application embodiment... Figure 9 The memory 901 and the processor 902 are connected via a bus 904, which is in... Figure 9The diagram uses thick lines to describe the connections between other components; these are for illustrative purposes only and should not be considered limiting. The 904 bus can be divided into address bus, data bus, control bus, etc. For ease of description, Figure 9 It is described using only a thick line, but does not indicate that there is only one bus or one type of bus.
[0208] The memory 901 stores a computer storage medium containing computer-executable instructions for implementing the interrupt event detection method of this application embodiment. The processor 902 executes the aforementioned interrupt event detection method. Based on the same inventive concept, this application embodiment provides a computer-readable storage medium, a computer program product including computer program code, which, when run on a computer, causes the computer to execute any of the interrupt event detection methods discussed above. Since the principle of the problem solved by the aforementioned computer-readable storage medium is similar to that of the interrupt event detection method, the implementation of the aforementioned computer-readable storage medium can refer to the implementation of the method, and repeated details will not be elaborated further.
[0209] This application also provides a computer program product. The methods in this application can be implemented, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software, they can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in this application are executed, in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, network equipment, user equipment, core network equipment, OAM, or other programmable devices.
[0210] A computer-readable storage medium can be used as an implementation of a computer program product. In other words, this application also provides a computer-readable storage medium that includes a computer program that, when executed by a processor, implements any of the interrupt event detection methods described above.
[0211] The computer program or instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions may be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access, or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; or an optical medium, such as a digital video optical disc; or a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.
[0212] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0213] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0214] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0215] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0216] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for detecting interruption events, characterized in that, The method includes: Based on the valley-free principle, a state transition table is constructed between all ASes by traversing all ASes in the obtained autonomous system AS business relationship topology; the state transition table is used to describe the first legal path between all ASes; all ASes include: abnormal ASes and normal ASes. Based on the obtained routing data, determine the set of abnormal ASs that have been interrupted within the target spatiotemporal range; Based on the state transition table, in the AS business relationship topology, a second legal path is determined between any two abnormal ASs in the abnormal AS set, and an abnormal AS subgraph corresponding to the abnormal AS set is obtained based on each second legal path. Based on the abnormal AS subgraph, the number of interruptions for each abnormal AS, the upstream and downstream relationships between each abnormal AS, the upstream and downstream relationships between each normal AS, and the upstream and downstream relationships between each normal AS and the abnormal AS, the abnormal parameters of each abnormal AS and each normal AS are determined, and the interruption event is traced according to the abnormal parameters; the abnormal parameters are used to reflect the probability that the corresponding abnormal AS is the source of the interruption event.
2. The method as described in claim 1, characterized in that, Based on the valley-free principle, the process of constructing a state transition table among all ASes by traversing all ASes in the obtained Autonomous System (AS) business relationship topology includes: The standard paths that conform to the valley-free principle are constructed as a state transition diagram; For each of the entire set of ASs, perform the following operation: Set the AS as the current AS; Based on the state transition diagram, search for the next hop AS of the current AS in the AS business relationship topology; If the next-hop AS is found, the business state of the current AS and the path state corresponding to the business state of the next-hop AS are combined with the next-hop AS to form an AS-path state pair, and the next-hop AS is used as the current AS. If the next-hop AS is not found, at least one AS-path state pair is connected into a state transition line according to the upstream and downstream relationship between all ASs. The individual state transition rows are combined to form the state transition table.
3. The method as described in claim 2, characterized in that, The path states include: a first path state, a second path state, and a third path state; the state transition diagram is composed of at least one of the first path state, the second path state, and the third path state in sequence; the first path state indicates a state transition from an AS with a business state of customer to an AS with a business state of provider; the second path state indicates a state transition from an AS with a business state of peer to an AS with a business state of peer; the third path state indicates a state transition from an AS with a business state of provider to an AS with a business state of customer.
4. The method as described in claim 1, characterized in that, The step of determining the second legal path between any two abnormal ASs in the abnormal AS set based on the state transition table in the AS business relationship topology includes: Each of the aforementioned abnormal ASs is taken as the starting point of the path, and the following iterative operation is performed on each of the aforementioned abnormal ASs: Use the abnormal AS as the current AS; In the state transition table, the next hop AS is searched along the first valid path; If the next-hop AS is a normal AS, then record the path status corresponding to the business relationship between the current AS and the next-hop AS; use the current AS as the predecessor AS, and update the next-hop AS to the current AS; If the next-hop AS is an abnormal AS, then record the path status of the current AS corresponding to the business relationship of the current AS and the business relationship of the next-hop AS; use the current AS as the predecessor AS, and construct a second legal path based on at least one predecessor AS.
5. The method as described in claim 3, characterized in that, The step of obtaining the abnormal AS subgraph corresponding to the abnormal AS set based on each of the second legal paths includes: Each normal AS and each abnormal AS in each second legal path is assigned to the node set of the abnormal AS subgraph, and the path state of each normal node and each abnormal node in each second legal path is assigned to the edge set of the abnormal AS subgraph. The abnormal AS subgraph is constructed based on the node combinations and the edge set.
6. The method as described in claim 1, characterized in that, Based on the abnormal AS subgraph, the number of interruptions for each abnormal AS, the upstream and downstream relationships between each abnormal AS, the upstream and downstream relationships between each normal AS, and the upstream and downstream relationships between each normal AS and abnormal AS are used to determine the abnormal parameters of each abnormal AS and each normal AS, including: For each of the abnormal ASs, the following operations are performed: the product of the number of interruptions of each abnormal AS located downstream of the abnormal AS in the abnormal AS subgraph and the corresponding attenuation factor is used as the interruption propagation parameter; the sum of the number of interruptions of the abnormal AS and the interruption propagation parameter is used as the abnormal parameter. For each normal AS, the following operation is performed: the product of the number of interruptions of each abnormal AS located downstream of the normal AS in the abnormal AS subgraph and the corresponding attenuation factor is used as the interruption propagation parameter; the sum of the interruption propagation parameters of the normal AS is used as the abnormal parameter.
7. The method according to any one of claims 1 to 5, characterized in that, Based on the valley-free principle, the process of constructing a state transition table among all ASes by traversing all ASes in the obtained Autonomous System (AS) business relationship topology includes: Determine whether the state transition table is stored in the cache; If the state transition table is not stored in the cache, then determine whether the state transition table is stored in the local file; If the state transition table is stored in the local file, the state transition table is added to the cache, and old cache files are deleted from the cache according to the cache time from oldest to newest, so that the number of cache files in the cache does not exceed a preset number threshold. If the state transition table is not stored in the local file, then based on the valley-free principle, the state transition table between all ASs is constructed by traversing all ASs in the obtained autonomous system AS business relationship topology, and the state transition table is added to the cache. Then, according to the cache time from oldest to newest, the old cache files in the cache are deleted so that the number of cache files in the cache does not exceed the preset number threshold.
8. A device for detecting interruption events, characterized in that, include: The construction unit is used to construct a state transition table between all ASs by traversing all ASs in the obtained autonomous system AS business relationship topology based on the valley-free principle. The state transition table is used to describe the first legal path among all the ASs; The entire AS includes: abnormal AS and normal AS; The first determining unit is used to determine the set of abnormal ASs that have been interrupted within the target spatiotemporal range based on the obtained routing data. The second determining unit is used to determine, based on the state transition table, a second legal path between any two abnormal ASs in the abnormal AS set in the AS business relationship topology, and to obtain an abnormal AS subgraph corresponding to the abnormal AS set based on each of the second legal paths. The tracing unit is used to determine the abnormal parameters of each abnormal AS and each normal AS based on the number of interruptions of each abnormal AS, the upstream and downstream relationships between each abnormal AS, the upstream and downstream relationships between each normal AS and the abnormal AS in the abnormal AS subgraph, and to trace the source of the interruption event according to the abnormal parameters; the abnormal parameters are used to reflect the probability that the corresponding abnormal AS is the source of the interruption event.
9. An electronic device, characterized in that, include: Memory, used to store program instructions; A processor is configured to invoke program instructions stored in the memory and execute the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program therein, characterized in that: When the computer program is executed by a processor, it implements the method of any one of claims 1 to 7.
Citation Information
Patent Citations
Secure route identification method and device
CN111385246A
Routing interruption detection method and device, electronic equipment and storage medium
CN119629114A
