A routing conflict handling system
Through the double verification and reorganization mechanism of the routing conflict handling system, the problem of routing configuration verification instability is solved, network stability and operation and maintenance efficiency are improved, and security threats are reduced.
Patent Information
- Application Number
- CN202211612957.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-15
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-12-15
AI Technical Summary
The existing technology has instability in routing configuration verification, making it difficult to quickly detect routing anomalies, resulting in unstable network operation and easily causing security threats.
A routing conflict processing system is designed. Through the collaborative work of computing service equipment and conflict processing terminals, and using preset routing conflict discrimination rules and routing conflict discrimination models, the routing data is double verified and reorganized to ensure the uniqueness of the routing data. and stability.
It effectively avoids the occurrence of routing conflicts, improves the stability of network operation, reduces the resource consumption of network operation and maintenance, and reduces the degree of human participation.
Smart Images

Figure CN116032832B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network communication, and in particular to a routing conflict processing system. Background Art
[0002] Routing refers to the network-wide process of determining the end-to-end path of a packet from source to destination. Routers interconnect networks by forwarding data packets. For the same network segment at the same time, routing configuration parameters are often required to be unique. If the uniqueness of parameter configuration cannot be guaranteed, routing conflicts will occur.
[0003] However, in the actual network operation process, network anomalies caused by routing mismatches and mismatches are common, and often lead to regional or even national security threats. In the current actual network operation and maintenance process, the routing configuration itself is generally not verified, and it is difficult to directly and quickly discover routing anomalies. Often, the threat can only be perceived and corresponding measures can be taken after it actually occurs and when the routing publishing mechanism is difficult to solve the problem.
[0004] In the existing technology, the specific configuration of the target router is usually checked one by one, and the location of the problem is located according to the network planning to troubleshoot routing anomalies. However, such problem solving methods rely more on the experience and personal ability of the operation and maintenance personnel, which increases the instability of network operation and maintenance. The solution of simulating routers to obtain routing interaction data and building routing tables to analyze the possible risks in routing interactions, skill detection finds routing problems in a single device, which makes it difficult to ensure the stability of network operation. Summary of the invention
[0005] The present invention provides a routing conflict processing system, which can perform conflict verification and routing conflict processing on routing data in a network from different dimensions, effectively avoid the occurrence of routing conflicts, improve the stability of network operation, and reduce the resource consumption of network operation and maintenance.
[0006] A routing conflict handling system provided by an embodiment of the present invention includes a computing service device and at least one conflict handling terminal, wherein the conflict handling terminal is connected in series to links corresponding to two key routers in a target network, wherein the key routers are determined according to preset service priorities, and each conflict handling terminal is respectively connected to the computing service device for communication;
[0007] The conflict processing terminal is used to obtain the target routing data, verify the target routing data according to the preset routing conflict determination rule, determine the first verification result, and forward the routing data to be verified determined according to the first verification result to the computing service device;
[0008] A computing service device, used for verifying the routing data to be verified by using a pre-built routing conflict discrimination model, determining a second verification result, and sending the second verification result to a corresponding conflict processing terminal;
[0009] The conflict handling terminal is also used to reorganize routing data according to the first verification result and the second verification result, determine the reorganized target routing data, and send the reorganized target routing data to the corresponding target router; the target router is one of the two key routers corresponding to the conflict handling terminal.
[0010] A routing conflict handling system provided by an embodiment of the present invention comprises a computing service device and at least one conflict handling terminal, wherein the conflict handling terminal is connected in series in links corresponding to two key routers in a target network, the key routers are determined according to preset service priorities, and each conflict handling terminal is respectively connected to the computing service device for communication; the conflict handling terminal is used to obtain target routing data, verify the target routing data according to preset routing conflict discrimination rules, determine a first verification result, and forward the routing data to be verified determined according to the first verification result to the computing service device; the computing service device is used to verify the routing data to be verified according to a pre-constructed routing conflict discrimination model, determine a second verification result, and send the second verification result to the corresponding conflict handling terminal; the conflict handling terminal is also used to reorganize routing data according to the first verification result and the second verification result, determine the reorganized target routing data, and send the reorganized target routing data to the corresponding target router; the target router is one of the two key routers corresponding to the conflict handling terminal. By adopting the above technical solution, the key routers in the target network are determined according to the importance of the business, and the conflict handling terminals for routing conflict handling are connected in series in the links corresponding to the two key routers, and the computing service equipment connected to each conflict handling terminal is set at the same time. During the operation of the target network, the conflict handling terminal captures the target routing data in the link where it is located, and verifies the target routing data once through the routing conflict discrimination rules stored locally in the conflict handling terminal to obtain the first verification result. At the same time, the routing data to be verified determined according to the first verification result is forwarded to the computing service equipment, and the computing service equipment verifies the routing data to be verified twice through the pre-built routing conflict discrimination model to obtain the second verification result. The conflict handling terminal combines the verification results obtained from the two verifications, reorganizes the target routing data, and sends the reorganized target routing data to the corresponding target router, verifies the data that may have conflicts in the routing data from different angles, reduces the possibility of conflicting data in the reorganized target routing data, and ensures the stability of the links corresponding to the key businesses in the target network, thereby improving the stability of the overall operation of the network, reducing the degree of human participation in routing conflict processing, and reducing the resource consumption of network operation and maintenance.
[0011] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0013] Figure 1 A schematic diagram of the structure of a routing conflict handling system provided in Embodiment 1 of the present invention;
[0014] Figure 2 A schematic diagram of the structure of a routing conflict handling system provided in Embodiment 2 of the present invention;
[0015] Figure 3 A structural example diagram of another routing conflict handling system provided in Embodiment 2 of the present invention;
[0016] Figure 4 A structural example diagram of another routing conflict handling system provided in Embodiment 2 of the present invention;
[0017] Figure 5 A schematic diagram of the structure of a routing conflict handling system provided in Embodiment 3 of the present invention;
[0018] Figure 6 This is a structural example diagram of another routing conflict handling system provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0019] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0020] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0021] Embodiment 1
[0022] Figure 1 A structural diagram of a routing conflict handling system provided in Embodiment 1 of the present invention is provided. The routing conflict handling system 1 includes a computing service device 10 and at least one conflict handling terminal 11. The conflict handling terminal 11 is connected in series to the links corresponding to two key routers 20 in the target network. The key router 20 is determined according to a preset service priority. Each conflict handling terminal 11 is respectively communicated with the computing service device 10.
[0023] The conflict handling terminal 11 is used to obtain target routing data, verify the target routing data according to a preset routing conflict determination rule, determine a first verification result, and forward the routing data to be verified determined according to the first verification result to the computing service device 10;
[0024] The computing service device 10 is used to verify the routing data to be verified by using a pre-built routing conflict discrimination model, determine a second verification result, and send the second verification result to the corresponding conflict processing terminal 11;
[0025] The conflict handling terminal 11 is also used to reorganize routing data according to the first verification result and the second verification result, determine the reorganized target routing data, and send the reorganized target routing data to the corresponding target router 201; the target router is one of the two key routers 20 corresponding to the conflict handling terminal.
[0026] like Figure 1 As shown, in the embodiment of the present invention, a conflict processing terminal 11 in the routing conflict system 1 performs routing conflict processing as an example.
[0027] In this embodiment, the target network can be specifically understood as a network structure including multiple routers built according to actual business needs, wherein different routers can serve different businesses. The key router 20 can be specifically understood as a router serving higher priority businesses among the routers corresponding to the target network. The preset business priority can be specifically understood as the importance ranking of different businesses pre-determined according to the importance of executable businesses of the target network. Exemplarily, the business can be divided into five priorities according to its importance, such as level five being the highest priority. At this time, according to actual needs, the router corresponding to the business with a priority of level five in the target network can be determined as the key router 20, or the router corresponding to the business with a priority greater than the preset priority in the target network can be determined as the key router 20.
[0028] In the embodiment of the present invention, by determining the priority of the services in the target network and then determining the key routers that need to process routing conflicts first, the stable execution of the key services in the target network is ensured, thereby reducing the construction cost of the target network.
[0029] It is understandable that if the target network needs to achieve maximum routing conflict processing, corresponding conflict processing terminals can be set between each router of the target network to perform routing conflict processing, that is, all routers in the target network can be used as key routers. In the embodiment of the present invention, some routers are selected as key routers as an example to reduce the cost of routing conflict processing.
[0030] Optionally, the target network may be a network constructed based on the Border Gateway Protocol (Border Gateway Protocol, BGP), and each router in the target network is a BGP router, that is, the link for message transmission between two key routers 20 in the target network is a BGP link.
[0031] In this embodiment, the conflict handling terminal 11 can be specifically understood as a device with data processing capabilities that is connected in series in the target network and specifically implements data collection and conflict routing filtering. Among them, the routing conflict handling of the conflict handling terminal 11 is mainly determined based on the routing compliance within a certain range in the target network. The computing service device 10 can be specifically understood as a device that exists independently of the target network, includes a model for simulating the conditions of each router and link in the target network, and is used to determine routing conflicts from the overall perspective of the target network.
[0032] In this embodiment, the target routing data can be specifically understood as routing data captured by the conflict handling terminal 11 from the link where it is located, which may contain declaration information that causes network instability. The preset routing conflict judgment rule can be specifically understood as a rule that is predetermined according to the location of the conflict handling terminal 11 in the target network, including the routing address that can be legally accessed by the key router 20 corresponding to the conflict handling terminal 11, and is used to determine whether the declaration content in the routing data in the link is compliant. The first verification result can be specifically understood as the result obtained after the conflict handling terminal 11 performs routing conflict verification in the routing domain on the target routing data. The routing data to be verified can be specifically understood as the routing data in the target routing data that the conflict handling terminal 11 verifies without problems, and the computing service device 10 needs to perform secondary verification from different angles. The routing conflict judgment model can be specifically understood as a routing structure model stored in the computing service device 10 and pre-constructed according to the overall structure planning of the target network. The second verification result can be specifically understood as the result obtained after the computing service device 10 performs routing conflict verification on the routing data to be verified relative to the overall structure of the target network. The reorganized target routing data can be specifically understood as the target routing data after the announcement data that may cause routing conflicts has been removed. The target router 201 can be specifically understood as the key router 20 to which the target routing data is originally to be sent among the two key routers 20 corresponding to the conflict handling terminal 11 .
[0033] Specifically, during the target network construction process, at least two key routers 20 are determined among all routers corresponding to the target network according to the preset service priority, and the conflict handling terminal 11 is connected in series to the links corresponding to the two key routers 20. At the same time, a computing service device 10 corresponding to the target network is set outside the target network, so that each conflict handling terminal 11 connected in series in the target network is connected to the computing service device 10 for communication. In addition, during the target network construction process, a preset routing conflict discrimination rule corresponding to its position in the target network is configured for each conflict handling terminal 11, and a routing conflict discrimination model is pre-constructed in the computing service device 10 according to the target network structure.
[0034] After the target network starts to work normally, for each conflict handling terminal 11 therein, the conflict handling terminal 11 will capture the target routing data transmitted between the two key routers 20 in the link where it is located, and match and verify the target routing data through the preset routing conflict judgment rule pre-stored locally, and obtain a first verification result, and then eliminate the routing data with routing conflicts in the target routing data according to the first verification result, and forward the routing data to be verified after eliminating the conflicting data to the computing service device 10. After receiving the routing data to be verified, the computing service device 10 compares the routing data to be verified with the constructed routing conflict judgment model, determines the routing data in the routing data to be verified that may conflict with the entire target network, and then determines the second verification result, and sends the second verification result back to the conflict handling terminal 11 that provides the routing data to be verified. After receiving the second verification result, the conflict handling terminal 11 deletes the data with routing conflicts from the target routing data according to the first verification result and the second verification result stored by itself, and reorganizes the routing data without conflicts according to the structure of the target routing data to obtain the reorganized target routing data, and determines the key router 20 to which the target routing data was originally required to be sent as the target router 201, and sends the reorganized target routing data to the target router 201, thereby realizing the routing conflict handling of the link where the conflict handling terminal 11 is located.
[0035] The embodiment of the present invention provides a routing conflict processing system, including a computing service device and at least one conflict processing terminal, wherein the conflict processing terminal is connected in series in the links corresponding to two key routers in the target network, the key routers are determined according to the preset service priority, and each conflict processing terminal is respectively connected to the computing service device for communication; the conflict processing terminal is used to obtain the target routing data, verify the target routing data according to the preset routing conflict discrimination rule, determine the first verification result, and forward the routing data to be verified determined according to the first verification result to the computing service device; the computing service device is used to verify the routing data to be verified by the pre-constructed routing conflict discrimination model, determine the second verification result, and send the second verification result to the corresponding conflict processing terminal; the conflict processing terminal is also used to reorganize the routing data according to the first verification result and the second verification result, determine the reorganized target routing data, and send the reorganized target routing data to the corresponding target router; the target router is one of the two key routers corresponding to the conflict processing terminal. By adopting the above technical solution, the key routers in the target network are determined according to the importance of the business, and the conflict handling terminals for routing conflict handling are connected in series in the links corresponding to the two key routers, and the computing service equipment connected to each conflict handling terminal is set at the same time. During the operation of the target network, the conflict handling terminal captures the target routing data in the link where it is located, and verifies the target routing data once through the routing conflict discrimination rules stored locally in the conflict handling terminal to obtain the first verification result. At the same time, the routing data to be verified determined according to the first verification result is forwarded to the computing service equipment, and the computing service equipment verifies the routing data to be verified twice through the pre-built routing conflict discrimination model to obtain the second verification result. The conflict handling terminal combines the verification results obtained from the two verifications, reorganizes the target routing data, and sends the reorganized target routing data to the corresponding target router, verifies the data that may have conflicts in the routing data from different angles, reduces the possibility of conflicting data in the reorganized target routing data, and ensures the stability of the links corresponding to the key businesses in the target network, thereby improving the stability of the overall operation of the network, reducing the degree of human participation in routing conflict processing, and reducing the resource consumption of network operation and maintenance.
[0036] Embodiment 2
[0037] Figure 2 A structural diagram of a routing conflict processing system provided for Embodiment 2 of the present invention. The technical solution of the embodiment of the present invention is further refined on the basis of the above technical solution, and clarifies the method for determining the target routing data, the specific setting method of the routing conflict judgment rules in the conflict processing terminal 11, and the method for the conflict processing terminal 11 to verify the target routing data. Figure 2In the example, a conflict processing terminal 11 in the routing conflict system 1 performs routing conflict processing.
[0038] The conflict handling terminal 11 includes:
[0039] The target data determination module 111 is used to capture the routing data in the link corresponding to the conflict processing terminal, and determine the address declaration data in the routing data as the target routing data; the target routing data includes the address data to be revoked and the address data to be updated;
[0040] A first verification module 112 is used to match the target routing data with a preset routing conflict determination rule, and determine a first verification result according to the matching result;
[0041] The to-be-verified data determining module 113 is used to determine the to-be-verified routing data according to the first verification result and the target routing data, and forward the to-be-verified routing data to the computing service device 10;
[0042] The data reorganization module 114 is used to receive the second verification result fed back by the computing service device 10, and reorganize the target routing data according to the first verification result and the second verification result, determine the reorganized target routing data, and send the reorganized target routing data to the target router 201 corresponding to the target routing data.
[0043] In this embodiment, the target data determination module 111 can be specifically understood as a data processing module in the conflict processing terminal 11, which is used to capture the routing data in the link and select the data that needs to be processed for routing conflict determination. The first verification module 112 can be specifically understood as a data processing module in the conflict processing terminal 11 that stores routing conflict determination rules corresponding to the location of the conflict processing terminal 11 and can verify the input routing data according to the routing conflict determination rules. The module for determining data to be verified 113 can be specifically understood as a module in the conflict processing terminal 11, which is used to filter the target routing data according to the first verification result obtained by the first verification, so as to obtain and forward the routing data to be verified. The data reorganization module 114 can be specifically understood as a data processing module in the conflict processing terminal 11, which is used to reorganize and forward the target routing data according to the results of two verifications.
[0044] In this embodiment, the routing data can be specifically understood as a data packet sent by a router and generated according to a routing protocol. Optionally, the routing data can include target IP address data, protocol message data, and update message message data, etc., which are not limited in this embodiment of the present invention. The address data to be revoked can be specifically understood as data used to announce the revocation of a route. The address data to be updated can be specifically understood as data used to announce the generation of a new route or to re-update the address of an existing route.
[0045] Specifically, after the target network is constructed, for each conflict handling terminal 11 in the target network, the target data determination module 111 therein captures the routing data in the link corresponding to the conflict handling terminal 11. Since the address declaration data in the routing data will affect the routing direction in the target network, that is, the situation of publishing routes for the same network segment may occur, after parsing the routing data, the address declaration data therein is extracted, and the extracted routing data is determined as the target routing data. After obtaining the target routing data, the first verification module 112 matches the preset routing conflict judgment rules with each address declaration data in the target routing data in turn, determines the data in each address declaration data that may cause routing conflicts based on the matching results, and then determines the first verification result based on the matching results. The module for determining data to be verified 113 can determine the data with routing conflicts determined by the conflict processing terminal 11 according to the first verification result. For such data, it is clear that it needs to be excluded from the data to be sent to the target router 201, and there is no need to perform routing conflict correction again. In order to ensure the completeness of routing conflict verification, the target routing data other than the above data can be determined as the routing data to be verified, and the routing data to be verified can be forwarded to the computing service device 10 for secondary verification. After the computing service device 10 performs secondary verification on the routing data to be verified, a second verification result will be fed back to the conflict processing terminal 11. After receiving the second verification result, the data reorganization module 114 of the conflict processing terminal 11 can combine it with the first verification result stored in the conflict processing terminal 11 to determine all the data in the target routing data that may cause routing conflicts. The data after the data is eliminated can be considered as the routing data that needs to be sent to the target router 201. At this time, the data after the data elimination is completed is reorganized according to the structure of the target routing data to obtain the reorganized target routing data, and the reorganized target routing data is sent to the target router 201 corresponding to the target routing data to complete the routing communication of the link where the conflict processing terminal 11 is located.
[0046] Exemplarily, assuming that the link where the conflict handling terminal 11 is located is a BGP link, the target data determination module 111 can be specifically used to capture the update message data in the BGP protocol and forward other protocol message data. After completing the message capture, the Withdrawn Routes and Network Layer Reachability Information (NLRI) field contents in the update message data are parsed in real time to complete the extraction of data types related to address declarations, and the extracted address data to be revoked and the address data to be updated are determined as target routing data. At the same time, the target routing data should also include basic information indicating link location information for locating the data in the target network.
[0047] Furthermore, the to-be-verified data determination module 113 is specifically used to: filter the target routing data by the data corresponding to the first verification result, determine the target routing data that does not contain the data corresponding to the first verification result as the to-be-verified routing data; and forward the to-be-verified routing data to the computing service device.
[0048] Furthermore, the data reorganization module 114 is specifically used to: filter the target routing data through the data corresponding to the first verification result and the data corresponding to the second verification result to determine the conflict-free routing data; reorganize the conflict-free routing data according to the corresponding format of the target routing data to determine the reorganized target routing data, and send the reorganized target routing data to the target router corresponding to the target routing data.
[0049] Specifically, after the first verification module 112 completes the verification of the target routing data, a corresponding first verification result can be obtained. The to-be-verified data determination module 113 can determine the data with routing conflicts in the target routing data according to the first verification result, and filter the target routing data by determining the data with routing conflicts, to obtain the target routing data that does not contain the data corresponding to the first verification result after filtering, and determine the filtered target routing data as the to-be-verified routing data, and forward the to-be-verified routing data to the computing service device 10.
[0050] Specifically, after receiving the second verification result, the data reorganization module 114 can determine all conflicting routing data in the target routing data based on the first verification result and the second verification result, and filter the target routing data by determining the data with routing conflicts, determine the conflict-free routing data, and then reorganize the conflict-free routing data according to the format of the target routing data, so as to obtain the reorganized target routing data that needs to be sent to the target router 201 corresponding to the target routing data.
[0051] Furthermore, Figure 3 This is a structural example diagram of another routing conflict handling system provided in the second embodiment of the present invention, which is further refined on the basis of the above-mentioned embodiments, wherein the conflict handling terminal 11 further includes: a judgment rule importing module 115.
[0052] The judgment rule importing module 115 is used to import the routing conflict judgment rule determined according to the planning information of the target network before the target network is started; wherein the routing conflict judgment rule includes the set of compliant routing addresses of the link corresponding to the conflict processing terminal 11 .
[0053] Accordingly, the first verification module 112 is specifically used to: match each to-be-updated address in the to-be-updated address data with the set of compliant routing addresses, and if the match fails, determine the first verification result as no routing conflict, and determine the data corresponding to the first verification result as no data;
[0054] Otherwise, the successfully matched address to be updated is determined as the first routing conflict address, the first verification result is determined as the existence of routing conflict, and the first routing conflict address is determined as the data corresponding to the first verification result.
[0055] In this embodiment, the discrimination rule import module 115 can be specifically understood as a module set in the conflict handling terminal 11 for initializing the routing conflict discrimination rule for the conflict handling terminal 11. It can also be understood as a data configuration interface on the conflict handling terminal 11, and the embodiment of the present invention does not limit this. The compliant routing address can be specifically understood as the routing address that has been declared and successfully pointed to the corresponding network segment by the conflict handling terminal 11 in the corresponding area of the target network. It can also be understood that the corresponding routing address has been occupied. If the same routing address is declared again, a routing conflict will occur.
[0056] Specifically, when the conflict handling terminal 11 has been built into the target network and the target network has not yet been started, it is necessary to determine the set of compliant routing addresses in the area where the conflict handling terminal is located based on the routing addresses that have been declared in the target network, and determine the set of compliant routing addresses as the routing conflict judgment rules for the link corresponding to the conflict handling terminal 11, so that the routing addresses that cannot be declared in the link corresponding to the conflict handling terminal 11 can be clarified, and the routing conflict judgment rules are imported and stored locally in the conflict handling terminal 11 through the judgment rule import module 115. Further, the first verification module 112 can verify the address data to be updated in the target routing data according to the routing conflict judgment rule, and since the address data to be updated may include multiple addresses to be updated, each address to be updated will be matched with each compliant routing address in the compliant routing address set. If each address to be updated fails to match, it can be considered that the routing address update corresponding to the address data to be updated will not cause a routing conflict. At this time, the first verification result is determined to be no routing conflict, and the data corresponding to the first verification result is determined to be no data; otherwise, each address to be updated that is successfully matched is determined as the first routing conflict address, and the first verification result is determined to be the existence of routing conflict, and the first routing conflict address is determined as the data corresponding to the first verification result. Further, the data to be verified determination module 113 can filter out the first routing conflict address from the target routing data, determine the filtered data as the routing data to be verified, and forward the routing data to be verified to the computing service device 10.
[0057] In an embodiment of the present invention, by pre-importing routing conflict judgment rules into the conflict processing terminal 11, the target routing data can be initially verified in the conflict processing terminal 11, and the first routing conflict address that may cause routing conflicts can be screened out, and then the routing data to be verified after the first routing conflict address is screened out is forwarded to the computing service device 10 for secondary verification, thereby reducing the calculation amount of the computing service device 10, and at the same time ensuring the full coverage of routing conflict detection for the target network, thereby improving the operation stability and security of the target network.
[0058] Further, Figure 4 This is a structural example diagram of another routing conflict handling system provided in the second embodiment of the present invention, which is further refined on the basis of the above-mentioned embodiments, wherein the conflict handling terminal 11 further includes: a session maintaining module 116.
[0059] The session maintaining module 116 is used to send a timing message to the key router 20 corresponding to the routing data when the conflict handling terminal 11 captures the routing data, so as to keep the session connection unblocked.
[0060] Specifically, when the target data determination module 111 in the conflict handling terminal 11 captures the routing data in the link, it is equivalent to hijacking the session to which the routing data belongs. Once the session at the transport layer is disconnected, it will undergo initialization and verification operations when it is reconnected, which will also cause the hijacked routing data to be invalid. Therefore, when the conflict handling terminal 11 captures the routing data, it will take over the session on the corresponding link through the session maintenance module 116, and send a timing message to the key router 20 corresponding to the routing data to ensure the smooth connection of the session, so that after the data reassembly module 114 of the conflict handling terminal 11 completes the reassembly of the target routing data, it can send the reassembled target routing data to the target router 201 corresponding to the target routing data, and cancel the takeover of the session by the session maintenance module 116, so that the session can be carried out normally on the link.
[0061] The technical solution of the embodiment of the present invention configures compliant routing addresses related to the positions of different conflict handling terminals in the target network, and then performs initial verification of the target routing data collected by the conflict handling terminal, thereby ensuring that the first routing conflict address in the corresponding area of the target network does not exist in the reorganized target routing data, while reducing the amount of data sent to the computing service device for secondary verification, thereby improving the data processing speed. Furthermore, through the configured session maintenance module, it is ensured that the conflict handling terminal is smooth when capturing routing data, avoiding invalid routing data collection, and improving the stability of the target network.
[0062] Embodiment 3
[0063] Figure 5 This is a structural diagram of a routing conflict processing system provided in Embodiment 3 of the present invention. The technical solution of the embodiment of the present invention is further refined on the basis of the above technical solution, and clarifies the specific construction method of the routing conflict judgment model in the computing service device 10, as well as the method for verifying the routing data to be verified in the computing service device 10. Figure 5 In the example, a conflict handling terminal 11 in the routing conflict system 1 performs routing conflict handling. The computing service device 10 includes:
[0064] A first updating module 101 is used to update a pre-built routing conflict discrimination model according to basic information corresponding to the routing data to be verified and address data to be revoked in the routing data to be verified, so as to obtain a first updated model;
[0065] The second verification module 102 is used to verify the address data to be updated in the routing data to be verified by using the first update model, determine a second verification result, and send the second verification result to the corresponding conflict processing terminal 11;
[0066] The second updating module 103 is used to update the first updating model according to the to-be-updated address data in the to-be-checked routing data and the second verification result, and determine the updated first updating model as a new routing conflict determination model.
[0067] In this embodiment, the first update module 101 can be specifically understood as a data processing module in the computing service device 10, which is used to update the route conflict discrimination model stored therein before verifying the route data to be verified, so that the updated model better meets the verification requirements. The second verification module 102 can be specifically understood as a data processing module in the computing service device 10, which verifies the route data to be verified input therein according to the updated route conflict discrimination model. The second update module 103 can be specifically understood as a data processing module in the computing service device 10, which uses the route data to be verified that has no problems after verification to update the route conflict discrimination model, so that the route conflict discrimination model stored in the computing service device 10 is synchronized with the actual route declaration of the target network. The basic information can be specifically understood as information used to locate the route data to be verified.
[0068] Specifically, when the computing service device 10 receives the routing data to be verified from a conflict handling terminal 11 connected to it, it can be considered that the link corresponding to the conflict handling terminal 11 needs to be checked for routing conflicts. Since the routing data to be verified includes two types of address declaration data, namely, address data to be revoked and address data to be updated, wherein the address data to be revoked is data used to declare the cancellation of the route in the target network, that is, when this type of data is received, some branches in the original routing conflict judgment model will be cancelled, which will affect the overall architecture of the routing conflict judgment model. If the routing conflict judgment model is not updated in advance, the verification result obtained by verifying the routing conflict judgment model will be wrong. Therefore, the computing service device 10 is provided with a first updating module 101. When receiving the routing data to be verified, firstly, according to the basic information corresponding to the routing data to be verified, the position of the routing data to be verified in the pre-built routing conflict judgment model is located, and then according to the address data to be revoked in the routing data to be verified, the branch corresponding to the route that needs to be declared cancelled at the corresponding position of the routing conflict judgment model is determined, and the routing conflict judgment model after the cancellation of the above branch is determined as the first updated model.
[0069] After the first update module 101 completes the update of the routing conflict discrimination model to obtain the first update model, the second verification module 102 will match the address data to be updated in the routing data to be verified according to the first update model, determine whether there is data in the address data to be updated that overlaps with the branch in the first update model according to the matching result, and then determine the second verification result, and send the second verification result to the corresponding conflict processing terminal 11. At the same time, after determining the data that may cause routing conflicts in the address data to be updated in the routing data to be verified according to the second verification result, the data that may cause routing conflicts can be eliminated, and the remaining address data to be updated can be considered as data that will be sent to the target router 201, so that the routing declaration structure of the target network sends changes. At this time, the first update model can be updated again with the remaining address data to be updated, and the updated first update model is determined as a new routing conflict discrimination model, so that the routing conflict discrimination model changes with the actual address declaration, and the accuracy of the next verification using the routing conflict discrimination model is guaranteed.
[0070] Furthermore, the second verification module 102 is specifically configured to:
[0071] The address data to be updated in the routing data to be verified is determined as the intermediate verification address data; each intermediate verification address in the intermediate verification address data is matched with the first update model. If the match fails, the second verification result is determined as no routing conflict, and the data corresponding to the second verification result is determined as no data; otherwise, the intermediate verification address that is successfully matched is determined as the second routing conflict address, and the second verification result is determined as the existence of a routing conflict, and the second routing conflict address is determined as the data corresponding to the second verification result.
[0072] Furthermore, the second updating module 103 is specifically configured to:
[0073] The address data to be updated in the routing data to be verified is filtered through the data corresponding to the second verification result, and the model update address data that does not include the data corresponding to the second verification result is determined; the first update model is updated through the model update address data, and the updated first update model is determined as a new routing conflict discrimination model.
[0074] Specifically, after the first update module 101 completes the update of the routing conflict discrimination model to obtain the first update model, the address data to be updated in the routing data to be verified is determined as the intermediate verification address data. The basic information corresponding to the routing data to be verified is located in the first update model, and after the location, each intermediate verification address in the intermediate verification address data is matched with the first update model. If all the matches fail, it can be considered that the routing address corresponding to the address data to be updated in the data to be verified is updated, and will not cause routing conflicts. At this time, the second verification result is determined as no routing conflict, and the data corresponding to the second verification result is determined as no data; otherwise, the successfully matched intermediate verification address is determined as the second routing conflict address, and the second verification result is determined as the existence of routing conflict, and the second routing conflict address is determined as the data corresponding to the second verification result. Furthermore, after obtaining the second verification result, the second update module 103 can filter the address data to be updated in the routing data to be verified through the data corresponding to the second verification result, and after filtering out the data corresponding to the second verification result that may cause routing conflicts from the address data to be updated, obtain the corresponding model update address data, update the first update model through the model update geological data, and determine the updated model as a new routing conflict judgment model.
[0075] Further, Figure 6 This is a structural example diagram of another routing conflict handling system provided in Embodiment 3 of the present invention, which is further refined on the basis of the above-mentioned embodiments, and in the computing service device 10, it further includes: a discrimination model building module 104;
[0076] The discrimination model building module 104 is used to build a routing conflict discrimination model according to the planning information of the target network before the target network is started; wherein the planning information of the target network includes all routing address information in the target network; the routing conflict discrimination model is constructed with a tree structure as the basic organization method.
[0077] Furthermore, the discriminant model building module 104 is specifically used for:
[0078] For each autonomous domain in the target network, determine the autonomous domain routing address information set corresponding to the autonomous domain; determine the boundary routing address information in the autonomous domain routing address information set as the root node; extract the published routing address information corresponding to all the published routes in the autonomous domain from the autonomous domain routing address information set; divide each published routing address information into intermediate nodes and leaf nodes according to planning information; construct the routing address tree corresponding to the autonomous domain according to each root node, each intermediate node and each leaf node; construct a routing conflict discrimination model for each routing address tree according to the distribution of the corresponding autonomous domain in the target network.
[0079] In this embodiment, the discrimination model building module 104 can be specifically understood as being set in the computing service device 10. The autonomous domain can be specifically understood as a group of routers in the network that use the same routing protocol or follow the same routing management strategy. The planning information of the target network can be specifically understood as the architecture information of different routers in the target network, and the information of the services targeted by each router.
[0080] Specifically, when the conflict handling terminal 11 has been built into the target network and the target network has not yet been started, it is necessary to determine the architecture information of different routers in the target network based on the planning information of the target network, and then build a routing conflict discrimination model based on the architecture of different routers. Among them, the planning information of the target network may include the routing address information of all routers in the target network, and then the architecture of the routing conflict discrimination model can be built based on the relationship between different routing address information.
[0081] Furthermore, the target network can be divided into multiple autonomous domains according to different services, and then all the routing address information of the target network can be divided into autonomous domain routing address information sets corresponding to each autonomous domain according to different autonomous domains. Since the routing conflict discrimination model is constructed with a tree structure as the basic organizational method, each autonomous domain can be considered as a branch tree in the routing conflict discrimination model. At this time, the boundary routing address information in the autonomous domain routing address information set can be determined as the root node, and the published routing address information corresponding to all published routes in the autonomous domain can be extracted from the autonomous domain routing address information set; each published routing address information is divided into intermediate nodes and leaf nodes according to the planning information, and then according to the construction method of root node->intermediate node->leaf node, the routing address trees corresponding to different autonomous domains are constructed according to each root node, each intermediate node and each leaf node, and then each routing address tree is constructed according to the distribution of the corresponding autonomous domain in the target network to complete the construction of the routing conflict discrimination model.
[0082] Furthermore, the update of the routing conflict discrimination model by the first update module 101 can be specifically implemented in the following manner: first, the basic information and the address data to be revoked corresponding to the routing data to be verified are determined, and then the source IP in the basic information is compared with each root node in each routing node tree in the routing conflict discrimination model to determine the routing node tree corresponding to the routing data to be verified, and then the address data to be revoked is compared with the routing node tree to determine whether the routing node tree contains the same content as the address data to be revoked; if so, the corresponding node in the routing node tree is deleted; if not, the address to be revoked is skipped; after all the addresses to be revoked in the address data to be revoked are verified, it can be considered that the update of the routing node tree has been completed, and then the obtained routing conflict discrimination model can be determined as the first update model.
[0083] Furthermore, when the second verification module 102 verifies the address data to be updated in the routing data to be verified according to the first update model, it first determines the basic information corresponding to the routing data to be verified, and then compares the source IP in the basic information with each root node in each routing node tree in the routing conflict judgment model, finds out the routing node tree with inconsistent root nodes, and compares whether the routing node tree contains the address content to be updated. If so, the address to be updated is considered to be a risk address that will cause a routing conflict, and it is determined as the second routing conflict address. Otherwise, continue to compare the next address to be updated until all the address data to be updated are compared, and the final second verification result is obtained, and the second verification result is sent to the corresponding conflict processing terminal 11.
[0084] Furthermore, the computing service device 10 can also be used to periodically send update commands to each conflict processing terminal 11 that is connected to it for communication when no routing data to be verified is received, so that each conflict processing terminal 11 can disguise itself as a router and initiate an update packet to a friendly router, receive the routing data fed back in the link, and process it using the same verification method as when the target network is working normally, thereby completing the update of the routing conflict discrimination model in the computing service device 10.
[0085] The technical solution of the embodiment of the present invention ensures the accuracy of route conflict verification by constructing a tree-shaped route conflict discrimination model and updating the route conflict discrimination model in real time during verification. At the same time, route conflict verification is performed on the route data in the link from both the local and overall levels, so that data with route conflicts can be processed in a timely manner, thereby improving the operational stability of the target network.
[0086] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A routing conflict handling system, characterized in that: The routing conflict handling system includes a computing service device and at least one conflict handling terminal, wherein the conflict handling terminal is connected in series to links corresponding to two key routers in the target network, wherein the key routers are determined according to preset service priorities, and each of the conflict handling terminals is respectively connected to the computing service device in communication; The conflict processing terminal is used to obtain target routing data, verify the target routing data according to a preset routing conflict determination rule, determine a first verification result, and forward the routing data to be verified determined according to the first verification result to the computing service device; The computing service device is used to verify the to-be-verified routing data through a pre-built routing conflict discrimination model, determine a second verification result, and send the second verification result to a corresponding conflict processing terminal; The conflict handling terminal is further used to reorganize routing data according to the first verification result and the second verification result, determine the reorganized target routing data, and send the reorganized target routing data to a corresponding target router; the target router is one of the two key routers corresponding to the conflict handling terminal; The step of reorganizing the routing data according to the first verification result and the second verification result includes: Filter the target routing data by using the data corresponding to the first verification result and the data corresponding to the second verification result to determine non-conflicting routing data; The conflict-free routing data is reorganized according to the corresponding format of the target routing data.
2. The system according to claim 1, characterized in that The conflict handling terminal comprises: A target data determination module, used to capture the routing data in the link corresponding to the conflict processing terminal, and determine the address declaration data in the routing data as the target routing data; the target routing data includes the address data to be revoked and the address data to be updated; A first verification module, used for matching the target routing data with the preset routing conflict determination rule, and determining a first verification result according to the matching result; a to-be-verified data determining module, configured to determine the to-be-verified routing data according to the first verification result and the target routing data, and forward the to-be-verified routing data to the computing service device; A data reorganization module is used to receive the second verification result fed back by the computing service device, and reorganize the target routing data according to the first verification result and the second verification result, determine the reorganized target routing data, and send the reorganized target routing data to a target router corresponding to the target routing data.
3. The system according to claim 2, characterized in that The conflict handling terminal further includes: a discrimination rule importing module; The discrimination rule importing module is used to import the routing conflict discrimination rule determined according to the planning information of the target network before the target network is started; The routing conflict determination rule includes a set of compliant routing addresses of the link corresponding to the conflict handling terminal.
4. The system according to claim 3, characterized in that The first verification module is specifically used for: Matching each to-be-updated address in the to-be-updated address data with the set of compliant routing addresses, and if the match fails, determining the first verification result as no routing conflict, and determining the data corresponding to the first verification result as no data; Otherwise, the successfully matched address to be updated is determined as the first routing conflict address, the first verification result is determined as the existence of routing conflict, and the first routing conflict address is determined as the data corresponding to the first verification result.
5. The system according to claim 2, characterized in that The to-be-verified data determination module is specifically used for: Filtering the target routing data by the data corresponding to the first verification result, and determining the target routing data not including the data corresponding to the first verification result as the routing data to be verified; The routing data to be verified is forwarded to the computing service device.
6. The system according to claim 2, characterized in that The conflict handling terminal further includes: a session maintaining module; The session maintaining module is used to send a timing message to a key router corresponding to the routing data when the conflict handling terminal captures the routing data, so as to keep the session connection unblocked.
7. The system according to claim 1, characterized in that The computing service device comprises: A first updating module, configured to update a pre-built routing conflict discrimination model according to basic information corresponding to the routing data to be verified and address data to be revoked in the routing data to be verified, to obtain a first updated model; A second verification module, configured to verify the to-be-updated address data in the to-be-verified routing data by using the first update model, determine a second verification result, and send the second verification result to a corresponding conflict handling terminal; The second updating module is used to update the first updating model according to the to-be-updated address data in the to-be-checked routing data and the second verification result, and determine the updated first updating model as a new routing conflict determination model.
8. The system according to claim 7, characterized in that The computing service device further includes: a discriminant model building module; The discrimination model building module is used to build a routing conflict discrimination model according to the planning information of the target network before the target network is started; The planning information of the target network includes all routing address information in the target network; and the routing conflict determination model is constructed with a tree structure as the basic organization mode.
9. The system according to claim 8, characterized in that The discriminant model building module is specifically used for: For each autonomous domain in the target network, determining an autonomous domain routing address information set corresponding to the autonomous domain; Determine the border routing address information in the autonomous domain routing address information set as the root node; Extracting the published routing address information corresponding to all published routes in the autonomous domain from the autonomous domain routing address information set; Dividing each of the published routing address information into intermediate nodes and leaf nodes according to the planning information; Constructing a routing address tree corresponding to the autonomous domain according to each of the root nodes, each of the intermediate nodes and each of the leaf nodes; A routing conflict discrimination model is constructed based on the distribution of the corresponding autonomous domains of each routing address tree in the target network.
10. The system according to claim 7, characterized in that The second verification module is specifically used for: Determining the to-be-updated address data in the to-be-verified routing data as the intermediate verification address data; Matching each intermediate verification address in the intermediate verification address data with the first update model, and if the match fails, determining the second verification result as no routing conflict, and determining the data corresponding to the second verification result as no data; Otherwise, the successfully matched intermediate verification address is determined as the second routing conflict address, the second verification result is determined as the existence of routing conflict, and the second routing conflict address is determined as the data corresponding to the second verification result.
11. The system according to claim 7, characterized in that The second updating module is specifically used for: Filtering the address data to be updated in the routing data to be verified by using the data corresponding to the second verification result, and determining the model update address data that does not include the data corresponding to the second verification result; The first update model is updated by using the model update address data, and the updated first update model is determined as a new routing conflict determination model.
