Disaster recovery switching method and device, equipment, storage medium and computer program product

By automatically determining the interruption of data center line connections and determining the optimal routing path through the dynamic routing protocol, the problem of manual operation dependence in the existing technology is solved, and efficient and automated disaster recovery switching is achieved to ensure business continuity.

CN120011136APending Publication Date: 2025-05-16PEOPLE'S INSURANCE COMPANY OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510006913.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-02
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The existing disaster recovery switching methods rely on manual operations, resulting in high resource consumption and low efficiency, and may lead to short-term business interruption, affecting business continuity and user experience.

Method used

By determining whether the first data center line connection is interrupted, and using dynamic routing protocols to determine the optimal routing path, update the routing table, and forward the data traffic to the disaster recovery data center, to realize automated disaster recovery switching.

Benefits of technology

It realizes accurate and efficient disaster recovery switching while ensuring business continuity, reduces human resources consumption and improves disaster recovery switching efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120011136A_ABST
    Figure CN120011136A_ABST
Patent Text Reader

Abstract

The invention discloses a disaster recovery switching method which is used for solving the problems that existing disaster recovery switching is achieved manually, operation and maintenance workers need to execute a series of operations in the switching process, a large number of manpower resources and cost are consumed, disaster recovery switching efficiency is greatly reduced, and in the switching process, services are temporarily interrupted, and the switching efficiency is poor. And the service continuity and the user experience are influenced. The method comprises: determining whether line connection of a first data center is interrupted; when the judgment result is yes, determining an optimal routing path through a dynamic routing protocol; and determining an updated routing table according to the optimal routing path, and forwarding data traffic to a disaster recovery data center according to the updated routing table.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a disaster recovery switching method, apparatus, device, storage medium and computer program product. Background Art

[0002] With the continuous development of Internet information technology, the scale of an enterprise's IT system is also expanding. Whether the IT system can operate normally will directly affect the daily business operations of the enterprise.

[0003] With the deepening of digital development, data centers and big data platforms have gradually become data infrastructure. Whether the data center can operate normally and continuously will directly affect the daily business operations of the enterprise.

[0004] This is especially true for the financial industry, such as banks, insurance companies, and bond companies. Since the daily business operations of these companies are highly dependent on data centers, in this model where business and data centers are closely linked, once a sudden failure occurs in the data center, resulting in the loss of key business data or the inability to restore the information system as soon as possible, it will seriously affect the normal operation of these companies' businesses, causing huge economic losses and adverse social impacts.

[0005] In order to avoid economic losses caused by sudden failures in data centers, existing solutions usually perform disaster recovery backup on data centers. When a primary data center fails, in order to ensure business continuity, it is necessary to quickly switch to a backup data center corresponding to the primary data center, and the backup data center will replace the primary data center to continue providing services.

[0006] In the prior art, when a data center suddenly fails, when performing disaster recovery switching of the data center, the operation and maintenance staff inside the data center need to manually modify the route to point to the disaster recovery data center. After the modification is completed, the old service connection session is interrupted and invalid, and the connection is re-established in the disaster recovery data center.

[0007] Due to the complexity of the system architecture, operation and maintenance personnel need to be very familiar with the system architecture in order to perform rapid switching. During the switching process, operation and maintenance personnel need to perform a series of operations, which consumes a lot of human resources and costs, and greatly reduces the efficiency of disaster recovery switching. During the switching process, the business will be briefly interrupted, affecting business continuity and user experience.

[0008] It can be seen that there is an urgent need for a method to accurately and efficiently implement disaster recovery switching while ensuring business continuity. Summary of the invention

[0009] The embodiment of the present application provides a disaster recovery switching method to solve the problem that the existing disaster recovery switching relies on manual implementation, and the operation and maintenance staff need to perform a series of operations during the switching process, which consumes a lot of human resources and costs, greatly reduces the efficiency of disaster recovery switching, and during the switching process, the business will be briefly interrupted, affecting business continuity and user experience.

[0010] The embodiment of the present application also provides a disaster recovery switching device to solve the problem that the existing disaster recovery switching relies on manual implementation, and the operation and maintenance staff need to perform a series of operations during the switching process, which consumes a lot of human resources and costs, greatly reduces the efficiency of disaster recovery switching, and during the switching process, the business will be briefly interrupted, affecting business continuity and user experience.

[0011] The embodiment of the present application also provides a disaster recovery switching device to solve the problem that the existing disaster recovery switching relies on manual implementation, and the operation and maintenance staff need to perform a series of operations during the switching process, which consumes a lot of human resources and costs, greatly reduces the efficiency of disaster recovery switching, and during the switching process, the business will be briefly interrupted, affecting business continuity and user experience.

[0012] The embodiment of the present application also provides a computer-readable storage medium to solve the problem that the existing disaster recovery switching relies on manual implementation, and the operation and maintenance staff need to perform a series of operations during the switching process, which consumes a lot of human resources and costs, greatly reduces the efficiency of disaster recovery switching, and during the switching process, the business will be briefly interrupted, affecting business continuity and user experience.

[0013] A computer program product is used to solve the problem that the existing disaster recovery switching relies on manual implementation. During the switching process, the operation and maintenance staff need to perform a series of operations, which consumes a lot of human resources and costs, greatly reduces the efficiency of disaster recovery switching, and during the switching process, the business will be temporarily interrupted, affecting business continuity and user experience.

[0014] The present application embodiment adopts the following technical solutions: A disaster recovery switching method includes: determining whether a line connection of a first data center is interrupted; when the determination result is yes, determining an optimal routing path through a dynamic routing protocol; determining an updated routing table according to the optimal routing path, and forwarding data traffic to a disaster recovery data center according to the updated routing table.

[0015] A disaster recovery switching device includes: a connectivity detection unit, used to determine whether a line connection of a first data center is interrupted; a path update unit, used to determine an optimal routing path through a dynamic routing protocol when the judgment result obtained by the connectivity detection unit is yes; a disaster recovery switching unit, used to determine an updated routing table according to the optimal routing path, and forward data traffic to the disaster recovery data center according to the updated routing table.

[0016] A disaster recovery switching device, comprising: A processor; and a memory arranged to store computer executable instructions, wherein the executable instructions, when executed, cause the processor to perform the following operations: determine whether the line connection of the first data center is interrupted; when the result of the determination is yes, determine an optimal routing path through a dynamic routing protocol; determine an updated routing table according to the optimal routing path, and forward data traffic to the disaster recovery data center according to the updated routing table.

[0017] A computer-readable storage medium stores one or more programs. When the one or more programs are executed by an electronic device including multiple application programs, the electronic device performs the following operations: determining whether a line connection of a first data center is interrupted; when the determination result is yes, determining an optimal routing path through a dynamic routing protocol; determining an updated routing table according to the optimal routing path, and forwarding data traffic to a disaster recovery data center according to the updated routing table.

[0018] A computer program product includes a computer program, which, when executed by a processor, implements: determining whether a line connection of a first data center is interrupted; when the determination result is yes, determining an optimal routing path through a dynamic routing protocol; determining an updated routing table according to the optimal routing path, and forwarding data traffic to a disaster recovery data center according to the updated routing table.

[0019] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: By adopting the disaster recovery switching method provided in the embodiment of the present application, the disaster recovery system can dynamically determine whether the line connection of the first data center in current operation is interrupted. When it is determined that the connection is interrupted, the disaster recovery system can determine the optimal routing path through the dynamic routing protocol, and determine the updated routing table based on the optimal routing path, and forward the data traffic to the disaster recovery data center based on the updated routing table. By adopting the method provided in the embodiment of the present application, after detecting that a data center fails and the connection is interrupted, the disaster recovery system can automatically determine the optimal routing path through the dynamic routing protocol, and then update the routing table based on the optimal routing path, and switch the data center to the disaster recovery data center based on the updated routing table, and forward the data traffic to the disaster recovery data center, so as to accurately and efficiently realize disaster recovery switching while ensuring business continuity. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings: Figure 1 A schematic diagram of a specific process of a disaster recovery switching method provided in an embodiment of the present application; Figure 2 A schematic diagram of the specific structure of a disaster recovery switching device provided in an embodiment of the present application; Figure 3 A schematic diagram of the specific structure of a disaster recovery switching device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0022] The existing disaster recovery switching relies on manual implementation, and the operation and maintenance staff need to perform a series of operations during the switching process, which consumes a lot of human resources and costs, greatly reduces the efficiency of disaster recovery switching, and during the switching process, the business will be temporarily interrupted, affecting business continuity and user experience. The embodiment of the present application provides a disaster recovery switching method.

[0023] The executor of the disaster recovery switching method provided in the embodiment of the present application may be, but is not limited to, at least one of a disaster recovery management server, a disaster recovery server, or a data center management server; in addition, the executor of the method may also be an application (Application, APP) running on these servers or the system itself.

[0024] For ease of description, the following takes the method being performed by a disaster recovery management system as an example to introduce the implementation of the method. It is understandable that the method being performed by a disaster recovery management system is only an exemplary description and should not be understood as a limitation on the method.

[0025] The specific implementation flow diagram of the disaster recovery switching provided in this application is as follows Figure 1 As shown, it mainly includes the following steps: Step 11, determining whether the line connection of the first data center is interrupted; In an embodiment of the present application, the disaster recovery management system can determine whether the line connection of the first data center is interrupted by configuring heartbeat detection of the switch.

[0026] Specifically, in the pre-configuration phase, the disaster recovery management system can configure the primary line between each operator's network equipment and the primary data center, wherein the network equipment interacts with the primary data center through the primary line, sequentially passing through the boundary port of the security protection device, the non-boundary port of the security protection device, the intrusion prevention device (IPS), and the service message. When the heartbeat detection message sent by the primary line cannot be received according to the preset conditions, it is determined that the primary line between the network device and the primary data center fails, resulting in line interruption.

[0027] In an embodiment of the present application, the disaster recovery management system can implement heartbeat detection based on the Bidirectional Forwarding Detection (BFD) protocol by configuring the BFD protocol on the switch, thereby realizing automatic detection of line connectivity between the primary data center and the network device.

[0028] It should be noted here that in the embodiment of the present application, according to the needs of the actual usage scenario, the disaster recovery management system can configure the heartbeat detection of the switch to sequentially detect the connectivity of the single main line between the main data center and the network equipment, the main line between the main data center and a single operator's network equipment, and the main line between the main data center and all operator network equipment to determine whether the line is interrupted by a fault.

[0029] Step 12, when the line connection is interrupted by executing step 11, determining the optimal routing path through a dynamic routing protocol; In an embodiment of the present application, the disaster recovery management system can configure corresponding dynamic routing protocols on the router, such as Routing Information Protocol (RIP), Open Shortest Path First (OSPF) or Border Gateway Protocol (BGP), etc., which will be responsible for propagating routing information between routers.

[0030] Specifically, routers exchange routing information through dynamic routing protocols. For example, for distance vector routing protocols (such as RIP), routers will periodically broadcast their routing tables to neighboring routers; for link state routing protocols (such as OSPF), routers will broadcast link state information, and then each router uses this information to calculate the best routing path to each network when the main line fails.

[0031] Step 13, obtaining an updated routing table according to the optimal routing path determined by executing step 12, and forwarding the data traffic to the disaster recovery data center according to the updated routing table.

[0032] It should be noted here that, in response to the above three different main line interruption situations, in the embodiment of the present application, the disaster recovery management system can perform line switching respectively according to the following methods: Type 1, single line interruption; When it is determined by executing step 12 that a single line of the first data center is interrupted, after determining the optimal path and updating the routing table of each router according to the optimal path, the disaster recovery management system can determine the interconnection line between the first data center and the disaster recovery data center according to the updated routing table. During this period, the network equipment normally sends business messages to the first data center, and then forwards the business message data to the disaster recovery data center through the interconnection line between the first data center and the disaster recovery data center, thereby achieving disaster recovery switching of the data center while ensuring business continuity.

[0033] Type 2, single operator line outage; When it is determined by executing step 12 that the primary line between the first data center and a single operator is interrupted, after determining the optimal path and updating the routing table of each router according to the optimal path, the disaster recovery management system can enable the backup firewall located in the disaster recovery data center and forward the data traffic to the disaster recovery data center according to the updated routing table. During this period, the network equipment normally sends the service message to the first data center, and then forwards the service message data to the disaster recovery data center through the interconnection line between the first data center and the disaster recovery data center, thereby realizing the disaster recovery switching of the data center while ensuring business continuity.

[0034] Type 3: all operator lines are disconnected; When it is determined by executing step 12 that the main lines between the first data center and all operators are interrupted, after determining the optimal path and updating the routing table of each router according to the optimal path, the disaster recovery management system can enable the backup line access area located in the disaster recovery data center, and forward the data traffic to the disaster recovery data center according to the updated routing table and the backup line access area. During this period, the network equipment normally sends business messages to the first data center, and then forwards the business message data to the disaster recovery data center through the interconnection line between the first data center and the disaster recovery data center, thereby realizing the disaster recovery switching of the data center while ensuring business continuity.

[0035] By adopting the disaster recovery switching method provided in the embodiment of the present application, the disaster recovery system can dynamically determine whether the line connection of the first data center in the current operation is interrupted. When it is determined that the connection is interrupted, the disaster recovery system can determine the optimal routing path through the dynamic routing protocol, and obtain an updated routing table based on the optimal routing path, and forward the data traffic to the disaster recovery data center according to the updated routing table. By adopting the method provided in the embodiment of the present application, after detecting that a data center fails and the connection is interrupted, the disaster recovery system can automatically determine the optimal routing path through the dynamic routing protocol, and then update the routing table according to the optimal routing path, and switch the data center to the disaster recovery data center according to the updated routing table, and forward the data traffic to the disaster recovery data center, so as to accurately and efficiently realize disaster recovery switching while ensuring business continuity.

[0036] In one implementation, the present application also provides a disaster recovery switching device to solve the problem that the existing disaster recovery switching relies on manual implementation, and the operation and maintenance staff need to perform a series of operations during the switching process, which consumes a lot of human resources and costs, greatly reduces the efficiency of disaster recovery switching, and during the switching process, the business will be temporarily interrupted, affecting business continuity and user experience. The specific structural diagram of the disaster recovery switching device is shown in Figure 2 As shown, it includes: a connectivity detection unit 21, a path updating unit 22 and a disaster recovery switching unit 23.

[0037] Wherein, the connectivity detection unit 21 is used to determine whether the line connection of the first data center is interrupted; A path updating unit 22, configured to determine an optimal routing path through a dynamic routing protocol when the determination result obtained by the connectivity detection unit is yes; The disaster recovery switching unit 23 is used to determine an updated routing table according to the optimal routing path, and forward the data traffic to the disaster recovery data center according to the updated routing table.

[0038] In one implementation, the connectivity detection unit 21 is specifically configured to determine whether the line connection of the first data center is interrupted by configuring a heartbeat detection of the switch.

[0039] In one embodiment, the connectivity detection unit 21 is specifically used to: determine whether a single line of the first data center is interrupted by configuring a heartbeat detection on the switch; and / or determine whether a line between the first data center and a single operator is interrupted by configuring a heartbeat detection on the switch; and / or determine whether the lines between the first data center and all operators are interrupted by configuring a heartbeat detection on the switch.

[0040] In one embodiment, when the connectivity detection unit 21 determines that a single line of the first data center is interrupted through the switch configuration heartbeat detection, the disaster recovery switching unit 23 is specifically used to: determine the interconnection line between the first data center and the disaster recovery data center according to the updated routing table; and forward data to the disaster recovery data center according to the interconnection line.

[0041] In one embodiment, when the connectivity detection unit 21 determines that the line between the first data center and a single operator is interrupted through the switch configuration heartbeat detection, the disaster recovery switching unit 23 is specifically used to: enable a backup firewall located in the disaster recovery data center; obtain an updated routing table according to the optimal routing path, and forward data traffic to the disaster recovery data center according to the updated routing table.

[0042] In one embodiment, when the connectivity detection unit determines through the switch configuration heartbeat detection that the lines between the first data center and all operators are interrupted, the disaster recovery switching unit 23 is specifically used to: enable the backup line access area located in the disaster recovery data center; obtain an updated routing table according to the optimal routing path, and forward the data traffic to the disaster recovery data center according to the updated routing table and the backup line access area.

[0043] By adopting the disaster recovery switching device provided in the embodiment of the present application, the disaster recovery system can dynamically determine whether the line connection of the first data center in current operation is interrupted. When it is determined that the connection is interrupted, the disaster recovery system can determine the optimal routing path through the dynamic routing protocol, and obtain an updated routing table based on the optimal routing path, and forward the data traffic to the disaster recovery data center according to the updated routing table. By adopting the method provided in the embodiment of the present application, after detecting that a data center fails and the connection is interrupted, the disaster recovery system can automatically determine the optimal routing path through the dynamic routing protocol, and then update the routing table according to the optimal routing path, and switch the data center to the disaster recovery data center according to the updated routing table, and forward the data traffic to the disaster recovery data center, so as to accurately and efficiently realize disaster recovery switching while ensuring business continuity.

[0044] Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 3At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.

[0045] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0046] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0047] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a disaster recovery switching device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations: Determine whether the line connection of the first data center is interrupted; when the judgment result is yes, determine the optimal routing path through the dynamic routing protocol; determine to update the routing table according to the optimal routing path, and forward the data traffic to the disaster recovery data center according to the updated routing table.

[0048] The above application Figure 3The method for executing the disaster recovery switching electronic device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in software form. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in a decoding processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0049] Of course, in addition to software implementation methods, the electronic device of the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0050] The embodiment of the present application also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to execute Figure 1 The method of the embodiment shown is specifically used to perform the following operations: Determine whether the line connection of the first data center is interrupted; when the judgment result is yes, determine the optimal routing path through the dynamic routing protocol; determine to update the routing table according to the optimal routing path, and forward the data traffic to the disaster recovery data center according to the updated routing table.

[0051] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0052] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0053] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0054] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0055] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0056] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0057] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0058] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0059] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0060] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A disaster recovery switching method, characterized in that: include: Determine whether the line connection of the first data center is interrupted; When the judgment result is yes, determine the optimal routing path through a dynamic routing protocol; An updated routing table is determined according to the optimal routing path, and data traffic is forwarded to a disaster recovery data center according to the updated routing table.

2. The method according to claim 1, characterized in that The determining whether the line connection of the first data center is interrupted specifically includes: It is determined whether the line connection of the first data center is interrupted by configuring the switch to detect the heartbeat.

3. The method according to claim 2, characterized in that The step of determining whether the line connection of the first data center is interrupted by configuring the switch for heartbeat detection specifically includes: Determining whether a single line of the first data center is interrupted by configuring a heartbeat detection on the switch; and / or Determine whether the line between the first data center and the single operator is interrupted by configuring the switch with heartbeat detection; and / or The heartbeat detection is configured on the switch to determine whether the lines between the first data center and all operators are interrupted.

4. The method according to claim 3, characterized in that When it is determined through switch configuration heartbeat detection that a single line of the first data center is interrupted, determining an updated routing table according to the optimal routing path, and forwarding data traffic to the disaster recovery data center according to the updated routing table, specifically includes: Determining an interconnection line between the first data center and the disaster recovery data center according to the updated routing table; The data is forwarded to the disaster recovery data center according to the interconnection line.

5. The method according to claim 3, characterized in that: When it is determined through switch configuration heartbeat detection that the line between the first data center and the single operator is interrupted, determining an updated routing table according to the optimal routing path, and forwarding data traffic to the disaster recovery data center according to the updated routing table, specifically includes: Activate a backup firewall located in the disaster recovery data center; An updated routing table is obtained according to the optimal routing path, and data traffic is forwarded to the disaster recovery data center according to the updated routing table.

6. The method according to claim 3, characterized in that When it is determined through switch configuration heartbeat detection that the lines between the first data center and all operators are interrupted, determining an updated routing table according to the optimal routing path, and forwarding data traffic to the disaster recovery data center according to the updated routing table, specifically includes: Activating a backup line access area located in the disaster recovery data center; An updated routing table is obtained according to the optimal routing path, and data traffic is forwarded to the disaster recovery data center according to the updated routing table and the backup line access area.

7. A disaster recovery switching device, characterized in that: include: A connectivity detection unit, used to determine whether the line connection of the first data center is interrupted; A path updating unit, configured to determine an optimal routing path through a dynamic routing protocol when the determination result obtained by the connectivity detection unit is yes; The disaster recovery switching unit is used to determine an updated routing table according to the optimal routing path, and forward the data traffic to the disaster recovery data center according to the updated routing table.

8. A disaster recovery switching device, comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Determine whether the line connection of the first data center is interrupted; When the judgment result is yes, determine the optimal routing path through a dynamic routing protocol; An updated routing table is determined according to the optimal routing path, and data traffic is forwarded to a disaster recovery data center according to the updated routing table.

9. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, enables the electronic device to execute the disaster recovery switching method as described in any one of claims 1 to 6.

10. A computer program product, characterized in that It includes a computer program, which, when executed by a processor, implements the disaster recovery switching method as described in any one of claims 1 to 6.