BGP (Border Gateway Protocol) routing origin authentication diagnosis method and device based on feature analysis
The BGP route origin authentication diagnosis method through feature analysis solves the problem of false positive and misdiagnosis in route origin verification, improves the accuracy and security management level of route origin verification, and promotes the promotion of RPKI and ROV applications.
Patent Information
- Application Number
- CN202411101977.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-10-15
AI Technical Summary
In the existing technology, the probability of false positives and misdiagnoses in route origin verification is high, which leads to interruption of network service quality, reduces the efficiency and accuracy of route origin verification, reduces the popularity of setting the route origin authorization data objects corresponding to Internet routing table entries, and affects Promote the deployment of RPKI and ROV applications.
Through the BGP route origin authentication diagnosis method based on feature analysis, the route origin authorization data object of RPKI is obtained, the verification payload information in the target BGP global routing table is extracted, the diagnostic features are matched, the origin authentication diagnosis result is generated, and the payload of the false positive verification route is updated. Information, iterative diagnosis until stopping conditions are met, improving the accuracy of route origin verification.
It improves the accuracy of route origin verification, reduces false positives and misdiagnoses, improves the security management level of the Internet, makes route origin verification more accurate, and promotes the promotion of RPKI and ROV applications.
Smart Images

Figure CN118784362A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a BGP route origin authentication diagnosis method and device based on feature analysis. Background Art
[0002] Resource Public Key Infrastructure (RPKI) can achieve a standardized solution to defend against source route hijacking. As the basis of Border Gateway Protocol Security (BGPsec) and path manipulation defense mechanism, it is of great significance to Internet routing security. In related technologies, under the application and deployment of RPKI, network organizations can use Route Origin Validation (ROV) to filter illegal routes to avoid BGP source route hijacking attacks.
[0003] However, in the related technology, due to the high probability of false positive misdiagnosis in the current route origin verification, it leads to negative impacts such as interruption of network service quality, reduces the efficiency and accuracy of route origin verification, and reduces the setting popularity rate of route origin authorization data objects ROA (Route Origin Authorization) corresponding to Internet routing table entries, which affects the promotion of RPKI and ROV application deployment and needs to be solved urgently. Summary of the invention
[0004] The present application provides a BGP route origin authentication diagnosis method and device based on feature analysis to solve the problems in the related technology that the false positive misdiagnosis probability of the current route origin verification is high, resulting in negative impacts such as interruption of network service quality, reducing the efficiency and accuracy of route origin verification, and reducing the setting popularity rate of route origin authorization data objects corresponding to Internet routing table entries, which affects the promotion of RPKI and ROV application deployment.
[0005] In a first aspect, an embodiment of the present application provides a BGP route origin authentication diagnosis method based on feature analysis, comprising the following steps: obtaining all route origin authorization data objects of RPKI, and using the all route origin authorization data objects to obtain verification load information corresponding to each route in the target BGP global routing table; based on the verification load information, extracting all verification invalid routes that meet preset verification invalid conditions in the target BGP global routing table, and confirming the actual diagnosis type of each verification invalid route in all the verification invalid routes; matching at least one target diagnosis feature for each verification invalid route based on the actual diagnosis type, and diagnosing each verification invalid route according to the at least one target diagnosis feature to obtain a feature diagnosis result for each verification invalid route; generating an actual invalid type for each verification invalid route based on the actual diagnosis type and the feature diagnosis result, so as to obtain the origin authentication diagnosis result of the target BGP global routing table according to the actual invalid type.
[0006] Optionally, in one embodiment of the present application, the step of obtaining the diagnostic result of the target BGP global routing table according to the actual invalid type includes: confirming all false positive verification routes of the target BGP global routing table based on the actual invalid type, and updating the verification load information of the false positive verification route to obtain all updated verification load information; iteratively diagnosing all updated verification load information until a preset iteration stop condition is met to obtain the origin authentication diagnostic result. Optionally, in one embodiment of the present application, the step of confirming all false positive verification routes of the target BGP global routing table based on the actual invalid type, and updating the verification load information of the false positive verification route includes: obtaining the trust level of the current verification invalid route according to the actual invalid type, and determining whether the trust level meets the preset security conditions; if the trust level meets the preset security conditions, determining that the current verification invalid route is a false positive verification route, and generating a local origin authorization data object of the false positive verification route according to the actual invalid type, so as to update the verification load information of the false positive verification route using the local origin authorization data object.
[0007] Optionally, in one embodiment of the present application, the matching of at least one target diagnostic feature for each verified invalid route based on the actual diagnostic type includes: when the actual diagnostic type is a prefix matching failure type, determining that the target diagnostic feature is a path overlap feature and a contention status feature; when the actual diagnostic type is an AS matching failure type, determining that the target diagnostic feature is a path neighbor feature, the contention status feature, and a same organization feature; when the actual diagnostic type includes both the AS matching failure type and the prefix matching failure type, determining that the target diagnostic feature is the path neighbor feature, the same organization feature, the path overlap feature, and the contention status feature.
[0008] The second aspect of the present application provides a BGP route origin authentication diagnosis device based on feature analysis, including: an acquisition module, used to obtain all route origin authorization data objects of RPKI, and use the said all route origin authorization data objects to obtain the verification load information corresponding to each route in the target BGP global routing table; an extraction module, used to extract all verification invalid routes that meet the preset verification invalidity conditions in the target BGP global routing table based on the verification load information, and confirm the actual diagnosis type of each verification invalid route in all the verification invalid routes; a matching module, used to match at least one target diagnosis feature to each verification invalid route based on the actual diagnosis type, and diagnose each verification invalid route according to the at least one target diagnosis feature to obtain the feature diagnosis result of each verification invalid route; a diagnosis module, used to generate the actual invalid type of each verification invalid route based on the actual diagnosis type and the feature diagnosis result, so as to obtain the origin authentication diagnosis result of the target BGP global routing table according to the actual invalid type.
[0009] Optionally, in one embodiment of the present application, the diagnosis module includes: an update unit, used to confirm all false positive verification routes of the target BGP global routing table based on the actual invalid type, and update the verification load information of the false positive verification route to obtain all updated verification load information; an iteration unit, used to iteratively diagnose all updated verification load information until a preset iteration stop condition is met to obtain the origin authentication diagnosis result.
[0010] Optionally, in one embodiment of the present application, the update unit is specifically used to: obtain the trust level of the current verification invalid route according to the actual invalid type, and determine whether the trust level meets the preset security conditions; if the trust level meets the preset security conditions, then determine that the current verification invalid route is a false positive verification route, and generate a local origin authorization data object of the false positive verification route according to the actual invalid type, so as to use the local origin authorization data object to update the verification payload information of the false positive verification route.
[0011] Optionally, in one embodiment of the present application, the matching module includes: a first judgment unit, used to determine that the target diagnostic feature is a path overlap feature and a contention status feature when the actual diagnostic type is a prefix match failure type; a second judgment unit, used to determine that the target diagnostic feature is a path neighbor feature, the contention status feature and the same organization feature when the actual diagnostic type is an AS match failure type; and a third judgment unit, used to determine that the target diagnostic feature is the path neighbor feature, the same organization feature, the path overlap feature and the contention status feature when the actual diagnostic type includes both the AS match failure type and the prefix match failure type.
[0012] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the BGP route origin authentication and diagnosis method based on feature analysis as described in the above embodiment.
[0013] The fourth aspect embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the program is executed by a processor, it implements the above-mentioned BGP route origin authentication diagnosis method based on feature analysis.
[0014] The fifth aspect of the present application provides a computer program, which, when executed, implements the above-mentioned BGP route origin authentication and diagnosis method based on feature analysis.
[0015] The embodiment of the present application classifies the features of the routes in the BGP global routing table, performs feature analysis according to different diagnostic categories, thereby confirming the actual invalid type of the route, and realizing the origin authentication diagnosis of the BGP global routing table, thereby improving the accuracy of the route origin verification data, reducing the false positive of the route origin verification, and improving the security management level of the Internet route, making the accuracy of the route origin verification stronger. Thus, the problems in the related technology that the false positive misdiagnosis probability of the current route origin verification is high, resulting in negative impacts such as interruption of network service quality, reducing the efficiency and accuracy of route origin verification, causing the setting popularity rate of the route origin authorization data object corresponding to the Internet routing table item to decline, affecting the promotion of RPKI and ROV application deployment, etc.
[0016] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0018] Figure 1 A flowchart of a BGP route origin authentication diagnosis method based on feature analysis provided according to an embodiment of the present application;
[0019] Figure 2 A schematic diagram of the principle of the route origin verification diagnosis process of one embodiment of the present application;
[0020] Figure 3 A schematic diagram of the deployment and application of route origin verification diagnosis according to an embodiment of the present application;
[0021] Figure 4 It is a structural diagram of a BGP route origin authentication and diagnosis device based on feature analysis according to an embodiment of the present application;
[0022] Figure 5 Schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0024] The following describes the BGP route origin authentication diagnosis method and device based on feature analysis of the embodiment of the present application with reference to the accompanying drawings. In view of the related art mentioned in the above background technology, due to the high probability of false positive misdiagnosis of the current route origin verification, the network service quality is interrupted and other negative effects are generated, the efficiency and accuracy of the route origin verification are reduced, and the setting popularity rate of the route origin authorization data object corresponding to the Internet route table item is reduced, which affects the promotion of RPKI and ROV application deployment. The present application provides a BGP route origin authentication diagnosis method based on feature analysis, by feature classification of the routes of the BGP global routing table, feature analysis is performed according to different diagnostic categories, so as to confirm the actual invalid type of the route, realize the origin authentication diagnosis of the BGP global routing table, improve the accuracy of the route origin verification data, reduce the false positive of the route origin verification, improve the security management level of the Internet route, and make the accuracy of the route origin verification stronger. Thus, the problem that the false positive misdiagnosis probability of the current route origin verification is high in the related art, resulting in negative effects such as interruption of the network service quality, reducing the efficiency and accuracy of the route origin verification, causing the setting popularity rate of the route origin authorization data object corresponding to the Internet route table item to decline, affecting the promotion of RPKI and ROV application deployment, etc.
[0025] Specifically, Figure 1 A flowchart of a BGP route origin authentication diagnosis method based on feature analysis provided in an embodiment of the present application.
[0026] like Figure 1 As shown, the BGP route origin authentication diagnosis method based on feature analysis includes the following steps:
[0027] In step S101, all route origin authorization data objects of RPKI are obtained, and verification load information corresponding to each route in the target BGP global routing table is obtained by using all route origin authorization data objects.
[0028] It can be understood that in the embodiments of the present application, RPKI (Resource Public Key Infrastructure) is a resource public key infrastructure, and all origin authorization data objects can be the origin authorization data objects ROA (Route Origin Authorization) of each route registered and recorded in RPKI. According to each route of the target BGP global routing table, the VRP information contained therein, that is, the verification load information, is extracted from all ROA data objects. Each VRP record is a triple, including a prefix, the maximum length of the prefix maxlength, and the origin AS number.
[0029] In step S102, based on the verification load information, all verification invalid routes that meet the preset verification invalid conditions are extracted from the target BGP global routing table, and the actual diagnosis type of each verification invalid route among all the verification invalid routes is confirmed.
[0030] It should be noted that the preset verification invalidation condition can be set by those skilled in the art according to actual conditions and is not specifically limited here.
[0031] It is understandable that in the embodiment of the present application, the VRP information obtained in the RPKI in the above steps can be used to perform ROV (Route Origin Validation) verification on the routes of the BGP global routing table. If the VRP information reflects that the route is invalid, the route is considered to meet the preset invalid verification condition, and the route that meets the preset invalid verification condition is determined to be an invalid verification route. For example, for route r, verification is performed according to VRP. According to the standard ROV specified in RFC6483 and RFC6811, it will be considered a valid route only when the source AS and prefix length of the route match at least one VRP at the same time.
[0032] Specifically, the actual diagnosis type can reflect the reason why the verified invalid route is judged invalid, including the source AS does not match but the prefix length matches (Unmatched_AS), the source AS matches but the prefix length does not match (Unmatched_length), and the source AS matches and the prefix length does not match (Unmatched_A&L: UnmatchedAS&length), so as to perform diagnosis according to different actual diagnosis types based on the following steps.
[0033] In step S103, at least one target diagnostic feature is matched to each invalidated verification route based on the actual diagnosis type, and each invalidated verification route is diagnosed according to the at least one target diagnostic feature to obtain a feature diagnosis result for each invalidated verification route.
[0034] It can be understood that in the embodiments of the present application, the target diagnostic features can be based on the performance characteristics of massive data of the Internet global routing table and ROA data over a long time span, and the route origin verification diagnostic points extracted for diagnosing the origin authentication results of the BGP global route can be used to diagnose each invalid route by matching different target diagnostic features according to the actual diagnosis type determined in the above steps, thereby more accurately identifying the root cause of the invalid authentication and making the origin authentication more precise.
[0035] Optionally, in one embodiment of the present application, at least one target diagnostic feature is matched for each verified invalid route based on the actual diagnostic type, including: when the actual diagnostic type is a prefix match failure type, determining the target diagnostic feature to be a path overlap feature and a contention status feature; when the actual diagnostic type is an AS match failure type, determining the target diagnostic feature to be a path neighbor feature, a contention status feature, and a same organization feature; when the actual diagnostic type includes both an AS match failure type and a prefix match failure type, determining the target diagnostic feature to be a path neighbor feature, a same organization feature, a path overlap feature, and a contention status feature.
[0036] In the actual implementation process, there are four types of target diagnostic features for three actual diagnostic types. Among them, the diagnostic types include Unmatched_AS prefix match failure type (source AS matches but prefix length does not match), AS match failure type (source AS does not match but prefix length matches), Unmatched_A&LAS match failure type and prefix match failure type both (source AS matches and prefix length does not match).
[0037] Specifically, the four types of target diagnostic features are: same organization feature, for Unmatched_AS and Unmatched_A&L classes, check whether the verification payload AS and the routing source AS are from the same network management organization or network company; path neighbor feature, for Unmatched_AS and Unmatched_A&L classes, check whether the verification payload AS is the next hop of the routing source AS; path overlap feature, for Unmatched_length and Unmatched_A&L classes, if the AS_PATH attribute corresponding to the BGP route verified as Invalid is the same as the AS_PATH of the valid parent prefix initiated by the verification payload AS, that is, the propagation path of the invalid child prefix is the same as the propagation path of its valid parent prefix; contention state feature, the contention state refers to the situation in which the same IP address block in the Internet is announced by multiple ASs at the same time, and invalid routes are divided into five types of contention states, namely, valid same prefix competitors, valid parent prefix competitors, other competitors, and no other competitors (that is, the only announcer). There are two types of path overlap: complete overlap and partial overlap. Complete overlap refers to the situation where all propagation paths of invalid routes are the same as the propagation paths of valid parent prefixes, and partial overlap refers to the situation where there are both identical paths and different paths.
[0038] Furthermore, when the actual diagnosis type includes both the AS match failure type and the prefix match failure type, the diagnosis path of the target diagnosis feature is to first diagnose the path neighbor feature and the same organization feature, and then diagnose the path overlap feature and the competition status feature.
[0039] In step S104, an actual invalid type of each verified invalid route is generated based on the actual diagnosis type and the characteristic diagnosis result, so as to obtain the origin authentication diagnosis result of the target BGP global routing table according to the actual invalid type.
[0040] It can be understood that in the embodiments of the present application, the actual invalid type of the verified invalid route can be determined in combination with the actual diagnostic type of the route obtained in the above steps and the corresponding characteristic diagnostic results under the actual diagnostic type. By analyzing the security of the verified invalid route corresponding to the actual invalid type, the false positive invalid routes among all the verified invalid routes in the target BGP global routing table can be screened, that is, the misdetected routes that can be identified as safe among the routes that are verified invalid by the origin, so as to avoid network service quality interruption caused by a large number of false positive invalid results.
[0041] Optionally, in one embodiment of the present application, a diagnostic result of the target BGP global routing table is obtained based on the actual invalid type, including: confirming all false positive verification routes of the target BGP global routing table based on the actual invalid type, and updating the verification load information of the false positive verification routes to obtain all updated verification load information; iteratively diagnosing all updated verification load information until a preset iteration stop condition is met to obtain an origin authentication diagnostic result.
[0042] It should be noted that the preset iteration stop condition can be set by those skilled in the art according to actual conditions and is not specifically limited here.
[0043] In the actual execution process, according to the actual invalid type of the currently verified invalid route, the false positive verification route in the target BGP global routing table can be identified through an analysis tool or algorithm, and the verification load information of the false positive verification route is updated according to the false positive verification route, so that in the next iteration process, the false positive verification route will be verified as valid, a new ROA data object will be generated, a new round of judgment will be performed, and a new actual invalid type will be generated until the condition for stopping the iteration is met. Among them, the preset iteration stop condition can be that after repeated multiple iterations, no more routes can be verified as valid through the local ROA, or the iteration reaches a preset number of thresholds.
[0044] Optionally, in one embodiment of the present application, all false positive verification routes of the target BGP global routing table are confirmed based on the actual invalid type, and the verification load information of the false positive verification route is updated, including: obtaining the trust level of the current verification invalid route according to the actual invalid type, and judging whether the trust level meets the preset security conditions; if the trust level meets the preset security conditions, the current verification invalid route is determined to be a false positive verification route, and a local origin authorization data object of the false positive verification route is generated according to the actual invalid type, so as to update the verification load information of the false positive verification route using the local origin authorization data object.
[0045] It should be noted that the preset safety conditions can be set by those skilled in the art according to actual conditions and are not specifically limited here.
[0046] In the actual implementation process, the preset security conditions can be formulated according to the security standards of the network organization currently running the route origin verification. Different invalid types can be specified to correspond to different security levels, and then the route can be confirmed whether it meets the preset security conditions according to the actual belonging of the security level. Among them, the actual invalid type and the trust level corresponding to the type can be respectively:
[0047] Full path overlap and unique advertiser C1 (trust level type 1): invalid routes have Unmatched_length VRPs, they have full path overlap with their valid parent prefixes and have no other competitors;
[0048] Partial path overlap and unique announcer C2 (trust level type 1): Similar to C1, there is a path overlap relationship and no other competitors, the difference is that the invalid route has some different forwarding paths (AS_PATH);
[0049] Path overlap and other competitors C3 (trust level type 2): meets the path overlap requirements of C1 and C2, but faces competition from other ASs;
[0050] Same organization C4 (trust level type 1): This type of invalid route has a VRP of Unmatched_AS, and the source AS and at least one VRP AS belong to the same organization;
[0051] Path neighbor C5 (trust level type 1): This type of invalid route has a VRP of Unmatched_AS, and there is a path neighbor relationship between the source AS and at least one VRP AS;
[0052] Double correction C6 (trust level type 1): This type of invalid route has a VRP of Unmatched_A&L, and its source AS belongs to the same organization or a path neighbor as at least one VRP AS. After replacing the origin AS in the AS path with the VRP AS, the Unmatched_A&L VRP will be converted to a VRP of Unmatched_length. At this time, if it is C1 or C2, it is a double correction;
[0053] Unique Announcer C7 (Trust Level Type 2): This type of router uniquely announces the IP address block;
[0054] High risk C8 (trust level type 3): Invalid routes that do not fall into categories C1-C7.
[0055] In the above trust classification, type 1 is better than type 2, and type 2 is better than type 3. For example, invalid routes of type 1 and type 2 can be regarded as false positive results of ROV and should be retained as valid routes. Type 3, as a high-risk invalid route, needs to be judged in combination with other routing security mechanisms. Alternatively, under strict security requirements, only type 1 can be retained as a valid route.
[0056] Furthermore, a local origin authorization data object of the false positive verification route is generated according to the actual invalid type, so as to update the verification load information of the false positive verification route using the local origin authorization data object, that is, a local ROA is generated according to type 1 or type 2 to replace the original ROA of the currently verified invalid route. In the next iteration, the invalid route matching the local ROA will be verified as valid, and a new ROA data object will be generated. After the iteration, the C1 to C7 generated by the new round of judgment will be uniformly marked as type 2 until the condition for stopping the iteration is met. Among them, because three types of VRP information invalidity types, namely actual diagnosis types, are specified in the above embodiment, each route can obtain up to three actual invalid types, that is, multiple trust levels may be obtained. At this time, the highest trust level is selected as the final diagnosis result.
[0057] The working content of the embodiment of the present application is described in detail below with a specific embodiment. Figure 2As shown, it is a schematic diagram of the principle of the route origin verification diagnosis process of an embodiment of the present application. As shown in the figure, firstly, the BGP routing table is verified by ROV route origin verification using the standard RPKIROA, and invalid routes and their corresponding VRPs are output; then, path overlap and contention status are selected as diagnostic points for Unmatched_length class VRPs; path neighbors, contention status and the same organization are selected as diagnostic points for Unmatched_AS class VRPs; for Unmatched_A&L class VRPs, the diagnosis is performed in the order of Unmatched_AS first and then Unmatched_length; finally, feature analysis is performed to generate single diagnostic results for each VRP of the invalid route, and then the type is set according to the C1-C8 classification in the trust hierarchy, where the highest trust type represents the final diagnostic result of the route.
[0058] Another example Figure 3 As shown, it is a schematic diagram of the deployment and application of routing origin verification diagnosis according to an embodiment of the present application, based on Figure 2 The route origin verification diagnostic shown is deployed as a middleware application between the RPKI relying party (RP) and the router, and is compatible with the standard ROV process.
[0059] Specifically, the route origin verification diagnosis server can be used as the middleware between RP and router, which is compatible with the standard route origin verification scheme and easy to deploy. The input of the server includes obtaining VRP data from the standard RPKI verification system on the left side of the figure and obtaining the BGP routing table from the public or local BGP router. Figure 2 In the route origin verification diagnosis process, if the invalid route R is judged to be retained as a valid route, the corresponding new VRP data is generated and sent to the RelyingParty (RP) server of RPKI as output. The RP server sends the newly generated VRP data to the AS boundary BGP router, so that the routes that were originally judged to be invalid in the real BGP routes are judged to be valid routes for retention, thereby significantly reducing the false positive rate of the existing scheme and reducing the concerns of network managers about the potential misjudgment risks of RPKI and ROV, which is conducive to accelerating the deployment and promotion of RPKI on the Internet.
[0060] According to the BGP route origin authentication diagnosis method based on feature analysis proposed in the embodiment of the present application, by feature classification of the routes of the BGP global routing table, feature analysis is performed according to different diagnostic categories, thereby confirming the actual invalid type of the route, realizing the origin authentication diagnosis of the BGP global routing table, improving the accuracy of the route origin verification data, reducing the false positive of the route origin verification, improving the security management level of the Internet route, and making the accuracy of the route origin verification stronger. Thus, the problems in the related technology such as the high probability of false positive misdiagnosis of the current route origin verification, resulting in negative impacts such as interruption of network service quality, reducing the efficiency and accuracy of route origin verification, causing the setting popularity rate of the route origin authorization data object corresponding to the Internet routing table item to decline, affecting the promotion of RPKI and ROV application deployment, etc. are solved.
[0061] Next, a BGP route origin authentication and diagnosis device based on feature analysis proposed in accordance with an embodiment of the present application will be described with reference to the accompanying drawings.
[0062] Figure 4 It is a structural diagram of a BGP route origin authentication and diagnosis device based on feature analysis in an embodiment of the present application.
[0063] like Figure 4 As shown, the BGP route origin authentication and diagnosis device 10 based on feature analysis includes: an acquisition module 100 , an extraction module 200 , a matching module 300 and a diagnosis module 400 .
[0064] The acquisition module 100 is used to acquire all route origin authorization data objects of RPKI, and use all route origin authorization data objects to obtain the verification load information corresponding to each route in the target BGP global routing table.
[0065] The extraction module 200 is used to extract all verification invalid routes that meet the preset verification invalid conditions in the target BGP global routing table based on the verification load information, and confirm the actual diagnosis type of each verification invalid route among all the verification invalid routes.
[0066] The matching module 300 is used to match at least one target diagnostic feature to each invalid verification route based on the actual diagnosis type, and diagnose each invalid verification route according to the at least one target diagnostic feature to obtain a feature diagnosis result for each invalid verification route.
[0067] The diagnosis module 400 is used to generate an actual invalid type for each verified invalid route based on the actual diagnosis type and the characteristic diagnosis result, so as to obtain the origin authentication diagnosis result of the target BGP global routing table according to the actual invalid type.
[0068] Optionally, in one embodiment of the present application, the diagnosis module includes: an updating unit and an iteration unit.
[0069] The updating unit is used to confirm all false positive verification routes of the target BGP global routing table based on the actual invalid type, and update the verification load information of the false positive verification routes to obtain all updated verification load information.
[0070] The iteration unit is used to iteratively diagnose all updated verification load information until a preset iteration stop condition is met to obtain an origin authentication diagnosis result.
[0071] Optionally, in one embodiment of the present application, the update unit is specifically used to: obtain the trust level of the current verification invalid route based on the actual invalid type, and determine whether the trust level meets the preset security conditions; if the trust level meets the preset security conditions, then determine that the current verification invalid route is a false positive verification route, and generate a local origin authorization data object of the false positive verification route based on the actual invalid type, so as to use the local origin authorization data object to update the verification load information of the false positive verification route.
[0072] Optionally, in one embodiment of the present application, the matching module includes: a first determination unit, a second determination unit and a third determination unit.
[0073] The first determination unit is used to determine that the target diagnostic feature is a path overlap feature and a contention state feature when the actual diagnostic type is a prefix matching failure type.
[0074] The second determination unit is used to determine, when the actual diagnosis type is the AS matching failure type, that the target diagnosis feature is a path neighbor feature, a contention state feature, and a same organization feature.
[0075] The third determination unit is used to determine that the target diagnosis feature is a path neighbor feature, a same organization feature, a path overlap feature, and a contention state feature when the actual diagnosis type includes both the AS match failure type and the prefix match failure type.
[0076] It should be noted that the aforementioned explanation of the embodiment of the BGP route origin authentication diagnosis method based on feature analysis is also applicable to the BGP route origin authentication diagnosis device based on feature analysis of this embodiment, and will not be repeated here.
[0077] According to the BGP route origin authentication diagnosis device based on feature analysis proposed in the embodiment of the present application, by feature classification of the routes of the BGP global routing table, feature analysis is performed according to different diagnostic categories, thereby confirming the actual invalid type of the route, realizing the origin authentication diagnosis of the BGP global routing table, improving the accuracy of the route origin verification data, reducing the false positive of the route origin verification, improving the security management level of the Internet route, and making the accuracy of the route origin verification stronger. Thus, the problems in the related technology such as the high probability of false positive misdiagnosis of the current route origin verification, resulting in negative impacts such as interruption of network service quality, reducing the efficiency and accuracy of route origin verification, causing the setting popularity rate of the route origin authorization data object corresponding to the Internet routing table item to decline, affecting the promotion of RPKI and ROV application deployment, etc. are solved.
[0078] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:
[0079] A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .
[0080] When the processor 502 executes the program, the BGP route origin authentication diagnosis method based on feature analysis provided in the above embodiment is implemented.
[0081] Furthermore, the electronic device further comprises:
[0082] The communication interface 503 is used for communication between the memory 501 and the processor 502 .
[0083] The memory 501 is used to store computer programs that can be executed on the processor 502 .
[0084] The memory 501 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0085] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0086] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.
[0087] The processor 502 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0088] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the BGP route origin authentication and diagnosis method based on feature analysis as described above is implemented.
[0089] This embodiment also provides a computer program, which, when executed, implements the above-mentioned BGP route origin authentication diagnosis method based on feature analysis.
[0090] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0091] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0092] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0093] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary and then storing it in a computer memory.
[0094] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0095] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0096] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0097] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A BGP route origin authentication diagnosis method based on feature analysis, characterized in that: The following steps are involved: Obtain all route origin authorization data objects of RPKI, and use the all route origin authorization data objects to obtain verification load information corresponding to each route in the target BGP global routing table; Based on the verification load information, extract all verification invalid routes that meet the preset verification invalid conditions in the target BGP global routing table, and confirm the actual diagnosis type of each verification invalid route among all the verification invalid routes; Matching at least one target diagnostic feature to each of the invalidated verification routes based on the actual diagnostic type, and diagnosing each of the invalidated verification routes according to the at least one target diagnostic feature to obtain a feature diagnostic result of each of the invalidated verification routes; The actual invalid type of each verified invalid route is generated based on the actual diagnosis type and the characteristic diagnosis result, so as to obtain the origin authentication diagnosis result of the target BGP global routing table according to the actual invalid type.
2. The method according to claim 1, characterized in that: The diagnostic result of the target BGP global routing table is obtained according to the actual invalid type, including: Confirming all false positive verification routes of the target BGP global routing table based on the actual invalid type, and updating the verification load information of the false positive verification routes to obtain all updated verification load information; Iterative diagnosis is performed on all updated verification load information until a preset iteration stop condition is met to obtain the origin authentication diagnosis result.
3. The method according to claim 2, characterized in that The step of confirming all false positive verification routes of the target BGP global routing table based on the actual invalid type and updating the verification load information of the false positive verification routes includes: Obtaining a trust level of the currently verified invalid route according to the actual invalid type, and determining whether the trust level meets a preset security condition; If the trust level meets the preset security conditions, the current verification invalid route is determined to be a false positive verification route, and a local origin authorization data object of the false positive verification route is generated according to the actual invalid type, so as to use the local origin authorization data object to update the verification load information of the false positive verification route.
4. The method according to claim 1, characterized in that: The matching of at least one target diagnostic feature for each of the verified invalid routes based on the actual diagnostic type includes: In a case where the actual diagnosis type is a prefix matching failure type, determining that the target diagnosis feature is a path overlap feature and a competition state feature; In the case where the actual diagnosis type is an AS match failure type, determining that the target diagnosis feature is a path neighbor feature, the competition state feature, and a same organization feature; In the case that the actual diagnosis type includes both the AS match failure type and the prefix match failure type, the target diagnosis feature is determined to be the path neighbor feature, the same organization feature, the path overlap feature, and the contention state feature.
5. A BGP route origin authentication and diagnosis device based on feature analysis, characterized in that: include: An acquisition module, used to acquire all route origin authorization data objects of RPKI, and use all route origin authorization data objects to obtain verification load information corresponding to each route in the target BGP global routing table; An extraction module, configured to extract all verification invalid routes that meet a preset verification invalid condition in the target BGP global routing table based on the verification load information, and confirm an actual diagnosis type of each verification invalid route among all the verification invalid routes; A matching module, used for matching at least one target diagnostic feature to each of the invalidated verification routes based on the actual diagnostic type, and diagnosing each of the invalidated verification routes according to the at least one target diagnostic feature to obtain a feature diagnostic result of each of the invalidated verification routes; The diagnosis module is used to generate the actual invalid type of each verified invalid route based on the actual diagnosis type and the characteristic diagnosis result, so as to obtain the origin authentication diagnosis result of the target BGP global routing table according to the actual invalid type.
6. The device according to claim 5, characterized in that The diagnostic module comprises: An updating unit, configured to confirm all false positive verification routes of the target BGP global routing table based on the actual invalid type, and update the verification load information of the false positive verification routes to obtain all updated verification load information; The iteration unit is used to iteratively diagnose all updated verification load information until a preset iteration stop condition is met to obtain the origin authentication diagnosis result.
7. The device according to claim 6, characterized in that The updating unit is specifically used for: Obtaining a trust level of the currently verified invalid route according to the actual invalid type, and determining whether the trust level meets a preset security condition; If the trust level meets the preset security conditions, the current verification invalid route is determined to be a false positive verification route, and a local origin authorization data object of the false positive verification route is generated according to the actual invalid type, so as to use the local origin authorization data object to update the verification load information of the false positive verification route.
8. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the BGP route origin authentication and diagnosis method based on feature analysis as described in any one of claims 1 to 4.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the BGP route origin authentication diagnosis method based on feature analysis as described in any one of claims 1 to 4.
10. A computer program product, comprising a computer program, characterized in that The computer program is executed to implement the BGP route origin authentication diagnosis method based on feature analysis as described in any one of claims 1-4.
Citation Information
Cited By
Block chain-based routing origin authentication data mutual trust sharing publishing method and system
CN120750513A
BGP (Border Gateway Protocol) routing origin authentication diagnosis method based on feature analysis
CN121418204A
BGP route origin authentication diagnosis method based on feature analysis
CN121418204B
