Network topology establishment method, device and storage medium
By using an automated network topology creation method, topology information and device configuration files are obtained, and the target network topology structure is constructed. This solves the problems of complex and tedious manual configuration and high error rate, and improves the configuration and recovery efficiency of network devices.
Patent Information
- Application Number
- CN202510378108.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2045-03-27
AI Technical Summary
In the existing technology, with the increasing complexity of network topology and the diversification of network devices, manual network device configuration recovery is complicated, cumbersome, and has a high error rate, resulting in low efficiency of network device configuration recovery.
The network topology establishment device acquires topology information, including the connection relationships and device information between network nodes, constructs the target network topology structure, and determines the configuration information of node devices based on configuration files and recovery process information, thereby automatically establishing the target network topology.
No manual configuration is required, reducing error rates and operation time, and improving the efficiency of network device configuration and recovery.
Smart Images

Figure CN119996217B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communications, and more particularly to a method, apparatus and storage medium for establishing a network topology. Background Technology
[0002] In the current network environment, users are increasingly relying on the network for daily communication, leisure, remote work and other daily activities. The network is gradually becoming an indispensable part of people's daily lives. The stability of the network environment and emergency recovery measures in the face of network failures are the key tasks of network security.
[0003] In related technologies, technicians input commands to set and restore the configuration of network devices, thereby ensuring network stability. However, with the increasing complexity of network topologies and the diversification of network devices, manual network device configuration restoration is cumbersome, tedious, and prone to errors. Therefore, improving the efficiency of network device configuration restoration remains an unsolved technical problem. Summary of the Invention
[0004] This application provides a network topology establishment method, apparatus, and storage medium, which can improve the efficiency of network topology establishment.
[0005] In a first aspect, this application provides a network topology establishment method, comprising: a network topology establishment device acquiring topology information of a network topology to be reconstructed; the topology information including connection relationships between network nodes, device information of node devices corresponding to network nodes, and configuration files of node devices; the device information including device type and recovery configuration process information; the recovery configuration process information including process information for restoring the target configuration of node devices; the network topology establishment device constructing a network structure of a target network topology based on the connection relationships between network nodes in the network topology to be reconstructed and the device types of node devices in the network topology to be reconstructed; the target network topology having the same device type as the node devices corresponding to the same network nodes in the network topology to be reconstructed; the network topology establishment device determining the configuration information of node devices in the target network topology based on the configuration files of node devices in the network topology to be reconstructed and the recovery configuration process information; and the network topology establishment device establishing a target network topology based on the network structure of the target network topology and the configuration information of node devices in the target network topology.
[0006] In one possible implementation, the operating status of the node devices in the network topology to be rebuilt is determined based on their power status and operating system status. A network detection tool is used to determine whether the node devices in the network topology to be rebuilt are allowed to access. If the node devices in the network topology to be rebuilt are powered on and allowed to access, the configuration files of the node devices in the network topology to be rebuilt are backed up.
[0007] In one possible implementation, if the node devices in the network topology to be rebuilt are configured with management Internet Protocol (IP) IPs, a ping command is run based on the management IP of the node devices in the network topology to be rebuilt; based on the result of the ping command, it is determined whether the node devices in the network topology to be rebuilt are accessible.
[0008] In one possible implementation, it is determined whether the node devices in the network topology to be rebuilt are recorded in the configuration recovery process table; the recovery process table includes at least one node device and recovery configuration process information corresponding to at least one node device; if the node devices in the network topology to be rebuilt are not recorded in the configuration recovery process table, the initial recovery configuration process information of the node devices in the network topology to be rebuilt is obtained; the configuration recovery process table is updated based on the initial recovery configuration process information of the node devices in the network topology to be rebuilt.
[0009] In one possible implementation, device usage information of node devices in the network topology to be rebuilt is obtained; the device usage information includes the instruction operation specifications of the node devices in the network topology to be rebuilt; the reliability of the initial recovery configuration process information is verified based on the device usage information; if the initial recovery configuration process information passes the reliability verification, the initial recovery configuration process information is determined as the recovery configuration process information of the node devices in the network topology to be rebuilt in the configuration recovery process table.
[0010] In one possible implementation, the topology information also includes at least one of the following: topology name, node name, device name, and device management IP.
[0011] Secondly, this application provides a network topology establishment apparatus, comprising: an acquisition unit and a processing unit; the acquisition unit being used to acquire topology information of a network topology to be reconstructed; the topology information includes the connection relationships between network nodes, device information of the node devices corresponding to the network nodes, and configuration files of the node devices; the device information includes device type and recovery configuration process information; the recovery configuration process information includes process information for restoring the target configuration of the node devices; the processing unit being used to construct the network structure of the target network topology based on the connection relationships between network nodes in the network topology to be reconstructed and the device types of the node devices in the network topology to be reconstructed; the target network topology has the same device type as the node devices corresponding to the same network nodes in the network topology to be reconstructed; the processing unit being used to determine the configuration information of the node devices in the target network topology based on the configuration files of the node devices in the network topology to be reconstructed and the recovery configuration process information; and the processing unit being used to establish the target network topology according to the network structure of the target network topology and the configuration information of the node devices in the target network topology.
[0012] In one possible implementation, the processing unit is further configured to determine the operating status of the node devices in the network topology to be rebuilt based on the power status and operating system running status of the node devices in the network topology to be rebuilt; the processing unit is further configured to determine whether the node devices in the network topology to be rebuilt are allowed to access through a network detection tool; and the processing unit is further configured to back up the configuration files of the node devices in the network topology to be rebuilt if the operating status of the node devices in the network topology to be rebuilt is powered on and the node devices in the network topology to be rebuilt are allowed to access.
[0013] In one possible implementation, if the node devices in the network topology to be rebuilt are configured with management Internet Protocol (IP) IPs, a ping command is run based on the management IP of the node devices in the network topology to be rebuilt; based on the result of the ping command, it is determined whether the node devices in the network topology to be rebuilt are accessible.
[0014] In one possible implementation, the processing unit is further configured to determine whether the node devices in the network topology to be rebuilt are recorded in the configuration recovery process table; the recovery process table includes at least one node device and recovery configuration process information corresponding to at least one node device; the processing unit is further configured to instruct the acquisition unit to acquire the initial recovery configuration process information of the node devices in the network topology to be rebuilt if the node devices in the network topology to be rebuilt are not recorded in the configuration recovery process table; the processing unit is further configured to update the configuration recovery process table based on the initial recovery configuration process information of the node devices in the network topology to be rebuilt.
[0015] In one possible implementation, the acquisition unit is further configured to acquire device usage information of node devices in the network topology to be rebuilt; the device usage information includes instruction operation specifications of node devices in the network topology to be rebuilt; the processing unit is further configured to verify the reliability of the initial recovery configuration process information based on the device usage information; the processing unit is further configured to determine the initial recovery configuration process information as the recovery configuration process information of node devices in the network topology to be rebuilt in the configuration recovery process table if the initial recovery configuration process information passes the reliability verification.
[0016] In one possible implementation, the topology information also includes at least one of the following: topology name, node name, device name, and device management IP.
[0017] Thirdly, this application provides a computer-readable storage medium storing one or more programs, the one or more programs including instructions that, when executed by an electronic device of this application, cause the electronic device to perform the network topology establishment method as described in the first aspect and any possible implementation thereof.
[0018] Fourthly, this application provides an electronic device, including: a processor and a memory; wherein the memory is used to store one or more programs, the one or more programs including computer-executable instructions, and when the electronic device is running, the processor executes the computer-executable instructions stored in the memory to cause the electronic device to perform the network topology establishment method as described in the first aspect and any possible implementation of the first aspect.
[0019] Fifthly, this application provides a computer program product containing instructions that, when executed on a computer, cause the electronic device of this application to perform the network topology establishment method as described in the first aspect and any possible implementation thereof.
[0020] Sixthly, this application provides a chip system applied to a network topology establishment apparatus; the chip system includes one or more interface circuits and one or more processors. The interface circuits and processors are interconnected via lines; the interface circuits are used to receive signals from the memory of the network topology establishment apparatus and send signals to the processors, the signals including computer instructions stored in the memory. When the processor executes the computer instructions, the network topology establishment apparatus performs a network topology establishment method as described in the first aspect and any of its possible design embodiments.
[0021] In this application, the name of the aforementioned network topology establishment apparatus does not limit the devices or functional units themselves. In actual implementation, these devices or functional units may appear under other names. As long as the functions of each device or functional unit are similar to those in this application, they all fall within the scope of the claims of this application and their equivalents.
[0022] Based on the above technical solution, in this embodiment, the network topology establishment device acquires the topology information of the network topology to be reconstructed. Since the topology information includes the connection relationships between network nodes and the device information of the node devices corresponding to the network nodes, the network topology establishment device can construct a network structure of a target network topology with the same device type as the node devices corresponding to the same network nodes in the network topology to be reconstructed, based on the connection relationships between network nodes and the device types of the node devices in the network topology to be reconstructed. Considering that the topology information also includes the configuration files of the node devices, the network topology establishment device can determine the configuration information of the node devices in the target network topology based on the configuration files of the node devices in the network topology to be reconstructed and the recovery configuration process information in the device information. Therefore, the network topology establishment device can establish a target network topology based on the network structure of the target network topology and the configuration information of the node devices in the target network topology. Compared with the prior art, this application eliminates the need for manual configuration of network devices, avoiding the high error rate and time-consuming and labor-intensive nature of manual configuration, and improving the efficiency of network device configuration recovery. Attached Figure Description
[0023] Figure 1 This application provides a schematic diagram of the architecture of a network topology establishment system.
[0024] Figure 2 This is a schematic diagram of a network topology establishment device provided in an embodiment of this application;
[0025] Figure 3 A flowchart illustrating a network topology establishment method provided in an embodiment of this application;
[0026] Figure 4 A flowchart illustrating another network topology establishment method provided in this application embodiment;
[0027] Figure 5 A flowchart illustrating another network topology establishment method provided in this application embodiment;
[0028] Figure 6 A flowchart illustrating another network topology establishment method provided in this application embodiment;
[0029] Figure 7 A flowchart illustrating another network topology establishment method provided in this application embodiment;
[0030] Figure 8 A flowchart illustrating another network topology establishment method provided in this application embodiment;
[0031] Figure 9 This is a schematic diagram of another network topology establishment device provided in an embodiment of this application. Detailed Implementation
[0032] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0033] In this article, the character " / " generally indicates that the objects before and after it are in an "or" relationship. For example, A / B can be understood as A or B.
[0034] The terms "first" and "second" in the specification and claims of this application are used to distinguish different objects, not to describe a specific order of objects. For example, "first edge service node" and "second edge service node" are used to distinguish different edge service nodes, not to describe a characteristic order of edge service nodes.
[0035] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.
[0036] Furthermore, in the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplarily" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the words "exemplarily" or "for example" is intended to present concepts in a concrete manner.
[0037] From the Ethernet bus topology of the 1970s to the star topology of the 1990s, and then to the widely used mesh topology today, network topology has undergone several significant changes, gradually becoming more complex. Furthermore, in the 21st century, Software Defined Networking (SDN), as a new network architecture, has achieved greater flexibility and programmability by separating the network control plane from the forwarding plane.
[0038] As network topologies become increasingly complex, disaster recovery, emergency response, migration, upgrades, and verification all face significant challenges. In the current network environment, users rely more and more on the network for daily communication, leisure, remote work, and other activities, making the network an indispensable part of daily life. Simultaneously, the rise of the Internet of Things (IoT) has brought hundreds of millions of connected devices and an increasing number of mobile, desktop, and in-vehicle connected devices, requiring new topologies to effectively manage a large number of concurrent connections. This makes network topology migration, upgrades, and verification extremely challenging. Furthermore, given the heavy reliance on the network by users, network topology upgrades and verifications cannot be performed directly on the existing network environment; the current environment must be cloned for testing and upgrades. Similarly, before disaster recovery, emergency response, and formal network upgrades, it is essential to back up the current network topology information for rapid recovery. Therefore, network environment stability and emergency recovery measures in the face of network failures are key priorities for current network security.
[0039] In related technologies, technicians input commands to set and restore the configuration of network devices, thereby ensuring network stability. However, with the increasing complexity of network topologies and the diversification of network devices, manual network device configuration restoration is cumbersome, tedious, and prone to errors. Therefore, improving the efficiency of network device configuration restoration remains an unsolved technical problem.
[0040] Based on the above technical solution, in this embodiment, the network topology establishment device acquires the topology information of the network topology to be reconstructed. Since the topology information includes the connection relationships between network nodes and the device information of the node devices corresponding to the network nodes, the network topology establishment device can construct a network structure of a target network topology with the same device type as the node devices corresponding to the same network nodes in the network topology to be reconstructed, based on the connection relationships between network nodes and the device types of the node devices in the network topology to be reconstructed. Considering that the topology information also includes the configuration files of the node devices, the network topology establishment device can determine the configuration information of the node devices in the target network topology based on the configuration files of the node devices in the network topology to be reconstructed and the recovery configuration process information in the device information. Therefore, the network topology establishment device can establish a target network topology based on the network structure of the target network topology and the configuration information of the node devices in the target network topology. Compared with the prior art, this application eliminates the need for manual configuration of network devices, avoiding the high error rate and time-consuming and labor-intensive nature of manual configuration, and improving the efficiency of network device configuration recovery.
[0041] For example, such as Figure 1 As shown, Figure 1 This application provides a schematic diagram of the architecture of a network topology establishment system 10, which includes: a data acquisition device 101 and a network topology establishment device 102.
[0042] Data acquisition device 101 contains the topology information of the network topology to be reconstructed.
[0043] The network topology establishment device 102 uses the topology information of the network topology to be reconstructed from the data acquisition device 101; based on the connection relationships between network nodes in the network topology to be reconstructed and the device types of the node devices in the network topology to be reconstructed, it constructs the network structure of the target network topology; the device types of the node devices corresponding to the same network nodes in the target network topology are the same. Based on the configuration files and recovery configuration process information of the node devices in the network topology to be reconstructed, it determines the configuration information of the node devices in the target network topology. Based on the network structure of the target network topology and the configuration information of the node devices in the target network topology, it establishes the target network topology.
[0044] Optionally, the topology information includes the connection relationships between network nodes, the device information of the node devices corresponding to the network nodes, and the configuration files of the node devices; the device information includes device type and recovery configuration process information; the recovery configuration process information includes process information for restoring the target configuration of the node devices.
[0045] Optionally, the physical device of the data acquisition device 101 is a terminal, and the physical device of the network topology establishment device 102 is a server.
[0046] Optionally, the aforementioned terminal may be a device that provides voice and / or data connectivity to a user, a handheld device with wireless connectivity, or other processing device connected to a wireless modem. The wireless terminal may communicate with one or more core networks via a radio access network (RAN). The wireless terminal may be a mobile terminal, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal, or a portable, pocket-sized, handheld, computer-embedded, or vehicle-mounted mobile device that exchanges voice and / or data with the radio access network, such as a mobile phone, tablet computer, laptop computer, netbook, or personal digital assistant (PDA).
[0047] Optionally, the server mentioned above can be one of the servers in a server cluster (composed of multiple servers), a chip in the server, a system-on-a-chip in the server, or a virtual machine (VM) deployed on a physical machine. This application embodiment does not limit this.
[0048] This application provides a network topology establishment apparatus for executing the network topology establishment system provided in this application. Figure 2 This is a schematic diagram of a network topology establishment device provided in an embodiment of this application. Figure 2 As shown, the network topology establishment device 200 includes at least one processor 201, a communication line 202, and at least one communication interface 204, and may also include a memory 203. The processor 201, memory 203, and communication interface 204 can be connected via the communication line 202.
[0049] The processor 201 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application, such as one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs).
[0050] Communication line 202 may include a path for transmitting information between the aforementioned components.
[0051] The communication interface 204 is used to communicate with other devices or communication networks and can use any transceiver-like device, such as Ethernet, radio access network (RAN), WLAN, etc.
[0052] The memory 203 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of including or storing desired program code having the form of instructions or data structures and accessible by a computer, but not limited thereto.
[0053] In one possible design, the memory 203 can exist independently of the processor 201, meaning the memory 203 can be an external memory of the processor 201. In this case, the memory 203 can be connected to the processor 201 via the communication line 202 to store execution instructions or application code, and its execution is controlled by the processor 201 to implement the network topology establishment method provided in the following embodiments of this application. In another possible design, the memory 203 can also be integrated with the processor 201, meaning the memory 203 can be an internal memory of the processor 201. For example, the memory 203 can be a cache, which can be used to temporarily store some data and instruction information.
[0054] As one possible implementation, processor 201 may include one or more CPUs, for example Figure 2 CPU0 and CPU1 in the example. Alternatively, the network topology establishing device 200 may include multiple processors, such as CPU0 and CPU1. Figure 2 The processors 201 and 207 are included. Alternatively, the network topology establishment apparatus 200 may also include an output device 205 and an input device 206.
[0055] The following, in conjunction with the appendix Figure 3 The network topology establishment method provided in the embodiments of this application will be described in detail, such as... Figure 3 As shown, the network topology establishment method includes S301-S304.
[0056] S301, The network topology establishment device acquires the topology information of the network topology to be reconstructed.
[0057] The topology information includes the connection relationships between network nodes, the device information of the node devices corresponding to the network nodes, and the configuration files of the node devices; the device information includes the device type and the recovery configuration process information; the recovery configuration process information includes the process information for restoring the target configuration of the node devices.
[0058] In one possible implementation, the network topology establishment device obtains the topology information of the network topology to be rebuilt from the backup server.
[0059] Optionally, the topology information may also include at least one of the following: topology name, node name, device name, and device management IP.
[0060] It should be explained that the topology name is used to identify the topology, the node name is used to identify the source of the data, and the device name is used to identify the device. Only when a device is configured with a management IP can its configuration file be automatically backed up over the network.
[0061] S302. The network topology establishment device constructs the network structure of the target network topology based on the connection relationship between network nodes in the network topology to be reconstructed and the device type of the node devices in the network topology to be reconstructed.
[0062] In this context, the target network topology and the network topology to be reconstructed have the same device type for the same network nodes.
[0063] Optionally, there is a one-to-one correspondence between network nodes and devices.
[0064] In one possible implementation, the network topology establishment device determines the device type of the node devices in the network topology to be reconstructed, connects the node devices in the network topology to be reconstructed based on the connection relationship between the network nodes in the network topology to be reconstructed, and generates the network structure of the target network topology.
[0065] It is understandable that network structure includes node devices and the connections between them.
[0066] S303. The network topology establishment device determines the configuration information of the node devices in the target network topology based on the configuration files and recovery configuration process information of the node devices in the network topology to be rebuilt.
[0067] In one possible implementation, the network topology establishment device runs the configuration files of the node devices in the network topology to be rebuilt by restoring configuration process information to determine the configuration information of the node devices in the target network topology.
[0068] Optionally, the restore configuration process information includes computer instructions.
[0069] S304. The network topology establishment device establishes the target network topology based on the network structure of the target network topology and the configuration information of the node devices in the target network topology.
[0070] In one possible implementation, the network topology establishment device configures the node devices in the network structure of the target network topology according to the configuration information of the node devices in the target network topology, so as to establish the target network topology.
[0071] Optionally, the target network topology may include physical topology or virtual topology.
[0072] It's important to explain that physical topology physically connects devices together with cables, representing the actual wiring and connection layout; virtual topology, on the other hand, is a geometric structure composed of elements such as faces, edges, and vertices, used in simulation analysis to describe the boundaries of the model. It can omit or simplify model details as needed, making it easier to generate higher-quality meshes.
[0073] In one possible implementation, the network topology building device builds the target network topology on the OpenStack cloud platform.
[0074] The above solution offers at least the following advantages: The network topology establishment device acquires the topology information of the network topology to be reconstructed. Since the topology information includes the connection relationships between network nodes and the device information of the node devices corresponding to the network nodes, the network topology establishment device can construct a network structure of the target network topology with the same device type as the node devices corresponding to the same network nodes in the network topology to be reconstructed, based on the connection relationships between network nodes and the device types of the node devices in the network topology to be reconstructed. Considering that the topology information also includes the configuration files of the node devices, the network topology establishment device can determine the configuration information of the node devices in the target network topology based on the configuration files of the node devices in the network topology to be reconstructed and the recovery configuration process information in the device information. Thus, the network topology establishment device can establish the target network topology based on the network structure of the target network topology and the configuration information of the node devices in the target network topology. Compared with the prior art, this application eliminates the need for manual configuration of network devices, avoiding the high error rate and time-consuming and labor-intensive nature of manual configuration, and improving the efficiency of network device configuration recovery.
[0075] In one possible implementation, combining Figure 3 ,like Figure 4 As shown, before the network topology establishment device obtains the topology information of the network topology to be rebuilt in S301, the network topology establishment device backs up the configuration files of the node devices in the network topology to be rebuilt. The process of the network topology establishment device backing up the configuration files of the node devices in the network topology to be rebuilt can be specifically implemented through the following S401-S403.
[0076] S401. The network topology establishment device determines the operating status of the node devices in the network topology to be reconstructed based on the power status and operating system running status of the node devices in the network topology to be reconstructed.
[0077] In one possible implementation, the network topology establishment device determines the power status by checking the power indicator lights on the node devices and determines the operating system status by detecting the node device operating information. Then, based on the power status and operating system status of the node devices in the network topology to be reconstructed, the device determines the overall operating status of the node devices in the network topology to be reconstructed.
[0078] Optionally, the node device operation information includes at least one of the following: CPU utilization, memory usage, and disk input / output (I / O) information.
[0079] S402. The network topology establishment device uses a network detection tool to determine whether the node devices in the network topology to be reconstructed are allowed to access.
[0080] Optional, use the ping command as a network testing tool.
[0081] In one possible implementation, the network topology establishment device uses a network detection tool to determine whether the management IPs of the node devices in the network topology to be rebuilt are reachable. If the management IPs of the node devices in the network topology to be rebuilt are reachable, the network topology establishment device determines that the node devices in the network topology to be rebuilt are allowed to access; if the management IPs of the node devices in the network topology to be rebuilt are unreachable, the network topology establishment device determines that the node devices in the network topology to be rebuilt are not allowed to access.
[0082] It's important to explain that the ping command is a commonly used network tool for testing the quality of a network connection with another computer. It works by sending Internet Control Message Protocol (ICMP) echo request packets to the target host and waiting to receive echo response packets. The ping command not only helps you confirm whether a target host is reachable, but also provides network performance metrics such as Round-Trip Time (RTT).
[0083] S403. When the node devices in the network topology to be rebuilt are in the powered-on state and the node devices in the network topology to be rebuilt are allowed to access, the network topology creation device backs up the configuration files of the node devices in the network topology to be rebuilt.
[0084] In one possible implementation, the network topology establishment device obtains the topology information and configuration files of the node devices in the network topology to be reconstructed, and backs up the topology information and configuration files of the node devices to a backup database.
[0085] It should be explained that the network topology creation device accesses each node device in the network topology to be reconstructed via File Transfer Protocol (FTP) and downloads the configuration file of each node device.
[0086] Table 1. Network Topology Backup Table
[0087]
[0088]
[0089] For example, as shown in Table 1, during the first backup in Topology 1, the device of Node 1 is manufactured by the First Telecommunications Company, has the same device model as the First Telecommunications Company, a management IP of 192.168.1.10, and the same configuration information as Node 1; the device of Node 2 is manufactured by the Second Telecommunications Company, has the same device model as the Second Telecommunications Company, a management IP of 192.168.1.20, and the same configuration information as Node 2; the device of Node 3 is manufactured by the Third Telecommunications Company, has the same device model as the Third Telecommunications Company, a management IP of 192.168.1.30, and the same configuration information as Node 3; the device of Node 4 is manufactured by the Fourth Telecommunications Company, has the same device model as the Fourth Telecommunications Company, a management IP of 192.168.1.40, and the same configuration information as Node 4; the device of Node 5 is manufactured by the Fifth Telecommunications Company, has the same device model as the Fifth Telecommunications Company, a management IP of 192.168.1.50, and the same configuration information as Node 5.
[0090] The above solution offers at least the following advantages: In this embodiment, the network topology establishment device acquires information about each node in the network topology and backs up each node. This way, when the user needs to establish the topology again, the device can quickly and accurately establish the network topology based on the backed-up node information, thus improving the efficiency of network topology establishment.
[0091] In one possible implementation, combining Figure 4 ,like Figure 5 As shown, in S402, the process by which the network topology establishment device determines whether the node devices in the network topology to be reconstructed are allowed to access the network through a network detection tool can be specifically implemented through the following S501-S502.
[0092] S501. When the node devices in the network topology to be rebuilt are configured with management Internet Protocol (IP) addresses, the network topology establishment device runs the ping command based on the management IP addresses of the node devices in the network topology to be rebuilt.
[0093] In one possible implementation, the network topology establishment device obtains the management IPs of the node devices in the network topology to be reconstructed, and sends data packets to the node devices using the management IPs and the ICMP protocol. Upon receiving the data packets, the node devices then send ICMP echo reply data packets to the ping command.
[0094] Optionally, the data packet is an ICMP echo request data packet.
[0095] S502. The network topology establishment device determines whether the node devices in the network topology to be rebuilt are accessible based on the results of the ping command.
[0096] In one possible implementation, when the network quality in the ping command result is greater than or equal to the preset network quality, the network topology establishment device determines that the node devices in the network topology to be reconstructed are accessible; when the network quality in the ping command result is less than the preset network quality, the network topology establishment device determines that the node devices in the network topology to be reconstructed are inaccessible.
[0097] It needs to be explained that after receiving an ICMP echo reply packet, the ping command determines the data transmission information based on the ICMP echo request packet and the ICMP echo reply packet. The ping command then uses this data transmission information to determine network quality.
[0098] Optionally, the data transmission information may include at least one of the following: data transmission duration, data reception duration, data loss information, number of data transmissions, data packet size, and data packet format.
[0099] The above solution offers at least the following advantages: In this embodiment, the network topology establishment device runs a ping command based on the management IP of the node devices in the network topology to be rebuilt. In this way, the network topology establishment device determines whether the node devices in the network topology to be rebuilt are accessible based on the ping command results, thereby ensuring the communicability of the node devices in the network topology to be rebuilt and improving the efficiency of node data backup.
[0100] In one possible implementation, combining Figure 4 ,like Figure 6 As shown, after the network topology creation device backs up the configuration files of the node devices in the network topology to be rebuilt in S403, the network topology creation device updates the configuration recovery process table. The process of updating the configuration recovery process table of the network topology creation device can be specifically implemented through the following S601-S603.
[0101] S601, The network topology establishment device determines whether the node devices in the network topology to be rebuilt are recorded in the configuration recovery process table.
[0102] The recovery process table includes at least one node device and the recovery configuration process information corresponding to at least one node device.
[0103] One possible implementation is that the network topology establishment device queries the configuration recovery process table to see if there is a first node device with the same name as the node device in the network topology to be rebuilt, based on the name of the node device in the network topology to be rebuilt. If it exists, the network topology establishment device determines that the node device in the network topology to be rebuilt is recorded in the configuration recovery process table; if it does not exist, the network topology establishment device determines that the node device in the network topology to be rebuilt is not recorded in the configuration recovery process table.
[0104] S602. If the node devices in the network topology to be rebuilt are not recorded in the configuration recovery process table, the network topology establishment device obtains the initial recovery configuration process information of the node devices in the network topology to be rebuilt.
[0105] In one possible implementation, the network topology establishment device obtains the initial recovery configuration process information of the node devices in the network topology to be rebuilt from the backup server.
[0106] S603, The network topology establishment device updates the configuration recovery process table based on the initial recovery configuration process information of the node devices in the network topology to be rebuilt.
[0107] In one possible implementation, the network topology establishment device verifies the accuracy of the initial recovery configuration of the node devices in the network topology to be rebuilt. If the initial recovery configuration of the node devices in the network topology to be rebuilt passes the accuracy verification, the initial recovery configuration process information of the node devices in the network topology to be rebuilt is stored in the configuration recovery process table.
[0108] Table 2. Configuration Recovery Process Table
[0109]
[0110] For example, as shown in Table 2, the configuration recovery process in the table is as follows: for the first device model of the first communication company, the recovery configuration step is "system-view configuration replace file config.cfg"; for the second device model of the second communication company, the recovery configuration step is "system-view startup saved-configurationconfig.cfg"; for the third device model of the third communication company, the recovery configuration step is "system-view loadconfiguration config.cfg"; for the fourth device model of the fourth communication company, the recovery configuration step is "system-view load configuration config.cfg"; and for the fifth device model of the fifth communication company, the recovery configuration step is "enable load configuration config.cfg".
[0111] The above solution brings at least the following beneficial effects: In this embodiment of the application, the network topology establishment device updates the configuration recovery process table in real time. In this way, when the user needs to build a network topology, the recovery configuration steps of the node device can be obtained from the configuration recovery process table based on the device manufacturer and device model of the node device, thereby improving the efficiency of establishing the network topology.
[0112] In one possible implementation, combining Figure 6 ,like Figure 7 As shown, in S603, the process of the network topology establishment device updating the configuration recovery process table based on the initial recovery configuration process information of the node devices in the network topology to be rebuilt can be specifically implemented through the following S701-S703.
[0113] S701, The network topology establishment device obtains the device usage information of the node devices in the network topology to be reconstructed.
[0114] The equipment usage information includes the instruction operation specifications for the node devices in the network topology to be rebuilt.
[0115] In one possible implementation, the network topology establishment device obtains the device usage information of the node devices in the network topology to be reconstructed from the network server of the manufacturer to which the node devices belong.
[0116] S702, The network topology establishment device verifies the reliability of the initial recovery configuration process information based on the usage information.
[0117] In one possible implementation, the network topology establishment device runs the initial recovery configuration process information in a preset server based on the device usage information, and verifies the reliability of the initial recovery configuration process information based on the running results.
[0118] S703. If the initial recovery configuration process information passes the reliability verification, the network topology establishment device determines the initial recovery configuration process information as the recovery configuration process information of the node devices in the network topology to be rebuilt in the configuration recovery process table.
[0119] In one possible implementation, the network topology establishment device stores the initial recovery configuration process information and node devices in the configuration recovery process table, establishing a correspondence between the initial recovery configuration process information and node devices.
[0120] In another possible implementation, the network topology establishment device deletes the preset recovery configuration process information corresponding to the node device and stores the initial recovery configuration process information in the configuration recovery process table, thus establishing a correspondence between the initial recovery configuration process information and the node device.
[0121] For example, such as Figure 8As shown, during the backup process of the network topology establishment device, it determines whether the network topology to be rebuilt is a physical topology. If the network topology to be rebuilt is not a physical topology, the device obtains and saves basic network topology information from the virtualization platform. If the network topology to be rebuilt is a physical topology, the device records the basic information of each node within the network topology in Table 1. The device verifies the network topology, downloads and saves the configuration files for each order using an FTP tool, and checks whether the newly added node device model is recorded in the configuration recovery process table 2. If the newly added node device model is recorded in Table 2, the backup process ends. If the newly added node device model is not recorded in Table 2, the device collects and verifies the configuration recovery process for the newly added node model and updates the newly added configuration recovery process in Table 2.
[0122] The above solution brings at least the following beneficial effects: In this embodiment of the application, the network topology establishment device uses information to verify the reliability of the initial recovery configuration process information, so as to ensure that the initial recovery configuration process information can be used normally.
[0123] This application embodiment can divide the network topology establishment device into functional modules or functional units according to the above method example. For example, each function can be divided into a separate functional module or functional unit, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or in software functional modules or functional units. The module or unit division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0124] For example, such as Figure 9 The diagram shown is a structural schematic of another network topology establishment apparatus according to an embodiment of this application. The network topology establishment apparatus 90 includes an acquisition unit 901 and a processing unit 902.
[0125] The acquisition unit 901 is used to acquire topology information of the network topology to be reconstructed; the topology information includes the connection relationships between network nodes, the device information of the node devices corresponding to the network nodes, and the configuration files of the node devices; the device information includes device type and recovery configuration process information; the recovery configuration process information includes the process information for restoring the target configuration of the node devices; the processing unit 902 is used to construct the network structure of the target network topology based on the connection relationships between network nodes in the network topology to be reconstructed and the device types of the node devices in the network topology to be reconstructed; the target network topology has the same device type as the node devices corresponding to the same network nodes in the network topology to be reconstructed; the processing unit 902 is used to determine the configuration information of the node devices in the target network topology based on the configuration files and recovery configuration process information of the node devices in the network topology to be reconstructed; the processing unit 902 is used to establish the target network topology according to the network structure of the target network topology and the configuration information of the node devices in the target network topology.
[0126] Optionally, the processing unit 902 is further configured to determine the operating status of the node devices in the network topology to be rebuilt based on the power status and operating system running status of the node devices in the network topology to be rebuilt; the processing unit 902 is further configured to determine whether the node devices in the network topology to be rebuilt are allowed to access through a network detection tool; the processing unit 902 is further configured to back up the configuration files of the node devices in the network topology to be rebuilt when the operating status of the node devices in the network topology to be rebuilt is powered on and the node devices in the network topology to be rebuilt are allowed to access.
[0127] Optionally, if the node devices in the network topology to be rebuilt are configured with management Internet Protocol (IP) IPs, a ping command is run based on the management IP of the node devices in the network topology to be rebuilt; based on the results of the ping command, it is determined whether the node devices in the network topology to be rebuilt are accessible.
[0128] Optionally, the processing unit 902 is further configured to determine whether the node devices in the network topology to be rebuilt are recorded in the configuration recovery process table; the recovery process table includes at least one node device and recovery configuration process information corresponding to at least one node device; the processing unit 902 is further configured to instruct the acquisition unit 901 to acquire the initial recovery configuration process information of the node devices in the network topology to be rebuilt when the node devices in the network topology to be rebuilt are not recorded in the configuration recovery process table; the processing unit 902 is further configured to update the configuration recovery process table based on the initial recovery configuration process information of the node devices in the network topology to be rebuilt.
[0129] Optionally, the acquisition unit 901 is further configured to acquire device usage information of node devices in the network topology to be rebuilt; the device usage information includes instruction operation specifications of node devices in the network topology to be rebuilt; the processing unit 902 is further configured to verify the reliability of the initial recovery configuration process information based on the device usage information; the processing unit 902 is further configured to determine the initial recovery configuration process information as the recovery configuration process information of node devices in the network topology to be rebuilt in the configuration recovery process table if the initial recovery configuration process information passes the reliability verification.
[0130] Optionally, the topology information may also include at least one of the following: topology name, node name, device name, and device management IP.
[0131] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run computer programs or instructions to implement the network topology establishment method in the above method embodiments.
[0132] Embodiments of this application provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform the industrial terminal switching method described in the above method embodiments.
[0133] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), registers, hard disks, optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing, or any other form of computer-readable storage medium in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may reside in an application-specific integrated circuit (ASIC). In embodiments of the present invention, a computer-readable storage medium may be any tangible medium that contains or stores a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0134] Since the apparatus, device, computer-readable storage medium, and computer program product in the embodiments of the present invention can be applied to the above methods, the technical effects that can be obtained can also be referred to the above method embodiments. The embodiments of this application will not be repeated here.
[0135] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for establishing a network topology, characterized in that, The method includes: Obtain topology information of the network topology to be rebuilt; the topology information includes the connection relationships between network nodes, the device information of the node devices corresponding to the network nodes, and the configuration files of the node devices; the device information includes device type and recovery configuration process information; the recovery configuration process information includes process information for restoring the target configuration of the node devices; Based on the connection relationships between network nodes in the network topology to be reconstructed and the device types of node devices in the network topology to be reconstructed, a network structure of the target network topology is constructed; the target network topology and the device types of node devices corresponding to the same network nodes in the network topology to be reconstructed are the same. Based on the configuration files and recovery configuration process information of the node devices in the network topology to be rebuilt, the configuration information of the node devices in the target network topology is determined; The target network topology is established based on the network structure of the target network topology and the configuration information of the node devices in the target network topology.
2. The method according to claim 1, characterized in that, Before obtaining the topology information of the network topology to be reconstructed, the method further includes: Based on the power status and operating system running status of the node devices in the network topology to be rebuilt, the running status of the node devices in the network topology to be rebuilt is determined. Using network detection tools, determine whether the node devices in the network topology to be reconstructed are allowed to access; If the node devices in the network topology to be rebuilt are in the powered-on state and access to the node devices in the network topology to be rebuilt is permitted, back up the configuration files of the node devices in the network topology to be rebuilt.
3. The method according to claim 2, characterized in that, The network detection tool includes the ping command. The process of using the network detection tool to determine whether node devices in the network topology to be reconstructed are accessible includes: If the node devices in the network topology to be rebuilt are configured with management Internet Protocol (IP) addresses, run the ping command based on the management IP address of the node devices in the network topology to be rebuilt. Based on the result of the ping command, it is determined whether the node devices in the network topology to be rebuilt are accessible.
4. The method according to claim 2, characterized in that, After backing up the configuration files of the node devices in the network topology to be rebuilt, the method further includes: Determine whether the node devices in the network topology to be rebuilt are recorded in the configuration recovery process table; the recovery process table includes at least one node device and the recovery configuration process information corresponding to the at least one node device; If the node device in the network topology to be rebuilt is not recorded in the configuration recovery process table, obtain the initial recovery configuration process information of the node device in the network topology to be rebuilt; The configuration recovery process table is updated based on the initial recovery configuration process information of the node devices in the network topology to be rebuilt.
5. The method according to claim 4, characterized in that, The step of updating the configuration recovery process table based on the initial recovery configuration process information of the node devices in the network topology to be rebuilt includes: Obtain device usage information of node devices in the network topology to be rebuilt; the device usage information includes instruction operation specifications of node devices in the network topology to be rebuilt. Verify the reliability of the initial recovery configuration process information based on the device usage information; If the initial recovery configuration process information passes reliability verification, the initial recovery configuration process information will be determined as the recovery configuration process information for the node devices in the network topology to be rebuilt in the configuration recovery process table.
6. The method according to any one of claims 1-5, characterized in that, The topology information also includes at least one of the following: topology name, node name, device name, and device management IP.
7. A network topology establishment device, characterized in that, The device includes an acquisition unit and a processing unit: The acquisition unit is used to acquire topology information of the network topology to be reconstructed; the topology information includes the connection relationships between network nodes, the device information of the node devices corresponding to the network nodes, and the configuration files of the node devices; the device information includes device type and recovery configuration process information; the recovery configuration process information includes process information for restoring the target configuration of the node devices; The processing unit is used to construct the network structure of the target network topology based on the connection relationships between network nodes in the network topology to be reconstructed and the device types of the node devices in the network topology to be reconstructed; the target network topology has the same device type as the node devices corresponding to the same network nodes in the network topology to be reconstructed. The processing unit is used to determine the configuration information of the node devices in the target network topology based on the configuration files and recovery configuration process information of the node devices in the network topology to be rebuilt. The processing unit is used to establish the target network topology based on the network structure of the target network topology and the configuration information of the node devices in the target network topology.
8. A network topology establishment device, characterized in that, include: A processor and a memory; wherein the memory is used to store computer execution instructions, and when the network topology establishment device is running, the processor executes the computer execution instructions stored in the memory to cause the network topology establishment device to perform the network topology establishment method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes instructions that, when executed by the network topology establishment apparatus, cause the computer to perform the network topology establishment method as described in any one of claims 1-6.
10. A computer program product containing instructions, characterized in that, When the instructions are executed on a computer device, the computer device performs the network topology establishment method as described in any one of claims 1-6.
Citation Information
Patent Citations
Control plane recovery method and device, control node and storage medium
CN114500289A
Networking method and device, electronic equipment and computer readable storage medium
CN116886648A