Control method, device, storage medium and equipment for network disaster recovery switching
By switching the extranet VPN gateway of the head office to the intranet VPN gateway during network disaster recovery switching, combined with operation notifications, the problem of extended recovery time caused by collaboration was solved, efficient network disaster recovery switching was achieved, and business recovery time was shortened.
Patent Information
- Application Number
- CN202210005986.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-04
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-01-04
AI Technical Summary
The existing network disaster recovery switching method requires coordination among the head office, branches, and outlets, resulting in longer business recovery time.
By detecting a network failure in the first-level branch to which the branch belongs, the extranet VPN gateway of the head office is switched to the intranet VPN gateway, so that the gateway of the branch can be connected to the intranet of the head office, and an operation notification is sent to the person in charge, triggering the plug-in or Unplug operations to establish or disconnect communication connections to avoid communication between different organizations.
There is no need for the head office, first-level branches, or second-level branches to participate in the switching process, which significantly improves the efficiency of network disaster recovery switching and shortens the recovery time of branch business.
Smart Images

Figure CN114221856B
Abstract
Description
Technical Field
[0001] The present application relates to the field of network security, and in particular to a control method, device, storage medium and equipment for network disaster recovery switching. Background Art
[0002] Due to the large number of outlets and the popularization of various services in the outlets, the business data transmission bandwidth of the outlets is getting larger and larger, and the business they undertake is becoming more and more important. In order to deal with possible computer room-level disasters (such as network failures) in the superior institutions (including first-level branches and second-level branches) to which the outlets belong, it is necessary to control the outlets to connect to the intranet of the head office through a virtual private network (VPN) to ensure the rapid recovery of the outlets' business.
[0003] When controlling the outlets to connect to the head office's intranet via VPN, it is necessary to switch the network disaster recovery (i.e., VPN gateway). However, the existing network disaster recovery switching method requires coordination and cooperation between the head office, branches, and outlets, which will take a lot of time and extend the recovery time of the outlets' business. Summary of the invention
[0004] The present application provides a control method, device, storage medium and equipment for network disaster recovery switching, aiming to improve the efficiency of network disaster recovery switching and avoid extending the recovery time of network point services.
[0005] In order to achieve the above objectives, this application provides the following technical solutions:
[0006] A control method for network disaster recovery switching, comprising:
[0007] When a network failure is detected in the first-level branch to which the outlet belongs, the extranet VPN gateway of the head office is switched to the intranet VPN gateway of the head office, so that the gateway connection of the outlet enters the intranet of the head office;
[0008] Sending a first operation notification to the person in charge of the branch to trigger the person in charge to perform a plug-in operation; the plug-in operation is used to establish a communication connection between the gateway and the business equipment of the branch, so that the business data in the business equipment is uploaded to the intranet of the head office via the gateway;
[0009] When it is detected that the network of the first-level branch has been restored to normal, the intranet VPN gateway of the head office is switched to the extranet VPN gateway of the head office, so that the gateway cannot connect to the intranet of the head office;
[0010] A second operation notification is sent to the person in charge, triggering the person in charge to perform a disconnection operation; the disconnection operation is used to disconnect the communication connection between the gateway and the business equipment, so that the business data cannot be uploaded to the intranet of the head office via the gateway; the superior institution to which the outlet belongs is a second-level branch, and the superior institution to which the second-level branch belongs is the first-level branch.
[0011] Optionally, when a network failure is detected in a first-level branch to which the outlet belongs, switching the extranet VPN gateway of the head office to the intranet VPN gateway of the head office so that the gateway connection of the outlet enters the intranet of the head office includes:
[0012] When a network failure is detected in the first-level branch to which the outlet belongs, triggering the gateway of the outlet to connect with the extranet VPN gateway of the head office;
[0013] Sending a port opening instruction to the intranet switch of the head office, so that the intranet switch of the head office opens the intranet port of the head office;
[0014] When it is determined that the intranet port of the head office is available, the extranet VPN gateway of the head office is switched to the intranet VPN gateway of the head office, so that the gateway is connected to the intranet VPN gateway of the head office;
[0015] Control the intranet VPN gateway of the head office to connect with the intranet port of the head office so that the gateway connection enters the intranet of the head office.
[0016] Optionally, when it is detected that the network of the first-level branch is restored to normal, the intranet VPN gateway of the head office is switched to the extranet VPN gateway of the head office so that the gateway cannot connect to the intranet of the head office, including:
[0017] When it is detected that the network of the first-level branch is restored to normal, a port closing instruction is sent to the intranet switch of the head office, so that the intranet switch of the head office closes the intranet port of the head office;
[0018] The intranet VPN gateway of the head office is switched to the extranet VPN gateway of the head office so that the gateway cannot connect to the intranet of the head office.
[0019] Optionally, also include:
[0020] After detecting that the extranet VPN gateway of the first-level branch is online, the gateway is triggered to disconnect from the extranet VPN gateway of the head office and connect to the extranet VPN gateway of the first-level branch.
[0021] Optionally, also include:
[0022] In the case of detecting a network failure of the secondary branch, switching the extranet VPN gateway of the primary branch to the intranet VPN gateway of the primary branch so that the gateway is connected to the intranet of the primary branch;
[0023] Sending a first operation notification to the person in charge, triggering the person in charge to perform the plugging operation;
[0024] When it is detected that the network of the secondary branch is restored to normal, the intranet VPN gateway of the primary branch is switched to the extranet VPN gateway of the primary branch, so that the gateway cannot connect to the intranet of the primary branch;
[0025] A second operation notification is sent to the person in charge, triggering the person in charge to perform the disconnection operation.
[0026] Optionally, when a network failure is detected in the secondary branch, switching the extranet VPN gateway of the primary branch to the intranet VPN gateway of the primary branch so that the gateway is connected to the intranet of the primary branch includes:
[0027] In case of detecting a network failure of the secondary branch, triggering the gateway to connect to the extranet VPN gateway of the primary branch;
[0028] Sending a port opening instruction to the intranet switch of the first-level branch, so that the intranet switch of the first-level branch opens the intranet port of the first-level branch;
[0029] When it is determined that the intranet port of the first-level branch is available, the extranet VPN gateway of the first-level branch is switched to the intranet VPN gateway of the first-level branch, so that the gateway is connected to the intranet VPN gateway of the first-level branch;
[0030] Control the intranet VPN gateway of the first-level branch to connect with the intranet port of the first-level branch, so that the gateway connection enters the intranet of the first-level branch.
[0031] Optionally, when it is detected that the network of the secondary branch is restored to normal, the intranet VPN gateway of the primary branch is switched to the extranet VPN gateway of the primary branch so that the gateway cannot connect to the intranet of the primary branch, including:
[0032] When it is detected that the network of the secondary branch is restored to normal, a port closing instruction is sent to the intranet switch of the primary branch, so that the intranet switch of the primary branch closes the intranet port of the primary branch;
[0033] The intranet VPN gateway of the first-level branch is switched to the extranet VPN gateway of the first-level branch, so that the gateway cannot connect to the intranet of the first-level branch.
[0034] A control device for network disaster recovery switching, comprising:
[0035] A first switching unit is used to switch the extranet VPN gateway of the head office to the intranet VPN gateway of the head office when a network failure is detected in the first-level branch to which the outlet belongs, so that the gateway connection of the outlet enters the intranet of the head office;
[0036] A first sending unit is used to send a first operation notification to the person in charge of the branch, triggering the person in charge to perform a plug-in operation; the plug-in operation is used to establish a communication connection between the gateway and the business equipment of the branch, so that the business data in the business equipment is uploaded to the intranet of the head office via the gateway;
[0037] The second switching unit is used to switch the intranet VPN gateway of the head office to the extranet VPN gateway of the head office when it is detected that the network of the first-level branch is restored to normal, so that the gateway cannot connect to the intranet of the head office;
[0038] The second sending unit is used to send a second operation notification to the person in charge, triggering the person in charge to perform a disconnection operation; the disconnection operation is used to disconnect the communication connection between the gateway and the business equipment, so that the business data cannot be uploaded to the intranet of the head office via the gateway; the superior institution to which the outlet belongs is a second-level branch, and the superior institution to which the second-level branch belongs is the first-level branch.
[0039] A computer-readable storage medium includes a stored program, wherein the program executes the control method for network disaster recovery switching.
[0040] A control device for network disaster recovery switching, comprising: a processor, a memory and a bus; the processor and the memory are connected via the bus;
[0041] The memory is used to store programs, and the processor is used to run programs, wherein the control method for network disaster recovery switching is executed when the program is running.
[0042] The technical solution provided by the present application switches the head office's extranet VPN gateway to the head office's intranet VPN gateway when a network failure is detected in a first-level branch to which the branch belongs, so that the gateway of the branch can be connected to the head office's intranet. A first operation notification is sent to the person in charge of the branch, triggering the person in charge to perform a plug-in operation. The plug-in operation is used to establish a communication connection between the gateway and the business equipment of the branch, so that the business data in the business equipment is uploaded to the head office's intranet via the gateway. When it is detected that the first-level branch has restored the network to normal, the head office's intranet VPN gateway is switched to the head office's extranet VPN gateway, so that the gateway cannot connect to the head office's intranet. A second operation notification is sent to the person in charge, triggering the person in charge to perform a pull-out operation. The pull-out operation is used to disconnect the communication connection between the gateway and the business equipment, so that the business data cannot be uploaded to the head office's intranet via the gateway. The solution shown in the present application can realize the switching of network disaster recovery (i.e., the switching between the extranet VPN gateway and the intranet VPN gateway) without the head office, first-level branches, and second-level branches participating in the switching process of network disaster recovery. Compared with the existing technology, it avoids communication between the head office, first-level branches, and second-level branches, significantly improves the switching efficiency of network disaster recovery, and effectively shortens the recovery time of branch business. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] 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, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 A flowchart of a method for controlling network disaster recovery switching provided in an embodiment of the present application;
[0045] Figure 2 A flowchart of another method for controlling network disaster recovery switching provided in an embodiment of the present application;
[0046] Figure 3 A schematic diagram of the architecture of a control device for network disaster recovery switching provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] like Figure 1 FIG. 1 is a flow chart of a method for controlling network disaster recovery switching provided by an embodiment of the present application, comprising the following steps:
[0049] S101: When a network failure is detected in a first-level branch to which the branch belongs, the gateway of the branch is triggered to connect with the extranet VPN gateway of the head office.
[0050] Among them, the superior institution of the outlet is the second-level branch, and the superior institution of the second-level branch is the first-level branch. In other words, the first-level branch governs multiple second-level branches, and the second-level branch governs multiple outlets.
[0051] It should be noted that when the first-level branch and the second-level branch to which the branch belongs do not have intranet failures, the branch's gateway is connected to the second-level branch's extranet VPN gateway by default. When a network failure occurs in the first-level branch, the branch's gateway is triggered to disconnect from the second-level branch's extranet VPN gateway.
[0052] Generally speaking, when a network failure occurs in a first-level branch, the branch's gateway cannot connect to the first-level branch's intranet, and thus cannot connect to the head office's intranet through the first-level branch's intranet. Of course, the branch's business data will not be able to be uploaded to the head office's intranet.
[0053] In the embodiment of the present application, the gateway of the branch is connected to the extranet VPN gateway of the head office through the Internet, and of course, it is also connected to the extranet VPN gateway of the secondary branch through the Internet.
[0054] It should be emphasized that when there is no intranet failure in the first-level branch and second-level branch to which the branch belongs, the branch's business data is usually uploaded to the head office's intranet via the second-level branch's intranet and the first-level branch's intranet.
[0055] S102: Send a port opening instruction to the intranet switch of the head office, so that the intranet switch of the head office opens the intranet port of the head office.
[0056] S103: When it is determined that the intranet port of the head office is available, the extranet VPN gateway of the head office is switched to the intranet VPN gateway of the head office, so that the gateway of the branch is connected to the intranet VPN gateway of the head office.
[0057] Among them, the extranet VPN gateway and the intranet VPN gateway are both VPN gateways, and the only difference between the two is the gateway address. Therefore, the switching between the extranet VPN gateway and the intranet VPN gateway can be achieved by changing the gateway address.
[0058] S104: Control the connection between the head office's intranet VPN gateway and the head office's intranet port, so that the branch's gateway is connected to the head office's intranet.
[0059] S105: Sending a first operation notification to the person in charge of the outlet, triggering the person in charge of the outlet to perform a line plugging operation.
[0060] Among them, the plug-in operation is used to establish a communication connection between the branch's gateway and the branch's business equipment, so that the business data in the business equipment is uploaded to the head office's intranet via the branch's gateway.
[0061] Specifically, the plugging operation can be understood as: connecting a data line between the gateway of the network point and the business equipment of the network point, so that data can be transmitted between the gateway and the business equipment.
[0062] S106: When it is detected that the network of the first-level branch is restored to normal, a port closing instruction is sent to the intranet switch of the head office, so that the intranet switch of the head office closes the intranet port of the head office.
[0063] S107: Switch the head office's intranet VPN gateway to the head office's extranet VPN gateway, so that the branch's gateway cannot connect to the head office's intranet.
[0064] S108: After detecting that the extranet VPN gateway of the first-level branch is online, the gateway of the branch is triggered to disconnect from the extranet VPN gateway of the head office and connect to the extranet VPN gateway of the first-level branch.
[0065] Among them, if the branch's gateway is connected to the first-level branch's extranet VPN gateway, the branch's business data can be uploaded to the first-level branch's intranet through the branch's gateway, and uploaded to the head office's intranet through the first-level branch's intranet.
[0066] It should be noted that if the first-level branch network is normal, the intranet of the first-level branch and the intranet of the head office are interconnected.
[0067] S109: Sending a second operation notification to the person in charge of the network point, triggering the person in charge of the network point to perform a disconnection operation.
[0068] The unplugging operation is used to disconnect the communication connection between the gateway of the branch and the business equipment of the branch, so that the business data in the business equipment cannot be uploaded to the intranet of the head office via the gateway of the branch. In the embodiment of the present application, when the network of the secondary branch is normal, since the network of the primary branch has been restored to normal, the business data of the branch can be uploaded to the intranet of the head office via the intranet of the primary branch.
[0069] Specifically, the unplugging operation can be understood as: disconnecting the data line between the gateway of the network point and the business equipment of the network point, so that data transmission between the gateway and the business equipment cannot be performed.
[0070] S110: When a network failure is detected in the secondary branch to which the outlet belongs, the gateway of the outlet is triggered to connect to the extranet VPN gateway of the primary branch.
[0071] S111: Send a port opening instruction to the intranet switch of the first-level branch, so that the intranet switch of the first-level branch opens the intranet port of the first-level branch.
[0072] S112: When it is determined that the intranet port of the first-level branch is available, the extranet VPN gateway of the first-level branch is switched to the intranet VPN gateway of the first-level branch, so that the gateway of the branch is connected to the intranet VPN gateway of the first-level branch.
[0073] S113: Control the connection between the intranet VPN gateway of the first-level branch and the intranet port of the first-level branch, so that the gateway connection of the branch point enters the intranet of the first-level branch.
[0074] S114: Sending a first operation notification to the person in charge of the outlet, triggering the person in charge of the outlet to perform a line plugging operation.
[0075] S115: When it is detected that the network of the secondary branch is restored to normal, a port closing instruction is sent to the intranet switch of the primary branch, so that the intranet switch of the primary branch closes the intranet port of the primary branch.
[0076] Among them, when the intranet port of the first-level branch is closed, the gateway of the branch cannot connect to the intranet of the first-level branch, that is, the business data of the branch cannot be uploaded to the intranet of the first-level branch through the gateway.
[0077] S116: Switch the intranet VPN gateway of the first-level branch to the extranet VPN gateway of the first-level branch, so that the gateway of the branch is connected to the extranet VPN gateway of the first-level branch.
[0078] S117: After detecting that the extranet VPN gateway of the second-level branch is online, the gateway of the branch is triggered to disconnect from the extranet VPN gateway of the first-level branch and connect to the extranet VPN gateway of the second-level branch.
[0079] S118: Sending a second operation notification to the person in charge of the network point, triggering the person in charge of the network point to perform a disconnection operation.
[0080] Based on the above process shown in S101-S118, this embodiment can also achieve the following beneficial effects:
[0081] 1. In the scenario where a network failure occurs in a first-level branch or a second-level branch, this embodiment can implement one-click management of network disaster recovery (i.e., the VPN gateways of the first-level branch, the second-level branch and the head office) (i.e., the gateway of the triggering branch is connected to the VPN gateway of the head office, and the gateway of the triggering branch is connected to the VPN gateway of the first-level branch; the VPN gateways of the first-level branch and the head office are switched), avoiding communication between different institutions, thereby effectively improving the efficiency of network disaster recovery switching and ensuring the rapid recovery of branch business.
[0082] 2. The switching progress of VPN gateways of first-level branches and head offices can be tracked.
[0083] 3. Due to the performance of the VPN gateway, the connection between the gateway of each network point and the VPN gateway needs to be established in batches. This embodiment can give priority to establishing the connection between the gateway of important network points and the VPN gateway according to the network point priority, thereby reducing the impact on the business of important network points.
[0084] To sum up, the scheme shown in this embodiment can realize the switching of network disaster recovery (i.e., the switching between the extranet VPN gateway and the intranet VPN gateway) without the head office, first-level branches, and second-level branches participating in the switching process of network disaster recovery. Compared with the existing technology, it avoids communication between the head office, first-level branches, and second-level branches, significantly improves the switching efficiency of network disaster recovery, and effectively shortens the recovery time of branch business.
[0085] It should be noted that S111 mentioned in the above embodiment is an optional implementation of the control method for network disaster recovery switching described in this application. In addition, S115 mentioned in the above embodiment is also an optional implementation of the control method for network disaster recovery switching described in this application. To this end, the process described in the above embodiment can be summarized as follows: Figure 2 The method shown.
[0086] like Figure 2 The flowchart of another method for controlling network disaster recovery switching provided by an embodiment of the present application includes the following steps:
[0087] S201: When a network failure is detected in a first-level branch to which the outlet belongs, the head office's extranet VPN gateway is switched to the head office's intranet VPN gateway, so that the outlet's gateway connection enters the head office's intranet.
[0088] S202: Send a first operation notification to the person in charge of the network point, triggering the person in charge to perform a line plugging operation.
[0089] Among them, the plug-in operation is used to establish a communication connection between the gateway and the business equipment of the branch, so that the business data in the business equipment can be uploaded to the intranet of the head office through the gateway.
[0090] S203: When it is detected that the network of the first-level branch has been restored to normal, the intranet VPN gateway of the head office is switched to the extranet VPN gateway of the head office, so that the gateway cannot connect to the intranet of the head office.
[0091] S204: Send a second operation notification to the person in charge, triggering the person in charge to perform a disconnection operation.
[0092] The unplugging operation is used to disconnect the communication connection between the gateway and the business equipment, so that the business data cannot be uploaded to the intranet of the head office through the gateway. The superior institution of the outlet is the second-level branch, and the superior institution of the second-level branch is the first-level branch.
[0093] To sum up, the scheme shown in this embodiment can realize the switching of network disaster recovery (i.e., the switching between the extranet VPN gateway and the intranet VPN gateway) without the head office, first-level branches, and second-level branches participating in the switching process of network disaster recovery. Compared with the existing technology, it avoids communication between the head office, first-level branches, and second-level branches, significantly improves the switching efficiency of network disaster recovery, and effectively shortens the recovery time of branch business.
[0094] Corresponding to the control method for network disaster recovery switching provided in the above-mentioned embodiment of the present application, the embodiment of the present application also provides a control device for network disaster recovery switching.
[0095] like Figure 3 FIG. 1 is a schematic diagram of the architecture of a control device for network disaster recovery switching provided by an embodiment of the present application, including:
[0096] The first switching unit 100 is used to switch the head office's extranet VPN gateway to the head office's intranet VPN gateway when a network failure is detected in the first-level branch to which the branch belongs, so that the branch's gateway connection enters the head office's intranet.
[0097] Among them, the first switching unit 100 is specifically used for: when a network failure is detected in the first-level branch to which the branch belongs, triggering the branch's gateway to connect with the head office's extranet VPN gateway; sending a port opening instruction to the head office's intranet switch, so that the head office's intranet switch opens the head office's intranet port; when it is determined that the head office's intranet port is available, switching the head office's extranet VPN gateway to the head office's intranet VPN gateway, so that the gateway is connected to the head office's intranet VPN gateway; controlling the head office's intranet VPN gateway to connect to the head office's intranet port, so that the gateway is connected to the head office's intranet.
[0098] The first sending unit 200 is used to send a first operation notification to the person in charge of the branch, triggering the person in charge to perform a plug-in operation; the plug-in operation is used to establish a communication connection between the gateway and the business equipment of the branch, so that the business data in the business equipment is uploaded to the intranet of the head office via the gateway.
[0099] The second switching unit 300 is used to switch the head office's intranet VPN gateway to the head office's extranet VPN gateway when it is detected that the first-level branch's network has recovered to normal, so that the gateway cannot connect to the head office's intranet.
[0100] Among them, the second switching unit 300 is specifically used for: when it is detected that the first-level branch has restored the network to normal, sending a port closing instruction to the intranet switch of the head office, so that the intranet switch of the head office closes the intranet port of the head office; switching the intranet VPN gateway of the head office to the extranet VPN gateway of the head office, so that the gateway cannot connect to the intranet of the head office.
[0101] The second switching unit 300 is also used to: after detecting that the extranet VPN gateway of the first-level branch is online, trigger the gateway to disconnect from the extranet VPN gateway of the head office and connect to the extranet VPN gateway of the first-level branch.
[0102] The second sending unit 400 is used to send a second operation notification to the person in charge, triggering the person in charge to perform a disconnection operation; the disconnection operation is used to disconnect the communication connection between the gateway and the business equipment, so that the business data cannot be uploaded to the intranet of the head office through the gateway; the superior institution to which the branch belongs is a second-level branch, and the superior institution to which the second-level branch belongs is a first-level branch.
[0103] The third switching unit 500 is used to switch the extranet VPN gateway of the first-level branch to the intranet VPN gateway of the first-level branch when a network failure is detected in the second-level branch, so that the gateway connection enters the intranet of the first-level branch.
[0104] Among them, the third switching unit 500 is specifically used for: when a network failure is detected in the second-level branch, triggering the connection between the gateway and the extranet VPN gateway of the first-level branch; sending a port opening instruction to the intranet switch of the first-level branch, so that the intranet switch of the first-level branch opens the intranet port of the first-level branch; when it is determined that the intranet port of the first-level branch is available, switching the extranet VPN gateway of the first-level branch to the intranet VPN gateway of the first-level branch, so that the gateway is connected to the intranet VPN gateway of the first-level branch; controlling the connection between the intranet VPN gateway of the first-level branch and the intranet port of the first-level branch, so that the gateway is connected to the intranet of the first-level branch.
[0105] The third sending unit 600 is used to send a first operation notification to the person in charge, triggering the person in charge to perform a line plugging operation.
[0106] The fourth switching unit 700 is used to switch the intranet VPN gateway of the first-level branch to the extranet VPN gateway of the first-level branch when it is detected that the network of the second-level branch has been restored to normal, so that the gateway cannot connect to the intranet of the first-level branch.
[0107] Among them, the fourth switching unit 700 is specifically used for: when it is detected that the network of the second-level branch has been restored to normal, sending a port closing instruction to the intranet switch of the first-level branch, so that the intranet switch of the first-level branch closes the intranet port of the first-level branch; switching the intranet VPN gateway of the first-level branch to the extranet VPN gateway of the first-level branch, so that the gateway cannot connect to the intranet of the first-level branch.
[0108] The fourth sending unit 800 is used to send a second operation notification to the person in charge, triggering the person in charge to perform a line unplugging operation.
[0109] To sum up, the scheme shown in this embodiment can realize the switching of network disaster recovery (i.e., the switching between the extranet VPN gateway and the intranet VPN gateway) without the head office, first-level branches, and second-level branches participating in the switching process of network disaster recovery. Compared with the existing technology, it avoids communication between the head office, first-level branches, and second-level branches, significantly improves the switching efficiency of network disaster recovery, and effectively shortens the recovery time of branch business.
[0110] The present application also provides a computer-readable storage medium, which includes a stored program, wherein the program executes the control method for network disaster recovery switching provided by the present application.
[0111] The present application also provides a control device for network disaster recovery switching, including: a processor, a memory, and a bus. The processor and the memory are connected via a bus, the memory is used to store programs, and the processor is used to run programs, wherein when the program is running, the control method for network disaster recovery switching provided by the present application is executed, including the following steps:
[0112] When a network failure is detected in the first-level branch to which the outlet belongs, the extranet VPN gateway of the head office is switched to the intranet VPN gateway of the head office, so that the gateway connection of the outlet enters the intranet of the head office;
[0113] Sending a first operation notification to the person in charge of the branch to trigger the person in charge to perform a plug-in operation; the plug-in operation is used to establish a communication connection between the gateway and the business equipment of the branch, so that the business data in the business equipment is uploaded to the intranet of the head office via the gateway;
[0114] When it is detected that the network of the first-level branch has been restored to normal, the intranet VPN gateway of the head office is switched to the extranet VPN gateway of the head office, so that the gateway cannot connect to the intranet of the head office;
[0115] A second operation notification is sent to the person in charge, triggering the person in charge to perform a disconnection operation; the disconnection operation is used to disconnect the communication connection between the gateway and the business equipment, so that the business data cannot be uploaded to the intranet of the head office via the gateway; the superior institution to which the outlet belongs is a second-level branch, and the superior institution to which the second-level branch belongs is the first-level branch.
[0116] Specifically, based on the above embodiment, when a network failure occurs in the first-level branch to which the outlet belongs, the extranet VPN gateway of the head office is switched to the intranet VPN gateway of the head office so that the gateway connection of the outlet enters the intranet of the head office, including:
[0117] When a network failure is detected in the first-level branch to which the outlet belongs, triggering the gateway of the outlet to connect with the extranet VPN gateway of the head office;
[0118] Sending a port opening instruction to the intranet switch of the head office, so that the intranet switch of the head office opens the intranet port of the head office;
[0119] When it is determined that the intranet port of the head office is available, the extranet VPN gateway of the head office is switched to the intranet VPN gateway of the head office, so that the gateway is connected to the intranet VPN gateway of the head office;
[0120] Control the intranet VPN gateway of the head office to connect with the intranet port of the head office so that the gateway connection enters the intranet of the head office.
[0121] Specifically, based on the above embodiment, when it is detected that the network of the first-level branch is restored to normal, the intranet VPN gateway of the head office is switched to the extranet VPN gateway of the head office so that the gateway cannot connect to the intranet of the head office, including:
[0122] When it is detected that the network of the first-level branch is restored to normal, a port closing instruction is sent to the intranet switch of the head office, so that the intranet switch of the head office closes the intranet port of the head office;
[0123] The intranet VPN gateway of the head office is switched to the extranet VPN gateway of the head office so that the gateway cannot connect to the intranet of the head office.
[0124] Specifically, based on the above embodiment, it also includes:
[0125] After detecting that the extranet VPN gateway of the first-level branch is online, the gateway is triggered to disconnect from the extranet VPN gateway of the head office and connect to the extranet VPN gateway of the first-level branch.
[0126] Specifically, based on the above embodiment, it also includes:
[0127] In the case of detecting a network failure of the secondary branch, switching the extranet VPN gateway of the primary branch to the intranet VPN gateway of the primary branch so that the gateway is connected to the intranet of the primary branch;
[0128] Sending a first operation notification to the person in charge, triggering the person in charge to perform the plugging operation;
[0129] When it is detected that the network of the secondary branch is restored to normal, the intranet VPN gateway of the primary branch is switched to the extranet VPN gateway of the primary branch, so that the gateway cannot connect to the intranet of the primary branch;
[0130] A second operation notification is sent to the person in charge, triggering the person in charge to perform the disconnection operation.
[0131] Specifically, based on the above embodiment, when a network failure is detected in the second-level branch, the extranet VPN gateway of the first-level branch is switched to the intranet VPN gateway of the first-level branch so that the gateway is connected to the intranet of the first-level branch, including:
[0132] In case of detecting a network failure of the secondary branch, triggering the gateway to connect to the extranet VPN gateway of the primary branch;
[0133] Sending a port opening instruction to the intranet switch of the first-level branch, so that the intranet switch of the first-level branch opens the intranet port of the first-level branch;
[0134] When it is determined that the intranet port of the first-level branch is available, the extranet VPN gateway of the first-level branch is switched to the intranet VPN gateway of the first-level branch, so that the gateway is connected to the intranet VPN gateway of the first-level branch;
[0135] Control the intranet VPN gateway of the first-level branch to connect with the intranet port of the first-level branch, so that the gateway connection enters the intranet of the first-level branch.
[0136] Specifically, based on the above embodiment, when it is detected that the network of the secondary branch is restored to normal, the intranet VPN gateway of the primary branch is switched to the extranet VPN gateway of the primary branch, so that the gateway cannot connect to the intranet of the primary branch, including:
[0137] When it is detected that the network of the secondary branch is restored to normal, a port closing instruction is sent to the intranet switch of the primary branch, so that the intranet switch of the primary branch closes the intranet port of the primary branch;
[0138] The intranet VPN gateway of the first-level branch is switched to the extranet VPN gateway of the first-level branch, so that the gateway cannot connect to the intranet of the first-level branch.
[0139] If the functions described in the method of the embodiment of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a storage medium readable by a computing device. Based on this understanding, the part of the embodiment of the present application that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computing device (which can be a personal computer, server, mobile computing device or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories, random access memories, magnetic disks or optical disks.
[0140] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0141] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for controlling network disaster recovery switching, characterized in that: include: When a network failure is detected in the first-level branch to which the outlet belongs, triggering the gateway of the outlet to connect with the extranet VPN gateway of the head office; Sending a port opening instruction to the intranet switch of the head office, so that the intranet switch of the head office opens the intranet port of the head office; When it is determined that the intranet port of the head office is available, the extranet VPN gateway of the head office is switched to the intranet VPN gateway of the head office, so that the gateway is connected to the intranet VPN gateway of the head office; Controlling the connection between the head office's intranet VPN gateway and the head office's intranet port, so that the gateway is connected to the head office's intranet; Sending a first operation notification to the person in charge of the branch to trigger the person in charge to perform a plug-in operation; the plug-in operation is used to establish a communication connection between the gateway and the business equipment of the branch, so that the business data in the business equipment is uploaded to the intranet of the head office via the gateway; When it is detected that the network of the first-level branch has been restored to normal, the intranet VPN gateway of the head office is switched to the extranet VPN gateway of the head office, so that the gateway cannot connect to the intranet of the head office; A second operation notification is sent to the person in charge, triggering the person in charge to perform a disconnection operation; the disconnection operation is used to disconnect the communication connection between the gateway and the business equipment, so that the business data cannot be uploaded to the intranet of the head office via the gateway; the superior institution to which the outlet belongs is a second-level branch, and the superior institution to which the second-level branch belongs is the first-level branch.
2. The method according to claim 1, characterized in that When it is detected that the network of the first-level branch is restored to normal, the intranet VPN gateway of the head office is switched to the extranet VPN gateway of the head office so that the gateway cannot connect to the intranet of the head office, including: When it is detected that the network of the first-level branch is restored to normal, a port closing instruction is sent to the intranet switch of the head office, so that the intranet switch of the head office closes the intranet port of the head office; The intranet VPN gateway of the head office is switched to the extranet VPN gateway of the head office so that the gateway cannot connect to the intranet of the head office.
3. The method according to claim 2, characterized in that Also includes: After detecting that the extranet VPN gateway of the first-level branch is online, the gateway is triggered to disconnect from the extranet VPN gateway of the head office and connect to the extranet VPN gateway of the first-level branch.
4. The method according to claim 1, characterized in that: Also includes: In the case of detecting a network failure of the secondary branch, switching the extranet VPN gateway of the primary branch to the intranet VPN gateway of the primary branch so that the gateway is connected to the intranet of the primary branch; Sending a first operation notification to the person in charge, triggering the person in charge to perform the plugging operation; When it is detected that the network of the secondary branch is restored to normal, the intranet VPN gateway of the primary branch is switched to the extranet VPN gateway of the primary branch, so that the gateway cannot connect to the intranet of the primary branch; A second operation notification is sent to the person in charge, triggering the person in charge to perform the disconnection operation.
5. The method according to claim 4, characterized in that When a network failure is detected in the secondary branch, the extranet VPN gateway of the primary branch is switched to the intranet VPN gateway of the primary branch so that the gateway is connected to the intranet of the primary branch, including: In case of detecting a network failure of the secondary branch, triggering the gateway to connect to the extranet VPN gateway of the primary branch; Sending a port opening instruction to the intranet switch of the first-level branch, so that the intranet switch of the first-level branch opens the intranet port of the first-level branch; When it is determined that the intranet port of the first-level branch is available, the extranet VPN gateway of the first-level branch is switched to the intranet VPN gateway of the first-level branch, so that the gateway is connected to the intranet VPN gateway of the first-level branch; Control the intranet VPN gateway of the first-level branch to connect with the intranet port of the first-level branch, so that the gateway connection enters the intranet of the first-level branch.
6. The method according to claim 4, characterized in that When it is detected that the network of the secondary branch is restored to normal, the intranet VPN gateway of the primary branch is switched to the extranet VPN gateway of the primary branch, so that the gateway cannot connect to the intranet of the primary branch, including: When it is detected that the network of the secondary branch is restored to normal, a port closing instruction is sent to the intranet switch of the primary branch, so that the intranet switch of the primary branch closes the intranet port of the primary branch; The intranet VPN gateway of the first-level branch is switched to the extranet VPN gateway of the first-level branch, so that the gateway cannot connect to the intranet of the first-level branch.
7. A control device for network disaster recovery switching, characterized in that: include: The first switching unit is used to: trigger the connection between the gateway of the branch and the extranet VPN gateway of the head office when a network failure is detected in the first-level branch to which the branch belongs; send a port opening instruction to the intranet switch of the head office so that the intranet switch of the head office opens the intranet port of the head office; when it is determined that the intranet port of the head office is available, switch the extranet VPN gateway of the head office to the intranet VPN gateway of the head office so that the gateway is connected to the intranet VPN gateway of the head office; control the connection between the intranet VPN gateway of the head office and the intranet port of the head office so that the gateway is connected to the intranet of the head office; A first sending unit is used to send a first operation notification to the person in charge of the branch, triggering the person in charge to perform a plug-in operation; the plug-in operation is used to establish a communication connection between the gateway and the business equipment of the branch, so that the business data in the business equipment is uploaded to the intranet of the head office via the gateway; The second switching unit is used to switch the intranet VPN gateway of the head office to the extranet VPN gateway of the head office when it is detected that the network of the first-level branch is restored to normal, so that the gateway cannot connect to the intranet of the head office; The second sending unit is used to send a second operation notification to the person in charge, triggering the person in charge to perform a disconnection operation; the disconnection operation is used to disconnect the communication connection between the gateway and the business equipment, so that the business data cannot be uploaded to the intranet of the head office via the gateway; the superior institution to which the outlet belongs is a second-level branch, and the superior institution to which the second-level branch belongs is the first-level branch.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the network disaster recovery switching control method according to any one of claims 1-6.
9. A control device for network disaster recovery switching, characterized in that: include: processor, memory, and bus; The processor is connected to the memory via the bus; The memory is used to store programs, and the processor is used to run programs, wherein the program executes the control method for network disaster recovery switching according to any one of claims 1 to 6 when running.
