Network element intelligent disaster recovery method, system and device, storage medium and product

By dynamically updating disaster recovery scripts based on the network element mode library in the resource pool, the problem of disaster recovery scripts relying on manual updates is solved, and more efficient and convenient disaster recovery operations are achieved.

CN118900230AActive Publication Date: 2024-11-05CHINA MOBILE GROUP JIANGSU +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411069669.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-11-05
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

In the prior art, disaster recovery scripts rely on manual updates and maintenance, which affect the accuracy and timeliness of disaster recovery operations.

Method used

When the virtual machine of the network element in the resource pool changes, the virtual machine name field information is matched based on the naming and encoding mode of the network element model library, the key information of the virtual machine is determined, and the script library is dynamically updated to generate disaster recovery operation instructions. , automatically execute target disaster recovery scripts.

Benefits of technology

It improves the accuracy and timeliness of disaster recovery operations, reduces the maintenance pressure of operation and maintenance personnel, and improves the efficiency and convenience of disaster recovery operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118900230A_ABST
    Figure CN118900230A_ABST
Patent Text Reader

Abstract

The invention discloses a network element intelligent disaster recovery method, system and device, a storage medium and a product, and relates to the IT basic field, and the method comprises the steps: carrying out the mode matching of the name field information of a virtual machine based on a naming coding mode in a network element mode library when the virtual machine of a network element in a resource pool changes, and determining the key information of the virtual machine; dynamically updating a script library based on the key information of the virtual machine, the script library storing disaster recovery scripts corresponding to each network element in different disaster recovery operations; determining a target disaster recovery script in the dynamically updated script library based on the name of the target network element and the target disaster recovery operation input by the user side; and generating a disaster recovery operation instruction based on the target disaster recovery script, and issuing the disaster recovery operation instruction to a proxy server of a resource pool where the target network element is located, so that the corresponding proxy server logs in the cloud computing platform to execute the target disaster recovery script. By means of the method, the disaster recovery script is automatically updated, and the accuracy and timeliness of disaster recovery operation are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the IT infrastructure field, and in particular to network element intelligent disaster recovery methods, systems, equipment, storage media and products. Background Art

[0002] 5G services have been cloud-based since their inception. Services are centrally deployed on cloud resource pools built by operators. Most of them are built with large regions as regional centers. Network elements of the same type are distributed in different resource pools to form a service POOL. Network elements in the POOL serve as disaster recovery backups for each other. According to the design, when a resource pool failure causes service damage, or a network element fails, the service should be able to automatically migrate users to a disaster recovery network element to achieve the effect of service disaster recovery.

[0003] At present, by centrally building in disaster recovery scripts, when a fault occurs, the preset scripts can be used to check the status of network elements and perform disaster recovery switching according to the service switching requirements to improve the accuracy and timeliness of disaster recovery processing on the network element side. However, the scripts need to be preset in advance and rely on manual updates and maintenance, which has a certain impact on accuracy and timeliness and needs further optimization.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide a network element intelligent disaster recovery method, system, device, storage medium and product, aiming to solve the technical problem in the prior art that disaster recovery scripts rely on manual updating and maintenance, affecting the accuracy and timeliness of disaster recovery operations.

[0006] To achieve the above object, the present application provides a network element intelligent disaster recovery method, the method comprising:

[0007] When a virtual machine of a network element in a resource pool changes, pattern matching is performed on the name field information of the virtual machine based on the naming encoding pattern stored in the network element pattern library to determine key information of the virtual machine;

[0008] Based on the key information of the virtual machine, dynamically update the script library, the script library stores the disaster recovery scripts corresponding to each network element in different disaster recovery operations;

[0009] Based on the name of the target network element and the target disaster recovery operation input by the user in the disaster recovery scenario, determine the target disaster recovery script in the dynamically updated script library;

[0010] Based on the target disaster recovery script, a disaster recovery operation instruction is generated, and the disaster recovery operation instruction is issued to the proxy server of the resource pool where the target network element is located, so that the corresponding proxy server logs in to the cloud computing platform to execute the target disaster recovery script.

[0011] In one embodiment, the key information includes at least a virtual machine name, a home network element name, and a function type, and the step of dynamically updating the script library based on the key information of the virtual machine includes:

[0012] Based on the name of the virtual machine, obtaining an identification code of the virtual machine from the cloud computing platform;

[0013] Determine the changed network element based on the network element name to which the virtual machine belongs;

[0014] Based on the function type of the virtual machine, determining the key virtual machines of the changed network element in different disaster recovery operations, wherein the disaster recovery operations at least include network element isolation, network element recovery, and network element status check;

[0015] Based on the identification codes of the key virtual machines of the changed network elements in different disaster recovery operations, generating new disaster recovery scripts for the changed network elements in different disaster recovery operations;

[0016] Based on the identification code of the changed network element, a script update request is sent to the script library, so that the script library is dynamically updated according to the new disaster recovery script.

[0017] In one embodiment, when the virtual machine of the network element in the resource pool changes, the name field information of the virtual machine is pattern matched based on the naming encoding pattern stored in the network element pattern library, and the step of determining the key information of the virtual machine also includes:

[0018] Sending performance data subscription information to the resource pool;

[0019] After the resource pool confirms that the subscription is successful, receiving performance data reported by each resource pool according to a preset period;

[0020] Parsing the performance data to determine name field information and other field information of the virtual machine, wherein the other field information includes at least an encoding type, a geographic location, a hardware resource pool number, a manufacturer identifier, and a virtual resource pool number;

[0021] It is determined whether a virtual machine of a network element in the resource pool is changed according to the name field information of the virtual machine.

[0022] In one embodiment, the step of determining the target disaster recovery script in the dynamically updated script library based on the name of the target network element and the target disaster recovery operation input by the user terminal in the disaster recovery scenario includes:

[0023] Upon receiving the disaster recovery task initiation information input by the user terminal, determining to trigger the disaster recovery scenario;

[0024] Sending task input prompt information to the user terminal to obtain the name of the target network element and the target disaster recovery operation input by the user terminal;

[0025] Based on the name of the target network element and the target disaster recovery operation, the script library is queried to determine the target disaster recovery script.

[0026] In one embodiment, the step of generating a disaster recovery operation instruction based on the target disaster recovery script includes:

[0027] Based on the target disaster recovery script, determine the identification code and task identification code of the target virtual machine;

[0028] Generate disaster recovery execution prompt information based on the name of the target network element, the identification code of the target virtual machine and the task identification code, and send the disaster recovery execution prompt information to the user terminal;

[0029] When confirmation information of the user terminal for the disaster recovery execution prompt information is received, the disaster recovery operation instruction is generated based on the task identification code and the target disaster recovery operation.

[0030] In one embodiment, the step of generating a disaster recovery operation instruction based on the target disaster recovery script, and issuing the disaster recovery operation instruction to a proxy server of the resource pool where the target network element is located so that the corresponding proxy server logs in to the cloud computing platform to execute the target disaster recovery script further includes:

[0031] Obtaining a disaster recovery operation execution log recorded during the process of the proxy server executing the target disaster recovery script;

[0032] Determining the disaster recovery operation execution result based on the disaster recovery operation execution log;

[0033] Based on the disaster recovery operation execution result and the disaster recovery operation execution log, output execution result prompt information to the user terminal.

[0034] In addition, to achieve the above purpose, the present application also proposes a network element intelligent disaster recovery system, the network element intelligent disaster recovery system comprising:

[0035] The system includes an external interaction interface, a control node, a network element pattern library and a proxy server, wherein the control node is connected to the external interaction interface, the network element pattern library and the proxy server respectively, and the proxy server is deployed in each resource pool:

[0036] The control node is used to perform pattern matching on the name field information of the virtual machine based on the naming encoding pattern stored in the network element pattern library when a virtual machine of the network element in the resource pool changes, so as to determine the key information of the virtual machine;

[0037] The control node is further used to dynamically update a script library based on key information of the virtual machine, wherein the script library stores disaster recovery scripts corresponding to each network element in different disaster recovery operations;

[0038] The external interaction interface is used to obtain the name of the target network element and the target disaster recovery operation input by the user terminal in the disaster recovery scenario, and send the name of the target network element and the target disaster recovery operation to the control node;

[0039] The control node is further used to determine a target disaster recovery script in a dynamically updated script library based on the name of the target network element and the target disaster recovery operation, and send the target disaster recovery script to the external interactive interface;

[0040] The external interactive interface is further used to generate a disaster recovery operation instruction based on the target disaster recovery script, and send the disaster recovery operation instruction to the control node;

[0041] The control node is further used to send the disaster recovery operation instruction to the proxy server of the resource pool where the target network element is located, so that the corresponding proxy server logs into the cloud computing platform to execute the target disaster recovery script.

[0042] In addition, to achieve the above-mentioned purpose, the present application also proposes a network element intelligent disaster recovery device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the network element intelligent disaster recovery method as described above.

[0043] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the network element intelligent disaster recovery method as described above are implemented.

[0044] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the network element intelligent disaster recovery method as described above are implemented.

[0045] The present application provides a network element intelligent disaster recovery method. When a virtual machine of a network element in a resource pool changes, based on the naming encoding pattern stored in the network element pattern library, pattern matching is performed on the name field information of the virtual machine to determine the key information of the virtual machine; based on the key information of the virtual machine, a script library is dynamically updated, and the script library stores the disaster recovery scripts corresponding to each network element in different disaster recovery operations; based on the name of the target network element and the target disaster recovery operation input by the user end in the disaster recovery scenario, the target disaster recovery script is determined in the dynamically updated script library; based on the target disaster recovery script, a disaster recovery operation instruction is generated, and the disaster recovery operation instruction is issued to the proxy server of the resource pool where the target network element is located, so that the corresponding proxy server logs in to the cloud computing platform to execute the target disaster recovery script. This application utilizes the network element pattern library to parse the name field of the virtual machine to realize automatic identification and classification of the virtual machine. It can automatically identify the changes of the virtual machines in the network element, thereby automatically and dynamically updating the disaster recovery scripts in the script library, thereby improving the accuracy and timeliness of disaster recovery operations, and improving the efficiency of disaster recovery operations. In addition, the user end only needs to simply input the network element name and operation type to determine the corresponding disaster recovery operation instructions and execute the corresponding disaster recovery script, further improving the convenience and accuracy of disaster recovery operations, and solving the technical problem that the disaster recovery script relies on manual updating and maintenance, affecting the accuracy and timeliness of disaster recovery operations. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0048] Figure 1 This is a schematic diagram of the structure of the first embodiment of the network element intelligent disaster recovery system of the present application;

[0049] Figure 2 This is a flow chart of the first embodiment of the network element intelligent disaster recovery method of the present application;

[0050] Figure 3 This is a flow chart of Embodiment 2 of the network element intelligent disaster recovery method of the present application;

[0051] Figure 4 A schematic diagram of the overall architecture of the network element intelligent disaster recovery method provided in Embodiment 2 of the present application;

[0052] Figure 5A schematic diagram of a brief process of updating disaster recovery information of a network element intelligent disaster recovery method provided in Embodiment 2 of the present application;

[0053] Figure 6 A schematic diagram of a brief disaster recovery execution process of the network element intelligent disaster recovery method provided in Embodiment 2 of the present application;

[0054] Figure 7 It is a schematic diagram of the equipment structure of the hardware operating environment involved in the network element intelligent disaster recovery method in the embodiment of the present application.

[0055] Description of Figure Numbers:

[0056] 10. External interactive interface; 20. Control node; 30. Network element model library; 40. Proxy server; 50. Resource pool;

[0057] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0058] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0059] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0060] The main solution of the embodiment of the present application is: when the virtual machine of the network element in the resource pool changes, the name field information of the virtual machine is pattern matched based on the naming encoding pattern stored in the network element pattern library to determine the key information of the virtual machine; based on the key information of the virtual machine, the script library is dynamically updated, and the script library stores the disaster recovery scripts corresponding to each network element in different disaster recovery operations; based on the name of the target network element and the target disaster recovery operation input by the user end in the disaster recovery scenario, the target disaster recovery script is determined in the dynamically updated script library; based on the target disaster recovery script, a disaster recovery operation instruction is generated, and the disaster recovery operation instruction is issued to the proxy server of the resource pool where the target network element is located, so that the corresponding proxy server logs in to the cloud computing platform to execute the target disaster recovery script.

[0061] According to the deployment specifications of the first and second phases of the network cloud, the network elements of each province are currently deployed across regions with disaster recovery nodes, that is, half of the same type of network elements are deployed in multiple resource pools in two regions, forming a mutual disaster recovery backup relationship. When a network element fails, the external interface of the network element of the failed node can be closed, allowing users to switch to the disaster recovery node autonomously to achieve the effect of disaster recovery protection. For example, if two sets of network elements are deployed, each located in a mutual disaster recovery resource pool, and provide access services (N1 and N2 interfaces) to the province's 5G base stations at the same time, when a set of network elements fails (manifested as unavailable interfaces), the base station or terminal will automatically switch the service to the backup network element to achieve service disaster recovery, that is, by manually closing the interface virtual machine (PBU_I) of the main network element, blocking the N1 and N2 interfaces, triggering automatic service switching, and achieving the purpose of isolating network elements and quickly switching services.

[0062] It can be seen that there are two key elements to achieve business disaster recovery. One is to ensure that the information of relevant virtual machines in the network element can be accurately obtained. The other is to be able to quickly generate disaster recovery operation instructions after obtaining the virtual machine information and quickly issue them to achieve rapid response.

[0063] At present, by centrally building in disaster recovery scripts, when a fault occurs, the preset scripts can be used to check the status of network elements and perform disaster recovery switching according to the service switching requirements to improve the accuracy and timeliness of disaster recovery processing on the network element side. However, the scripts need to be preset in advance and rely on manual updates and maintenance, which has a certain impact on accuracy and timeliness and needs further optimization.

[0064] The present application provides a solution, which utilizes the network element pattern library to parse the name field of the virtual machine to realize automatic identification and classification of the virtual machine, and can automatically identify the changes of the virtual machines in the network element, so as to automatically and dynamically update the disaster recovery scripts in the script library, thereby improving the accuracy and timeliness of disaster recovery operations, and improving the efficiency of disaster recovery operations. In addition, the user end only needs to simply input the network element name and operation type to determine the corresponding disaster recovery operation instructions and execute the corresponding disaster recovery script, thereby further improving the convenience and accuracy of disaster recovery operations, and solving the technical problem that the disaster recovery script relies on manual updating and maintenance, affecting the accuracy and timeliness of disaster recovery operations.

[0065] The present application embodiment provides a network element intelligent disaster recovery system, referring to Figure 1 , Figure 1 This is a schematic diagram of the structure of the first embodiment of the network element intelligent disaster recovery system of the present application.

[0066] In this embodiment, the network element intelligent disaster recovery system includes an external interaction interface 10, a control node 20, a network element pattern library 30 and a proxy server 40. The control node 20 is connected to the external interaction interface 10, the network element pattern library 30 and the proxy server 40 respectively, and the proxy server 40 is deployed in each resource pool 50.

[0067] It should be noted that the external interactive interface 10 can provide an external interactive window to interact with the user end, and can communicate with the control node 20 internally, send query instructions or disaster recovery operation instructions to the control node 20, and receive the results processed and returned by the control node 20. This embodiment adopts the chatops external interface, which can be adjusted according to actual needs in actual applications, and is not specifically limited to this. The control node 20 is the core control module in this embodiment, which is mainly responsible for receiving the performance file reported by the resource pool 50, parsing and storing it in the library, and the background process carries the update of the virtual machine information. At the same time, it is responsible for establishing an instruction channel, receiving the instructions issued by the external interactive interface 10, and after the external interactive interface 10 completes the interactive confirmation process, it is responsible for issuing instructions and feedback of results. The proxy server 40 is usually responsible for the cloud computing platform environment and login information encapsulation (execution environment variables, login KVM background, etc.), execution and feedback of instruction results. The cloud computing platform used in this embodiment is OpenStack, which is not specifically limited to this. The user end can be an APP end or a web end, which is not specifically limited to this.

[0068] The control node 20 is used to perform pattern matching on the name field information of the virtual machine based on the naming encoding pattern stored in the network element pattern library 30 to determine the key information of the virtual machine when the virtual machine of the network element in the resource pool 50 changes.

[0069] It should be noted that there can be multiple resource pools 50, which need to be determined according to actual conditions. Each resource pool 50 usually has multiple network elements, and each network element usually has multiple virtual machines. All virtual machines are set with corresponding identification numbers in accordance with the network cloud instance naming specifications, which usually consist of 7 fields: coding type, geographic location, hardware resource pool number, VIM manufacturer identification, virtual resource pool number, resource type code and resource instance number, and each field is connected with a short dash "-". The coding type, geographic location, hardware resource pool number, manufacturer identification, and virtual resource pool number can usually be set according to existing specifications. The resource instance number usually contains the name of the virtual machine, the name of the network element to which it belongs, the function type and other related information, which is customized by the manufacturer and does not exceed 32 characters. For example, if the identification number of the virtual machine is NFV-R-HDBNJ-04A-HW-01-VM-HDBNJjsSMF001BHW-PBU_L2_ARM-0, HDBNJ represents the region, 04A is the resource pool number, HW is the VIM manufacturer identification, VM represents that the device is a virtual machine, HDBNJjsSMF001BHW-PBU_L2_ARM-0 is the resource instance number of the virtual machine, the network element name to which it belongs is jsSMF001BHW, the function type is PBU_L2_ARM, and the ID of the same type of virtual machine in the network element is 0. The name field information of the virtual machine is the resource instance number of the virtual machine.

[0070] In addition, it should be noted that the key information of the virtual machine, i.e., the relevant information required to generate the disaster recovery script, at least includes the name of the virtual machine, the name of the network element to which it belongs, and the function type. Since different manufacturers use different rules / specifications to encode resource instance numbers, in order to be able to quickly identify different virtual machines, this embodiment sets up a network element pattern library 30, which stores a variety of naming coding patterns, i.e., the rules / specifications used by the manufacturer to encode the resource instance number. By using the naming coding patterns stored in the network element pattern library 30, the name field information of the virtual machine is pattern matched, and relevant information such as the name of the virtual machine, the name of the network element to which it belongs, and the function type can be quickly parsed to obtain.

[0071] It is understandable that when the virtual machine of the network element in the resource pool 50 changes, the disaster recovery script needs to be updated in time. Therefore, it is necessary to determine the key information of the virtual machine in time and quickly, and mark the virtual machine, so as to subsequently determine the key virtual machine for the disaster recovery operation and generate the corresponding disaster recovery script.

[0072] It should be understood that, in specific implementation, pattern matching may be performed only on the changed virtual machines, and this embodiment does not specifically limit this.

[0073] In a feasible implementation, the control node 20 is also used to send performance data subscription information to the resource pool 50; after the resource pool 50 confirms that the subscription is successful, receive the performance data reported by each resource pool 50 according to a preset period; parse the performance data to determine the name field information and other field information of the virtual machine, the other field information includes at least the encoding type, geographic location, hardware resource pool number, manufacturer identification and virtual resource pool number; determine whether the virtual machine of the network element in the resource pool 50 has changed based on the name field information of the virtual machine.

[0074] It should be noted that the performance data is the VIM / PIM performance file, which usually contains the latest information of network elements, virtual machines, etc. The performance data subscription information is the subscription request of the VIM / PIM performance file. The control node 20 sends the subscription request of the VIM / PIM performance file to the NFV-O (one of the MNAO components) of each resource pool 50. If the resource pool 50 confirms that the subscription is successful, the resource pool 50 will report the corresponding performance data according to the preset period. The preset period is the set period for reporting data, for example: 15 minutes. At this time, the resource pool 50 generates performance data every 15 minutes and sends it to the control node 20. The subscription operation only needs to be performed once after the entire system is established.

[0075] It is understandable that other field information is fields other than the resource instance number in the identification number of the virtual machine, such as: encoding type, geographic location, hardware resource pool number, manufacturer identification, and virtual resource pool number. According to the network cloud instance naming specification, the resource instance number, encoding type, geographic location, hardware resource pool number, manufacturer identification, and virtual resource pool number are parsed. If the resource instance number changes, it indicates that the virtual machine of the network element in the resource pool 50 has changed. If the resource instance number does not change, it indicates that the virtual machine of the network element in the resource pool 50 has not changed.

[0076] The control node 20 is also used to dynamically update the script library based on the key information of the virtual machine. The script library stores the disaster recovery scripts corresponding to each network element in different disaster recovery operations.

[0077] It should be noted that the script library is a database storing disaster recovery scripts. Generally speaking, different disaster recovery operations usually require the execution of different disaster recovery scripts. Therefore, the script library needs to store the disaster recovery scripts corresponding to each network element in different disaster recovery operations. If the virtual machine of the network element in the resource pool 50 changes, the corresponding disaster recovery operation needs to use a new disaster recovery script, that is, the existing disaster recovery script in the script library needs to be dynamically updated.

[0078] In a feasible implementation, the control node 20 is also used to obtain an identification code of the virtual machine from the cloud computing platform based on the name of the virtual machine; determine the changed network element based on the name of the network element to which the virtual machine belongs; determine the key virtual machine of the changed network element in different disaster recovery operations based on the functional type of the virtual machine, and the disaster recovery operations at least include network element isolation, network element recovery, and network element status check; generate new disaster recovery scripts for the changed network element in different disaster recovery operations based on the identification codes of the key virtual machines of the changed network element in different disaster recovery operations; and send a script update request to the script library based on the identification code of the changed network element, so that the script library is dynamically updated according to the new disaster recovery script.

[0079] It should be noted that the identification code of the virtual machine is the UUID (Universally Unique Identifier) ​​of the virtual machine. The control node 20 queries the UUID and other information of the virtual machine from OpenStack according to the name of the virtual machine. The changed network element is the network element where the virtual machine changes, and its corresponding disaster recovery script needs to be updated. The identification code of the changed network element is the ID of the changed network element.

[0080] It can be understood that the disaster recovery operation in this embodiment at least includes network element isolation, network element recovery and network element status check. The key virtual machine is the virtual machine that needs to perform the disaster recovery operation. Different disaster recovery operations can set different key virtual machines, which is not specifically limited. Exemplarily, the key virtual machine for network element isolation is the interface virtual machine. The control node 20 can determine the key virtual machines of the changed network element in different disaster recovery operations according to the functional type of the virtual machine, and use the UUIDs of these key virtual machines to generate disaster recovery scripts for network element isolation, network element status check, and network element recovery in sequence, and initiate a script update request to the script library according to the ID of the changed network element, and the script library updates and saves the new disaster recovery script.

[0081] The external interactive interface 10 is used to obtain the name of the target network element and the target disaster recovery operation input by the user terminal in the disaster recovery scenario, and send the name of the target network element and the target disaster recovery operation to the control node 20; the control node 20 is also used to determine the target disaster recovery script in the dynamically updated script library based on the name of the target network element and the target disaster recovery operation, and send the target disaster recovery script to the external interactive interface 10.

[0082] It should be noted that the disaster recovery scenario is a scenario where disaster recovery needs to be performed, which is usually triggered by the user end. The target network element is the network element that needs to perform disaster recovery, the target disaster recovery operation is the disaster recovery operation that needs to be performed, and the target disaster recovery script is the disaster recovery script required for the target network element to perform the target disaster recovery operation.

[0083] In a feasible implementation manner, the external interactive interface 10 is also used to determine the triggering disaster recovery scenario when receiving disaster recovery task initiation information input by the user terminal, and send task input prompt information to the user terminal to obtain the name of the target network element and the target disaster recovery operation input by the user terminal, and send a query request to the control node 20 based on the name of the target network element and the target disaster recovery operation; the control node 20 is also used to query the script library and determine the target disaster recovery script when receiving the query request.

[0084] It should be noted that the disaster recovery task initiation information is the keyword for initiating the disaster recovery task, for example: disaster recovery initiation, which can be set according to actual needs and is not specifically limited. When the operation and maintenance personnel input the disaster recovery task initiation information on the user side, it is considered that the disaster recovery process is currently initiated. The task input prompt information is the prompt for entering the name of the target network element and the target disaster recovery operation, for example: please enter the name of the disaster recovery network element and the type of disaster recovery operation to be initiated, which can be set according to actual needs and is not specifically limited.

[0085] It can be understood that when disaster recovery needs to be performed, the operation and maintenance personnel input the keyword to initiate the disaster recovery task on the user side (APP) to initiate the disaster recovery process. The external interactive interface 10 returns the task input prompt information. The operation and maintenance personnel input the name of the target network element and the target disaster recovery operation on the user side. The external interactive interface 10 queries the script library according to the name of the target network element and the target disaster recovery operation. After receiving the query request, the control node 20 queries the script library to obtain the disaster recovery script of the target network element.

[0086] The external interactive interface 10 is also used to generate disaster recovery operation instructions based on the target disaster recovery script, and send the disaster recovery operation instructions to the control node 20; the control node 20 is also used to issue disaster recovery operation instructions to the proxy server of the resource pool where the target network element is located, so that the corresponding proxy server logs in to the cloud computing platform to execute the target disaster recovery script.

[0087] In a feasible implementation manner, the control node 20 is also used to determine the target virtual machine and the task identification code based on the target disaster recovery script, and send the name of the target network element, the identification code of the target virtual machine and the task identification code to the external interactive interface 10; the external interactive interface 10 is also used to generate disaster recovery execution prompt information based on the name of the target network element, the identification code of the target virtual machine and the task identification code, and send the disaster recovery execution prompt information to the user end, and when receiving the confirmation information of the user end for the disaster recovery execution prompt information, generate disaster recovery operation instructions based on the task identification code and the target disaster recovery operation, and send the disaster recovery operation instructions to the control node 20.

[0088] It should be noted that the target virtual machine is the virtual machine involved in the target disaster recovery operation of the target network element. Since the virtual machine identification code is used when generating the disaster recovery script, the identification codes of all target virtual machines can be found in the target disaster recovery script. The task identification code is the task ID. The disaster recovery execution prompt information is a prompt used to confirm whether to execute the target disaster recovery operation. It usually needs to include the name of the target network element and the identification code of the target virtual machine. For example: You will perform an isolation operation on the interface virtual machines A and B of the network element jsAMF001. Please reply 1 to confirm. If the user terminal enters 1, it is considered that the user terminal has received the confirmation information for the disaster recovery execution prompt information. It can be set according to actual needs. The disaster recovery operation instruction is the execution instruction corresponding to the target disaster recovery operation.

[0089] It can be understood that the control node 20 returns the name of the target network element, the identification code of the target virtual machine and the task identification code to the external interactive interface 10, and the external interactive interface 10 returns the disaster recovery execution prompt information to the user end. If the user end confirms that the information is correct, it sends a confirmation message. After receiving the confirmation message, the external interactive interface 10 generates a disaster recovery operation instruction carrying information such as the task ID and the target disaster recovery operation, and sends it to the control node 20. The control node 20 queries the local database, selects the resource pool where the target network element is located, selects the corresponding proxy server 40, and issues the disaster recovery operation instruction. The proxy server 40 logs in to OpenStack and executes the target disaster recovery script.

[0090] It should be understood that in this embodiment, an interactive portal is built based on chatops technology, the backend is connected to the network element model library, and the command channel with the cloud computing platform is opened. When the disaster recovery scenario is triggered, the operation and maintenance personnel only need to provide a simple network element name, command keywords for disaster recovery operations, etc. The system backend automatically completes the network element information and command confirmation based on the provided information. After the operation and maintenance personnel confirm, the command can be issued for execution, avoiding the operation and maintenance personnel from writing and inputting commands. Only a simple confirmation is required to complete the confirmation and issuance of disaster recovery operation commands, which greatly improves the convenience, accuracy and security of disaster recovery operations.

[0091] In a feasible implementation, the control node 20 is also used to obtain the disaster recovery operation execution log recorded during the proxy server 40 executing the target disaster recovery script, determine the disaster recovery operation execution result based on the disaster recovery operation execution log, and send the disaster recovery operation execution result and the disaster recovery operation execution log to the external interactive interface 10; the external interactive interface 10 is also used to output the execution result prompt information to the user end based on the disaster recovery operation execution result and the disaster recovery operation execution log.

[0092] It should be noted that the disaster recovery operation execution log is the log of the target disaster recovery script during execution, which is recorded by the proxy server 40 and returned to the control node 20. The disaster recovery operation execution result is the execution result of the target disaster recovery operation. The execution result prompt information is a prompt of the execution result, for example: the isolation operation of network element jsAMF001 is executed successfully, and the log is as follows: XXX, which can be set according to actual needs.

[0093] It is understandable that the proxy server 40 logs in to OpenStack, executes the script and records the OpenStack log, and returns the relevant results to the control node 20, the control node forwards the results to the external interactive interface 10, and the external interactive interface 10 outputs the execution result prompt information to the operation and maintenance personnel.

[0094] It should be understood that different disaster recovery operations can be performed in sequence according to actual needs.

[0095] This embodiment provides a network element intelligent disaster recovery system, which uses the network element pattern library to parse the name field of the virtual machine to realize automatic identification and classification of the virtual machine. It can automatically identify the changes of the virtual machines in the network element, so as to automatically and dynamically update the disaster recovery scripts in the script library, thereby improving the accuracy and timeliness of disaster recovery operations, and improving the efficiency of disaster recovery operations. In addition, the user end only needs to simply input the network element name and operation type to determine the corresponding disaster recovery operation instructions and execute the corresponding disaster recovery scripts, thereby further improving the convenience and accuracy of disaster recovery operations.

[0096] The present application embodiment provides a network element intelligent disaster recovery method, referring to Figure 2 , Figure 2 This is a flow chart of the first embodiment of the network element intelligent disaster recovery method of the present application.

[0097] In this embodiment, the network element intelligent disaster recovery method includes steps S10 to S40:

[0098] Step S10, when a virtual machine of a network element in a resource pool changes, pattern matching is performed on the name field information of the virtual machine based on the naming encoding pattern stored in the network element pattern library to determine key information of the virtual machine;

[0099] It should be noted that this embodiment is applied to a network element intelligent disaster recovery system. The network element intelligent disaster recovery system generally includes an external interactive interface, a control node, a network element mode library, and a proxy server. The control node is connected to the external interactive interface, the network element mode library, and the proxy server respectively. The proxy server is deployed in each resource pool. For the specific structure, please refer to Figure 1 The external interaction interface in this embodiment is a chatops external interface.

[0100] In addition, it should be noted that there can be multiple resource pools, which need to be determined based on actual conditions. Each resource pool usually has multiple network elements, and each network element usually has multiple virtual machines. All virtual machines are set with corresponding identification numbers in accordance with the network cloud instance naming specifications, which usually consist of 7 fields: coding type, geographic location, hardware resource pool number, VIM manufacturer identification, virtual resource pool number, resource type code and resource instance number, and each field is connected with a short dash -. The coding type, geographic location, hardware resource pool number, manufacturer identification, and virtual resource pool number are usually set according to existing specifications. The resource instance number usually includes the name of the virtual machine, the name of the network element to which it belongs, the function type and other related information, which is customized by the manufacturer and does not exceed 32 characters. For example, if the identification number of the virtual machine is NFV-R-HDBNJ-04A-HW-01-VM-HDBNJjsSMF001BHW-PBU_L2_ARM-0, HDBNJ represents the region, 04A is the resource pool number, HW is the VIM manufacturer identification, VM represents that the device is a virtual machine, HDBNJjsSMF001BHW-PBU_L2_ARM-0 is the resource instance number of the virtual machine, the network element name to which it belongs is jsSMF001BHW, the function type is PBU_L2_ARM, and the ID of the same type of virtual machine in the network element is 0. The name field information of the virtual machine is the resource instance number of the virtual machine.

[0101] It is understandable that the key information of the virtual machine, i.e., the relevant information required to generate the disaster recovery script, includes at least the name of the virtual machine, the name of the network element to which it belongs, and the function type. Since different manufacturers use different rules / specifications to encode resource instance numbers, in order to be able to quickly identify different virtual machines, this embodiment sets up a network element pattern library, which stores a variety of naming coding patterns. The naming coding pattern is the rule / specification used by the manufacturer to encode the resource instance number. By using the naming coding pattern stored in the network element pattern library, the name field information of the virtual machine is pattern matched, and relevant information such as the virtual machine name, the name of the network element to which it belongs, and the function type can be quickly parsed to obtain.

[0102] It should be understood that when the virtual machine of the network element in the resource pool changes, the disaster recovery script needs to be updated in a timely manner. Therefore, it is necessary to promptly and quickly determine the key information of the virtual machine and mark the virtual machine so as to subsequently determine the key virtual machine for the disaster recovery operation and generate the corresponding disaster recovery script.

[0103] In specific implementation, pattern matching may be performed only on the changed virtual machines, and this embodiment does not specifically limit this.

[0104] Step S20, dynamically updating a script library based on the key information of the virtual machine, wherein the script library stores disaster recovery scripts corresponding to each network element in different disaster recovery operations;

[0105] It should be noted that the script library is a database that stores disaster recovery scripts. Generally speaking, different disaster recovery operations usually require the execution of different disaster recovery scripts. Therefore, the script library needs to store the disaster recovery scripts corresponding to each network element in different disaster recovery operations. If the virtual machine of the network element in the resource pool changes, the corresponding disaster recovery operation needs to use a new disaster recovery script, that is, the existing disaster recovery script in the script library needs to be dynamically updated.

[0106] In a feasible implementation, step S20 may include steps S201 to S204:

[0107] Step S201, based on the name of the virtual machine, obtaining an identification code of the virtual machine from the cloud computing platform;

[0108] It should be noted that the cloud computing platform used in this embodiment is OpenStack, which is not specifically limited.

[0109] It can be understood that the identification code of the virtual machine is the UUID of the virtual machine. The control node queries OpenStack for information such as the UUID of the virtual machine based on the name of the virtual machine.

[0110] Step S202, determining the changed network element based on the network element name to which the virtual machine belongs, and determining the key virtual machine of the changed network element in different disaster recovery operations based on the function type of the virtual machine;

[0111] It should be noted that the changed network element is the network element where the virtual machine changes, and its corresponding disaster recovery script needs to be updated. Disaster recovery operations can be of different types. The disaster recovery operations in this embodiment at least include network element isolation, network element recovery, and network element status check. The key virtual machine is the virtual machine that needs to perform disaster recovery operations. Exemplarily, the key virtual machine isolated by the network element is the interface virtual machine. Different disaster recovery operations can correspond to different key virtual machines, and this embodiment does not specifically limit this.

[0112] It is understandable that the control node can determine the key virtual machines of the changed network elements in different disaster recovery operations according to the functional types of the virtual machines.

[0113] Step S203, generating a new disaster recovery script for the changed network element in different disaster recovery operations based on the identification code of the key virtual machine of the changed network element in different disaster recovery operations;

[0114] It should be noted that the identification code of the changed network element is the ID of the changed network element.

[0115] It is understandable that the UUIDs of these key virtual machines are used to generate disaster recovery scripts for network element isolation, network element status check, and network element recovery in sequence.

[0116] Step S204: Based on the identification code of the changed network element, a script update request is sent to the script library, so that the script library is dynamically updated according to the new disaster recovery script.

[0117] It can be understood that a script update request is initiated to the script library according to the ID of the changed network element, and the script library updates and saves the new disaster recovery script.

[0118] In this implementation, the disaster recovery script is dynamically generated based on pattern matching, which has high accuracy and real-time performance, can reduce the pressure of operation and maintenance personnel to maintain and update the disaster recovery script, and at the same time improve the operation efficiency of the entire disaster recovery system.

[0119] Step S30, determining a target disaster recovery script in a dynamically updated script library based on the name of the target network element and the target disaster recovery operation input by the user terminal in the disaster recovery scenario;

[0120] It should be noted that the disaster recovery scenario is a scenario where disaster recovery needs to be performed, which is usually triggered by the user end. The target network element is the network element that needs to perform disaster recovery, the target disaster recovery operation is the disaster recovery operation that needs to be performed, and the target disaster recovery script is the disaster recovery script required for the target network element to perform the target disaster recovery operation. The user end can be an APP end or a web page end, and there is no specific limitation on this.

[0121] In a feasible implementation, step S30 may include steps S301 to S303:

[0122] Step S301, upon receiving the disaster recovery task initiation information input by the user terminal, determining to trigger the disaster recovery scenario;

[0123] It should be noted that the disaster recovery task initiation information is the keyword for initiating the disaster recovery task, for example: disaster recovery initiation, which can be set according to actual needs and is not specifically limited. When the operation and maintenance personnel input the disaster recovery task initiation information on the user side, it is considered that the current disaster recovery process is initiated and the disaster recovery scenario is triggered.

[0124] Step S302, sending task input prompt information to the user terminal to obtain the name of the target network element and the target disaster recovery operation input by the user terminal;

[0125] It should be noted that the task input prompt information is a prompt for entering the name of the target network element and the target disaster recovery operation, for example: please enter the name of the disaster recovery network element and the type of disaster recovery operation to be initiated. It can be set according to actual needs and is not specifically limited.

[0126] It is understandable that the target disaster recovery operation can be input in the form of keywords. For example, if the target disaster recovery operation is network element isolation, then “isolation” is input.

[0127] Step S303: Based on the name of the target network element and the target disaster recovery operation, query the script library to determine the target disaster recovery script.

[0128] It can be understood that when disaster recovery needs to be performed, the operation and maintenance personnel enter the keyword to initiate the disaster recovery task on the user side, initiate the disaster recovery process, and the external interactive interface returns the task input prompt information. The operation and maintenance personnel enter the name of the target network element and the target disaster recovery operation on the user side. The external interactive interface queries the script library based on the name of the target network element and the target disaster recovery operation. After receiving the query request, the control node queries the script library to obtain the disaster recovery script of the target network element.

[0129] Step S40, based on the target disaster recovery script, generate disaster recovery operation instructions, and send the disaster recovery operation instructions to the proxy server of the resource pool where the target network element is located, so that the corresponding proxy server logs in to the cloud computing platform to execute the target disaster recovery script.

[0130] It should be noted that the target virtual machine is the virtual machine involved when the target network element performs the target disaster recovery operation. Since the virtual machine identification code is used when generating the disaster recovery script, the identification codes of all target virtual machines can be found in the target disaster recovery script.

[0131] In a feasible implementation, the step of generating disaster recovery operation instructions based on the target disaster recovery script includes: determining the identification code and task identification code of the target virtual machine based on the target disaster recovery script; generating disaster recovery execution prompt information based on the name of the target network element, the identification code of the target virtual machine and the task identification code, and sending the disaster recovery execution prompt information to the user terminal; upon receiving confirmation information from the user terminal for the disaster recovery execution prompt information, generating the disaster recovery operation instruction based on the task identification code and the target disaster recovery operation.

[0132] It should be noted that the task identification code is the task ID. The disaster recovery execution prompt information is a prompt used to confirm whether to execute the target disaster recovery operation. It usually needs to include the name of the target network element and the identification code of the target virtual machine. For example: You will perform an isolation operation on the interface virtual machines A and B of the network element jsAMF001. Please reply 1 to confirm. If the user enters 1, it is considered that the user has received the confirmation information of the disaster recovery execution prompt information. It can be set according to actual needs. The disaster recovery operation instruction is the execution instruction corresponding to the target disaster recovery operation.

[0133] It can be understood that the control node returns the name of the target network element, the identification code of the target virtual machine and the task identification code to the external interactive interface, and the external interactive interface returns the disaster recovery execution prompt information to the user end. If the user end confirms that the information is correct, it sends a confirmation message. After receiving the confirmation message, the external interactive interface generates a disaster recovery operation instruction carrying the task ID, target disaster recovery operation and other information, and sends it to the control node. The control node queries the local database, selects the resource pool where the target network element is located, selects the corresponding proxy server, and issues the disaster recovery operation instruction. The proxy server logs in to OpenStack and executes the target disaster recovery script.

[0134] In this implementation, an interactive portal is built based on chatops technology, the backend is connected to the network element model library, and the command channel with the cloud computing platform is opened. When the disaster recovery scenario is triggered, the operation and maintenance personnel only need to provide a simple network element name, command keywords for disaster recovery operations, etc. The system backend automatically completes the network element information and command confirmation based on the provided information. After the operation and maintenance personnel confirm, the command can be issued for execution, avoiding the user's operation of writing and inputting commands. Only a simple confirmation is required to complete the confirmation and issuance of disaster recovery operation commands, which greatly improves the convenience, accuracy and security of disaster recovery operations.

[0135] The present embodiment provides a network element intelligent disaster recovery method. When a virtual machine of a network element in a resource pool changes, based on the naming encoding pattern stored in the network element pattern library, pattern matching is performed on the name field information of the virtual machine to determine the key information of the virtual machine; based on the key information of the virtual machine, a script library is dynamically updated, and the script library stores the disaster recovery scripts corresponding to each network element in different disaster recovery operations; based on the name of the target network element and the target disaster recovery operation input by the user terminal in the disaster recovery scenario, the target disaster recovery script is determined in the dynamically updated script library; based on the target disaster recovery script, a disaster recovery operation instruction is generated, and the disaster recovery operation instruction is issued to the proxy server of the resource pool where the target network element is located, so that the corresponding proxy server logs in to the cloud computing platform to execute the target disaster recovery script. The network element pattern library is used to parse the name field of the virtual machine to realize automatic identification and classification of the virtual machine. The changes of the virtual machines in the network element can be automatically identified, so as to automatically update the disaster recovery scripts in the script library dynamically, improve the accuracy and timeliness of disaster recovery operations, and improve the efficiency of disaster recovery operations. In addition, the user side only needs to simply enter the network element name and operation type to determine the corresponding disaster recovery operation instructions and execute the corresponding disaster recovery scripts, further improving the convenience and accuracy of disaster recovery operations.

[0136] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 , the step S10 may include steps S01 to S03:

[0137] Step S01, sending performance data subscription information to the resource pool, and after the resource pool confirms that the subscription is successful, receiving performance data reported by each resource pool according to a preset period;

[0138] It should be noted that performance data refers to VIM / PIM performance files, which usually contain the latest information of network elements, virtual machines, etc. Performance data subscription information refers to subscription requests for VIM / PIM performance files. Figure 4 .

[0139] It is understandable that the control node sends a subscription request for the VIM / PIM performance file to the NFV-O (one of the MNAO components) of each resource pool. If the resource pool confirms that the subscription is successful, the resource pool will report the corresponding performance data according to the preset period. The preset period is the set period for reporting data, for example: 15 minutes. At this time, the resource pool generates performance data every 15 minutes and sends it to the control node. The subscription operation only needs to be performed once after the entire system is established.

[0140] Step S02, parsing the performance data to determine the name field information and other field information of the virtual machine;

[0141] It should be noted that other field information refers to the fields in the virtual machine identification number except the resource instance number, such as: encoding type, geographical location, hardware resource pool number, manufacturer identification and virtual resource pool number.

[0142] It is understandable that according to the network cloud instance naming specification, the resource instance number, encoding type, geographic location, hardware resource pool number, manufacturer identification and virtual resource pool number are parsed.

[0143] Step S03: determining whether a virtual machine of a network element in the resource pool has changed according to the name field information of the virtual machine.

[0144] It is understandable that if the resource instance number changes, it indicates that the virtual machine of the network element in the resource pool has changed, and if the resource instance number does not change, it indicates that the virtual machine of the network element in the resource pool has not changed.

[0145] Further, step S40 may include steps S501 to S502:

[0146] Step S501, obtaining a disaster recovery operation execution log recorded in the process of the proxy server executing the target disaster recovery script, and determining a disaster recovery operation execution result based on the disaster recovery operation execution log;

[0147] It should be noted that the disaster recovery operation execution log is the log of the target disaster recovery script during execution, which is recorded by the proxy server and returned to the control node. The disaster recovery operation execution result is the execution result of the target disaster recovery operation.

[0148] Step S502: outputting execution result prompt information to the user terminal based on the disaster recovery operation execution result and the disaster recovery operation execution log.

[0149] It should be noted that the execution result prompt information is a prompt of the execution result, for example: the isolation operation of network element jsAMF001 is executed successfully, and the log is as follows: XXX, which can be set according to actual needs.

[0150] It can be understood that the proxy server logs in to OpenStack, executes the script and records the OpenStack log, returns the relevant results to the control node, the control node forwards the results to the external interactive interface, and the external interactive interface outputs the execution result prompt information to the operation and maintenance personnel.

[0151] It should be understood that different disaster recovery operations can be performed in sequence according to actual needs.

[0152] This embodiment provides a network element intelligent disaster recovery method, which uses the network element mode library to parse the name field of the virtual machine to realize automatic identification and classification of the virtual machine. It can automatically identify the changes of the virtual machines in the network element, so as to automatically and dynamically update the disaster recovery scripts in the script library, thereby improving the accuracy and timeliness of disaster recovery operations, and improving the efficiency of disaster recovery operations. In addition, the user end only needs to simply input the network element name and operation type to determine the corresponding disaster recovery operation instructions and execute the corresponding disaster recovery scripts, thereby further improving the convenience and accuracy of disaster recovery operations.

[0153] For example, in order to help understand the implementation process of the network element intelligent disaster recovery method obtained by combining this embodiment with the above-mentioned embodiment 2, please refer to Figure 5 , Figure 5 A schematic diagram of a brief process of updating disaster recovery information of a network element intelligent disaster recovery method is provided, specifically:

[0154] Step 1: The control node sends a performance file subscription request to the NFV-O of each resource pool;

[0155] Step 2: NFV-O confirms that the subscription is successful (this step only needs to be performed once after the entire system is established);

[0156] Step 3: NFV-O generates a VIM / PIM performance file (including the latest information of network elements, virtual machines, etc.) every 15 minutes. After generation, NFV-O queries the subscription relationship and sends the VIM / PIM performance file to the control node;

[0157] Step 4: The control node receives the performance file, parses it into the database according to the rules, and checks the changes of the virtual machines. If it finds that the virtual machines have increased or decreased, it initiates the pattern matching process, performs pattern matching on the newly added or changed virtual machines, and tags the virtual machines accordingly.

[0158] Step 5: For the VMs whose patterns are successfully matched, the control node queries OpenStack for VM UUID and other information based on the VM name to generate the script.

[0159] Step 6: The control node generates scripts for different disaster recovery operations such as network element isolation, network element status check, and network element recovery according to the virtual machine UUID, and initiates a script update request to the script library according to the network element ID;

[0160] Step 7: Update and save the disaster recovery script in the script library.

[0161] Please refer to Figure 6 , Figure 6 A schematic diagram of a simplified disaster recovery execution process of a network element intelligent disaster recovery method is provided, specifically:

[0162] Step 1: The maintenance personnel initiates the disaster recovery process through the APP (for example, enter a keyword such as "disaster recovery initiate");

[0163] Step 2: The chatops front-end returns a prompt message: Please enter the name of the disaster recovery network element and the type of operation to be initiated;

[0164] Step 3: The maintenance personnel enters the network element name and operation type (for example: jsAMF001, isolation);

[0165] Step 4: The chatops front end queries the script library based on the input network element name and operation type;

[0166] Step 5: After receiving the query request, the control end queries the script library and returns the basic information of the network element and the disaster recovery script information of the network element;

[0167] Step 6: The chatops frontend returns an execution prompt to the user: You will perform isolation operations on the interface virtual machines A and B of the network element jsAMF001. Please reply 1 to confirm.

[0168] Step 7: The user confirms that the information is correct and replies 1 as confirmation;

[0169] Step 8: After receiving the confirmation message, chatops carries the keyword task ID, operation type, etc., queries the local database, selects the corresponding resource pool, selects the corresponding proxy server, and issues the disaster recovery task;

[0170] Step 9: The proxy server logs in to OpenStack, executes the script and records the OpenStack log, and returns the relevant results to the control node, which forwards the results to the chatops front end;

[0171] Step 10: The chatops front end returns the result to the operation and maintenance personnel: The isolation operation of network element jsAMF001 is executed successfully, and the log is as follows: XXX.

[0172] The present application provides a network element intelligent disaster recovery device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the network element intelligent disaster recovery method in the above-mentioned embodiment one.

[0173] Reference below Figure 7 , which shows a schematic diagram of the structure of a network element intelligent disaster recovery device suitable for implementing the embodiment of the present application. The network element intelligent disaster recovery device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The network element intelligent disaster recovery device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0174] like Figure 7As shown, the network element intelligent disaster recovery device may include a processing system 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage system 1003 to a random access memory (RAM) 1004. Various programs and data required for the operation of the network element intelligent disaster recovery device are also stored in the RAM 1004. The processing system 1001, the ROM 1002, and the RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to the I / O interface 1006: an input system 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output system 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage system 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication system 1009. The communication system 1009 may allow the network element intelligent disaster recovery device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a network element intelligent disaster recovery device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.

[0175] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication system, or installed from a storage system 1003, or installed from a ROM 1002. When the computer program is executed by the processing system 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0176] The network element intelligent disaster recovery device provided by the present application adopts the network element intelligent disaster recovery method in the above embodiment, which can solve the technical problem that the disaster recovery script relies on manual update and maintenance, affecting the accuracy and timeliness of the disaster recovery operation. Compared with the prior art, the beneficial effects of the network element intelligent disaster recovery device provided by the present application are the same as the beneficial effects of the network element intelligent disaster recovery method provided by the above embodiment, and other technical features in the network element intelligent disaster recovery device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0177] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0178] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which 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.

[0179] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the network element intelligent disaster recovery method in the above-mentioned embodiment.

[0180] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0181] The computer-readable storage medium may be included in the network element intelligent disaster recovery device; or may exist independently without being assembled into the network element intelligent disaster recovery device.

[0182] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the network element intelligent disaster recovery device, the network element intelligent disaster recovery device enables: when the virtual machine of the network element in the resource pool changes, based on the naming encoding pattern stored in the network element pattern library, the name field information of the virtual machine is pattern matched to determine the key information of the virtual machine; based on the key information of the virtual machine, the script library is dynamically updated, and the script library stores the disaster recovery scripts corresponding to each network element in different disaster recovery operations; based on the name of the target network element and the target disaster recovery operation input by the user end in the disaster recovery scenario, the target disaster recovery script is determined in the dynamically updated script library; based on the target disaster recovery script, a disaster recovery operation instruction is generated, and the disaster recovery operation instruction is sent to the proxy server of the resource pool where the target network element is located, so that the corresponding proxy server logs in to the cloud computing platform to execute the target disaster recovery script.

[0183] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0184] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0185] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0186] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned network element intelligent disaster recovery method, and can solve the technical problem that the disaster recovery script relies on manual updating and maintenance, affecting the accuracy and timeliness of disaster recovery operations. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the network element intelligent disaster recovery method provided by the above-mentioned embodiment, and will not be repeated here.

[0187] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned network element intelligent disaster recovery method when executed by a processor.

[0188] The computer program product provided by the present application can solve the technical problem that the disaster recovery script relies on manual updating and maintenance, which affects the accuracy and timeliness of disaster recovery operations. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the network element intelligent disaster recovery method provided by the above embodiment, which will not be repeated here.

[0189] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A network element intelligent disaster recovery method, characterized in that: The method comprises: When a virtual machine of a network element in a resource pool changes, pattern matching is performed on the name field information of the virtual machine based on the naming encoding pattern stored in the network element pattern library to determine key information of the virtual machine; Based on the key information of the virtual machine, dynamically update the script library, the script library stores the disaster recovery scripts corresponding to each network element in different disaster recovery operations; Based on the name of the target network element and the target disaster recovery operation input by the user in the disaster recovery scenario, determine the target disaster recovery script in the dynamically updated script library; Based on the target disaster recovery script, a disaster recovery operation instruction is generated, and the disaster recovery operation instruction is issued to the proxy server of the resource pool where the target network element is located, so that the corresponding proxy server logs in to the cloud computing platform to execute the target disaster recovery script.

2. The method according to claim 1, characterized in that The key information at least includes a virtual machine name, a home network element name, and a function type. The step of dynamically updating the script library based on the key information of the virtual machine includes: Based on the name of the virtual machine, obtaining an identification code of the virtual machine from the cloud computing platform; Determine the changed network element based on the network element name to which the virtual machine belongs; Based on the function type of the virtual machine, determining the key virtual machines of the changed network element in different disaster recovery operations, wherein the disaster recovery operations at least include network element isolation, network element recovery, and network element status check; Based on the identification codes of the key virtual machines of the changed network elements in different disaster recovery operations, generating new disaster recovery scripts for the changed network elements in different disaster recovery operations; Based on the identification code of the changed network element, a script update request is sent to the script library, so that the script library is dynamically updated according to the new disaster recovery script.

3. The method according to claim 1, characterized in that When a virtual machine of a network element in the resource pool changes, the step of performing pattern matching on the name field information of the virtual machine based on the naming encoding pattern stored in the network element pattern library to determine the key information of the virtual machine also includes: Sending performance data subscription information to the resource pool; After the resource pool confirms that the subscription is successful, receiving performance data reported by each resource pool according to a preset period; Parsing the performance data to determine name field information and other field information of the virtual machine, wherein the other field information includes at least an encoding type, a geographic location, a hardware resource pool number, a manufacturer identifier, and a virtual resource pool number; It is determined whether a virtual machine of a network element in the resource pool is changed according to the name field information of the virtual machine.

4. The method according to claim 1, characterized in that The step of determining the target disaster recovery script in the dynamically updated script library based on the name of the target network element and the target disaster recovery operation input by the user terminal in the disaster recovery scenario includes: Upon receiving the disaster recovery task initiation information input by the user terminal, determining to trigger the disaster recovery scenario; Sending task input prompt information to the user terminal to obtain the name of the target network element and the target disaster recovery operation input by the user terminal; Based on the name of the target network element and the target disaster recovery operation, the script library is queried to determine the target disaster recovery script.

5. The method according to claim 1, characterized in that The step of generating a disaster recovery operation instruction based on the target disaster recovery script comprises: Based on the target disaster recovery script, determine the identification code and task identification code of the target virtual machine; Generate disaster recovery execution prompt information based on the name of the target network element, the identification code of the target virtual machine and the task identification code, and send the disaster recovery execution prompt information to the user terminal; When confirmation information of the user terminal for the disaster recovery execution prompt information is received, the disaster recovery operation instruction is generated based on the task identification code and the target disaster recovery operation.

6. The method according to any one of claims 1 to 5, characterized in that After the step of generating a disaster recovery operation instruction based on the target disaster recovery script, and issuing the disaster recovery operation instruction to a proxy server of a resource pool where the target network element is located so that the corresponding proxy server logs in to the cloud computing platform to execute the target disaster recovery script, the step further includes: Obtaining a disaster recovery operation execution log recorded during the process of the proxy server executing the target disaster recovery script; Determining the disaster recovery operation execution result based on the disaster recovery operation execution log; Based on the disaster recovery operation execution result and the disaster recovery operation execution log, output execution result prompt information to the user terminal.

7. A network element intelligent disaster recovery system, characterized in that: The system includes an external interaction interface, a control node, a network element pattern library and a proxy server, wherein the control node is connected to the external interaction interface, the network element pattern library and the proxy server respectively, and the proxy server is deployed in each resource pool: The control node is used to perform pattern matching on the name field information of the virtual machine based on the naming encoding pattern stored in the network element pattern library when a virtual machine of the network element in the resource pool changes, so as to determine the key information of the virtual machine; The control node is further used to dynamically update a script library based on key information of the virtual machine, wherein the script library stores disaster recovery scripts corresponding to each network element in different disaster recovery operations; The external interaction interface is used to obtain the name of the target network element and the target disaster recovery operation input by the user terminal in the disaster recovery scenario, and send the name of the target network element and the target disaster recovery operation to the control node; The control node is further used to determine a target disaster recovery script in a dynamically updated script library based on the name of the target network element and the target disaster recovery operation, and send the target disaster recovery script to the external interactive interface; The external interactive interface is further used to generate a disaster recovery operation instruction based on the target disaster recovery script, and send the disaster recovery operation instruction to the control node; The control node is further used to send the disaster recovery operation instruction to the proxy server of the resource pool where the target network element is located, so that the corresponding proxy server logs into the cloud computing platform to execute the target disaster recovery script.

8. A network element intelligent disaster recovery device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the network element intelligent disaster recovery method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the network element intelligent disaster recovery method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the network element intelligent disaster recovery method as claimed in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Database remote disaster recovery system and deployment method and deployment device thereof

    CN109947591A

  • Core network element disaster recovery processing method and system

    CN117082546A

  • Virtual machine configuration information storage method and apparatus

    WO2016078422A1

  • Disaster recovery switching method and system, electronic device, and storage medium

    WO2023093379A1