A method and device for topology visualization to verify the correctness of engineering cutover
Through bgpls routing direction and the analysis of the global configuration file of the device, three topology diagrams were generated and compared, which solved the problem that the project separating results could not be visually observed in the existing technology, and achieved accurate display and configuration errors of network topology structure changes. Timely discovery ensures that the expected cut-in effect is achieved.
Patent Information
- Application Number
- CN202211315402.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-26
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2042-10-26
AI Technical Summary
The prior art cannot intuitively observe the accuracy of engineering cutting results and changes in the overall network topology structure, making it difficult to ensure the expected results after cutting.
The topology diagram before and after project separating is displayed through bgpls routing direction analysis, and the third topology diagram is generated by analyzing the device global configuration file, and graphically comparing it to visually display the devices and ports affected by separating are ensured to ensure the consistency of the network topology.
It realizes accurate visualization of the project separating results, ensures the consistency of the network topology after separating, promptly discovers and corrects configuration errors, and improves the accuracy and efficiency of project separating.
Smart Images

Figure CN115733757B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention generally relate to the technical field of data network bearer network, and more particularly to a topology visualization method and device for verifying the correctness of engineering cutover. Background Art
[0002] There are various engineering cutover operations currently, among which disruptive point addition or equipment replacement and port change are very frequent engineering operations. After the engineering cutover, the comparison of the cutover results is currently usually done by comparing the configuration files before and after the cutover and observing the business and traffic trends. It is not possible to intuitively observe the accuracy of the cutover results and the changes in the overall network topology before and after the cutover.
[0003] For example, the patent: "Network management service batch cutover method and system based on port replacement and route adjustment (application number: CN201910372139.1)": discloses a network management service batch cutover method and system based on port replacement and route adjustment, which relates to the field of telecommunication transmission network management. The method includes: determining the service to be cutover and calculating the routing port resources of the service to be cutover; selecting the cutover service routing port resource adjustment point according to the cutover adjustment routing interval of the service to be cutover, and replacing the source port resources with the destination port resources; setting routing adjustment constraints for the channel layer service, and finding the service route in the cutover adjustment routing interval according to the routing adjustment constraints; checking the correctness of the service route in the cutover adjustment routing interval, locking the port resources along the service routing port, and completing the cutover. This invention can effectively improve the cutover efficiency and has strong applicability, but it does not solve the problem that the accuracy of the cutover result and the changes in the overall network topology before and after the cutover cannot be observed very intuitively. Summary of the invention
[0004] To solve the above problems, the present invention analyzes the bgpls routing direction to display a first topology map and a third topology map before and after the project cutover, and displays a second topology map after the project cutover by analyzing the global configuration file of the equipment involved in the project cutover. The first topology map, the second topology map, and the third topology map are compared to more intuitively display the equipment and ports affected by the project cutover through graphical comparison, and the network topology after the cutover is more accurately displayed through the bgpls routing direction and the analysis of the global configuration file.
[0005] According to an embodiment of the present invention, a method and apparatus for topology visualization for verifying the correctness of project cutover are provided.
[0006] In a first aspect of the present invention, a method for topology visualization to verify the correctness of engineering cutover is provided. The method comprises:
[0007] S01: Enter the IP address and device name of the data-carrying network device into the database system, and analyze and display the first topology map of the entire network before the cutover according to the bgpls routing direction;
[0008] S02: Perform engineering cutover in the network and enter the device name and IP address of the newly added device into the database;
[0009] S03: After the cutover project is completed, log in to the devices involved in the cutover project through ssh or telnet, and collect the global configuration information of all devices involved in the project to generate a global configuration file;
[0010] S04: parsing the global configuration file related to the device, and comparing the device name described by the port in the global configuration file with the device name recorded in the database, and displaying the network result after the cutover on the second topology map;
[0011] S05: according to the bgpls route direction, the next hop address of the route is parsed and queried, and compared with the IP address recorded in the database, and the next hop device name and interconnection port are displayed on the third topology map;
[0012] S06: By comparing the first topology map, the second topology map, and the third topology map, it is determined whether the second network topology map is consistent with the third network topology map and whether the project cutover has achieved the expected effect. If they are consistent and have achieved the expected effect, the project is completed. If they are inconsistent or have not achieved the expected effect, the project is rolled back according to the first topology map, and the configuration errors are manually checked.
[0013] Furthermore, the S01 also needs to mark the equipment involved in the project cutover and display the equipment ports interconnected between the equipment.
[0014] Furthermore, the engineering cutover work described in S02 includes: breaking loops and adding new equipment, replacing equipment with the same IP but different equipment, changing interconnection ports between equipment, and replacing equipment with different IP but different equipment.
[0015] Furthermore, the second topology map described in S04 includes device names, device IP addresses, and device interconnection ports.
[0016] Furthermore, the S04 step has the function of verifying the standardization of the port description. If the port description is not standardized, the device name and the device name of the port description cannot be extracted. If the device name is not matched with the device name in the database, an error will be reported, indicating that no such device is found.
[0017] In a second aspect of the present invention, a topology visualization device for verifying the correctness of engineering cutover is provided. The device comprises:
[0018] The first topology map generation module is used to enter the IP address and device name of the data-bearing network device into the database system, and analyze and display the first topology map of the entire network before the cutover according to the bgpls routing direction;
[0019] Cutover module: used to perform engineering cutover work in the network and enter the device name and IP address of the newly added device into the database;
[0020] Collection module: used to log in to the devices involved in the cutover project through SSH or Telnet after the cutover project is completed, and collect the global configuration information of all devices involved in the project to generate a global configuration file;
[0021] The second topology map generation module is used to parse the global configuration file related to the device, and compare the device name described by the port in the global configuration file with the device name recorded in the database, and display the network result after the cutover on the second topology map;
[0022] The third topology map generation module is used to parse and query the next hop address of the route according to the bgpls route direction, compare it with the IP address recorded in the database, and display the next hop device name and interconnection port on the third topology map;
[0023] Judgment module: used to judge whether the second network topology is consistent with the third network topology by comparing the first topology, the second topology and the third topology, and whether the project cutover has achieved the expected effect. If they are consistent and have achieved the expected effect, the project is completed; if they are inconsistent or have not achieved the expected effect, they are rolled back according to the first topology and manually checked for configuration errors.
[0024] Furthermore, the first topology map generating module also needs to mark the devices involved in the project cutover and display the device ports interconnected between the devices.
[0025] Furthermore, the engineering cutover work described in the cutover module includes: breaking loops and adding new devices, replacing devices with the same IP but different devices, changing interconnection ports between devices, and replacing devices with different IP but different devices.
[0026] Furthermore, the second topology map described in the second topology map generating module includes device names, device IP addresses, and device interconnection ports.
[0027] Furthermore, the second topology map generation module has the function of verifying the standardization of the port description. If the port description is not standardized, the device name and the device name of the port description cannot be extracted. If the device name is not matched with the device name in the database, an error will be reported, indicating that the device cannot be found.
[0028] The meanings of the above mentioned English abbreviations:
[0029] IP: Internet Protocol, Internet interconnection protocol
[0030] ssh: Secure Shell, Secure Shell Protocol
[0031] telnet:Telecommunications Network, remote login protocol
[0032] bgpls: BGP Link-state, a network topology information extraction technology
[0033] The present invention analyzes the bgpls routing trend to display a first topology map and a third topology map before and after the engineering cutover, analyzes a global configuration file of equipment involved in the engineering cutover, displays a second topology map after the engineering cutover, compares the first topology map, the second topology map and the third topology map, and more intuitively displays the equipment and ports affected by the engineering cutover through graphical comparison. In addition, the bgpls routing trend and the analysis of the global configuration file are used to more accurately display the network topology after the cutover.
[0034] It should be understood that the contents described in the summary of the invention are not intended to limit 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
[0035] The above and other features, advantages and aspects of the embodiments of the present invention will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings.
[0036] Figure 1 A flowchart of a method for topology visualization of verifying the correctness of engineering cutover according to an embodiment of the present invention is shown;
[0037] Figure 2 A first topological diagram according to embodiment 1 of the present invention is shown;
[0038] Figure 3 A second topological diagram according to embodiment 1 of the present invention is shown;
[0039] Figure 4 A third topological diagram according to Embodiment 1 of the present invention is shown;
[0040] Figure 5 A first topological diagram according to embodiment 1 of the present invention is shown;
[0041] Figure 6 A second topological diagram according to embodiment 1 of the present invention is shown;
[0042] Figure 7 A third topological diagram according to Embodiment 1 of the present invention is shown;
[0043] Figure 8 A block diagram of a topology visualization device for verifying the correctness of project cutover according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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 are within the scope of protection of the present invention.
[0045] According to an implementation manner of the present invention, a method and device for topology visualization for verifying the correctness of an engineering cutover are proposed. According to the bgpls routing direction analysis, a first topology map and a third topology map before and after the engineering cutover are displayed, and by analyzing the global configuration file of the equipment involved in the engineering cutover, a second topology map after the engineering cutover is displayed. The first topology map, the second topology map and the third topology map are compared, and the equipment and ports affected by the engineering cutover are more intuitively displayed through graphical comparison. In addition, the network topology after the cutover is more accurately displayed through the bgpls routing direction and the analysis of the global configuration file.
[0046] The principle and spirit of the present invention are explained in detail below with reference to several representative embodiments of the present invention.
[0047] Figure 1 1 is a flow chart of a method for topology visualization of verifying the correctness of engineering cutover according to an embodiment of the present invention. The method comprises:
[0048] S01: Enter the IP address and device name of the data-carrying network device into the database system, and analyze and display the first topology map of the entire network before the cutover according to the bgpls routing direction;
[0049] S02: Perform engineering cutover in the network and enter the device name and IP address of the newly added device into the database;
[0050] S03: After the cutover project is completed, log in to the devices involved in the cutover project through ssh or telnet, and collect the global configuration information of all devices involved in the project to generate a global configuration file;
[0051] S04: parsing the global configuration file related to the device, and comparing the device name described by the port in the global configuration file with the device name recorded in the database, and displaying the network result after the cutover on the second topology map;
[0052] S05: according to the bgpls route direction, the next hop address of the route is parsed and queried, and compared with the IP address recorded in the database, and the next hop device name and interconnection port are displayed on the third topology map;
[0053] S06: By comparing the first topology map, the second topology map, and the third topology map, it is determined whether the second network topology map is consistent with the third network topology map and whether the project cutover has achieved the expected effect. If they are consistent and have achieved the expected effect, the project is completed. If they are inconsistent or have not achieved the expected effect, the project is rolled back according to the first topology map, and the configuration errors are manually checked.
[0054] It should be noted that, although the operations of the method of the present invention are described in a specific order in the above embodiments and the accompanying drawings, this does not require or imply that the operations must be performed in the specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0055] In order to explain the above-mentioned topology visualization method for verifying the correctness of engineering cutover more clearly, two specific embodiments are described below. However, it should be noted that the embodiments are only for better illustrating the present invention and do not constitute an improper limitation to the present invention.
[0056] The following two specific examples further illustrate the topology visualization method for verifying the correctness of project cutover in more detail:
[0057] Embodiment 1:
[0058] To perform a cutover of the project by breaking the loop and adding new equipment, first parse the global configuration files of the network devices A and B involved: 1 / 0 / 4 is the port of device A, and 1 / 1 / 3 is the interconnection port between device B and device A, and generate the first network topology diagram before the project cutover, such as Figure 2 As shown; perform network cutover again, add a new network device C between network device A and network device B, and then parse the global configuration files of network devices A, B, and C: 1 / 0 / 4 is the port of device A, 1 / 1 / 1 is the interconnection port between device C and device A, 1 / 1 / 3 is the port of device B, and 1 / 1 / 2 is the interconnection port between device C and device B, and generate the second network topology after engineering cutover, as shown in Figure 3Then, the routing discovery is performed according to the BGP-LS protocol to generate the third network topology diagram, as shown in Figure 4 As shown; comparing the first network topology diagram, the second network topology diagram, and the third network topology diagram, the second network topology diagram and the third network topology diagram Figure 1 If the network routing direction is consistent and meets the expected requirements, the project is successful.
[0059] Embodiment 2:
[0060] To perform a cutover of the project by breaking the loop and adding new equipment, first parse the global configuration files of the network devices A and B involved: 1 / 0 / 4 is the port of device A, and 1 / 1 / 3 is the interconnection port between device B and device A, and generate the first network topology diagram before the project cutover, such as Figure 5 As shown; perform network cutover again, add a new network device C between network device A and network device B, and then parse the global configuration files of network devices A, B, and C: 1 / 0 / 4 is the port of device A, 1 / 1 / 1 is the interconnection port between device C and device A, 1 / 1 / 3 is the port of device B, and 1 / 1 / 2 is the interconnection port between device C and device B, and generate the second network topology after engineering cutover, as shown in Figure 6 Then, the routing discovery is performed according to the BGP-LS protocol to generate the third network topology diagram, as shown in Figure 7 As shown; compare the first network topology diagram, the second network topology diagram, and the third network topology diagram. If the second network topology diagram and the third network topology diagram are inconsistent, it means that the device configuration is wrong. The route connects other devices. According to the scenario of the first topology diagram, modify the configuration of device A, device B, and device C, change the configuration of the existing device A and device B back to the original configuration, and then check the configuration of C to find out the cause of the error and modify it to regenerate the third topology diagram. The regenerated third topology diagram is consistent with the second topology diagram. Figure 1 The project was a success.
[0061] Based on the same inventive concept, the present invention also proposes a topology visualization device for verifying the correctness of engineering cutover. The implementation of the device can refer to the implementation of the above method, and the repeated parts will not be repeated. Figure 8 As shown, the device 100 includes:
[0062] The first topology map generation module 101 is used to enter the IP address and device name of the data bearing network device into the database system, and analyze and display the first topology map of the entire network before the cutover according to the bgpls routing direction;
[0063] Cutover module 102: used to perform engineering cutover work in the network and enter the device name and IP address of the newly added device into the database;
[0064] Collection module 103: used to log in to the devices involved in the cutover project through ssh or telnet after the cutover project is completed, and collect the global configuration information of all devices involved in the project to generate a global configuration file;
[0065] The second topology map generation module 104 is used to parse the global configuration file related to the device, and compare the device name described by the port in the global configuration file with the device name recorded in the database, and display the network result after the cutover on the second topology map;
[0066] The third topology map generation module 105 is used to parse and query the next hop address of the route according to the bgpls route direction, compare it with the IP address recorded in the database, and display the next hop device name and interconnection port on the third topology map;
[0067] Judgment module 106: used to judge whether the second network topology is consistent with the third network topology and whether the project cutover has achieved the expected effect by comparing the first topology, the second topology and the third topology. If they are consistent and have achieved the expected effect, the project is completed. If they are inconsistent or have not achieved the expected effect, the project is rolled back according to the first topology and the configuration errors are manually checked.
[0068] The present invention proposes a topology visualization device for verifying the correctness of an engineering cutover. The device displays a first topology map and a third topology map before and after the engineering cutover according to bgpls routing trend analysis, displays a second topology map after the engineering cutover by analyzing a global configuration file of a device involved in the engineering cutover, compares the first topology map, the second topology map and the third topology map, and displays the devices and ports affected by the engineering cutover more intuitively through graphical comparison. The device displays the network topology after the cutover more accurately through the bgpls routing trend and the analysis of the global configuration file.
[0069] Although the spirit and principle of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements contained in the spirit and scope of the attached claims.
[0070] Regarding the limitation of the protection scope of the present invention, those skilled in the art should understand that, based on the technical solution of the present invention, various modifications or variations that can be made by those skilled in the art without creative work are still within the protection scope of the present invention.
Claims
1. A topology visualization method for verifying the correctness of engineering cutover, characterized in that: The method includes: S01: Enter the IP address and device name of the data-carrying network device into the database system, and analyze and display the first topology map of the entire network before the cutover according to the bgpls routing direction; S02: Perform engineering cutover in the network and enter the device name and IP address of the newly added device into the database; S03: After the cutover project is completed, log in to the devices involved in the cutover project through ssh or telnet, and collect the global configuration information of all devices involved in the project to generate a global configuration file; S04: parsing the global configuration file related to the device, and comparing the device name described by the port in the global configuration file with the device name recorded in the database, and displaying the network result after the cutover on the second topology map; S05: according to the bgpls route direction, the next hop address of the route is parsed and queried, and compared with the IP address recorded in the database, and the next hop device name and interconnection port are displayed on the third topology map; S06: By comparing the first topology map, the second topology map, and the third topology map, it is determined whether the second network topology map is consistent with the third network topology map and whether the project cutover has achieved the expected effect. If they are consistent and have achieved the expected effect, the project is completed. If they are inconsistent or have not achieved the expected effect, the project is rolled back according to the first topology map, and the configuration errors are manually checked.
2. A method for topology visualization for verifying the correctness of engineering cutover according to claim 1, characterized in that: The S01 also needs to mark the equipment involved in the project cutover and display the equipment ports interconnected between the equipment.
3. The method for topology visualization for verifying the correctness of engineering cutover according to claim 1, characterized in that: The engineering cutover work described in S02 includes: breaking loops and adding new equipment, replacing equipment with the same IP but different devices, changing interconnection ports between devices, and replacing equipment with different IP but different devices.
4. The method for topology visualization for verifying the correctness of engineering cutover according to claim 1, characterized in that: The second topology map described in S04 includes device names, device IP addresses, and device interconnection ports.
5. A method for topology visualization for verifying the correctness of engineering cutover according to claim 4, characterized in that: The S04 step has the function of verifying the standardization of the port description. If the port description is not standardized, the device name and the device name of the port description cannot be extracted. If the device name is not matched with the device name in the database, an error will be reported, indicating that no such device is found.
6. A topology visualization device for verifying the correctness of engineering cutover, characterized in that: The device includes: The first topology map generation module is used to enter the IP address and device name of the data-bearing network device into the database system, and analyze and display the first topology map of the entire network before the cutover according to the bgpls routing direction; Cutover module: used to perform engineering cutover work in the network and enter the device name and IP address of the newly added device into the database; Collection module: used to log in to the devices involved in the cutover project through SSH or Telnet after the cutover project is completed, and collect the global configuration information of all devices involved in the project to generate a global configuration file; The second topology map generation module is used to parse the global configuration file related to the device, and compare the device name described by the port in the global configuration file with the device name recorded in the database, and display the network result after the cutover on the second topology map; The third topology map generation module is used to parse and query the next hop address of the route according to the bgpls route direction, compare it with the IP address recorded in the database, and display the next hop device name and interconnection port on the third topology map; Judgment module: used to judge whether the second network topology is consistent with the third network topology by comparing the first topology, the second topology and the third topology, and whether the project cutover has achieved the expected effect. If they are consistent and have achieved the expected effect, the project is completed; if they are inconsistent or have not achieved the expected effect, they are rolled back according to the first topology and manually checked for configuration errors.
7. The topology visualization device for verifying the correctness of engineering cutover according to claim 6, characterized in that: The first topology map generating module also needs to mark the devices involved in the project cutover and display the device ports interconnected between the devices.
8. The topology visualization device for verifying the correctness of engineering cutover according to claim 6, characterized in that: The engineering cutover work described in the cutover module includes: breaking loops and adding new devices, replacing devices with the same IP but different devices, changing interconnection ports between devices, and replacing devices with different IP but different devices.
9. The topology visualization device for verifying the correctness of engineering cutover according to claim 6, characterized in that: The second topology map described in the second topology map generating module includes device names, device IP addresses, and device interconnection ports.
10. The topology visualization device for verifying the correctness of engineering cutover according to claim 9, characterized in that: The second topology map generation module has the function of verifying the standardization of the port description. If the port description is not standardized, the device name and the device name of the port description cannot be extracted. If the device name is not matched with the device name in the database, an error will be reported, indicating that the device cannot be found.
