Network topology establishment method and device and storage medium

By obtaining and analyzing network topology information and automatically building and configuring the target network topology, the problem of complex configuration and high error rate of manual recovery network equipment is solved, and the configuration recovery efficiency is improved.

CN119996217AActive Publication Date: 2025-05-13CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510378108.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-27
Publication Date
2025-05-13
Estimated Expiration
2045-03-27

AI Technical Summary

Technical Problem

With the complexity of network topology and diversification of network equipment, the configuration of artificial recovery of network equipment has problems such as complex and cumbersome operation and high error rate.

Method used

By obtaining the topology information of the network topology to be rebuilt, including the connection relationship between network nodes, device information and configuration files of node devices, the network structure of the target network topology is constructed, and the configuration information of the node devices in the target network topology is determined based on the configuration file and recovery configuration process information, the configuration information of the node devices in the target network topology is determined, thereby automatically establishing the target network topology.

Benefits of technology

There is no need to manually configure network equipment, which avoids the high error rate caused by manual configuration and time-consuming and labor-intensive operation, and improves the configuration recovery efficiency of network equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996217A_ABST
    Figure CN119996217A_ABST
Patent Text Reader

Abstract

The invention discloses a network topology establishment method and device and a storage medium, relates to the field of communication, is used for improving the efficiency of network topology establishment, and comprises the following steps: obtaining topology information of a to-be-reconstructed network topology; constructing a network structure of the target network topology based on the connection relationship between the network nodes in the to-be-reconstructed network topology and the equipment type of the node equipment in the to-be-reconstructed network topology; the equipment types of node equipment corresponding to the same network nodes in the target network topology and the to-be-reconstructed network topology are the same; determining configuration information of the node equipment in the target network topology based on the configuration file and the recovery configuration flow information of the node equipment in the to-be-reconstructed network topology; and establishing the target network topology according to the network structure of the target network topology and the configuration information of the node equipment in the target network topology. The method and the device are applied to a network topology establishment process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a method, device and storage medium for establishing a network topology. Background Art

[0002] In the current network environment, users are increasingly relying on the Internet for daily communication, leisure, remote work and other daily activities. The Internet has gradually become an indispensable part of people's daily life. The stability of the network environment and emergency recovery measures in the face of network failures are the current key tasks of network security.

[0003] In the related art, technicians input commands to set the configuration commands of the recovery equipment, thereby restoring the configuration of the network equipment and ensuring the stability of the network. However, with the complexity of network topology and the diversification of network equipment, manual recovery of the configuration of network equipment has the problems of complicated operation and high error rate. Therefore, how to improve the efficiency of network equipment configuration recovery is a technical problem that still needs to be solved. Summary of the invention

[0004] The present application provides a method, device and storage medium for establishing a network topology, which can improve the efficiency of establishing a network topology.

[0005] In a first aspect, the present application provides a network topology establishment method, comprising: a network topology establishment device obtains topology information of a network topology to be rebuilt; the topology information includes a connection relationship between network nodes, device information of node devices corresponding to the network nodes, and a configuration file of the node devices; the device information includes device type and configuration recovery process information; the configuration recovery process information includes process information for restoring a target configuration of the node devices; the network topology establishment device constructs a network structure of a target network topology based on the connection relationship between network nodes in the network topology to be rebuilt and the device type of the node devices in the network topology to be rebuilt; the target network topology has the same device type as the node devices corresponding to the same network node in the network topology to be rebuilt; the network topology establishment device determines the configuration information of the node devices in the target network topology based on the configuration file of the node devices in the network topology to be rebuilt and the configuration recovery process information; the network topology establishment device establishes 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.

[0006] In one possible implementation, the operating status of the node devices in the network topology to be rebuilt is determined based on the power status and the operating system operating status of the node devices in the network topology to be rebuilt; through a network detection tool, it is determined whether access is allowed to 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 the power-on state and the node devices in the network topology to be rebuilt are allowed to be accessed, the configuration files of the node devices in the network topology to be rebuilt are backed up.

[0007] In one possible implementation, when the node device in the network topology to be rebuilt is configured with a management Internet Protocol IP, a ping command is run based on the management IP of the node device in the network topology to be rebuilt; based on the running result of the ping command, it is determined whether the node device in the network topology to be rebuilt is accessible.

[0008] In one possible implementation, it is determined whether a node device in a network topology to be rebuilt is recorded in a configuration recovery process table; the recovery process table includes at least one node device and at least one recovery configuration process information corresponding to the node device; if the node device in the network topology to be rebuilt is not recorded in the configuration recovery process table, initial recovery configuration process information of the node device in the network topology to be rebuilt is obtained; and the configuration recovery process table is updated based on the initial recovery configuration process information of the node device 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 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; and when 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 a possible implementation manner, the topology information further includes at least one of the following: a topology name, a node name, a device name, and a management IP address of the device.

[0011] In a second aspect, the present application provides a network topology establishment device, including: an acquisition unit and a processing unit: the acquisition unit is used to acquire topology information of the network topology to be rebuilt; the topology information includes the connection relationship between network nodes, the device information of the node devices corresponding to the network nodes, and the configuration file 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 of 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 relationship between the network nodes in the network topology to be rebuilt and the device type of the node devices in the network topology to be rebuilt; the target network topology has the same device type as the node devices corresponding to the same network node in the network topology to be rebuilt; the processing unit is used to determine the configuration information of the node devices in the target network topology based on the configuration file of the node devices in the network topology to be rebuilt and the recovery configuration process information; the processing unit 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.

[0012] In one possible implementation, the processing unit is also used to determine the operating status of the node device in the network topology to be rebuilt based on the power status and the operating status of the operating system of the node device in the network topology to be rebuilt; the processing unit is also used to determine whether access is allowed to the node device in the network topology to be rebuilt through a network detection tool; the processing unit is also used to back up the configuration file of the node device in the network topology to be rebuilt when the operating status of the node device in the network topology to be rebuilt is the power-on state and the node device in the network topology to be rebuilt allows access.

[0013] In one possible implementation, when the node device in the network topology to be rebuilt is configured with a management Internet Protocol IP, a ping command is run based on the management IP of the node device in the network topology to be rebuilt; based on the running result of the ping command, it is determined whether the node device in the network topology to be rebuilt is accessible.

[0014] In one possible implementation, the processing unit is further used to determine whether a node device in the network topology to be rebuilt is recorded in a configuration recovery process table; the recovery process table includes at least one node device and at least one recovery configuration process information corresponding to the node device; the processing unit is further used to instruct the acquisition unit to acquire the initial recovery configuration process information of the node device in the network topology to be rebuilt when the node device in the network topology to be rebuilt is not recorded in the configuration recovery process table; the processing unit is further used to update the configuration recovery process table based on the initial recovery configuration process information of the node device in the network topology to be rebuilt.

[0015] In one possible implementation, the acquisition unit is also used to acquire device usage information of the node devices in the network topology to be rebuilt; the device usage information includes instruction operation specifications of the node devices in the network topology to be rebuilt; the processing unit is also used to verify the reliability of the initial recovery configuration process information based on the device usage information; the processing unit is also used to determine 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 when the initial recovery configuration process information passes the reliability verification.

[0016] In a possible implementation manner, the topology information further includes at least one of the following: a topology name, a node name, a device name, and a management IP address of the device.

[0017] In a third aspect, the present application provides a computer-readable storage medium storing one or more programs, wherein the one or more programs include instructions, which, when executed by an electronic device of the present application, enable the electronic device to perform a network topology establishment method as described in the first aspect and any possible implementation of the first aspect.

[0018] In a fourth aspect, the present application provides an electronic device, comprising: a processor and a memory; wherein the memory is used to store one or more programs, and the one or more programs include computer execution instructions. When the electronic device is running, the processor executes the computer execution instructions stored in the memory to enable the electronic device to perform the network topology establishment method described in the first aspect and any possible implementation method of the first aspect.

[0019] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the electronic device of the present application to execute the network topology establishment method as described in the first aspect and any possible implementation of the first aspect.

[0020] In a sixth aspect, the present application provides a chip system, which is applied to a network topology establishment device; the chip system includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected through a line; the interface circuit is used to receive a signal from a memory of the network topology establishment device and send a signal to the processor, the signal including a computer instruction stored in the memory. When the processor executes the computer instruction, the network topology establishment device executes the network topology establishment method as described in the first aspect and any possible design thereof.

[0021] In this application, the name of the above-mentioned network topology establishment device does not limit the device or functional unit itself. In actual implementation, these devices or functional units may appear with other names. As long as the functions of each device or functional unit are similar to those of this application, they are within the scope of the claims of this application and their equivalent technologies.

[0022] Based on the above technical solution, in the embodiment of the present application, the network topology establishment device obtains the topology information of the network topology to be reconstructed. Since the topology information includes the connection relationship between the network nodes and the device information of the node devices corresponding to the network nodes, the network topology establishment device can construct the network structure of the target network topology with the same device type as the node devices corresponding to the same network node in the network topology to be reconstructed based on the connection relationship between the network nodes in the network topology to be reconstructed and the device type of the node devices in the network topology to be reconstructed. Considering that the topology information also includes the configuration file of the node device, the network topology establishment device can determine the configuration information of the node devices in the target network topology based on the configuration file 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 according to 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, the present application does not need to manually configure the network device configuration, avoids the defects of high error rate and time-consuming and labor-intensive manual operation caused by manually configuring the network device configuration, and improves the configuration recovery efficiency of the network device. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A schematic diagram of the architecture of a network topology establishment system provided in an embodiment of the present application;

[0024] Figure 2 A schematic diagram of the structure of a network topology establishment device provided in an embodiment of the present application;

[0025] Figure 3 A flowchart of a method for establishing a network topology provided in an embodiment of the present application;

[0026] Figure 4 A flowchart of another method for establishing a network topology provided in an embodiment of the present application;

[0027] Figure 5 A flowchart of another method for establishing a network topology provided in an embodiment of the present application;

[0028] Figure 6 A flowchart of another method for establishing a network topology provided in an embodiment of the present application;

[0029] Figure 7 A flowchart of another method for establishing a network topology provided in an embodiment of the present application;

[0030] Figure 8 A flowchart of another method for establishing a network topology provided in an embodiment of the present application;

[0031] Fig. 9 A schematic diagram of the structure of another network topology establishment device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0033] In this article, the character " / " generally indicates that the objects before and after 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, rather than to describe a specific order of objects. For example, a first edge service node and a second edge service node are used to distinguish different edge service nodes, rather than to describe a characteristic order of edge service nodes.

[0035] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0036] In addition, in the embodiments of the present application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplarily" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present concepts in a specific way.

[0037] From the Ethernet bus topology in the 1970s to the star topology in the 1990s, and then to the mesh topology that is widely used today, network topology has undergone many important changes, and network topology has gradually changed from simple to complex. In the 21st century, Software Defined Network (SDN) as a new network architecture has achieved higher flexibility and programmability by separating the network control plane from the forwarding plane.

[0038] As network topology becomes increasingly complex, network topology disaster recovery, emergency response, migration, upgrade, verification and other scenarios also face huge challenges. In the current network environment, users are increasingly relying on the network for daily communication, leisure, remote office and other daily activities, and the network has gradually become an indispensable part of people's daily life. At the same time, with the rise of (IoT), hundreds of millions of device connections and an increasing number of mobile, desktop, car and other networked devices have been brought about, requiring new topological structures to effectively manage a large number of concurrent connections. This also faces huge challenges in the migration, upgrade and verification of network topology. Moreover, under the premise that the majority of users are currently very dependent on it, when upgrading and verifying the network topology, it cannot be operated directly in the existing network environment, and the current environment needs to be cloned for testing and verification and network upgrade. At the same time, in response to disaster recovery, emergency handling, and before the formal network upgrade, it is also necessary to back up the current network topology information to achieve the purpose of rapid recovery. Therefore, the stability of the network environment and the emergency recovery measures in the face of network failures are the key tasks of current network security.

[0039] In the related art, technicians input commands to set the configuration commands of the recovery equipment, thereby restoring the configuration of the network equipment and ensuring the stability of the network. However, with the complexity of network topology and the diversification of network equipment, manual recovery of the configuration of network equipment has the problems of complicated operation and high error rate. Therefore, how to improve the efficiency of network equipment configuration recovery is a technical problem that still needs to be solved.

[0040] Based on the above technical solution, in the embodiment of the present application, the network topology establishment device obtains the topology information of the network topology to be reconstructed. Since the topology information includes the connection relationship between the network nodes and the device information of the node devices corresponding to the network nodes, the network topology establishment device can construct the network structure of the target network topology with the same device type as the node devices corresponding to the same network node in the network topology to be reconstructed based on the connection relationship between the network nodes in the network topology to be reconstructed and the device type of the node devices in the network topology to be reconstructed. Considering that the topology information also includes the configuration file of the node device, the network topology establishment device can determine the configuration information of the node devices in the target network topology based on the configuration file 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 according to 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, the present application does not need to manually configure the network device configuration, avoids the defects of high error rate and time-consuming and labor-intensive manual operation caused by manually configuring the network device configuration, and improves the configuration recovery efficiency of the network device.

[0041] For example, Figure 1 As shown, Figure 1 This is a schematic diagram of the architecture of a network topology establishment system provided in the present application. The network topology establishment system 10 includes: a data acquisition device 101 and a network topology establishment apparatus 102.

[0042] The data collection device 101 is to reconstruct topology information of the network topology.

[0043] The network topology establishment device 102 obtains the topology information of the network topology to be reconstructed through the data acquisition device 101; based on the connection relationship between the network nodes in the network topology to be reconstructed and the device type of the node devices in the network topology to be reconstructed, the network structure of the target network topology is constructed; the device type of the node devices corresponding to the same network nodes in the target network topology is the same as that in the network topology to be reconstructed. Based on the configuration files and the configuration recovery process information of the node devices in the network topology to be reconstructed, the configuration information of the node devices in the target network topology is determined. The target network topology is established according to the network structure of the target network topology and the configuration information of the node devices in the target network topology.

[0044] Optionally, the topology information includes the connection relationship between network nodes, the device information of the node device corresponding to the network node and the configuration file of the node device; the device information includes the device type and configuration recovery process information; the configuration recovery process information includes process information for restoring the target configuration of the node device.

[0045] Optionally, the physical device of the data collection device 101 is a terminal, and the physical device of the network topology establishment device 102 is a server.

[0046] Optionally, the above-mentioned terminal may be a device that provides voice and / or data connectivity to a user, a handheld device with wireless connection function, 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-built-in or vehicle-mounted mobile device that exchanges language and / or data with a radio access network, such as a mobile phone, a tablet computer, a laptop computer, a netbook, a personal digital assistant (PDA).

[0047] Optionally, the above-mentioned server can be a server in a server cluster (consisting of multiple servers), or a chip in the server, or a system on a chip in the server, or can be implemented by a virtual machine (VM) deployed on a physical machine, which is not limited in the embodiments of the present application.

[0048] The embodiment of the present application provides a network topology establishment device, which is used to execute the network topology establishment system provided by the embodiment of the present application. Figure 2 The structure diagram of a network topology establishment device provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the network topology establishing 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, the memory 203 and the communication interface 204 may 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 the present application, such as one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA).

[0050] The communication link 202 may include a pathway for transmitting information between the above-mentioned 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 types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to include or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0053] In one possible design, the memory 203 can exist independently of the processor 201, that is, the memory 203 can be a memory outside the processor 201. In this case, the memory 203 can be connected to the processor 201 through the communication line 202, and is used to store execution instructions or application code, and the processor 201 controls the execution to implement the network topology establishment method provided in the following embodiment of the present application. In another possible design, the memory 203 can also be integrated with the processor 201, that is, the memory 203 can be the internal memory of the processor 201, for example, the memory 203 is a high-speed cache, which can be used to temporarily store some data and instruction information.

[0054] As an implementation method, the processor 201 may include one or more CPUs, such as Figure 2 As another possible implementation, the network topology establishment device 200 may include multiple processors, such as Figure 2 As another possible implementation, the network topology establishment apparatus 200 may further include an output device 205 and an input device 206.

[0055] Below, combined with the attached Figure 3 The network topology establishment method provided in the embodiment of the present application is described in detail. Figure 3 As shown, the network topology establishment method includes S301-S304.

[0056] S301. A network topology establishing device obtains topology information of a network topology to be rebuilt.

[0057] Among them, the topology information includes the connection relationship 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 of restoring the target configuration of the node device.

[0058] In a possible implementation, the network topology establishing device obtains topology information of the network topology to be rebuilt from the backup server.

[0059] Optionally, the topology information also includes at least one of the following: topology name, node name, device name, and management IP address of the device.

[0060] It needs to 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 the device is configured with a management IP can its configuration file be automatically backed up over the network.

[0061] S302: The network topology establishing device constructs a network structure of a target network topology based on the connection relationship between network nodes in the network topology to be rebuilt and the device types of node devices in the network topology to be rebuilt.

[0062] The device types of the node devices corresponding to the same network nodes in the target network topology and the network topology to be rebuilt are the same.

[0063] Optionally, there is a one-to-one correspondence between network nodes and devices.

[0064] In one possible implementation, the network topology establishing device determines the device type of the node device in the network topology to be rebuilt, connects the node devices in the network topology to be rebuilt based on the connection relationship between the network nodes in the network topology to be rebuilt, and generates the network structure of the target network topology.

[0065] It can be understood that the network structure includes node devices and connection relationships between node devices.

[0066] S303: The network topology establishing device determines configuration information of the node devices in the target network topology based on the configuration files and the configuration recovery process information of the node devices in the network topology to be rebuilt.

[0067] In a possible implementation, the network topology establishing device runs the configuration files of the node devices in the network topology to be rebuilt by restoring the configuration process information to determine the configuration information of the node devices in the target network topology.

[0068] Optionally, the recovery configuration process information includes computer instructions.

[0069] S304: The network topology establishing device establishes 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.

[0070] In a possible implementation, the network topology establishing 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 to establish the target network topology.

[0071] Optionally, the target network topology includes a physical topology or a virtual topology.

[0072] It should be explained that the physical topology physically connects devices with cables, representing the actual wiring and connection layout; the virtual topology is a geometric structure composed of elements such as faces, edges and vertices, which is used to describe the boundaries of the model in simulation analysis. It can ignore or simplify the details of the model as needed, making it easier to generate a mesh with better quality.

[0073] In a possible implementation, the network topology establishing device establishes a target network topology on an openstack cloud platform.

[0074] The above scheme brings at least the following beneficial effects: the network topology establishment device obtains the topology information of the network topology to be reconstructed. Since the topology information includes the connection relationship between the network nodes and the device information of the node devices corresponding to the network nodes, the network topology establishment device can construct the network structure of the target network topology with the same device type as the node devices corresponding to the same network node in the network topology to be reconstructed based on the connection relationship between the network nodes in the network topology to be reconstructed and the device type of the node devices in the network topology to be reconstructed. Considering that the topology information also includes the configuration file of the node device, the network topology establishment device can determine the configuration information of the node devices in the target network topology based on the configuration file 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 according to 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, the present application does not need to manually configure the network device configuration, avoids the defects of high error rate and time-consuming and labor-intensive manual operation caused by manual configuration of the network device configuration, and improves the configuration recovery efficiency of the network device.

[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 establishing device determines the operating status of the node devices in the network topology to be rebuilt based on the power status and the operating system operating status of the node devices in the network topology to be rebuilt.

[0077] In a possible implementation, the network topology establishment device determines the power state through the state of the power indicator light of the node device, and determines the operating system operating state by detecting the node device operating information. Then, the operating state of the node device in the network topology to be rebuilt is determined according to the power state and the operating system operating state of the node device in the network topology to be rebuilt.

[0078] Optionally, the node device operation information includes at least one of the following: CPU usage, memory occupancy, and disk input / output (I / O) information.

[0079] S402: The network topology establishing device determines whether access is allowed to a node device in the network topology to be rebuilt through a network detection tool.

[0080] Optionally, use the ping command to detect the network.

[0081] In a possible implementation, the network topology establishment device determines whether the management IP of the node device in the network topology to be rebuilt is reachable through a network detection tool. If the management IP of the node device in the network topology to be rebuilt is reachable, the network topology establishment device determines that the node device in the network topology to be rebuilt is allowed to be accessed; if the management IP of the node device in the network topology to be rebuilt is not reachable, the network topology establishment device determines that the node device in the network topology to be rebuilt is not allowed to be accessed.

[0082] It needs to be explained 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 reply packets. The ping command can not only help you confirm whether the target host is reachable, but also provide network performance indicators such as Round-Trip Time (RTT).

[0083] S403: When the running state of the node device in the network topology to be rebuilt is the power-on state and the node device in the network topology to be rebuilt allows access, the network topology establishing device backs up the configuration files of the node device in the network topology to be rebuilt.

[0084] In a possible implementation, the network topology establishing device obtains topology information and configuration files of node devices in the network topology to be rebuilt, and backs up the topology information and configuration files of node devices to a backup database.

[0085] It should be explained that the network topology establishment device accesses each node device in the network topology to be rebuilt through the File Transfer Protocol (FTP) to download the configuration file of each node device.

[0086] Table 1. Network topology backup table

[0087]

[0088]

[0089] Exemplarily, as shown in Table 1, during the first backup in topology 1, the device of node 1 is manufactured by the first communications company, the device model is the first device model, the management IP is 192.168.1.10, and the configuration information is the configuration information of node 1; the device of node 2 is manufactured by the second communications company, the device model is the second device model, the management IP is 192.168.1.20, and the configuration information is the configuration information of node 2; the device of node 3 is manufactured by the third communications company, the device model is the third device model, the management IP is 192.168.1.30, and the configuration information is the configuration information of node 3; the device of node 4 is manufactured by the fourth communications company, the device model is the fourth device model, the management IP is 192.168.1.40, and the configuration information is the configuration information of node 4; the device of node 5 is manufactured by the fifth communications company, the device model is the fifth device model, the management IP is 192.168.1.50, and the configuration information is the configuration information of node 5.

[0090] The above scheme brings at least the following beneficial effects: In the embodiment of the present application, the network topology establishment device obtains the information of each node in the network topology and backs up each node in the network topology. In this way, when the user needs to establish the topology again, the main need is to quickly and accurately establish the network topology based on the backed-up information of each node, thereby improving the efficiency of establishing the network topology.

[0091] In one possible implementation, combining Figure 4 ,like Figure 5 As shown, in S402, the network topology establishing device determines whether access is allowed to a node device in the to-be-reconstructed network topology by using a network detection tool, which can be specifically implemented through the following S501-S502.

[0092] S501. In the case where a node device in the network topology to be rebuilt is configured with a management Internet Protocol IP, a network topology establishing apparatus runs a ping command based on the management IP of the node device in the network topology to be rebuilt.

[0093] In a possible implementation, the network topology establishment device obtains the management IP of the node device in the network topology to be rebuilt, and sends a data packet to the node device through the management IP of the node device and the ICMP protocol. In this way, after receiving the data packet, the node device sends an ICMP echo reply data packet to the ping command.

[0094] Optionally, the data packet is an ICMP echo request data packet.

[0095] S502: The network topology establishing device determines whether a node device in the network topology to be rebuilt is accessible based on the running result of the ping command.

[0096] In one possible implementation, when the network quality in the running result of the ping command is greater than or equal to the preset network quality, the network topology establishment device determines that the node device in the network topology to be rebuilt is accessible; when the network quality in the running result of the ping command is less than the preset network quality, the network topology establishment device determines that the node device in the network topology to be rebuilt is inaccessible.

[0097] It should be explained that after receiving the ICMP echo reply data packet, the ping command determines the data transmission information based on the ICMP echo request data packet and the ICMP echo reply data packet. The ping command determines the network quality based on the data transmission information.

[0098] Optionally, the data transmission information includes at least one of the following: data sending duration, data receiving duration, data loss information, data sending times, data packet size, and data packet format.

[0099] The above scheme brings at least the following beneficial effects: In the embodiment of the present application, the network topology establishment device runs a ping command based on the management IP of the node device in the network topology to be rebuilt. In this way, the network topology establishment device determines whether the node device in the network topology to be rebuilt is accessible based on the running result of the ping command, thereby ensuring the communication of the node device in the network topology to be rebuilt and improving the backup efficiency of the node data.

[0100] In one possible implementation, combining Figure 4 ,like Figure 6 As shown, after the network topology establishment device backs up the configuration files of the node devices in the network topology to be rebuilt in S403, the network topology establishment device updates the configuration recovery process table. The process of the network topology establishment device updating the configuration recovery process table can be specifically implemented through the following S601-S603.

[0101] S601: The network topology establishing device determines whether a node device in the network topology to be rebuilt is recorded in a configuration recovery process table.

[0102] The recovery process table includes at least one node device and recovery configuration process information corresponding to at least one node device.

[0103] In a possible implementation, the network topology establishment device queries from the configuration recovery process table whether 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 there is, 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 not, 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: When the node device in the network topology to be rebuilt is not recorded in the configuration recovery process table, the network topology establishment device obtains initial recovery configuration process information of the node device in the network topology to be rebuilt.

[0105] In a possible implementation, the network topology establishing 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 establishing 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 establishing 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, in the configuration recovery process table, the recovery configuration step for the first device model of the first communication company is system-view configuration replace file config.cfg; the recovery configuration step for the second device model of the second communication company is system-view startup saved-configurationconfig.cfg; the recovery configuration step for the third device model of the third communication company is system-view loadconfiguration config.cfg; the recovery configuration step for the fourth device model of the fourth communication company is system-view load configuration config.cfg; and the recovery configuration step for the fifth device model of the fifth communication company is enable load configuration config.cfg.

[0111] The above scheme brings at least the following beneficial effects: in the embodiment of the present 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 node device recovery configuration steps 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 in which the network topology establishing 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 can be specifically implemented through the following S701-S703.

[0113] S701. A network topology establishing device obtains device usage information of node devices in a network topology to be rebuilt.

[0114] The device usage information includes instruction operation specifications of node devices in the network topology to be rebuilt.

[0115] In a possible implementation, the network topology establishing device obtains device usage information of the node devices in the network topology to be rebuilt from a network server of a manufacturer to which the node devices in the network topology to be rebuilt belong.

[0116] S702: The network topology establishing device verifies the reliability of the initial recovery configuration process information based on the usage information.

[0117] In a possible implementation, the network topology establishing 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 according to the running result.

[0118] S703: When the initial recovery configuration process information passes the reliability verification, the network topology establishing device determines the initial recovery configuration process information as the recovery configuration process information of the node device in the network topology to be rebuilt in the configuration recovery process table.

[0119] In a possible implementation, the network topology establishing device stores the initial recovery configuration process information and the node devices in a configuration recovery process table, and establishes a corresponding relationship between the initial recovery configuration process information and the node devices.

[0120] In another possible implementation, the network topology establishing device deletes the preset recovery configuration process information corresponding to the node device, stores the initial recovery configuration process information in the configuration recovery process table, and establishes a corresponding relationship between the initial recovery configuration process information and the node device.

[0121] For example, Figure 8As shown, during the process of backing up the network topology to be rebuilt, the network topology establishing device determines whether the network topology to be rebuilt is a physical topology. When the network topology to be rebuilt is not a physical topology, the network topology establishing device obtains and saves the basic information of the network topology from the virtualization platform; when the network topology to be rebuilt is a physical topology, the network topology establishing device records the basic information of each node in the network topology in Table 1. The network topology establishing device verifies the network topology, downloads and saves the configuration files of each order through the FTP tool, and checks whether the device model of the newly added node is recorded in the configuration recovery process table 2. When it is checked that the device model of the newly added node is recorded in Table 2, the backup process is terminated. When it is checked that the device model of the newly added node is not recorded in Table 2, the model configuration recovery process of the newly added node is collected and verified, and the newly added configuration recovery process is updated to Table 2.

[0122] The above scheme brings at least the following beneficial effects: In the embodiment of the present application, the network topology establishment device uses information to verify the reliability of the initial recovery configuration process information, so that the initial recovery configuration process information can be guaranteed to be used normally.

[0123] The embodiment of the present application can divide the network topology establishment device into functional modules or functional units according to the above method example. For example, each functional module or functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation.

[0124] For example, Fig. 9 FIG. 1 is a schematic diagram of another network topology establishment device according to an embodiment of the present application. The network topology establishment device 90 includes: an acquisition unit 901 and a processing unit 902 .

[0125] An acquisition unit 901 is used to acquire topology information of a network topology to be rebuilt; the topology information includes connection relationships between network nodes, device information of node devices corresponding to network nodes, and configuration files of node devices; the device information includes device types and configuration recovery process information; the configuration recovery process information includes process information for recovering target configurations of node devices; a processing unit 902 is used to construct a network structure of a target network topology based on connection relationships between network nodes in the network topology to be rebuilt and device types of node devices in the network topology to be rebuilt; 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 rebuilt; 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 of the node devices in the network topology to be rebuilt and the configuration recovery process information; 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, processing unit 902 is also used to determine the running status of the node device in the network topology to be rebuilt based on the power status and the operating system running status of the node device in the network topology to be rebuilt; processing unit 902 is also used to determine whether access is allowed to the node device in the network topology to be rebuilt through a network detection tool; processing unit 902 is also used to back up the configuration file of the node device in the network topology to be rebuilt when the running status of the node device in the network topology to be rebuilt is the power-on state and the node device in the network topology to be rebuilt allows access.

[0127] Optionally, when the node device in the network topology to be rebuilt is configured with a management Internet Protocol IP, a ping command is run based on the management IP of the node device in the network topology to be rebuilt; based on the running result of the ping command, it is determined whether the node device in the network topology to be rebuilt is accessible.

[0128] Optionally, processing unit 902 is also used to determine whether a node device in the network topology to be rebuilt is recorded in the configuration recovery process table; the recovery process table includes at least one node device and at least one recovery configuration process information corresponding to the node device; processing unit 902 is also used to instruct acquisition unit 901 to acquire initial recovery configuration process information of the node device in the network topology to be rebuilt when the node device in the network topology to be rebuilt is not recorded in the configuration recovery process table; processing unit 902 is also used to update the configuration recovery process table based on the initial recovery configuration process information of the node device in the network topology to be rebuilt.

[0129] Optionally, the acquisition unit 901 is also used to obtain device usage information of the node devices in the network topology to be rebuilt; the device usage information includes instruction operation specifications of the node devices in the network topology to be rebuilt; the processing unit 902 is also used to verify the reliability of the initial recovery configuration process information based on the device usage information; the processing unit 902 is also used to determine 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 when the initial recovery configuration process information passes the reliability verification.

[0130] Optionally, the topology information also includes at least one of the following: topology name, node name, device name, and management IP address of the device.

[0131] An embodiment of the present application also provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instruction to implement the network topology establishment method in the above method embodiment.

[0132] An embodiment of the present application provides a computer program product including instructions. When the instructions are executed on a computer, the computer is enabled to execute the industrial terminal switching method in the above method embodiment.

[0133] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), registers, hard disks, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any other form of computer-readable storage medium in a suitable combination of the above, or numerical values ​​in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an Application Specific Integrated Circuit (ASIC). In embodiments of the present invention, computer-readable storage media may be any tangible media 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-mentioned method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present application will not be repeated here.

[0135] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for establishing a network topology, characterized in that: The method comprises: Acquire topology information of the network topology to be rebuilt; the topology information includes connection relationships between network nodes, device information of node devices corresponding to the network nodes, and configuration files of the node devices; the device information includes device type and restoration configuration process information; the restoration configuration process information includes process information for restoring the target configuration of the node device; Based on the connection relationship between the network nodes in the network topology to be rebuilt and the device type of the node devices in the network topology to be rebuilt, the network structure of the target network topology is constructed; the device type of the node devices corresponding to the same network nodes in the target network topology and the network topology to be rebuilt is the same; Determine configuration information of node devices in the target network topology based on configuration files and configuration recovery process information of node devices in the network topology to be rebuilt; The target network topology is established according to 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: Determine the operating status of the node devices in the network topology to be rebuilt based on the power status and the operating system operating status of the node devices in the network topology to be rebuilt; Determine, by means of a network detection tool, whether access is allowed to a node device in the network topology to be reconstructed; When the running state of the node device in the network topology to be rebuilt is the power-on state and the node device in the network topology to be rebuilt allows access, the configuration file of the node device in the network topology to be rebuilt is backed up.

3. The method according to claim 2, characterized in that The network detection tool includes a ping command, and determining whether a node device in the network topology to be reconstructed is accessible by using the network detection tool includes: In the case where the node device in the network topology to be rebuilt is configured with a management Internet Protocol IP, running a ping command based on the management IP of the node device in the network topology to be rebuilt; Based on the running result of the ping command, it is determined whether the node device in the network topology to be rebuilt is 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 device in the network topology to be rebuilt is recorded in a configuration recovery process table; the recovery process table includes at least one node device and recovery configuration process information corresponding to the at least one node device; In the case where the node device in the network topology to be rebuilt is not recorded in the configuration recovery process table, obtaining 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 updating of the configuration recovery process table based on the initial recovery configuration process information of the node device in the network topology to be rebuilt includes: 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; Verifying the reliability of the initial recovery configuration process information based on the device usage information; In the case where the initial recovery configuration process information passes the reliability verification, the initial recovery configuration process information is determined in the configuration recovery process table as the recovery configuration process information of the node device in the to-be-reconstructed network topology.

6. The method according to any one of claims 1 to 5, characterized in that: The topology information also includes at least one of the following: topology name, node name, device name, and management IP address of the device.

7. A network topology establishment device, characterized in that: The device comprises an acquisition unit and a processing unit: The acquisition unit is used to acquire topology information of the network topology to be rebuilt; the topology information includes connection relationships between network nodes, device information of node devices corresponding to the network nodes, and configuration files of the node devices; the device information includes device type and restoration configuration process information; the restoration configuration process information includes process information for restoring the target configuration of the node device; The processing unit is used to construct a network structure of a target network topology based on the connection relationship between the network nodes in the network topology to be reconstructed and the device type of the node device in the network topology to be reconstructed; the device type of the node device corresponding to the same network node in the target network topology and the network topology to be reconstructed is the same; 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 the restoration 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 according to 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-executable instructions, and when the network topology establishment device is running, the processor executes the computer-executable instructions stored in the memory, so that the network topology establishment device executes the network topology establishment method described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes instructions, which, when executed by a network topology establishment device, cause the computer to execute the network topology establishment method according to any one of claims 1 to 6.

10. A computer program product comprising instructions, characterized in that When the instructions are executed on a computer device, the computer device is caused to execute the network topology establishment method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Control plane recovery method and device, control node and storage medium

    CN114500289A

  • Method, device and system for constructing network topology structure

    CN115484169A

  • Method and device for restoring network topology

    CN116155739A

  • Networking method and device, electronic equipment and computer readable storage medium

    CN116886648A

  • Network topology structure generation method and device, equipment and storage medium

    CN118590398A