A service migration method and device for a faulty network device and a medium
By automatically identifying and generating backup configuration information through the SDN controller, the problem of low service migration efficiency when network equipment fails is solved, and fast and automatic service recovery is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR NETWORK TECH (SHANDONG) CO LTD
- Filing Date
- 2023-04-17
- Publication Date
- 2026-06-19
AI Technical Summary
When SDN controllers fail, they need to be manually reconfigured, resulting in low efficiency in migrating services from the failed network devices.
The SDN controller determines the replacement network device by checking whether the faulty network device has completed configuration backup. It then obtains topology information through the link layer discovery protocol, generates and sends backup configuration information to the replacement network device, and automatically completes the service migration.
It improves the efficiency of service recovery from faulty network equipment, saves manpower and time costs, and reduces the impact of network equipment failures on services.
Smart Images

Figure CN116455769B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network equipment technology, and in particular to a service migration method, device and medium for a faulty network device. Background Technology
[0002] With the continuous development of network technology and the constant changes in business models, more and more enterprises are choosing to build data centers. In scenarios such as deploying data centers, which involve a large number of network-related devices, more enterprises are choosing to introduce SDN controllers. Through the automatic configuration and control functions of SDN controllers for network devices, labor and management costs are reduced, and the technical requirements for operation and maintenance personnel are also reduced to a certain extent.
[0003] Currently, when configuring network devices, SDN controllers typically automatically distribute configurations based on the obtained network conditions. However, if a network device experiences a serious failure, such as hardware damage preventing it from booting, it usually needs to be replaced. In this case, the SDN controller needs to manually restore the configuration information of the faulty network device, which is cumbersome and time-consuming, resulting in low efficiency in migrating services from the faulty network device. Summary of the Invention
[0004] This application provides a service migration method, device, and medium for faulty network devices to solve the problem of low service migration efficiency of faulty network devices.
[0005] The embodiments of this application adopt the following technical solutions:
[0006] On one hand, this application provides a service migration method for a faulty network device. The method includes: an SDN controller identifying a faulty network device in a data center network and determining whether the faulty network device has completed backup of its network configuration information; if so, determining a replacement network device to replace the faulty network device; managing the replacement network device in the data center network according to its management information; determining the first link topology information of the replacement network device by activating its link layer discovery protocol; receiving a request to enable the fault recovery service migration function of the faulty network device and obtaining backup configuration information of the faulty network device; the backup configuration information including the second link topology information and service configuration information of the faulty network device; determining whether the first link topology information and the second link topology information are consistent; if so, generating a service configuration for the replacement network device based on the backup configuration information and the first link topology information; and distributing the service configuration to the replacement network device to execute the services of the faulty network device through the replacement network device.
[0007] In one example, before determining whether the faulty network device has completed the backup of the network configuration information, the method further includes: enabling the automatic configuration backup function of the faulty network device based on the automatic configuration backup request; performing network configuration backup on the faulty network device within a preset period to generate backup configuration information of the faulty network device; and binding the backup configuration information to the faulty network device.
[0008] In one example, the step of backing up the network configuration of the faulty network device within a preset period and generating backup configuration information for the faulty network device specifically includes: logging into the faulty network device; issuing a backup command to the faulty network device within the preset period, so that the faulty network device sends the backup file to a specified directory of the backup server according to the backup command; receiving a backup success message from the faulty network device; querying the backup file in the specified directory of the backup server; the backup success message includes the backup file; if the backup file is found in the specified directory, it is determined that the backup of the faulty network device was successful; and identifying the backup file of the faulty network device as the backup configuration information of the faulty network device.
[0009] In one example, before enabling the automatic configuration backup function of the faulty network device based on the configuration automatic backup request, the method further includes: determining the management information of the backup server, wherein the management information of the backup server includes at least one of server name, server IP address, management username, and management password; and constructing the automatic configuration backup function interface of the faulty network device based on the management information of the backup server.
[0010] In one example, determining whether the first link topology information and the second link topology information are consistent specifically includes: identifying the neighboring network devices of the faulty network device in the data center network; obtaining the first link topology information between the faulty network device and the neighboring network devices, and determining the first port connecting the faulty network device and the neighboring network devices based on the first link topology information; obtaining the second link topology information between the replacement network device and the neighboring network devices, and determining the second port connecting the faulty network device and the neighboring network devices based on the second link topology information; comparing the first port and the second port; if the first port and the second port are consistent, then the first link topology information and the second link topology information are consistent; if the first port and the second port are inconsistent, then the first link topology information and the second link topology information are inconsistent.
[0011] In one example, the method further includes: if the first link topology information is inconsistent with the second link topology information, then determining an inconsistent first port and an inconsistent second port; in the backup configuration information, determining the service configuration information corresponding to the inconsistent first port; replacing the inconsistent first port bound to the corresponding service configuration information with the inconsistent second port, generating a mapping relationship between the corresponding service configuration information and the inconsistent second port, so as to update the backup configuration information; and generating the service configuration of the replacement network device based on the updated backup configuration information and the first link topology information.
[0012] In one example, before the SDN controller identifies a faulty network device in the data center network, the method further includes: when the network device to be managed completes its initial management configuration, the SDN controller establishes a physical link and a network management network; based on the physical link and the network management network, it connects to the network device respectively through network protocols; determines the management information of the network device; and manages the network device based on the management information of the network device.
[0013] In one example, the step of managing the network device based on its management information specifically includes: determining that the management information of the network device includes at least one of the following: a management network IP address reachable by the SDN controller, a management username and password, and SNMP configuration information; verifying the management information; and if the verification is successful, saving the management information of the network device to the SDN database to manage the network device.
[0014] On the other hand, this application provides a service migration device for a faulty network device, applied to an SDN controller, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: determine a faulty network device in a data center network; determine whether the faulty network device has completed the backup of its network configuration information; if so, determine a replacement network device to be replaced by the faulty network device; manage the replacement network device in the data center network according to the management information of the replacement network device; determine the first link topology information of the replacement network device by activating the link layer discovery protocol of the replacement network device; receive a request to enable the fault recovery service migration function of the faulty network device, and obtain the backup configuration information of the faulty network device; the backup configuration information includes the second link topology information and service configuration information of the faulty network device; determine whether the first link topology information and the second link topology information are consistent; if so, generate the service configuration of the replacement network device according to the backup configuration information and the first link topology information; and distribute the service configuration to the replacement network device to execute the services of the faulty network device through the replacement network device.
[0015] On the other hand, embodiments of this application provide a non-volatile computer storage medium for service migration of faulty network devices, storing computer-executable instructions applied to an SDN controller. The computer-executable instructions are configured to: identify a faulty network device in a data center network; determine whether the faulty network device has completed backup of its network configuration information; if so, identify a replacement network device to be replaced; manage the replacement network device in the data center network according to its management information; determine the first link topology information of the replacement network device by activating its link layer discovery protocol; receive a request to enable the fault recovery service migration function of the faulty network device, and obtain the backup configuration information of the faulty network device; the backup configuration information includes the second link topology information and service configuration information of the faulty network device; and determine whether the first link topology information and the second link topology information are consistent.
[0016] If so, the service configuration of the replacement network device is generated based on the backup configuration information and the first link topology information; the service configuration is then sent to the replacement network device so that the services of the faulty network device can be executed through the replacement network device.
[0017] The above-described technical solutions adopted in the embodiments of this application can achieve the following beneficial effects:
[0018] When a network device in a data center network fails, if the faulty network device has already been backed up through the SDN controller, the SDN controller can quickly replace the faulty network device and automatically distribute the service configuration to the replacement network device. This reduces the impact of network device failure on services. The SDN controller automatically generates the service configuration of the replacement network device based on the backup configuration information and link topology, automatically completing the service migration. This saves manpower and time costs, improves the efficiency of service migration for faulty network devices, and thus improves the efficiency of service recovery for faulty network devices. Attached Figure Description
[0019] To more clearly illustrate the technical solution of this application, some embodiments of this application will be described in detail below with reference to the accompanying drawings, in which:
[0020] Figure 1 A schematic diagram of the framework of a service migration system for a faulty network device provided in an embodiment of this application;
[0021] Figure 2 A flowchart illustrating a service migration method for a faulty network device provided in an embodiment of this application;
[0022] Figure 3 This is a schematic diagram of the structure of a service migration device for a faulty network device provided in an embodiment of this application. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0024] Some embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0025] Figure 1 This is a schematic diagram of the framework of a service migration system for a faulty network device provided in an embodiment of this application.
[0026] exist Figure 1 This includes an SDN controller, SDN database, SDN web management page, backup server, and multiple managed network devices. These network devices include switches.
[0027] In this process, users input management information for network devices on the SDN web management page. The SDN controller deployed in the data center network stores this management information in the SDN database, manages the network devices, and performs configuration backups. The backup configuration information is then stored on a backup server. When a network device fails, the SDN controller retrieves the backup configuration information from the backup server and automatically distributes it to the replacement network device. During this distribution process, the SDN controller automatically adapts the configuration based on the actual topology of the replacement network device, ensuring that the replacement network device can carry the same services as the failed network device. This allows for rapid service recovery and minimizes the adverse impact of the failure on services.
[0028] In other words, when a network device fails and becomes unusable, and needs to be replaced, the maintenance personnel can import the management information of the replacement network device, which has already completed the physical link connection, into the SDN controller. The SDN controller will automatically identify the link topology information of the replacement network device, automatically edit the backup configuration information of the failed network device into a service configuration suitable for the current replacement network device, import the service configuration into the replacement network device, and automatically complete the service migration.
[0029] More intuitively, the specific implementation of this application's embodiments regarding service migration for faulty network devices will be demonstrated through... Figure 2 The relevant content will be described in detail.
[0030] Figure 2 This is a flowchart illustrating a service migration method for a faulty network device provided in an embodiment of this application. Figure 2 The process may include the following steps:
[0031] S201: The SDN controller identifies faulty network devices in the data center network and determines whether the faulty network devices have completed the backup of network configuration information.
[0032] Among them, a faulty network device refers to a network device that has a serious fault and cannot continue to be used. After the SDN controller completes the backup operation of the network device's configuration information, the fault recovery service migration function becomes available again.
[0033] In some embodiments of this application, when building a data center network, the SDN controller needs to manage the network devices, that is, it also needs to manage faulty network devices.
[0034] Specifically, when the network devices to be managed complete the initial management configuration, the SDN controller builds physical links and a network management network.
[0035] Then, based on the physical link and the network management network, connections are established with network devices using network protocols. For example, network protocols include SSH, SNMP, and others.
[0036] Then, based on the management information for network devices entered by the user on the SDN web management page, the management information of the network devices is determined, and the network devices are then managed according to this information. This management information can be used to manage network devices, allowing users to log in to configure commands or view information.
[0037] For network devices, the management information includes the management network IP address reachable by the SDN controller, the management username and password, and SNMP configuration information.
[0038] Furthermore, when managing network devices, the management information needs to be verified.
[0039] Specifically, management information is verified via methods such as SSH or SNMP. If verification is successful, the management information of the network device is saved to the SDN database for network device management.
[0040] Therefore, in subsequent use, the SDN controller uses management information to perform network regulation and control, and to perform status monitoring and configuration management of network devices.
[0041] After the SDN controller completes the management of network devices, it will enable LLDP (Link Layer Discovery Protocol) for all network devices in the network via command line. This allows the network devices in the network to discover other managed network devices with interconnected links, thereby enabling the SDN controller to obtain the link topology information of the network devices.
[0042] In some embodiments of this application, after the network devices are managed, it is also necessary to perform network configuration backup of the network devices. That is, it is also necessary to perform network configuration backup of faulty network devices. The following will describe the faulty network devices as an example.
[0043] Specifically, the first step is to determine the management information of the backup server. This information includes the server name, server IP address, management username, and management password.
[0044] Then, based on the management information of the backup server, an interface for automatically backing up the configuration of faulty network devices is constructed.
[0045] Therefore, after completing the backup server settings, users can enable the automatic configuration backup function for network devices on the SDN web management page of the SDN controller, that is, enable the automatic configuration backup function for faulty network devices.
[0046] Therefore, based on the configuration automatic backup request, the configuration automatic backup function of the faulty network device is enabled.
[0047] Then, within a preset period, the network configuration backup of the faulty network device is performed, and backup configuration information of the faulty network device is generated.
[0048] It should be noted that the backup configuration information includes management information and service configuration information. Service configuration information refers to the relevant configurations for each service port and some global routing protocols, which are used to connect services. For example, if server A and server B need to communicate with each other through a specified VLAN, then the relevant VLAN service configurations need to be configured.
[0049] It should be noted that generating backup configuration information for faulty network devices within a preset period specifically includes the following steps:
[0050] First, log in to the faulty network device and issue a backup command to the faulty network device within a preset period.
[0051] Then, the faulty network device sends the backup file to the specified directory on the backup server according to the backup command. For example, the backup file can be sent to the specified directory on the backup server via TFTP or FTP protocol.
[0052] Then, the SDN controller receives the backup success notification from the faulty network device and queries the backup file in the specified directory of the backup server. The backup success notification includes the backup file information.
[0053] Then, if the backup file is found in the specified directory, it is determined that the backup of the faulty network device was successful, and the backup file of the faulty network device is identified as the backup configuration information of the faulty network device.
[0054] It should be noted that if the backup file cannot be found in the specified directory, the backup of the faulty network device is determined to have failed, a backup failure notification message is generated, and the notification message is sent to the backup verification terminal device.
[0055] Finally, the backup configuration information is bound to the faulty network device.
[0056] For example, the process of backing up the network configuration of faulty network devices within a preset period may include the following:
[0057] Users can create backup plans for faulty network devices on the SDN controller's automatic backup configuration page, and select the backup execution cycle, backup execution time, and plan remarks according to actual needs.
[0058] The backup execution cycle can be selected to perform the backup on a specific day of the week, such as Monday or Wednesday. After selecting the cycle, you can choose whether to repeat the backup as needed. If repeated execution is enabled, the backup operation will be performed on the selected day of the week.
[0059] The backup execution time refers to the backup execution time entered within the selected execution day. Multiple entries can be made within the same day. The SDN controller will perform backup operations on the faulty network devices at the backup execution time, such as 21:00, 23:00, etc.
[0060] Plan notes are used to add textual comments to the created backup plan entries according to the actual situation, which facilitates later operation and maintenance.
[0061] It should be noted that on the SDN controller's automatic backup configuration page, users can also actively click the backup option on the page. The SDN controller will immediately perform a backup operation, backing up the configuration information of the faulty network device to the backup server.
[0062] S202: If so, then determine the replacement network device to be replaced for the faulty network device.
[0063] This involves determining which network device to replace based on user actions. In other words, once the user finds a new network device, the faulty network device is replaced with the new one.
[0064] S203: Based on the management information of the replacement network device, the replacement network device is managed in the data center network.
[0065] It should be noted that the process of adding network devices to the management system can be found in the description of network device management in S202.
[0066] S204: By initiating the link layer discovery protocol of the replacement network device, the first link topology information of the replacement network device is determined.
[0067] Among them, the LLDP protocol (Link Layer Discovery Protocol) can obtain the configuration information of other network devices that the replacement network device connects to via a link.
[0068] It should be noted that the first link topology information includes the link information between the replacement network device and the neighboring network device.
[0069] S205: Receive a request to enable the fault recovery service migration function of the faulty network device, and obtain the backup configuration information of the faulty network device.
[0070] The backup configuration information includes the second link topology information and service configuration information of the faulty network device.
[0071] It should be noted that the second link topology information includes link information between the faulty network device and its neighboring network devices.
[0072] In other words, after ensuring that the replacement network device has completed the physical link connection and initialization information (management IP, username & password) configuration, the user can select the faulty network device that is in a faulty state and has completed the configuration backup on the SDN web management page of the SDN controller, and use the fault recovery service migration function.
[0073] S206: Determine whether the first link topology information is consistent with the second link topology information.
[0074] In some embodiments of this application, if service transmission is required, corresponding configurations must be sent to the corresponding ports; that is, each port has a corresponding mapping relationship with the service configuration. Therefore, it is necessary to consider the port changes that exist between replacing network devices and faulty network devices.
[0075] Specifically, first, identify the neighboring network devices of the faulty network device in the data center network.
[0076] Then, the first link topology information between the faulty network device and the neighboring network device is obtained, and the first port connecting the faulty network device and the neighboring network device is determined based on the first link topology information.
[0077] Then, obtain the second link topology information between the replacement network device and the neighboring network device, and determine the second port for the connection between the faulty network device and the neighboring network device based on the second link topology information.
[0078] Then, the first port is compared with the second port;
[0079] If the first port and the second port are the same, then the first link topology information is determined to be the same as the second link topology information.
[0080] That is, if they are consistent, it means that the faulty network device and the neighboring network device have the same number of connection ports and the same connection port number.
[0081] If the first port and the second port are inconsistent, then the first link topology information is determined to be inconsistent with the second link topology information.
[0082] It should be noted that if the first link topology information is inconsistent with the second link topology information, S207 will not be executed.
[0083] S207: If so, then generate the service configuration of the replacement network device based on the backup configuration information and the first link topology information.
[0084] In other words, when the connection is consistent, the SDN controller can still distribute the corresponding service configuration to the correct port according to the current link topology of the central network. That is, it can carry out subsequent configuration distribution operations based on the existing connection situation.
[0085] In some embodiments of this application, if the first link topology information is inconsistent with the second link topology information, the fault recovery service migration operation is suspended, and a corresponding prompt is returned to the user on the SDN web management interface so that the user can check whether the link connection of the replacement network device is inconsistent with the connection of the faulty network device.
[0086] If a user reports a connection inconsistency, the first and second inconsistent ports are identified. Then, in the backup configuration information, the service configuration information corresponding to the first inconsistent port is determined. Next, the first inconsistent port bound to the corresponding service configuration information is replaced with the second inconsistent port, generating a mapping relationship between the corresponding service configuration information and the second inconsistent port, in order to update the backup configuration information.
[0087] Finally, based on the updated backup configuration information and the first link topology information, the service configuration for the replacement network device is generated.
[0088] For example, if a faulty network device P connects to its neighboring network device A via port 1, and port 1 contains the corresponding service configuration information in the backup configuration information, then if the replacement network device Q connects to its neighboring network device A via port 3, the corresponding service configuration information will be sent to port 3.
[0089] S208: The service configuration is sent to the replacement network device so that the service of the faulty network device can be executed through the replacement network device.
[0090] It should be noted that, although the embodiments in this application are based on... Figure 2 Steps S201 to S208 will be described sequentially, but this does not mean that steps S201 to S208 must be performed in a strict order. The reason this embodiment follows this order is... Figure 2The order in which steps S201 to S208 are described is provided to facilitate understanding of the technical solutions of the embodiments of this application by those skilled in the art. In other words, in the embodiments of this application, the order of steps S201 to S208 can be appropriately adjusted according to actual needs.
[0091] pass Figure 2 The method involves the SDN controller quickly replacing a faulty network device when it fails within the data center network, provided that the faulty network device has already been backed up with its configuration by the SDN controller. The SDN controller then automatically distributes the service configuration to the replacement network device, reducing the impact of network device failure on services. Furthermore, the SDN controller automatically generates the service configuration for the replacement network device based on the backup configuration information and link topology, automatically completing the service migration. This saves manpower and time costs and improves the efficiency of service recovery for faulty network devices.
[0092] Based on the same idea, some embodiments of this application also provide devices and non-volatile computer storage media corresponding to the above methods.
[0093] Figure 3 A schematic diagram of a service migration device for a faulty network device provided in this application embodiment, applied to an SDN controller, includes:
[0094] At least one processor; and,
[0095] A memory communicatively connected to the at least one processor; wherein,
[0096] The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to:
[0097] Identify faulty network devices in the data center network and determine whether the faulty network devices have completed the backup of network configuration information.
[0098] If so, then determine the replacement network device to be replaced for the faulty network device;
[0099] Based on the management information of the replacement network device, the replacement network device is managed within the data center network.
[0100] By initiating the link layer discovery protocol of the replacement network device, the first link topology information of the replacement network device is determined;
[0101] Receive a request to enable the fault recovery service migration function of the faulty network device, and obtain the backup configuration information of the faulty network device; the backup configuration information includes the second link topology information and service configuration information of the faulty network device.
[0102] Determine whether the first link topology information is consistent with the second link topology information;
[0103] If so, the service configuration of the replacement network device is generated based on the backup configuration information and the first link topology information;
[0104] The service configuration is sent to the replacement network device so that the services of the faulty network device can be executed through the replacement network device.
[0105] Some embodiments of this application provide a non-volatile computer storage medium for service migration of a faulty network device, storing computer-executable instructions applied to an SDN controller, wherein the computer-executable instructions are configured as follows:
[0106] Identify faulty network devices in the data center network and determine whether the faulty network devices have completed the backup of network configuration information.
[0107] If so, then determine the replacement network device to be replaced for the faulty network device;
[0108] Based on the management information of the replacement network device, the replacement network device is managed within the data center network.
[0109] By initiating the link layer discovery protocol of the replacement network device, the first link topology information of the replacement network device is determined;
[0110] Receive a request to enable the fault recovery service migration function of the faulty network device, and obtain the backup configuration information of the faulty network device; the backup configuration information includes the second link topology information and service configuration information of the faulty network device.
[0111] Determine whether the first link topology information is consistent with the second link topology information;
[0112] If so, the service configuration of the replacement network device is generated based on the backup configuration information and the first link topology information;
[0113] The service configuration is sent to the replacement network device so that the services of the faulty network device can be executed through the replacement network device.
[0114] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device and medium embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the description of the method embodiments.
[0115] The devices and media provided in this application are one-to-one with the methods. Therefore, the devices and media also have similar beneficial technical effects as their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0116] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0117] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0118] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0119] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0120] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0121] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0122] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0123] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0124] The above description is merely an embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the technical principles of this application should fall within the protection scope of this application.
Claims
1. A service migration method for a faulty network device, characterized in that, The method includes: The SDN controller identifies faulty network devices in the data center network and determines whether the faulty network devices have completed the backup of network configuration information. If so, then determine the replacement network device to be replaced for the faulty network device; Based on the management information of the replacement network device, the replacement network device is managed within the data center network. By initiating the link layer discovery protocol of the replacement network device, the first link topology information of the replacement network device is determined; Receive a request to enable the fault recovery service migration function of the faulty network device, and obtain the backup configuration information of the faulty network device; the backup configuration information includes the second link topology information and service configuration information of the faulty network device. Determine whether the first link topology information is consistent with the second link topology information; If so, the service configuration of the replacement network device is generated based on the backup configuration information and the first link topology information; The service configuration is sent to the replacement network device so that the service of the faulty network device can be executed through the replacement network device; The determination of whether the first link topology information and the second link topology information are consistent specifically includes: Identify the neighboring network devices of the faulty network device in the data center network; Obtain the first link topology information between the faulty network device and the neighboring network device, and determine the first port connecting the faulty network device and the neighboring network device based on the first link topology information; Obtain the second link topology information between the replacement network device and the neighboring network device, and determine the second port connecting the faulty network device and the neighboring network device based on the second link topology information; Compare the first port with the second port; If the first port is the same as the second port, then the first link topology information is determined to be the same as the second link topology information; If the first port and the second port are inconsistent, then it is determined that the first link topology information and the second link topology information are inconsistent. The method further includes: If the first link topology information is inconsistent with the second link topology information, then the inconsistent first port and inconsistent second port are determined; In the backup configuration information, the service configuration information corresponding to the inconsistent first port is determined; Replace the inconsistent first port bound to the corresponding business configuration information with the inconsistent second port, and generate a mapping relationship between the corresponding business configuration information and the inconsistent second port to update the backup configuration information; Based on the updated backup configuration information and the first link topology information, the service configuration of the replacement network device is generated.
2. The method according to claim 1, characterized in that, Before determining whether the faulty network device has completed the backup of the network configuration information, the method further includes: Based on the automatic configuration backup request, enable the automatic configuration backup function of the faulty network device; Within a preset period, the network configuration backup of the faulty network device is performed, and backup configuration information of the faulty network device is generated; The backup configuration information is bound to the faulty network device.
3. The method according to claim 2, characterized in that, The step of performing network configuration backup on the faulty network device within a preset period and generating backup configuration information for the faulty network device specifically includes: Log in to the faulty network device, and within the preset period, issue a backup command to the faulty network device so that the faulty network device can send the backup file to the specified directory of the backup server according to the backup command; The system receives a backup success notification from the faulty network device and queries the backup file in a specified directory of the backup server; the backup success notification includes the backup file. If the backup file is found in the specified directory, the faulty network device is confirmed to have been successfully backed up. The backup file of the faulty network device is identified as the backup configuration information of the faulty network device.
4. The method according to claim 2, characterized in that, Before enabling the automatic configuration backup function of the faulty network device based on the configuration automatic backup request, the method further includes: The management information of the backup server is determined, including at least one of the following: server name, server IP address, management username, and management password. Based on the management information of the backup server, construct the configuration automatic backup function interface for the faulty network device.
5. The method according to claim 1, characterized in that, Before the SDN controller identifies faulty network devices in the data center network, the method further includes: When the network device to be managed completes the initial management configuration, the SDN controller builds the physical link and the network management network. Based on the physical link and network management network, connections are made with the network devices respectively via network protocols; Determine the management information of the network device; The network devices are managed according to their management information.
6. The method according to claim 1, characterized in that, The step of managing the network device based on its management information specifically includes: The management information of the network device is determined to include at least one of the following: the management network IP reachable by the SDN controller, the management username and password, and the SNMP configuration information; Verify the management information; If the verification is successful, the management information of the network device is saved to the SDN database for the purpose of managing the network device.
7. A service migration device for a faulty network device, characterized in that, Applications in SDN controllers include: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to: perform a service migration method for a faulty network device as described in any one of claims 1-6.
8. A non-volatile computer storage medium for service migration of a faulty network device, storing computer-executable instructions, characterized in that, Applied to an SDN controller, the computer-executable instructions are configured to execute a service migration method for a faulty network device as described in any one of claims 1-6.