Network change method, device, equipment and readable storage medium

By generating and storing the configuration information of network devices, simulating the change scenario and recalculating the network topology, the estimated impact of network device configuration changes on the current network is solved, and the change success rate and network management efficiency are improved.

CN117792900BActive Publication Date: 2024-12-06XINHUASAN TECH SERVICE CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311805348.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2024-12-06
Estimated Expiration
2043-12-25

AI Technical Summary

Technical Problem

In complex network environments, changes in network equipment configuration may have a huge impact on the performance of the network, and the lack of effective estimation and evaluation methods lead to inefficient change risks and management efficiency.

Method used

By generating and storing the configuration information of network devices, simulating the change scenario, recalculate the network topology, assessing the impact of the change on the existing network, and issuing configuration changes when they meet the setting requirements.

Benefits of technology

It realizes the potential risk prediction of network equipment changes, and improves the change success rate, management efficiency, accuracy and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117792900B_ABST
    Figure CN117792900B_ABST
Patent Text Reader

Abstract

The present application provides a network change method, device, equipment and readable storage medium, the method comprising: generating a first network topology according to the configuration information of the network equipment in the existing network, and storing the configuration information in a database; modifying the configuration information of the network equipment in the database according to the change indication of the network equipment; generating a second network topology according to the configuration information collected from the database; and sending the modified configuration to the network equipment in the existing network when the difference between the second network topology and the first network topology meets the set requirements. By simulating the change before making the change of the network equipment and recalculating the network topology based on the change result, the impact of the change on the existing network can be evaluated, the potential risks can be predicted, the success rate of the change is improved, and the efficiency, accuracy and reliability of network management are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a network change method, device, equipment and readable storage medium. Background Art

[0002] With the continuous development of IT technology, more and more organizations and enterprises choose cloud as the deployment and management infrastructure for their application systems. The network has evolved from the traditional form to a complex network environment that includes traditional networks, SDN (Software Defined Network), Underlay networks, Overlay networks, IoT private networks, and audio and video private networks.

[0003] As the scale of the network increases, any configuration change of a network device in the network may have a huge impact on the overall performance of the existing network. Therefore, it is urgent to provide a solution for estimating the impact of the change on the existing network before making a configuration change of the network device. Summary of the invention

[0004] In view of this, in order to solve the above technical problems, the present application provides a network change method, device, equipment and readable storage medium.

[0005] Specifically, the present application is implemented through the following technical solutions:

[0006] According to a first aspect of an embodiment of the present application, a network change method is provided, the method comprising:

[0007] Generate a first network topology according to configuration information of network devices in the existing network, and store the configuration information in a database;

[0008] Modify the configuration information of the network device in the database according to the change indication of the network device;

[0009] generating a second network topology according to the configuration information collected from the database;

[0010] When the difference between the second network topology and the first network topology meets the set requirements, the modified configuration is sent to the network devices in the existing network.

[0011] In some embodiments, the method further comprises:

[0012] Setting a configuration model of the network device according to the type of the network device, wherein the configuration model includes at least one configuration sub-item;

[0013] Determine the target configuration sub-items to be collected based on the business scenarios of the existing network;

[0014] Obtaining configuration information of the network device according to the attribute value of the target configuration sub-item;

[0015] When the attributes of different configuration sub-items belong to the same object, an association relationship is established for the different configuration sub-items.

[0016] In some embodiments, the method further comprises:

[0017] Acquire a configuration collection package, the collection including an instruction set for collecting the configuration information and a cleaning script for performing data cleaning on the configuration information;

[0018] The acquisition package is released, and the execution scope, execution cycle and execution strategy of the acquisition package are set.

[0019] In some embodiments, the method further comprises:

[0020] Acquire a collection package associated with the network device according to the execution scope of each collection package;

[0021] According to the execution cycle and execution strategy of the acquisition package, the instruction set is executed to obtain the acquisition result;

[0022] The data cleaning script is used to clean the collected results to obtain the configuration information of the network device.

[0023] In some embodiments, the method further comprises:

[0024] Acquire first information of the network device using a network plug-in package, wherein the first information includes a manufacturer and a device type;

[0025] Determine a target network driver according to the first information;

[0026] The target network driver is used to connect to the network device.

[0027] In some embodiments, the first network topology includes a network physical topology, and generating the first network topology according to configuration information of network devices in an existing network includes:

[0028] Tagging the network device according to the keyword in the name of the network device, wherein the tag is used to indicate the level of the network device in the network structure of the existing network;

[0029] Based on the label of the network device, obtaining adjacency information of the network device in the corresponding layer;

[0030] According to the adjacency information of each layer, a first network topology of the existing network is obtained.

[0031] In some embodiments, generating the first network topology according to the configuration information of the network devices in the existing network includes:

[0032] For a network device located at the access layer, obtaining IP address information in the address resolution protocol information of the network device;

[0033] Determine access information of the network device according to the IP address information, wherein the access information is used to indicate the connected terminal and server;

[0034] The first network topology of the existing network is obtained according to the adjacency information of each layer and the access information of the network equipment located at the access layer.

[0035] In some embodiments, the first network topology includes a logical link relationship, and generating the first network topology according to configuration information of network devices in the existing network includes:

[0036] According to the logical link scenario of the existing network service, at least one of the communication relationship, dependency relationship, and data flow path between network devices is obtained;

[0037] A logical link relationship is generated according to the configuration information of each network device associated with the logical link scenario.

[0038] In some embodiments, modifying the configuration information of the network device in the database according to the change indication of the network device includes:

[0039] Display multiple simulated change scenarios, each simulated change scenario is associated with at least one parameter to be changed;

[0040] Determine a target simulation change scenario according to the selection, and receive change parameter information under the target simulation change scenario;

[0041] According to the changed parameter information, configuration information corresponding to the changed parameter is generated and the configuration information stored in the database is updated.

[0042] In some embodiments, the method further comprises:

[0043] After storing the configuration information in a database, visually displaying the first network topology;

[0044] After the second network topology is generated according to the configuration information collected from the database, the difference between the second network topology and the first network topology is visually displayed.

[0045] According to a second aspect of an embodiment of the present application, a network change device is provided, which is applied to a network management platform, including:

[0046] A first generating unit, configured to generate a first network topology according to configuration information of network devices in an existing network, and store the configuration information in a database;

[0047] A simulation change unit, used to modify the configuration information of the network device in the database according to the change indication of the network device;

[0048] A second generating unit, configured to generate a second network topology according to the configuration information collected from the database;

[0049] The sending unit is used to send the modified configuration to the network equipment in the existing network when the difference between the second network topology and the first network topology meets the set requirements.

[0050] In some embodiments, the apparatus further comprises a configuration model generating unit:

[0051] Setting a configuration model of the network device according to the type of the network device, wherein the configuration model includes at least one configuration sub-item;

[0052] Determine the target configuration sub-items to be collected based on the business scenarios of the existing network;

[0053] According to the attribute value of the target configuration sub-item, the configuration information of the network device is obtained; when the attributes of different configuration sub-items belong to the same object, an association relationship is established for the different configuration sub-items.

[0054] In some embodiments, the apparatus further comprises a collection setting unit, configured to:

[0055] A configuration collection package, wherein the collection includes an instruction set for collecting the configuration information and a cleaning script for performing data cleaning on the configuration information;

[0056] The acquisition package is released, and the execution scope, execution cycle and execution strategy of the acquisition package are set.

[0057] In some embodiments, the apparatus further includes a first configuration acquisition unit, configured to:

[0058] Acquire a collection package associated with the network device according to the execution scope of each collection package;

[0059] According to the execution cycle and execution strategy of the acquisition package, the instruction set is executed to obtain the acquisition result; the data cleaning script is used to clean the acquisition result to obtain the configuration information of the network device.

[0060] In some embodiments, the method device further includes a second configuration collection unit, configured to:

[0061] Acquire first information of the network device using a network plug-in package, wherein the first information includes a manufacturer and a device type;

[0062] Determine a target network driver according to the first information;

[0063] The target network driver is used to connect to the network device.

[0064] In some embodiments, the first network topology includes a network physical topology, and the first generating unit, when used to generate the first network topology according to the configuration information of the network device in the existing network, is specifically used to:

[0065] Tagging the network device according to the keyword in the name of the network device, wherein the tag is used to indicate the level of the network device in the network structure of the existing network;

[0066] Based on the label of the network device, obtaining adjacency information of the network device in the corresponding layer;

[0067] According to the adjacency information of each layer, a first network topology of the existing network is obtained.

[0068] In some embodiments, when the first generating unit is used to generate the first network topology according to the configuration information of the network device in the existing network, it is specifically used to:

[0069] For a network device located at the access layer, obtaining IP address information in the address resolution protocol information of the network device;

[0070] Determine access information of the network device according to the IP address information, wherein the access information is used to indicate the connected terminal and server;

[0071] The first network topology of the existing network is obtained according to the adjacency information of each layer and the access information of the network equipment located at the access layer.

[0072] In some embodiments, the first network topology includes a logical link relationship, and the first generating unit, when used to generate the first network topology according to the configuration information of the network device in the existing network, is specifically used to:

[0073] According to the logical link scenario of the existing network service, at least one of the communication relationship, dependency relationship, and data flow path between network devices is obtained;

[0074] A logical link relationship is generated according to the configuration information of each network device associated with the logical link scenario.

[0075] In some embodiments, the simulation change unit is specifically used to:

[0076] Display multiple simulated change scenarios, each simulated change scenario is associated with at least one parameter to be changed;

[0077] Determine a target simulation change scenario according to the selection, and receive change parameter information under the target simulation change scenario;

[0078] According to the changed parameter information, configuration information corresponding to the changed parameter is generated and the configuration information stored in the database is updated.

[0079] In some embodiments, the apparatus further comprises a visualization unit for:

[0080] After storing the configuration information in a database, visually displaying the first network topology;

[0081] After the second network topology is generated according to the configuration information collected from the database, the difference between the second network topology and the first network topology is visually displayed.

[0082] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the above-mentioned network change method by calling the computer program.

[0083] According to a fourth aspect of an embodiment of the present application, a readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned network change method is implemented.

[0084] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0085] In the technical solution provided by the present application, a first network topology is generated according to the configuration information of the network devices in the existing network, and the configuration information is stored in a database; according to the change indication of the network device, the configuration information of the network device in the database is modified, and a second network topology is generated according to the configuration information collected from the database; when the difference between the second network topology and the first network topology meets the set requirements, the modified configuration is sent to the network devices in the existing network. By simulating the change before making the change of the network device and recalculating the network topology based on the change result, the impact of the change on the existing network can be evaluated, the potential risks can be predicted, the success rate of the change is improved, and the efficiency, accuracy and reliability of network management are improved.

[0086] It should be understood that the above general description and the following detailed description are only exemplary and explanatory and cannot limit the present application. In addition, any embodiment in the present application does not need to achieve all the above effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0087] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0088] Figure 1 It is a flowchart of a network change method shown in an exemplary embodiment of the present application;

[0089] Figure 2 A sample configuration model of a switch is shown;

[0090] Figure 3 Shows a sample load balancing configuration model;

[0091] Figure 4 An exemplary network A showing changes to be performed;

[0092] Figure 5 It is a flowchart of another network change method shown in an exemplary embodiment of the present application;

[0093] Figure 6 It is a structural schematic diagram of a network change device shown in an exemplary embodiment of the present application;

[0094] Figure 7 It is a hardware schematic diagram of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0095] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0096] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0097] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first classification threshold may also be referred to as the second classification threshold, and similarly, the second classification threshold may also be referred to as the first classification threshold. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0098] The present application provides a network change method, which is applied to a network management platform. The network management platform can be set up on a server or in the cloud. Figure 1 As shown, the network change method may include the following steps:

[0099] S101, generating a first network topology according to configuration information of network devices in an existing network, and storing the configuration information in a database.

[0100] The configuration information of the network device can be obtained through the configuration file of the network device. For different types of network devices, corresponding types of configuration information can be obtained.

[0101] The acquired configuration information of the network device may be stored in a database, which may be, for example, a CMDB (Configuration Management Database).

[0102] In addition, the configuration information can be stored in a simulation environment and a network topology can be generated in a model environment. The simulation environment can be a simulation environment corresponding to the real production environment of the existing network, and the network topology calculated in the simulation environment can ensure authenticity and reliability.

[0103] In order to distinguish it from the network topology generated subsequently, the network topology generated here may be referred to as the first network topology.

[0104] S102: Modify the configuration information of the network device in the database according to the change indication of the network device.

[0105] Change instructions for network devices include, but are not limited to, instructions for modifying the configuration of network devices, adding or removing devices, adjusting routes, etc. For changes to network devices that need to be made, before issuing change instructions to network devices in the live network, the changes can first be simulated on the network topology in a simulated environment.

[0106] Specifically, a change parameter table may be generated according to the change indication, and the changed configuration information of the network device may be determined according to the change parameter table, and the changed configuration information may replace the configuration information stored in the database to modify the configuration information in the database.

[0107] S103: Generate a second network topology according to the configuration information collected from the database.

[0108] When the simulated change is completed, the collection of the changed configuration information stored in the database can be triggered, and the topology can be recalculated using the collection result to generate a second network topology.

[0109] S104: When the difference between the second network topology and the first network topology meets the set requirements, send the modified configuration to the network devices in the existing network.

[0110] Since the network topology can provide real-time performance monitoring data, such as network traffic, bandwidth utilization, packet loss rate, delay, etc., the difference between the second network topology and the first network topology can reflect the impact of the change on network performance; since the network topology can also display the status of each network device, including online / offline, CPU usage, memory usage, etc., the difference between the second network topology and the first network topology can also reflect the impact of the change on the status of the network device; since the network topology can also display the connection relationship between network devices, the connection relationship between each network and the access control policy, the difference between the second network topology and the first network topology can also reflect the changes in the connection relationship between network devices and the link changes.

[0111] Therefore, the impact of the change on the existing network can be predicted by simulating changes in the network topology and determining whether the changes in network performance, network connection relationships, and network device status caused by the changes before and after the change meet the constraints set for these aspects.

[0112] Specifically, the setting requirements for the difference between the second network topology and the first network topology may include but are not limited to the following aspects:

[0113] The change rate of network performance, including the change rate of at least one of network traffic, bandwidth utilization, packet loss rate, and delay, is less than a first set threshold;

[0114] The change rate of the network device status, including the change rate of the CPU usage rate and the memory usage rate of the network device, is less than the second set threshold;

[0115] It does not cause other network devices other than the network device to which the change instruction is directed to go offline;

[0116] No interruption of connection relationships and links other than the connection relationships and links indicated by the change is caused.

[0117] Taking the determination of whether to issue a change instruction according to the change of network traffic after the simulated change as an example, assuming that the change instruction of the network device is the port closure of switch A, first calculate the first network topology of the existing network before the simulated change, and determine the network traffic generated on the first network topology; then simulate the change according to the change instruction, that is, simulate the port closure of the switch, calculate the second network topology after the port closure, and determine the network traffic generated on the second network topology, so as to determine the change rate of the network traffic caused by the difference between the second network topology and the first network topology. If the change rate of the network traffic is less than the first set threshold, the port closure instruction is issued to the switch A in the existing network; conversely, if the change rate of the network traffic is greater than the first set threshold, the change instruction is not issued.

[0118] In addition, whether to issue a change instruction can also be determined based on whether the simulated change causes the network device to go offline. That is, the change instruction is issued only when the change rate of the network traffic generated by the second network topology and the first network topology is less than the first set threshold, and the simulated change does not cause the network device other than switch A to go offline, otherwise the change instruction is not issued.

[0119] In the technical solution provided by the present application, a first network topology is generated according to the configuration information of the network devices in the existing network, and the configuration information is stored in a database; according to the change indication of the network device, the configuration information of the network device in the database is modified, and a second network topology is generated according to the configuration information collected from the database; when the difference between the second network topology and the first network topology meets the set requirements, the modified configuration is sent to the network devices in the existing network. By simulating the change before making the change of the network device and recalculating the network topology based on the change result, the impact of the change on the existing network can be evaluated, the potential risks can be predicted, the success rate of the change is improved, and the efficiency, accuracy and reliability of network management are improved.

[0120] In some embodiments, the collection of configuration information of network devices can be achieved by performing network configuration modeling.

[0121] First, a configuration model of the network device is set according to the type of the network device, that is, modeling is performed based on the network device type dimension.

[0122] The configuration model includes at least one configuration sub-item, and the attribute value corresponding to the configuration sub-item is the configuration information of the network device.

[0123] For example, when the network device is a switch, the configuration sub-items may include LLDP (Link Layer Discovery Protocol), ARP (Address Resolution Protocol), MAC (Media Access Control) address, port information, and the like.

[0124] In the case where the network device has multiple functions, the model of the configuration sub-item can be set for each function. Taking load balancing as an example, when the load balancing is used as ALB (Application Load Balancer), SSL (Secure Socket Layer), and GSLB (Global Server Load Balancing), the configuration information required is different, so configuration sub-items can be established for each purpose, and each configuration sub-item corresponds to different configuration sub-item attributes.

[0125] Afterwards, determine the target configuration sub-items to be collected based on the business scenarios of the existing network.

[0126] Specifically, the configuration sub-items required to meet the current business scenario can be determined as the attribute information to be collected, while the attribute information that will not be used in the business scenario does not need to be collected. By focusing on collecting configuration information that is closely related to the business, it can be ensured that the acquired data directly serves the business goals.

[0127] Finally, the configuration information of the network device is obtained according to the attribute value of the target configuration sub-item.

[0128] Figure 2 The configuration model example of the switch is shown. The solid-line frame shows the configuration sub-items in the switch configuration model, and the dotted-line frame shows the configuration sub-item attributes. The attribute values ​​of these configuration sub-items are the configuration information of the switch.

[0129] In some embodiments, when the attributes of different configuration sub-items belong to the same object, an association relationship may be established for the different configuration sub-items.

[0130] In one example, when multiple configuration sub-items are established for multiple purposes of network devices, the multiple configuration sub-items belong to the same object. Taking load balancing as an example, the three configuration sub-items of ALB, SSL, and GSLB can be associated through the same virtual server name.

[0131] In another example, if a load-balanced virtual server uses a load-balanced pool, the configuration sub-item of the virtual server can be associated with the configuration sub-item of the pool by the name of the load-balanced pool. Figure 3 As shown in FIG. 1 , the configuration sub-items "LbVsInfo" (Lb virtual server information) and "LbPoolInfo" (Lb pool information) in the load balancing can be associated through the attribute "pool_name" (pool name). When this association is established, the pool information corresponding to the virtual server can be easily and quickly found.

[0132] This association relationship can describe and record the logical association between configuration sub-items and the impact of these configuration sub-items in the configuration management process.

[0133] In some cases, if a configuration sub-item has been associated, it means that the configuration sub-item has been used. For example, in a network that contains multiple load balancing virtual servers and multiple load balancing pools, if a configuration sub-item of a load balancing pool is associated with a virtual server, it means that the pool has been used and that the virtual server relies on the pool to receive and process traffic. Therefore, by setting the association relationship, it is helpful to understand the usage and dependency of the configuration sub-item, so as to facilitate the calculation of the network topology.

[0134] In some cases, after the simulated change, the association relationship will also reflect the impact of the change. For example, if the IP address of the load balancing pool is changed, when the pool is associated with a virtual server, when calculating the link relationship based on the association relationship, the calculation will be based on the changed IP address, causing the subsequent link relationship to change accordingly. It can be seen that configuration changes can have a chain effect in the association relationship.

[0135] The configuration model construction method proposed in the embodiment of the present disclosure sets configuration sub-items according to business scenarios, avoiding data redundancy and complexity; the configuration model constructed for network devices such as load balancing, switches, DNS (domain name system), firewalls, routers, etc. can cover the current network modeling needs in this field.

[0136] In the related art, the configuration information of network devices is usually obtained through SNMP (Simple Network Management Protocol). However, SNMP has the following problems:

[0137] (1) For large-scale and complex network topologies, SNMP is difficult to generate topologies accurately and clearly;

[0138] (2) SNMP is mainly used for performance monitoring and device status query. For some devices and manufacturers, SNMP may not provide comprehensive configuration data;

[0139] (3) SNMP is a polling monitoring method with relatively poor real-time performance. If the topology of the network changes frequently, the topology generated using SNMP may not reflect these changes in a timely manner.

[0140] In view of this, the present application proposes the following configuration information collection method.

[0141] In some embodiments, a configured acquisition package is first obtained, wherein the acquisition includes an instruction set for acquiring the configuration information and a cleaning script for performing data cleaning on the configuration information; the acquisition package is published, and the execution scope, execution cycle and execution strategy of the acquisition package are set.

[0142] Specifically, an independent network collection module can be set up in the network management platform to write specific collection packages for different manufacturers and devices and publish the collection packages on the network management platform. By adding new collection packages, the scope of data collection can be expanded to cover a variety of different devices and configurations.

[0143] In the same domain, the network management platform allows the release of multiple customized collection packages, and the execution scope, execution cycle and execution strategy of the collection packages can be configured when issuing them to meet the needs of various different devices and data collection.

[0144] The execution scope of the acquisition package refers to the range of devices that the acquisition package can be used for acquisition. You can associate the acquisition package with a network device by selecting it on the network platform, or you can set the acquisition package to acquire network devices within a certain IP segment.

[0145] The execution cycle of the collection package is the collection cycle. The collection package can be set to automatically collect data at a certain interval, or it can be set to collect data immediately after the collection package is released, or it can be set to collect data after receiving a collection instruction.

[0146] The execution strategy of the collection package includes a grouping strategy. For example, when the number of devices to be collected exceeds a set threshold, group collection can be performed based on the set number.

[0147] The collection package publishing management method provided by the embodiment of the present disclosure is flexible and can meet the requirements of collection of various devices, while maintaining the consistency and accuracy of the data, and effectively managing and maintaining various configuration data.

[0148] In addition, by configuring a cleaning script customized for the collected configuration information in the collection package, it can be ensured that the data collected from different devices can be effectively cleaned and converted to match the data model in the database.

[0149] The above describes the process of configuration collection and release. The following describes the process of configuration collection and distribution.

[0150] First, according to the execution scope of each acquisition package, the acquisition package associated with the network device is obtained;

[0151] Next, according to the execution cycle and execution strategy of the acquisition package, the instruction set is executed to obtain the acquisition result;

[0152] Finally, the data cleaning script is used to clean the collected results to obtain the configuration information of the network device.

[0153] In one example, the collection results obtained by executing the instruction set can be stored in a simulation environment to generate a network topology; and the configuration information after data cleaning can be stored in the database because the format matches the data model in the database.

[0154] The disclosed embodiment also proposes a method for realizing configuration collection and automatic change by using a network driver.

[0155] First, the network plug-in is used to obtain the first information of the network device, wherein the first information includes the manufacturer and the device type. The network plug-in package can also be used to call the entry of the network driver.

[0156] Next, the target network driver is determined according to the first information, that is, network driver adaptation is performed.

[0157] Due to different manufacturers and different types of network devices, the configuration collection and parameter change methods may be different. For example, some devices need to enter the configuration mode to collect, while some devices do not need to enter the configuration mode to collect; and the commands used for the same function in different devices may also be different, such as login, command issuance and execution, save, exit, etc. Therefore, for each type of network device from different manufacturers, the corresponding network driver is pre-set. The network driver is used to complete the login of the manufacturer and the type of device, enter different modes, issue commands for execution, save, exit and other settings, and can generate the command line of the corresponding device according to the parameters requested to be changed.

[0158] After the target network driver is determined, the target network driver is used to connect to the network device. When performing configuration collection and changing parameters, the target network driver realizes the conversion of commands.

[0159] The disclosed embodiment utilizes network drivers to achieve decoupling of application development from network devices, shielding the differences between manufacturers and types of underlying devices, and reducing the difficulty of network configuration collection and automated operation and maintenance development. When adding devices from different manufacturers, configuration collection and automated changes can be achieved by adding drivers for the corresponding devices, without any perception at the business level.

[0160] After the configuration information is collected, the network topology can be calculated based on the collected configuration information and the existing network service data.

[0161] The core of network topology data includes node and edge information, where nodes carry detailed information related to network devices, and edges contain port information connecting two network devices, indicating the connection relationship between network devices.

[0162] In the embodiments of the present disclosure, the network topology may include a physical topology and a logical link relationship. The physical topology is used to show the structure of the entire network and the connection relationship between network devices, including which ports the devices are connected through; the logical link relationship is used to represent the communication relationship, dependency relationship, data flow path, etc. between network devices.

[0163] The present disclosure provides a method for calculating physical topology, which mainly includes the following steps:

[0164] First, the network device is labeled according to a keyword in the name of the network device, and the label is used to indicate the level of the network device in the network structure of the existing network.

[0165] The name of a network device can be used to determine the network and location to which the device belongs. By labeling or marking the device, it is easier to identify the location and network level of the device.

[0166] Taking a switch as an example, the switch host name usually includes the following keywords:

[0167] Aggregation switch: PUB or AGG

[0168] Gateway switch: SDNGW

[0169] Core switch: CORESW

[0170] Access switch: ACCP

[0171] For each keyword, a corresponding label can be set, which indicates the level of the device in the network structure. In one example, the label can be represented by an integer, and the correspondence between the keyword and the label is as follows:

[0172] PUB or AGG: 1, indicating an aggregation switch, which is located at the aggregation layer;

[0173] SDNGW: 1, indicating a gateway switch, which is at the gateway layer;

[0174] CORESW: 3, indicating a core switch, which is located at the core layer;

[0175] ACCP: 4, indicating access switch, which is at the access layer.

[0176] Next, based on the label of the network device, the adjacency information of the network device in the corresponding layer is obtained, and according to the adjacency information of each layer, the physical topology of the existing network is obtained.

[0177] After the devices are marked, topology calculation can be performed from any network level based on these marks, that is, any device can be selected as the starting point, without a fixed starting point. For each layer connection, LLDP can be used to obtain the adjacency information of each network device in the layer, that is, the uplink, downlink and cross-connection devices and port information of the network device can be identified through LLDP data. Based on the adjacency information of each layer, topology calculation is performed step by step. For example, according to the hierarchical order of aggregation - gateway layer - core layer - access layer, the physical topology of the entire network can be obtained.

[0178] For network devices located at the access layer, the access information of the network device can be determined by obtaining the IP address information in the address resolution protocol information of the network device, and the access information is used to indicate the connected terminals and servers; based on the adjacency information of each layer and the access information of the network device located at the access layer, the physical topology obtained more comprehensively displays the relationship between the device and the host.

[0179] In one example, the IP address information can also be used to query the host server corresponding to the corresponding network device in the CMDB and display it in the physical topology so that the association between the device and the host can be tracked.

[0180] According to the above method, the calculation efficiency of the physical topology can be improved, and the physical topology calculation can automatically and accurately identify and maintain the structure and connection relationship of the entire network, thereby providing important support for network management and maintenance.

[0181] The present disclosure also provides a method for calculating a logical link relationship, which mainly includes the following steps:

[0182] According to the logical link scenario of the existing network service, at least one of the communication relationship, dependency relationship, and data flow path between network devices is obtained;

[0183] A logical link relationship is generated according to the configuration information of each network device associated with the logical link scenario.

[0184] Among them, common logical link scenarios include interconnected access relationships, external access relationships, etc. In different logical link scenarios, devices have different communication relationships, dependencies, and data flow paths. By determining the various network devices that are associated in the corresponding logical link scenario, the logical link relationship can be calculated based on the collected configuration information of these network devices and the algorithm applicable to the scenario. Logical link relationship calculation can not only help understand the network structure, but also can be used for fault detection and performance monitoring. By comparing the changed logical link relationship with the one before the change, network performance problems and faults can be identified.

[0185] In some embodiments, the generated network topology, including the network topology before the change and the network topology after the change, including the physical topology and the logical link relationship, can be displayed in a graphical representation through a visualization interface to present the network devices and connection relationships in the network, thereby improving the visibility of the network and helping managers to better understand the network logic.

[0186] In the disclosed embodiment, the calculated network topology data may be stored in a database so that the topology information can be directly queried and presented during visualization, making the management and analysis of the network structure more convenient.

[0187] In some embodiments, the data may be stored in a structured format, such as JSON format. This method not only helps organize and manage data, but also has flexibility. When adding new device information or updating existing information, it is not necessary to change the entire data storage structure, and it can be easily expanded and adapted to different needs.

[0188] In some embodiments, the configuration information may be synchronized to the CMDB periodically to ensure that the data in the CMDB remains up-to-date, has timely accuracy, and reflects changes in the actual network topology.

[0189] In some embodiments, the network topology data in the database can be dynamically displayed through the front-end topology visualization tool. The information and functions of the visualization include but are not limited to:

[0190] (1) Device node information: By clicking or hovering over a device node in the topology map, you can view detailed information about the device, such as device model, manufacturer, IP address, operating system version, etc. This information helps you quickly understand the characteristics of each network device in the network;

[0191] (2) Equipment status information: The status of equipment can be indicated by different visual elements or colors. For example, online equipment can be indicated by green, offline equipment can be indicated by red, and equipment with problems can be indicated by yellow or other symbols. This can intuitively display the status of each device, so that managers can find problems in time and take corresponding actions;

[0192] (3) Device connection information: The edges in the network topology diagram can be used to indicate the connection relationship between devices, including the information of the connection ports. By clicking on the edge in the topology diagram, you can view the information about the connection, such as port name, speed, protocol, etc.

[0193] (4) Interactivity and navigation: You can zoom, drag, and navigate the topology map to view different parts of the network, which is convenient for troubleshooting, planning network expansion, or performing management tasks;

[0194] (5) Path query: By selecting a starting device and an end device, you can view the path and intermediate devices connecting the two devices, which is convenient for troubleshooting and traffic analysis;

[0195] (6) History recording and change tracking: By recording the historical status and changes of the topology, it is possible to track the evolution of the network topology and restore it to a previous state when necessary.

[0196] In the disclosed embodiment, in addition to visually displaying the new network topology and the changed network topology, the difference between the second network topology and the first network topology can also be visually displayed, that is, the topology changes brought about by the simulated change in the network topology can be visually displayed, including the physical topology changes before and after the change and the changes in the logical link relationship. Through the intuitive visual interface, the network management platform can more efficiently manage and maintain a complex network environment.

[0197] The present disclosure also provides a method for modifying configuration information by simulating a change scenario, the method mainly comprising:

[0198] First, a plurality of simulated change scenarios are displayed, each of which is associated with at least one parameter to be changed.

[0199] For example, you can set a switch port activation scenario, a switch port shutdown scenario, a firewall policy activation scenario, a firewall policy deletion scenario, and so on.

[0200] For each simulated change scenario, the associated parameters to be changed are set, for example, in the form of a change parameter representation, in which the configuration items involved in the change and the parameter values ​​after the change are indicated.

[0201] Next, a target simulation change scenario is determined according to the selection, and change parameter information under the target simulation change scenario is received.

[0202] Taking the switch port activation scenario as an example, when this scenario is selected, a change parameter table associated with the scenario can be obtained, which indicates the device name, port name and port activation status parameters to be changed.

[0203] Finally, according to the changed parameter information, configuration information corresponding to the changed parameter is generated and the configuration information stored in the database is updated.

[0204] In the embodiment of the present disclosure, by selecting a simulated change scenario, the configuration information in the scenario can be directly modified, and the change simulation can be performed conveniently and quickly.

[0205] The following combination Figure 4 The exemplary network A shown and Figure 5 The flowchart shown in FIG. 1 is used to describe in detail the network change method proposed in the embodiment of the present disclosure. Figure 4 As shown, network A includes a network layer, a core layer, and an access layer. The gateway layer is equipped with a switch (ZH-AGG-SW01), the core layer is equipped with a switch (ZH-CORE-SW01), and the access layer is equipped with three switches (ZH-ACCP-SW01, ZH-ACCP-SW02, and ZH-ACCP-SW03). Each switch connection port is as follows Figure 4 shown.

[0206] See also Figure 5 , the network change method mainly includes the following steps:

[0207] S501, configure and model the network device.

[0208] In the case where the network type involved is a switch, configuration items such as LLDP, ARP, MAC, and port information may be modeled, and the configuration model of each configuration item includes at least one configuration sub-item.

[0209] Taking LLDP as an example, the configuration sub-items include the local port, the adjacent device port, and the adjacent device name. The attribute values ​​of these configuration sub-items are the configuration information to be collected.

[0210] S502: Obtain a configuration collection package for the configuration information to be collected.

[0211] The collection package contains two parts: the first part is a command set for configuring collection, and the second part is a cleaning script for data cleaning of the collection results.

[0212] The collection command set can be written in text format, and one text can include one collection command. The text can be named according to the configuration item. When the collection action is executed, the data management platform will obtain the configuration information according to the collection command after connecting to the network device, and create a new directory according to the file name, and store the configuration information in the corresponding directory in the form of IP naming.

[0213] The cleaning script contains the original configuration cleaning logic corresponding to the collection item. Taking the cleaning logic corresponding to LLDP as an example, after the platform obtains the configuration information through the collection package, the cleaning script and the collected configuration information can be stored in the same directory. When the directory exists, it means that the information collection is successful, and the corresponding cleaning script can be executed to achieve data cleaning of the LLDP configuration information.

[0214] The collection package can be uploaded and distributed through the network management platform. After the collection command and cleaning script are written, the collection command and cleaning script can be packaged into a compressed file and then uploaded and published. When issuing, you can select the collection package and version number, and at the same time formulate the scope of network devices collected, execution cycle and execution strategy.

[0215] by Figure 4 Taking the network A shown as an example, the configuration information of the five switches after collection meets the format requirements of the database and can be collected and stored in the database according to the configuration model format.

[0216] S503, after completing the configuration collection, the network topology can be calculated and displayed visually.

[0217] Specifically, the switches can be labeled according to the keywords in the switch names to determine the network level at which each switch is located, and the adjacency information of the network devices in each level can be obtained to obtain the network topology.

[0218] In the visual interface of network topology, you can view the information of network devices by clicking on nodes, and view the port connection information by clicking on lines. You can also view the path between any node as the start node and any node as the end node.

[0219] S504, simulating a change in the network topology.

[0220] By selecting a target simulation change scenario from a plurality of preset simulation change scenarios, taking the core switch port failure scenario as an example, a simulation change parameter table associated with the scenario is obtained, as shown in Table 1:

[0221] (*)Device name (*)Interface name Whether the interface can be up device_name interface_name is_abide_up ZH-CORE-SW01 XGE2 / 0 / 1 ZH-CORE-SW01 XGE2 / 0 / 2

[0222] Table 1

[0223] According to the simulated change parameter table, the change operation is simulated, that is, two ports (XGE2 / 0 / 1 and XGE2 / 0 / 2) of the core switch (ZH-CORE-SW01) are shut down, and the changed configuration information is stored in the database.

[0224] S505: re-collect configuration information and recalculate network topology.

[0225] After the change is completed, the configuration information in the database will be automatically collected and the topology will be recalculated, and the topology changes can be directly displayed in the visual interface.

[0226] S506: If the change in network topology meets the set requirements, the production change is executed, otherwise the change instruction is not issued.

[0227] Assume that the visualization interface shows that the connection between the core switch and the access switch (ZH-ACCP-SW01) and between the core switch and the access switch (ZH-ACCP-SW02) is abnormal, which means that the simulated change has caused the abnormality of the physical port.

[0228] In this case, it means that the change will cause network failure, so the change instruction will not be issued.

[0229] If the visual interface shows that the change does not cause network failure or network performance degradation, the change instruction can be issued to make the production change.

[0230] Corresponding to the embodiment of the aforementioned network change method, see Figure 6 As shown, the present application also provides a network change device, which is applied to a network management platform, and includes:

[0231] A first generating unit, configured to generate a first network topology according to configuration information of network devices in an existing network, and store the configuration information in a database;

[0232] A simulation change unit, used to modify the configuration information of the network device in the database according to the change indication of the network device;

[0233] A second generating unit, configured to generate a second network topology according to the configuration information collected from the database;

[0234] The sending unit is used to send the modified configuration to the network equipment in the existing network when the difference between the second network topology and the first network topology meets the set requirements.

[0235] In some embodiments, the apparatus further comprises a configuration model generating unit:

[0236] Setting a configuration model of the network device according to the type of the network device, wherein the configuration model includes at least one configuration sub-item;

[0237] Determine the target configuration sub-items to be collected based on the business scenarios of the existing network;

[0238] Obtaining configuration information of the network device according to the attribute value of the target configuration sub-item;

[0239] When the attributes of different configuration sub-items belong to the same object, an association relationship is established for the different configuration sub-items.

[0240] In some embodiments, the apparatus further comprises a collection setting unit, configured to:

[0241] Acquire a configuration collection package, the collection including an instruction set for collecting the configuration information and a cleaning script for performing data cleaning on the configuration information;

[0242] The acquisition package is released, and the execution scope, execution cycle and execution strategy of the acquisition package are set.

[0243] In some embodiments, the apparatus further includes a first configuration acquisition unit, configured to:

[0244] Acquire a collection package associated with the network device according to the execution scope of each collection package;

[0245] According to the execution cycle and execution strategy of the acquisition package, the instruction set is executed to obtain the acquisition result;

[0246] The data cleaning script is used to clean the collected results to obtain the configuration information of the network device.

[0247] In some embodiments, the method device further includes a second configuration collection unit, configured to:

[0248] Acquire first information of the network device using a network plug-in package, wherein the first information includes a manufacturer and a device type;

[0249] Determine a target network driver according to the first information;

[0250] The target network driver is used to connect to the network device.

[0251] In some embodiments, the first network topology includes a network physical topology, and the first generating unit, when used to generate the first network topology according to the configuration information of the network device in the existing network, is specifically used to:

[0252] Tagging the network device according to the keyword in the name of the network device, wherein the tag is used to indicate the level of the network device in the network structure of the existing network;

[0253] Based on the label of the network device, obtaining adjacency information of the network device in the corresponding layer;

[0254] According to the adjacency information of each layer, a first network topology of the existing network is obtained.

[0255] In some embodiments, when the first generating unit is used to generate the first network topology according to the configuration information of the network device in the existing network, it is specifically used to:

[0256] For a network device located at the access layer, obtaining IP address information in the address resolution protocol information of the network device;

[0257] Determine access information of the network device according to the IP address information, wherein the access information is used to indicate the connected terminal and server;

[0258] The first network topology of the existing network is obtained according to the adjacency information of each layer and the access information of the network equipment located at the access layer.

[0259] In some embodiments, the first network topology includes a logical link relationship, and the first generating unit, when used to generate the first network topology according to the configuration information of the network device in the existing network, is specifically used to:

[0260] According to the logical link scenario of the existing network service, at least one of the communication relationship, dependency relationship, and data flow path between network devices is obtained;

[0261] A logical link relationship is generated according to the configuration information of each network device associated with the logical link scenario.

[0262] In some embodiments, the simulation change unit is specifically used to:

[0263] Display multiple simulated change scenarios, each simulated change scenario is associated with at least one parameter to be changed;

[0264] Determine a target simulation change scenario according to the selection, and receive change parameter information under the target simulation change scenario;

[0265] According to the changed parameter information, configuration information corresponding to the changed parameter is generated and the configuration information stored in the database is updated.

[0266] In some embodiments, the apparatus further comprises a visualization unit for:

[0267] After storing the configuration information in a database, visually displaying the first network topology;

[0268] After the second network topology is generated according to the configuration information collected from the database, the difference between the second network topology and the first network topology is visually displayed.

[0269] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0270] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0271] The present application also provides an electronic device. The structural diagram of the electronic device is as follows: Figure 7 As shown, the electronic device 700 includes at least one processor 701, a memory 702 and a bus 703, and at least one processor 701 is electrically connected to the memory 702; the memory 702 is configured to store at least one computer-executable instruction, and the processor 701 is configured to execute the at least one computer-executable instruction, thereby executing any step of a network change method provided in any embodiment or any optional implementation manner in the present application.

[0272] Furthermore, the processor 701 may be a Field-Programmable Gate Array (FPGA) or other devices with logic processing capabilities, such as a Microcontroller Unit (MCU) or a Central Process Unit (CPU).

[0273] An embodiment of the present application further provides another readable storage medium storing a computer program, which is used to implement the steps of any network change method provided in any embodiment or any optional implementation manner in the present application when executed by a processor.

[0274] The readable storage medium provided in the embodiments of the present application includes, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the readable storage medium includes any medium that can store or transmit information in a readable form by a device (e.g., a computer).

[0275] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the particular order or sequential order shown to achieve the desired results. In some implementations, multitasking and parallel processing may be advantageous.

[0276] Although this specification contains many specific implementation details, these should not be interpreted as limiting the scope of any invention or the scope of protection claimed, but are mainly used to describe the features of specific embodiments of specific inventions. Certain features described in multiple embodiments within this specification can also be implemented in combination in a single embodiment. On the other hand, various features described in a single embodiment can also be implemented separately in multiple embodiments or in any suitable sub-combination.

[0277] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A network change method, characterized in that: Applied to network management platforms, including: Generate a first network topology according to configuration information of network devices in the existing network, and store the configuration information in a database; According to the change instruction to be performed for the network device, before issuing the change instruction including the modified configuration to the network device in the existing network, modify the configuration information of the network device in the database, including: generating a change parameter table according to the change instruction, determining the configuration information of the network device after the simulated change according to the change parameter table, and replacing the configuration information stored in the database with the simulated changed configuration information; generating a second network topology according to the configuration information collected from the database; When the difference between the second network topology and the first network topology meets the set requirements, the modified configuration is sent to the network devices in the existing network.

2. The method according to claim 1, characterized in that The method further comprises: Setting a configuration model of the network device according to the type of the network device, wherein the configuration model includes at least one configuration sub-item; Determine the target configuration sub-items to be collected based on the business scenarios of the existing network; Obtaining configuration information of the network device according to the attribute value of the target configuration sub-item; When the attributes of different configuration sub-items belong to the same object, an association relationship is established for the different configuration sub-items.

3. The method according to claim 1, characterized in that: The method further comprises: Acquire a configuration collection package, the collection including an instruction set for collecting the configuration information and a cleaning script for performing data cleaning on the configuration information; The acquisition package is released, and the execution scope, execution cycle and execution strategy of the acquisition package are set.

4. The method according to claim 1, characterized in that: The method further comprises: Acquire first information of the network device using a network plug-in package, wherein the first information includes a manufacturer and a device type; Determine a target network driver according to the first information; The target network driver is used to connect to the network device.

5. The method according to claim 1, characterized in that The first network topology includes a network physical topology, and the generating the first network topology according to the configuration information of the network devices in the existing network includes: Tagging the network device according to the keyword in the name of the network device, wherein the tag is used to indicate the level of the network device in the network structure of the existing network; Based on the label of the network device, obtaining adjacency information of the network device in the corresponding layer; According to the adjacency information of each layer, a first network topology of the existing network is obtained.

6. The method according to claim 5, characterized in that The generating of the first network topology according to the configuration information of the network devices in the existing network includes: For a network device located at the access layer, obtaining IP address information in the address resolution protocol information of the network device; Determine access information of the network device according to the IP address information, wherein the access information is used to indicate the connected terminal and server; The first network topology of the existing network is obtained according to the adjacency information of each layer and the access information of the network equipment located at the access layer.

7. The method according to claim 1, characterized in that The first network topology includes a logical link relationship, and the generating the first network topology according to the configuration information of the network device in the existing network includes: According to the logical link scenario of the existing network service, at least one of the communication relationship, dependency relationship, and data flow path between network devices is obtained; A logical link relationship is generated according to the configuration information of each network device associated with the logical link scenario.

8. The method according to claim 1, characterized in that The modifying the configuration information of the network device in the database according to the change indication of the network device includes: Display multiple simulated change scenarios, each simulated change scenario is associated with at least one parameter to be changed; Determine a target simulation change scenario according to the selection, and receive change parameter information under the target simulation change scenario; According to the changed parameter information, configuration information corresponding to the changed parameter is generated and the configuration information stored in the database is updated.

9. The method according to claim 1, characterized in that: The method further comprises: After storing the configuration information in a database, visually displaying the first network topology; After the second network topology is generated according to the configuration information collected from the database, the difference between the second network topology and the first network topology is visually displayed.

10. A network change device, characterized in that: Applied to network management platforms, including: A first generating unit, configured to generate a first network topology according to configuration information of network devices in an existing network, and store the configuration information in a database; a simulation change unit, configured to modify the configuration information of the network device in the database before issuing a change instruction including the modified configuration to the network device in the existing network according to the change indication to be performed on the network device, and specifically to: generate a change parameter table according to the change indication, determine the configuration information of the network device after the simulated change according to the change parameter table, and replace the configuration information stored in the database with the configuration information after the simulated change; A second generating unit, configured to generate a second network topology according to the configuration information collected from the database; The sending unit is used to send the modified configuration to the network equipment in the existing network when the difference between the second network topology and the first network topology meets the set requirements.

11. An electronic device, characterized in that: include: Memory, processor; The memory is used to store computer programs; The processor is used to call the computer program to implement the method according to any one of claims 1-9.

12. A readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

Citation Information

Cited By

  • Incremental analysis method and system for judging network asset mutual access security and storage medium

    CN121056248A

  • An incremental analysis method, system and storage medium for judging network asset mutual visit security

    CN121056248B