An autonomous system network topology identification method, device and storage medium
By constructing a path mapping learning model, incorrect IP node mappings are identified and corrected, solving the problem of low accuracy in IP-to-AS mapping and achieving more accurate packet forwarding paths.
Patent Information
- Application Number
- CN202311607137.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-28
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-11-28
AI Technical Summary
Existing IP-to-AS mapping methods suffer from low accuracy in the Internet, leading to inconsistencies between the control plane and the data plane, which affects the accuracy of packet forwarding paths.
A path mapping learning model is constructed. By judging the mapping correctness of multiple path pairs, the mapping characteristics of IP nodes and AS nodes are learned, erroneously mapped IP nodes are corrected, and mapping accuracy is improved.
It improves the accuracy of IP address mapping to AS address, solves the inconsistency between the control plane and data plane, and enhances the accuracy of packet forwarding paths.
Smart Images

Figure CN117651013B_ABST
Abstract
Description
Technical Field
[0001] This article relates to network topology technology, and in particular to a method, apparatus and storage medium for identifying the network topology of an autonomous system. Background Technology
[0002] The current Internet consists of over 60,000 Autonomous Systems (AS). Different ASs exchange routing information via the Border Gateway Protocol (BGP), that is, they exchange AS-level paths to each routable prefix. When an AS obtains this routing information from its neighboring ASs, it selects the most suitable path to the destination prefix and forwards this selection to other neighboring ASs. ASs can obtain this routing information from BGP updates or Routing Information Base (RIB). Normally, packets are forwarded based on this type of path information. Furthermore, the forwarding path of packets can also be obtained using the traceroute tool. However, technicians have found that when mapping IP-level paths obtained using traceroute to AS-level paths, the mapped AS-level paths sometimes do not match the AS-level paths directly reflected in the RIB or BGP updates. This phenomenon is called control plane-data plane inconsistency.
[0003] Inconsistencies between the two planes may stem from inherent internet mechanisms, such as flow control techniques, or from inaccurate IP-to-AS mapping methods used to obtain AS-level paths in the data plane. Existing IP-to-AS mapping methods include: IP-to-prefix+prefix-to-AS methods based on RIB information, mapping methods combining RIB information with PeeringDB information, IP-to-router+router-to-AS methods, and the BdrmapIt method. Among these, the IP-to-prefix+prefix-to-AS method and the mapping method combining RIB information with PeeringDB information may produce mapping errors in scenarios involving shared link addresses among Internet Exchange Points (IXPs), sibling ASs, and neighboring ASs. The IP-to-router+router-to-AS methods typically yield limited and inaccurate mapping results. The BdrmapIt method, which infers AS boundary links based on path characteristics obtained from traceroute and completes IP-to-AS mapping, offers slightly improved accuracy. Summary of the Invention
[0004] This application provides a method, apparatus, and storage medium for identifying the topology of an autonomous system network, which can improve the accuracy of mapping IP addresses to AS addresses.
[0005] This application provides a method for identifying the network topology of an autonomous system, the method comprising:
[0006] Input the Internet Protocol (IP) path and its mapped Autonomous System (AS) path into the constructed path mapping learning model to obtain the mapping determination result of each IP node in the IP path.
[0007] When the mapping result of an IP node in the IP path is incorrect, the AS node mapped to the IP node is corrected.
[0008] In one exemplary embodiment, the path mapping learning model is constructed in the following manner:
[0009] The mapping correctness of multiple path pairs is determined, and positive examples of correct mapping and negative examples of incorrect mapping are obtained. Each path pair includes an IP path and an AS path.
[0010] The mapping features of IP nodes and AS nodes are learned from the multiple path pairs. The values of the mapping features are used as the feature values of the path mapping learning model. The positive examples and negative examples are used as the inputs to the path mapping learning model to train the path mapping learning model, thus completing the construction of the path mapping learning model.
[0011] In an exemplary embodiment, the mapping correctness determination for multiple path pairs includes: for each path pair, determining the mapping correctness in the following manner:
[0012] Map the IP paths in the path pair to obtain the AS-level data layer path; segment the AS-level data layer path with the AS path in the path pair to obtain multiple path segment pairs, each path segment pair containing an AS-level data layer path segment and an AS path segment, and each path segment containing one or more nodes.
[0013] Based on each path segment pair, the mapping of each IP node is determined, and the determination results include: matching mapping, partial matching mapping, or no matching mapping.
[0014] For a mapping of an IP node, determine whether the ratio of the frequency of being judged as a matching mapping to the frequency of being judged as a non-matching mapping is greater than or equal to a preset first threshold. If yes, the mapping of the IP node is judged as a correct mapping; otherwise, the mapping of the IP node is judged as an incorrect mapping. Alternatively, determine whether the ratio of the frequency of being judged as a matching mapping to the frequency of being judged as a partial matching mapping is greater than or equal to a preset second threshold. If yes, the mapping of the IP node is judged as a correct mapping; otherwise, the mapping of the IP node is judged as an incorrect mapping.
[0015] In an exemplary embodiment, determining the mapping of each IP node based on each path segment pair includes:
[0016] If the path segment maps an IP node in the corresponding IP path to an intermediate node in the AS-level data layer path segment, then the mapping is a mismatch mapping.
[0017] If, in the path segment pair, the number of nodes in the AS-level data layer path segment is less than the number of nodes in the AS path segment, and an IP node in the IP path is mapped to the first node of the AS-level data layer path segment, and that IP node is the last node in the IP path corresponding to the path segment pair, then the corresponding mapping is determined to be a half-matching mapping.
[0018] If, in the path segment pair, the number of nodes in the AS-level data layer path segment is less than the number of nodes in the AS path segment, and an IP node in the IP path is mapped to the last node of the AS-level data layer path segment, and that IP node is the first node in the IP path corresponding to the path segment pair, then the corresponding mapping is determined to be a half-matching mapping.
[0019] Determine the IP node that maps to the first node of the data layer path segment at the AS level in the corresponding IP path of the first path segment pair, and determine the mapping corresponding to the IP node as a matching mapping.
[0020] Determine the IP node that maps to the last node of the data layer path segment at the AS level in the corresponding IP path of the tail path segment, and determine the mapping corresponding to the IP node as a matching mapping.
[0021] In an exemplary embodiment, when the IP node is X and the AS node of X is S, the mapping characteristics of the IP node and the AS node include any one or more of the following:
[0022] The business relationship between AS node S and mapping node S' is obtained by mapping S' based on routing table RIB information and PeeringDB information;
[0023] The proportion of IP nodes X that are mapped to S among all its predecessor IP nodes;
[0024] The proportion of all successor IP nodes of IP node X that are mapped to S;
[0025] The proportion of all IP nodes X mapped to non-S predecessor IP nodes, where the mapping results of the predecessor IP nodes have a known business relationship with S;
[0026] The proportion of all IP nodes X mapped to non-S successor IP nodes, where the mapping results of the successor IP nodes have a known business relationship with S;
[0027] The proportion of IP node X that conforms to the valley-free principle in all triples of <mapping result of predecessor IP node, S, mapping result of successor IP node>.
[0028] The proportion of semi-valley-free violations in all triples of <mapping result of predecessor IP node, S, mapping result of successor IP node> containing IP node X;
[0029] The proportion of instances that violate the valley-free principle in all triples of <mapping result of predecessor IP node, S, mapping result of successor IP node> containing IP node X.
[0030] In an exemplary embodiment, when an IP node in the IP path is determined to be an incorrect mapping, correcting the AS node mapped to the IP node includes:
[0031] When an IP node in the IP path is determined to be an incorrect mapping, an alternative mapping AS node for the IP node is determined.
[0032] The modified AS node for mapping the IP node is determined from the candidate AS nodes according to preset rules.
[0033] In one exemplary embodiment, the method for determining the candidate mapping AS node for the IP node includes one or more of the following:
[0034] The mapping AS node S' obtained based on the routing table RIB information and PeeringDB information is used as the alternative mapping AS node.
[0035] A computer or server located in the same physical location as the mapping AS node S of the IP node is used as an alternative mapping AS node.
[0036] The Internet service provider of the mapping AS node S of the IP node is selected as the alternative mapping AS node.
[0037] The Internet service consumer of the mapped AS node S of the IP node is selected as the alternative mapped AS node.
[0038] The nodes that are interconnected with the mapping AS node S of the IP node in the distributed system are used as candidate mapping AS nodes.
[0039] The mapping AS node of the predecessor IP node of the IP node is used as the alternative mapping AS node.
[0040] The mapping AS node of the successor IP node of the IP node is used as the alternative mapping AS node.
[0041] The mapping AS node that satisfies the valley-free principle for any IP node's triple <mapping result of predecessor IP node, S, mapping result of successor IP node> is selected as the candidate mapping AS node.
[0042] In one exemplary embodiment, determining the modified AS node mapped to the IP node from the candidate mapped AS nodes according to a preset rule includes one or more of the following methods:
[0043] Based on the priority of each candidate mapping AS node, the candidate mapping AS node with the highest priority is selected, and the AS node of the corrected IP node mapping is determined based on the selected candidate mapping AS node.
[0044] Input the IP node and each candidate mapping AS node into the path mapping learning model to obtain the judgment result of the mapping correctness; select the candidate mapping AS node with the highest correctness probability score corresponding to the judgment result, and determine the corrected IP node mapping AS node based on the selected candidate mapping AS node.
[0045] The IP node and each candidate mapping AS node are input into the path mapping learning model to obtain the judgment result of the mapping correctness; the highest correctness probability value corresponding to the judgment result is used as the reference threshold, and the candidate mapping AS nodes whose difference between the correctness probability score and the reference threshold is less than or equal to the preset third threshold T1 are formed into a candidate node AS set; the candidate mapping AS node with the highest priority is selected from the set, and the AS node of the corrected IP node mapping is determined according to the selected candidate mapping AS node.
[0046] In an exemplary embodiment, determining the modified AS node of the IP node mapping based on the selected alternative AS nodes includes:
[0047] Use the selected alternative mapping AS node as the AS node for the corrected IP node mapping; or...
[0048] When the ratio of the correctness probability of the selected candidate mapping AS node to the correctness probability of the original AS node is greater than the fourth threshold T2, the candidate mapping AS node is used as the AS node of the corrected IP node mapping.
[0049] In one exemplary embodiment, the method further includes:
[0050] After correcting the AS node mapped to the IP node, the IP path and the AS path containing the corrected AS node are input into the path mapping learning model again to obtain the mapping determination result of each IP node in the IP path.
[0051] The AS node with the lowest correctness probability score corresponding to the mapping determination result is corrected. If the preset correction termination condition is not met, the IP path and the AS path containing the corrected AS node are continued to be input into the path mapping learning model to obtain the mapping determination result of each IP node in the IP path.
[0052] This application also discloses a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the autonomous system network topology identification method as described in any of the preceding embodiments.
[0053] This application also discloses an autonomous system network topology identification device, including a memory and a processor. The memory stores a program, which, when read and executed by the processor, implements the autonomous system network topology identification method as described in any of the preceding embodiments.
[0054] Compared with related technologies, this application improves the accuracy of mapping by constructing a path mapping learning model to find IP nodes in the IP path that have erroneous mappings and correcting the erroneous mapping AS nodes corresponding to those IP nodes.
[0055] Other features and advantages of this application will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the application. Other advantages of this application can be realized and obtained by means of the solutions described in the description and the accompanying drawings. Attached Figure Description
[0056] The accompanying drawings are used to provide an understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.
[0057] Figure 1 A flowchart of the autonomous system network topology identification method provided in the embodiments of this application;
[0058] Figure 2 This is a schematic diagram illustrating the segmentation of path pairs according to an embodiment of this application;
[0059] Figure 3 A schematic diagram illustrating a mapping feature extraction process provided in an embodiment of this application;
[0060] Figure 4 A schematic diagram illustrating an iterative correction of IP node mapping provided in an embodiment of this application;
[0061] Figure 5 A schematic diagram illustrating the performance of the path mapping learning model provided in this application embodiment on different time datasets;
[0062] Figure 6A A comparison chart showing the success rate of IP mapping under various algorithms provided in the embodiments of this application;
[0063] Figure 6B A comparison chart of IP mapping failure rates under various algorithms provided in the embodiments of this application;
[0064] Figure 6C A comparison chart showing the proportion of unmapped IPs under various algorithms provided in the embodiments of this application;
[0065] Figure 7 This is a structural diagram of the autonomous system network topology identification device provided in an embodiment of this application. Detailed Implementation
[0066] This application describes several embodiments, but these descriptions are exemplary and not restrictive, and it will be apparent to those skilled in the art that many more embodiments and implementations are possible within the scope of the embodiments described herein. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with, or may replace, any feature or element of any other embodiment.
[0067] This application includes and contemplates combinations of features and elements known to those skilled in the art. The embodiments, features, and elements disclosed in this application may also be combined with any conventional features or elements to form a unique inventive scheme as defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive schemes to form another unique inventive scheme as defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in this application may be implemented individually or in any suitable combination. Therefore, the embodiments are not limited except by the limitations imposed by the appended claims and their equivalents. Furthermore, various modifications and changes may be made within the scope of the appended claims.
[0068] Furthermore, in describing representative embodiments, the specification may have presented methods and / or processes as a specific sequence of steps. However, the method or process should not be limited to the specific order of steps described herein, to the extent that it does not depend on such a specific order. As will be understood by those skilled in the art, other sequences of steps are also possible. Therefore, the specific order of steps set forth in the specification should not be construed as a limitation of the claims. Moreover, the claims concerning the method and / or process should not be limited to the steps performed in the written order, and those skilled in the art will readily understand that these orders can be varied and still remain within the spirit and scope of the embodiments of this application.
[0069] This application provides a method for identifying the network topology of an autonomous system, such as... Figure 1 As shown, the method includes:
[0070] Step S101 inputs the Internet Protocol (IP) path and its mapped Autonomous System (AS) path into the constructed path mapping learning model to obtain the mapping determination result of each IP node in the IP path.
[0071] The IP path may contain one or more IP nodes; each AS path may contain one or more AS nodes; each IP node has its mapped AS node.
[0072] Step S102: When the mapping result of an IP node in the IP path is incorrect, correct the AS node mapped to that IP node.
[0073] The solution described in this application improves the accuracy of mapping by constructing a path mapping learning model to find IP nodes in the IP path that have incorrect mappings and correcting the incorrect mapping AS nodes corresponding to those IP nodes.
[0074] As an exemplary embodiment, the path mapping learning model can be constructed in the following manner:
[0075] Multiple path pairs are mapped correctly to obtain positive examples of correct mappings and negative examples of incorrect mappings. Each path pair includes an IP path and an AS path. For example, using BGP data collection platforms RouteViews and Ripe RIS, and traceroute data collection platforms CAIDA ARK and Ripe Atlas, 128 pairs of BGP observation points (control-plane VP, C-VP) and traceroute observation points (data-plane VP, D-VP) belonging to the same AS and in the same city are selected. The C-VP and D-VP in each pair may have the same routing policy. From each pair, BGP paths (control-plane paths, C-paths) and traceroute paths (data-plane paths) that go to the same destination at the same time are identified. To prevent consistency comparison errors caused by inconsistent VP routing policies and incomplete BGP information, inconsistent path pairs (path, D-path) were discarded after IP-to-AS mapping was performed, leaving approximately 770K path pairs. Mapping correctness was determined for these 770K path pairs, yielding 158,872 positive results and 2,921 negative results.
[0076] The mapping features of IP nodes and AS nodes are learned from the multiple path pairs. The values of the mapping features are used as the feature values of the path mapping learning model. The positive examples and negative examples are used as the inputs to the path mapping learning model to train the path mapping learning model, thus completing the construction of the path mapping learning model.
[0077] As an exemplary embodiment, the path mapping learning model can be a binary classification model.
[0078] As an exemplary embodiment, constructing the path mapping learning model further includes:
[0079] After training the path mapping learning model, the trained model is tested. The construction of the path mapping learning model is completed only when the test results meet the preset indicators. The test set used to test the path mapping learning model can be derived from the results of the mapping correctness judgment of multiple path pairs. For example, all the results of the mapping correctness judgment of multiple path pairs can be divided into a training set and a test set according to a preset ratio (e.g., 8:2).
[0080] When the distribution of positive and negative examples is unbalanced in the results of mapping correctness determination for multiple path pairs, in addition to the standard accuracy (PR), regression rate (RC), and F1 score (F1), the preset indicators can also consider specificity (SPC = TN / (TN+FP)). Here, TN represents the number of true negative examples, i.e., the number of examples correctly predicted as negative by the classifier; FP represents the number of false positive examples, i.e., the number of examples incorrectly predicted as positive by the classifier. The closer SPC is to 1, the better the performance of the classifier, and the better it can distinguish between true negative examples and false positive examples; the closer SPC is to 0, the worse the performance of the classifier, and the less it can distinguish between true negative examples and false positive examples.
[0081] As an exemplary embodiment, the mapping correctness determination for multiple path pairs includes: for each path pair, the mapping correctness determination is performed in the following manner:
[0082] Map the IP paths in the path pair to obtain the AS-level data layer path; segment the AS-level data layer path with the AS path in the path pair to obtain multiple path segment pairs, each path segment pair containing an AS-level data layer path segment and an AS path segment, and each path segment containing one or more nodes.
[0083] Based on each path segment pair, the mapping of each IP node is determined, and the determination results include: matching mapping, partial matching mapping, or no matching mapping.
[0084] For a mapping of an IP node, determine whether the ratio of the frequency of being judged as a matching mapping to the frequency of being judged as a non-matching mapping is greater than or equal to a preset first threshold. If yes, the mapping of the IP node is judged as a correct mapping; otherwise, the mapping of the IP node is judged as an incorrect mapping. Alternatively, determine whether the ratio of the frequency of being judged as a matching mapping to the frequency of being judged as a partial matching mapping is greater than or equal to a preset second threshold. If yes, the mapping of the IP node is judged as a correct mapping; otherwise, the mapping of the IP node is judged as an incorrect mapping. The first threshold and the second threshold are settable.
[0085] As an exemplary embodiment, the determination of the mapping of each IP node based on each path segment pair includes:
[0086] If the path segment maps an IP node in the corresponding IP path to an intermediate node in the AS-level data layer path segment, then the mapping is a mismatch mapping.
[0087] If, in the path segment pair, the number of nodes in the AS-level data layer path segment is less than the number of nodes in the AS path segment, and an IP node in the IP path is mapped to the first node of the AS-level data layer path segment, and that IP node is the last node in the IP path corresponding to the path segment pair, then the corresponding mapping is determined to be a half-matching mapping.
[0088] If, in the path segment pair, the number of nodes in the AS-level data layer path segment is less than the number of nodes in the AS path segment, and an IP node in the IP path is mapped to the last node of the AS-level data layer path segment, and that IP node is the first node in the IP path corresponding to the path segment pair, then the corresponding mapping is determined to be a half-matching mapping.
[0089] Determine the IP node that maps to the first node of the data layer path segment at the AS level in the corresponding IP path of the first path segment pair, and determine the mapping corresponding to the IP node as a matching mapping.
[0090] Determine the IP node that maps to the last node of the data layer path segment at the AS level in the corresponding IP path of the tail path segment, and determine the mapping corresponding to the IP node as a matching mapping.
[0091] Figure 2 A schematic diagram of segmenting path pairs is given. For each path pair, the IP-level D-path is first mapped according to any existing mapping method to obtain the AS-level D-path. Then, a terminator, such as $, is added to the end of both the C-path and the AS-level D-path. The two paths, C-path and AS-level D-path, are segmented. As a segmentation method, the following principles are followed: (1) Two adjacent path segments are connected end to end; (2) In each path segment pair, only the first and last hops match in the two path segments, and the middle hops do not match. Through segmentation, the two paths, C-path and AS-level D-path, are divided into several minimum comparable segments.
[0092] As an exemplary embodiment, when the IP node is X and the AS node of X is S, the mapping characteristics of the IP node and the AS node include any one or more of the following:
[0093] The business relationship between AS node S and mapping node S' is obtained by mapping S' based on routing table RIB information and PeeringDB information;
[0094] The proportion of IP nodes X that are mapped to S among all its predecessor IP nodes;
[0095] The proportion of all successor IP nodes of IP node X that are mapped to S;
[0096] All mappings of IP node X to its predecessor IP nodes other than S, the proportion of the mapping results of the predecessor IP nodes and S having a known business relationship, the business relationship may include equal, provider, customer, peer, unknown;
[0097] The proportion of all IP nodes X mapped to non-S successor IP nodes, where the mapping results of the successor IP nodes have a known business relationship with S;
[0098] The proportion of IP node X that conforms to the valley-free principle in all triples of <mapping result of predecessor IP node, S, mapping result of successor IP node>.
[0099] The proportion of semi-valley-no-peer violations in all triples of <mapping result of predecessor IP node, S, mapping result of successor IP node> containing IP node X; the mapping characteristic of semi-valley-no-peer violation refers to the path characteristics that may still appear in real-world routing systems, although the valley-no-peer principle is violated (i.e., routes learned from the provider or peer will only be propagated to the customer), such as two consecutive peer-to-peer links, or a provider-to-customer link followed by a peer-to-peer link.
[0100] The proportion of instances that violate the valley-free principle in all triples of <mapping result of predecessor IP node, S, mapping result of successor IP node> containing IP node X.
[0101] In this embodiment, the "relative proportion" is selected as the mapping feature, without considering the absolute frequency of each mapping feature (e.g., selecting the absolute number of triples containing X that meet the valley-free principle). This can avoid the constructed path mapping learning model being affected by individuals in a specific path set.
[0102] As an exemplary embodiment, the values of the mapping features can be normalized to eliminate the different effects caused by different path set sizes.
[0103] Figure 3 A schematic diagram of a mapping feature extraction process is provided. Taking the extraction of mapping features of the IP2 node as an example, the extraction of mapping features can be considered from the following aspects:
[0104] (1) (At the IP level) Whether the IP2 node and its predecessor IP node are mapped to the same AS node;
[0105] (2) (At the IP level) Whether the IP2 node and its successor IP node are mapped to the same AS node;
[0106] (3) (At the IP level) Is the preceding IP node of IP2 a non-responding node (i.e., the node in table * in the diagram)? Or, if the preceding IP node of IP2 is a responding node, has a mapped AS node been found?
[0107] (4) (At the IP level) Is the IP node following the IP2 node an unresponsive node; or, if the IP node following the IP2 node is a responsive node, has a mapped AS node been found?
[0108] (5) (At the AS level) Are there any unresponsive AS nodes (*) or unmapped AS nodes between the AS2 node and its preceding explicit AS node? The explicit AS node refers to an AS node with a mapping result (i.e., excluding unresponsive nodes and nodes without a mapping result).
[0109] (6) (At the AS level) Is there an unresponsive AS node (*) or an AS node that has not been successfully mapped between the AS2 node and the next specified AS node?
[0110] (7) (At the AS level) Is there a business relationship between the AS2 node and its preceding explicit AS node?
[0111] (8) (At the AS level) Is there a business relationship between the AS2 node and its subsequent explicit AS node?
[0112] (9) (At the AS level) Does the triple consisting of the AS2 node and its preceding explicit AS node conform to the Five Grains Principle?
[0113] (10) (At the AS level) Does the triple consisting of the AS2 node and the subsequent explicit AS node conform to the Five Grains Principle?
[0114] Following the above approach to feature extraction, 11 mapping features can be extracted, as shown in Table 1.
[0115]
[0116]
[0117] Table 1
[0118] Table 1 also lists the weight of each mapping feature in the constructed path mapping learning model, which indicates the importance of the corresponding mapping feature when the path mapping learning model makes a decision.
[0119] As an exemplary embodiment, when the mapping result of an IP node in the IP path is an incorrect mapping, correcting the AS node mapped by the IP node includes:
[0120] When an IP node in the IP path is determined to be an incorrect mapping, an alternative mapping AS node for the IP node is determined.
[0121] The modified AS node for mapping the IP node is determined from the candidate AS nodes according to preset rules.
[0122] As an exemplary embodiment, the method for determining the candidate mapping AS node for the IP node includes one or more of the following:
[0123] The mapping AS node S' obtained based on the routing table RIB information and PeeringDB information is used as the alternative mapping AS node.
[0124] Computers or servers (siblings) that are in the same physical location as the mapped AS node S of the IP node are used as alternative mapped AS nodes.
[0125] The Internet service providers of the mapped AS node S of the IP node are selected as alternative mapped AS nodes.
[0126] The internet service consumers (customers) of the IP node's mapped AS node S are selected as alternative mapped AS nodes.
[0127] The nodes (peers) that are interconnected with the mapping AS node S of the IP node in the distributed system are used as alternative mapping AS nodes.
[0128] The mapping AS node of the predecessor IP node of the IP node is used as the alternative mapping AS node.
[0129] The mapping AS node of the successor IP node of the IP node is used as the alternative mapping AS node.
[0130] The mapping AS node that satisfies the valley-free principle for any IP node's triple <mapping result of predecessor IP node, S, mapping result of successor IP node> is selected as the candidate mapping AS node.
[0131] As an exemplary embodiment, determining the modified AS node mapped to the IP node from the candidate AS nodes according to a preset rule includes one or more of the following methods:
[0132] Based on the priority of each candidate mapping AS node, the candidate mapping AS node with the highest priority is selected, and the AS node for the modified IP node mapping is determined based on the selected candidate mapping AS node. For example, the priority of the candidate mapping AS nodes determined in the above manner gradually decreases, that is, the mapping AS node S' obtained based on the routing table RIB information and PeeringDB information is the candidate mapping AS node with the highest priority; the mapping AS node that satisfies the valley-free principle for the triple <mapping result of predecessor IP node, S, mapping result of successor IP node> of any IP node is the candidate mapping AS node with the lowest priority.
[0133] Input the IP node and each candidate mapping AS node into the path mapping learning model to obtain the judgment result of the mapping correctness; select the candidate mapping AS node with the highest correctness probability score corresponding to the judgment result, and determine the corrected IP node mapping AS node based on the selected candidate mapping AS node.
[0134] The IP node and each candidate mapping AS node are input into the path mapping learning model to obtain a judgment result on the correctness of the mapping. The highest correctness probability value corresponding to the judgment result is used as a reference threshold. Candidate mapping AS nodes whose difference between the correctness probability score and the reference threshold is less than or equal to a preset third threshold T1 are formed into a candidate node AS set. The candidate mapping AS node with the highest priority is selected from the set, and the AS node of the corrected IP node mapping is determined based on the selected candidate mapping AS node. When there are two candidate mapping AS nodes with similar correctness probability scores, a small difference in scores does not necessarily mean that selecting one candidate mapping AS node is more accurate than selecting the other candidate mapping AS node. Therefore, this embodiment of the application also starts from the difference between the score corresponding to each candidate mapping node and the highest score corresponding to all candidate mapping nodes, selects candidate mapping nodes whose scores are close to the highest score to form a candidate node AS set, and then determines the corrected mapping AS node from this set based on the priority of the candidate mapping nodes, so as to improve the accuracy of the corrected mapping AS node.
[0135] As an exemplary embodiment, determining the modified AS node mapped to the IP node based on the selected candidate AS nodes includes:
[0136] Use the selected alternative mapping AS node as the AS node for the corrected IP node mapping; or...
[0137] When the ratio of the correctness probability of the selected candidate mapping AS node to the correctness probability of the original AS node is greater than the fourth threshold T2, the candidate mapping AS node is used as the AS node for the corrected IP node mapping. Theoretically, if a candidate mapping AS node is correct, then there should be no other candidate mapping AS nodes; that is, the correctness probability score of the candidate mapping AS node should be higher than that of the original mapping AS node. Therefore, for a mapping AS node determined as a negative example by the path mapping learning model, after finding its candidate mapping AS node, if the correctness probability score of the candidate mapping AS node is higher than that of the original mapping AS node, the candidate mapping AS node can be used as the corrected mapping AS node to improve the accuracy of the corrected mapping AS node.
[0138] In this embodiment, T1 determines how many candidate mapping AS nodes with high correctness probability scores can enter the next round of selection, and T2 determines when to correct the original mapping. Assuming T1 values are set to [0.1, 0.2, 0.3] and T2 values are set to [0.2, 0.3, 0.4, 0.5], and these values are permuted and combined before being input into the path mapping learning model for calculation, the results show that different values of T1 and T2 have no significant impact on the model output. Therefore, as an example, T1 can be set to 0.1 and T2 can be set to 0.2.
[0139] As an exemplary embodiment, the method further includes:
[0140] After correcting the AS node mapped to the IP node, the IP path and the AS path containing the corrected AS node are input into the path mapping learning model again to obtain the mapping determination result of each IP node in the IP path.
[0141] The AS node with the lowest correctness probability score corresponding to the mapping determination result is corrected. If the preset correction termination condition is not met, the IP path and the AS path containing the corrected AS node are continued to be input into the path mapping learning model to obtain the mapping determination result of each IP node in the IP path.
[0142] Figure 4 This diagram illustrates an iterative correction process for IP node mappings. In each correction round, attention is paid to IP nodes whose mapping scores are higher than their own, as the mapping results from neighboring IP nodes are considered more reliable and helpful in correcting their own mappings. After each correction round, the scores for the associated IP node mappings are recalculated, and the process moves to the next round. Figure 4As shown, in the initial state, hop i+1 The mapping score is the lowest (0.07), therefore, in the first round of correction, hop is corrected first. i+1 The mapping. When hop is corrected i+1 After mapping, continue calculating the mapping scores between the node and its neighboring nodes; determine whether the preset correction termination condition has been met. If not, in the second round, adjust the hop with the lowest current mapping score (0.22). i+2 Make corrections; repeat this process until the preset correction termination condition is met, and obtain the mapping results determined by the path mapping learning model for all IP nodes.
[0143] Because the mapping results of an IP node's neighbors affect its mapping score during the path mapping learning model calculation process, an error in the neighbor mapping result of an IP node will reduce the reliability of that IP node's mapping score. This application's embodiments improve the accuracy of the mapping results for all IP nodes by employing an iterative correction method.
[0144] The effects of the technical solutions described in the embodiments of this application will be explained below.
[0145] Regarding the 158,872 positive examples and 2,921 negative examples mentioned in the aforementioned embodiments, 104 mapping decisions were evaluated using data obtained from the operator. The results show that 95 positive examples and 8 negative examples are consistent with reality, with only one actual positive example incorrectly identified as a negative example, demonstrating the effectiveness of the autonomous system network topology identification method described in this application.
[0146] To test the independence of the path mapping learning model from the observation point traceroute dataset, in addition to grouping the path sets of all 128 collected VP pairs in an 8:2 ratio, the path sets were also grouped according to VP pairs. Following the partitioning method of the training and test sets of the path mapping learning model shown in Table 2, four group training and testing runs were conducted. Here, ams-nl, nrt-jp, and sao-br are names of D-VPs in CAIDA Ark (each D-VP provides approximately 720K paths), generally named according to geographical location; Atl refers to all D-VPs of the Ripe Atlas (since each D-VP in a Ripe Atlas provides a limited number of paths, only about one hundred, they are merged into a single unit for learning). In the latter three learning runs, the path origins (VPs) of the training and test sets are completely different, eliminating the correlation between different paths originating from the same origin. It can be seen that the path mapping learning model achieved consistently high performance in all four cases, indicating that the path mapping learning model described in this application embodiment can adapt well to paths originating from different origins.
[0147]
[0148]
[0149] Table 2
[0150] To test the time sensitivity of the path mapping learning model, comparable path pairs (176M pairs) were collected from the 128 VP pairs mentioned above, on the 15th of each month from 2018 to 2022. The IP mapping results were evaluated time-based, and the performance of the path mapping learning model was assessed using these results. The evaluation results are shown below. Figure 5 As shown in Figure A, the path mapping learning model performs well in terms of accuracy, recall, F1 score, and effectiveness. Figure A shows the performance statistics of the model in terms of accuracy, recall, F1 score, and effectiveness. It can be seen that the model maintains an average of over 95% in accuracy, recall, and F1 score. Figure B shows the effectiveness over time, indicating that the model's performance in effectiveness varies over time. The path mapping learning model was trained on data from April 15, 2022. The effectiveness decreases as the training data date back further into the data. In 2018, 8 out of 12 datasets had effectiveness values below 75%. This indicates that the characteristics of data forwarding paths change over time. However, the average effectiveness of the path mapping learning model across datasets from 2019 to 2022 was around 90%. In practical research, because the model is not sensitive to path space, it can be trained periodically (e.g., annually) to make more accurate judgments on BdrmapIt results for datasets with only traceroute data (without corresponding control plane data).
[0151] The erroneous mapping results identified by the path mapping learning model for path pairs collected between 2018 and 2022 were corrected. The corrected results were then applied to a biplane consistency comparison, and the new mapping results were evaluated based on the comparison results. This evaluation result was compared with those obtained using RIB information, RIB+PeeringDB information, and the BdrmapIt method. Figure 6A This is a comparison chart showing the success rate of IP mapping. Figure 6B This is a comparison chart showing the proportion of IP mapping failures. Figure 6C This is a comparison chart showing the percentage of IPs that were not mapped. Figures 6A-6CThe horizontal axis represents the percentage of IPs that were successfully mapped, failed to be mapped, and were not mapped out of the total number of IPs, respectively, while the vertical axis represents the CDF value of the dataset. It can be seen that although BdrmapIt has a higher success rate (average 93%), a lower failure rate (2.8%), and a lower unmapped rate (2.7%) compared to using RIB information and using RIB+PeeringDB information, the correction method described in this application (represented as LearnToCorrect in the figure) achieves an average IP mapping success rate of 97%; nearly half of the erroneous mappings under the BdrmapIt method are successfully corrected; and all IPs that BdrmapIt failed to find a mapping for have been correctly mapped by LearnToCorrect. Therefore, the correction method for erroneous mapping results proposed in this application demonstrates good performance in both time and space.
[0152] This application also provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the autonomous system network topology identification method as described in any of the preceding embodiments.
[0153] This application also provides an autonomous system network topology identification device, such as... Figure 7 As shown, it includes a memory 701 and a processor 702. The memory 701 stores a program, which, when read and executed by the processor 702, implements the autonomous system network topology identification method as described in any of the preceding embodiments.
[0154] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
Claims
1. A method for identifying the topology of an autonomous system network, the method comprising: Input the Internet Protocol (IP) path and its mapped Autonomous System (AS) path into the constructed path mapping learning model to obtain the mapping determination result of each IP node in the IP path. When the mapping result of an IP node in the IP path is incorrect, the AS node mapped to the IP node is corrected. The path mapping learning model is constructed in the following way: The mapping correctness of multiple path pairs is determined, and positive examples of correct mapping and negative examples of incorrect mapping are obtained. Each path pair includes an IP path and an AS path. The mapping features of IP nodes and AS nodes are learned from the multiple path pairs. The values of the mapping features are used as the feature values of the path mapping learning model. The positive examples and negative examples are used as the inputs to the path mapping learning model to train the path mapping learning model, thus completing the construction of the path mapping learning model.
2. The method according to claim 1, characterized in that, The process of determining the correctness of mapping for multiple path pairs includes: for each path pair, determining the correctness of mapping in the following manner: Map the IP paths in the path pair to obtain the AS-level data layer path; segment the AS-level data layer path with the AS path in the path pair to obtain multiple path segment pairs, each path segment pair containing an AS-level data layer path segment and an AS path segment, and each path segment containing one or more nodes. Based on each path segment pair, the mapping of each IP node is determined, and the determination results include: matching mapping, partial matching mapping, or no matching mapping. For a mapping of an IP node, determine whether the ratio of the frequency of being judged as a matching mapping to the frequency of being judged as a non-matching mapping is greater than or equal to a preset first threshold. If yes, the mapping of the IP node is judged as a correct mapping; otherwise, the mapping of the IP node is judged as an incorrect mapping. Alternatively, determine whether the ratio of the frequency of being judged as a matching mapping to the frequency of being judged as a partial matching mapping is greater than or equal to a preset second threshold. If yes, the mapping of the IP node is judged as a correct mapping; otherwise, the mapping of the IP node is judged as an incorrect mapping.
3. The method according to claim 2, characterized in that, The determination of the mapping of each IP node based on each path segment pair includes: If the path segment maps an IP node in the corresponding IP path to an intermediate node in the AS-level data layer path segment, then the mapping is a mismatch mapping. If, in the path segment pair, the number of nodes in the AS-level data layer path segment is less than the number of nodes in the AS path segment, and an IP node in the IP path is mapped to the first node of the AS-level data layer path segment, and that IP node is the last node in the IP path corresponding to the path segment pair, then the corresponding mapping is determined to be a half-matching mapping. If, in the path segment pair, the number of nodes in the AS-level data layer path segment is less than the number of nodes in the AS path segment, and an IP node in the IP path is mapped to the last node of the AS-level data layer path segment, and that IP node is the first node in the IP path corresponding to the path segment pair, then the corresponding mapping is determined to be a half-matching mapping. Determine the IP node that maps to the first node of the data layer path segment at the AS level in the corresponding IP path of the first path segment pair, and determine the mapping corresponding to the IP node as a matching mapping. Determine the IP node that maps to the last node of the data layer path segment at the AS level in the corresponding IP path of the tail path segment, and determine the mapping corresponding to the IP node as a matching mapping.
4. The method according to claim 1, characterized in that, When the IP node is X and the AS node of X is S, the mapping characteristics of the IP node and the AS node include any one or more of the following: The business relationship between AS node S and mapping node S' is obtained by mapping S' based on routing table RIB information and PeeringDB information; The proportion of IP nodes X that are mapped to S among all its predecessor IP nodes; The proportion of all successor IP nodes of IP node X that are mapped to S; All mappings of IP node X to non- Among the predecessor IP nodes, the proportion of the mapping results of the predecessor IP nodes and S that have a known business relationship; All mappings of IP node X to non- Among the subsequent IP nodes, the proportion of the mapping results of the subsequent IP nodes and S that have a known business relationship; All IP node X is located in The proportion of triplets that conform to the valley-free principle; All IP node X is located in The proportion of triplets that partially violate the no-valley principle; All IP node X is located in The proportion of triplets that violate the no-valley principle.
5. The method according to claim 1, characterized in that, When an IP node in the IP path is determined to be an incorrect mapping, the AS node mapped to the IP node is corrected, including: When an IP node in the IP path is determined to be an incorrect mapping, an alternative mapping AS node for the IP node is determined. The modified AS node for mapping the IP node is determined from the candidate AS nodes according to preset rules.
6. The method according to claim 5, characterized in that, The methods for determining the alternative mapping AS nodes for the IP node include one or more of the following: The mapping AS node S' obtained based on the routing table RIB information and PeeringDB information is used as the alternative mapping AS node. A computer or server located in the same physical location as the mapping AS node S of the IP node is used as an alternative mapping AS node. The Internet service provider of the mapping AS node S of the IP node is selected as the alternative mapping AS node. The Internet service consumer of the mapped AS node S of the IP node is selected as the alternative mapped AS node. The nodes that are interconnected with the mapping AS node S of the IP node in the distributed system are used as candidate mapping AS nodes. The mapping AS node of the predecessor IP node of the IP node is used as the alternative mapping AS node. The mapping AS node of the successor IP node of the IP node is used as the alternative mapping AS node. This will satisfy the requirement of any IP node. Triples that conform to the valley-free principle are selected as alternative mapping AS nodes.
7. The method according to claim 6, characterized in that, The modified AS node for the IP node is determined from the candidate AS nodes according to a preset rule, including one or more of the following methods: Based on the priority of each candidate mapping AS node, the candidate mapping AS node with the highest priority is selected, and the AS node of the corrected IP node mapping is determined based on the selected candidate mapping AS node. Input the IP node and each candidate mapping AS node into the path mapping learning model to obtain the judgment result of the mapping correctness; select the candidate mapping AS node with the highest correctness probability score corresponding to the judgment result, and determine the corrected IP node mapping AS node based on the selected candidate mapping AS node. Input the IP node and each candidate mapping AS node into the path mapping learning model to obtain the judgment result on the correctness of the mapping; The highest correctness probability value corresponding to the judgment result is used as the reference threshold. Candidate mapping AS nodes whose difference between the correctness probability score and the reference threshold is less than or equal to the preset third threshold T1 are formed into a candidate node AS set. The candidate mapping AS node with the highest priority is selected from the set, and the AS node of the corrected IP node mapping is determined according to the selected candidate mapping AS node.
8. The method according to claim 7, characterized in that, Determining the modified AS node for the IP node mapping based on the selected candidate AS nodes includes: Use the selected alternative mapping AS node as the AS node for the corrected IP node mapping; or... When the ratio of the correctness probability of the selected candidate mapping AS node to the correctness probability of the original AS node is greater than the fourth threshold T2, the candidate mapping AS node is used as the AS node of the corrected IP node mapping.
9. The method according to claim 7 or 8, characterized in that, The method further includes: After correcting the AS node mapped to the IP node, the IP path and the AS path containing the corrected AS node are input into the path mapping learning model again to obtain the mapping determination result of each IP node in the IP path. The AS node with the lowest correctness probability score corresponding to the mapping determination result is corrected. If the preset correction termination condition is not met, the IP path and the AS path containing the corrected AS node are continued to be input into the path mapping learning model to obtain the mapping determination result of each IP node in the IP path.
10. A computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the autonomous system network topology identification method as described in any one of claims 1 to 9.
11. An autonomous system network topology identification device, comprising a memory and a processor, wherein the memory stores a program, and the program, when read and executed by the processor, implements the autonomous system network topology identification method as described in any one of claims 1 to 9.
