A network connectivity verification method and related equipment for a disaster recovery system network
By performing network connectivity verification before and after the firewall is opened during the disaster recovery system drill, the problem of delay in the disaster recovery drill caused by insufficient verification is solved, and the switching efficiency and reliability of the disaster recovery system are improved.
Patent Information
- Application Number
- CN202210004576.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-04
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-01-04
AI Technical Summary
In the disaster recovery system drill, insufficient network connectivity verification may cause the system host switching to fail, thereby delaying the progress of the entire disaster recovery drill.
Provide a network connection verification method for disaster recovery system network. By obtaining the physical subsystem to be verified and the second physical subsystem with business logic related, network connection verification is performed separately before and after the firewall is opened, and statistical information is obtained to ensure network connection. sex.
Through automated network connectivity verification, the efficiency of disaster recovery drills is improved, helping technicians to timely detect abnormal situations and quickly locate problem hosts, ensuring the normal switching of the disaster recovery system and drill progress.
Smart Images

Figure CN114363211B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a network connectivity verification method and related equipment for a disaster recovery system network. Background Art
[0002] Under normal circumstances, the disaster recovery system and the production system are isolated from each other. In the event of a disaster in the production environment, the system host is switched by opening the firewall between the production system and the disaster recovery system, and the disaster recovery system is used instead of the production system to provide external services.
[0003] System host switching is an important part of disaster recovery drills. Before and after the firewall is opened, it is also necessary to check the network access. Failure to conduct sufficient network connectivity verification may lead to system host switching failure, thereby delaying the progress of the entire disaster recovery drill. Summary of the invention
[0004] In view of the above problems, the present disclosure provides a network connectivity verification method and related devices for a disaster recovery system network that overcomes the above problems or at least partially solves the above problems. The technical solution is as follows:
[0005] A method for verifying network connectivity of a disaster recovery system network, comprising:
[0006] Obtaining a first physical subsystem to be verified in a disaster recovery system network, wherein the first physical subsystem includes a production end host, a disaster recovery end host, and a firewall, and the firewall is used to perform network isolation between the production end host and the disaster recovery end host;
[0007] Obtaining a second physical subsystem that has a business logic association relationship with the first physical subsystem;
[0008] Before the firewall is opened, verifying the network connectivity between the disaster recovery host and the second physical subsystem to obtain first statistical information;
[0009] After the firewall is opened, the network connectivity of the first physical subsystem and the second physical subsystem is verified through the production host and the disaster recovery host to obtain second statistical information.
[0010] Optionally, before the firewall is opened, performing network connectivity verification on the disaster recovery host and the second physical subsystem to obtain first statistical information includes:
[0011] Before the firewall is opened, the disaster recovery host initiates network connectivity verification to the second physical subsystem to obtain a first positive verification result;
[0012] The second physical subsystem initiates network connectivity verification to the disaster recovery host to obtain a first reverse verification result;
[0013] First statistical information is obtained according to the first forward verification result and the first reverse verification result.
[0014] Optionally, after the firewall is opened, the network connectivity verification of the first physical subsystem and the second physical subsystem is performed through the production end host and the disaster recovery end host to obtain the second statistical information, including:
[0015] After the firewall is opened, the production host initiates network connectivity verification to the second physical subsystem to obtain a second positive verification result; the disaster recovery host initiates network connectivity verification to the second physical subsystem to obtain a third positive verification result; and according to the second positive verification result and the third positive verification result, obtains system positive verification information;
[0016] After the firewall is opened, the second physical subsystem initiates network connectivity verification to the production host to obtain a second reverse verification result; the second physical subsystem initiates network connectivity verification to the disaster recovery host to obtain a third reverse verification result; and system reverse verification information is obtained according to the second reverse verification result and the third reverse verification result;
[0017] Second statistical information is obtained according to the system forward verification information and the system reverse verification information.
[0018] Optionally, the network connectivity verification is port connectivity verification performed through a telnet command.
[0019] A network connectivity verification device for a disaster recovery system network includes: a first physical subsystem obtaining unit, a second physical subsystem obtaining unit, a first statistical information obtaining unit, and a second statistical information obtaining unit.
[0020] The first physical subsystem obtaining unit is used to obtain a first physical subsystem to be verified in the disaster recovery system network, wherein the first physical subsystem includes a production end host, a disaster recovery end host and a firewall, and the firewall is used to perform network isolation between the production end host and the disaster recovery end host;
[0021] The second physical subsystem obtaining unit is used to obtain a second physical subsystem that has a business logic association relationship with the first physical subsystem;
[0022] The first statistical information obtaining unit is used to verify the network connectivity between the disaster recovery host and the second physical subsystem before the firewall is opened to obtain first statistical information;
[0023] The second statistical information obtaining unit is used to verify the network connectivity of the first physical subsystem and the second physical subsystem through the production host and the disaster recovery host after the firewall is opened, so as to obtain second statistical information.
[0024] Optionally, the first statistical information obtaining unit includes: a first forward verification result obtaining subunit, a first reverse verification result obtaining subunit and a first statistical information obtaining subunit,
[0025] The first positive verification result obtaining subunit is used for initiating network connectivity verification from the disaster recovery host to the second physical subsystem to obtain a first positive verification result before the firewall is opened;
[0026] The first reverse verification result obtaining subunit is used for initiating network connectivity verification from the second physical subsystem to the disaster recovery host to obtain a first reverse verification result;
[0027] The first statistical information obtaining subunit is used to obtain first statistical information according to the first forward verification result and the first reverse verification result.
[0028] Optionally, the second statistical information obtaining unit includes: a system forward verification information obtaining subunit, a system reverse verification information obtaining subunit and a second statistical information obtaining subunit,
[0029] The system positive verification information obtaining subunit is used to, after the firewall is opened, initiate network connectivity verification from the production end host to the second physical subsystem to obtain a second positive verification result; initiate network connectivity verification from the disaster recovery end host to the second physical subsystem to obtain a third positive verification result; and obtain system positive verification information according to the second positive verification result and the third positive verification result;
[0030] The system reverse verification information obtaining subunit is used to, after the firewall is opened, initiate network connectivity verification from the second physical subsystem to the production end host to obtain a second reverse verification result; initiate network connectivity verification from the second physical subsystem to the disaster recovery end host to obtain a third reverse verification result; and obtain system reverse verification information according to the second reverse verification result and the third reverse verification result;
[0031] The second statistical information obtaining subunit is used to obtain second statistical information according to the system forward verification information and the system reverse verification information.
[0032] Optionally, the network connectivity verification is port connectivity verification performed through a telnet command.
[0033] A computer-readable storage medium having a program stored thereon, characterized in that when the program is executed by a processor, the network connectivity verification method of the disaster recovery system network described in any one of the above items is implemented.
[0034] An electronic device, comprising at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other via the bus; and the processor is used to call program instructions in the memory to execute any of the above-mentioned methods for verifying network connectivity of a disaster recovery system network.
[0035] By means of the above technical scheme, the present disclosure provides a method and related equipment for verifying the network connectivity of a disaster recovery system network, obtaining a first physical subsystem to be verified in the disaster recovery system network, wherein the first physical subsystem includes a production end host, a disaster recovery end host and a firewall, and the firewall is used to perform network isolation between the production end host and the disaster recovery end host; obtaining a second physical subsystem that has a business logic association relationship with the first physical subsystem; before the firewall is opened, performing network connectivity verification on the disaster recovery end host and the second physical subsystem to obtain first statistical information; after the firewall is opened, performing network connectivity verification on the first physical subsystem and the second physical subsystem through the production end host and the disaster recovery end host to obtain second statistical information. The disclosed embodiment can improve the efficiency of disaster recovery drills by performing automated network connectivity verification on the hosts involved before and after the firewall is opened, and using the verified statistical information.
[0036] The above description is only an overview of the technical solution of the present disclosure. In order to more clearly understand the technical means of the present disclosure, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present disclosure more obvious and easy to understand, the specific implementation methods of the present disclosure are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present disclosure. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0038] Figure 1 A schematic diagram showing a flow chart of a method for verifying network connectivity of a disaster recovery system network provided by an embodiment of the present disclosure;
[0039] Figure 2 A schematic diagram of a flow chart of a network connectivity verification device for a disaster recovery system network provided by an embodiment of the present disclosure is shown;
[0040] Figure 3A flow chart of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0041] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0042] like Figure 1 As shown, a flow chart of a method for verifying network connectivity of a disaster recovery system network provided by an embodiment of the present disclosure, the method for verifying network connectivity of the disaster recovery system network may include:
[0043] S100, obtaining a first physical subsystem to be verified in a disaster recovery system network, wherein the first physical subsystem includes a production host, a disaster recovery host, and a firewall, and the firewall is used to perform network isolation between the production host and the disaster recovery host.
[0044] Among them, the physical subsystem is a logical system including a production-side deployment unit and a disaster recovery-side deployment unit. The physical subsystem and the deployment unit are logical concepts defined based on disaster recovery drills. The production-side deployment unit and the disaster recovery-side deployment unit can be composed of a physical host and a virtual host. The production-side host and the disaster recovery-side host in the disclosed embodiment mainly refer to the physical host. When configuring the production-side host and the disaster recovery-side host, the IP address and port number of the physical host under the production-side deployment unit are determined as the device information of the production-side host, and the IP address and port number of the physical host under the disaster recovery-side deployment unit are determined as the device information of the disaster recovery-side host.
[0045] Through the integration of physical subsystems and deployment units, the disclosed embodiments can selectively select a large number of host devices for network connectivity verification, and can save the selection of host devices for each execution of network connectivity verification, so that repeated network connectivity verification of the same host device can be executed more quickly, thereby improving the overall efficiency of disaster recovery drills.
[0046] S200: Obtain a second physical subsystem that has a business logic association relationship with the first physical subsystem.
[0047] It is understandable that if the first physical subsystem and the second physical subsystem complete a service through interactive cooperation, then a service logic association relationship exists between the first physical subsystem and the second physical subsystem.
[0048] S300: Before opening the firewall, verify the network connectivity between the disaster recovery host and the second physical subsystem to obtain first statistical information.
[0049] Optionally, in the embodiment of the present disclosure, before the firewall is opened, the disaster recovery host initiates network connectivity verification to the second physical subsystem to obtain a first forward verification result. The second physical subsystem initiates network connectivity verification to the disaster recovery host to obtain a first reverse verification result. Based on the first forward verification result and the first reverse verification result, first statistical information is obtained.
[0050] Since it is not necessary to verify the network connectivity between the first physical subsystem and the second physical subsystem before opening the firewall, the embodiment of the present disclosure may only verify the network connectivity of the disaster recovery host in the first physical subsystem.
[0051] Optionally, the network connectivity verification is to perform port connectivity verification through the telnet command.
[0052] In the disclosed embodiment, before the firewall is opened, the disaster recovery host can send a telnet command to each designated port connected to the second physical subsystem to verify port connectivity, and generate a first positive verification result based on the connectivity verification results of each designated port.
[0053] In the embodiment of the present disclosure, before the firewall is opened, the second physical subsystem can send a telnet command to each designated port connected to the disaster recovery host to verify port connectivity, and generate a first reverse verification result based on the connectivity verification results of each designated port.
[0054] The embodiment of the present disclosure may compare the first forward verification result with the first reverse verification result to determine whether the first forward verification result is consistent with the first reverse verification result, and generate first statistical information according to the determination result.
[0055] The first statistical information may be first successful connectivity information, first failed connectivity information, or first abnormal connectivity information. When the first forward verification result is consistent with the first reverse verification result, the first statistical information is first successful connectivity information. When the first forward verification result is inconsistent with the first reverse verification result, the first statistical information is first failed connectivity information. In the actual network connectivity verification before the firewall is turned on, the script of the telnet command may not be sent to the host port, resulting in no connectivity result returned, and the situation where no connectivity result is returned is classified as the first abnormal connectivity information.
[0056] Optionally, the first statistical information may include information of each physical subsystem, IP address of a host device involved, network connectivity verification result and network connectivity verification record.
[0057] The disclosed embodiment verifies the network connectivity of the disaster recovery host of the first physical subsystem to be verified before the firewall is opened. This can confirm the network connectivity of the disaster recovery host itself before the disaster recovery host is connected to the production environment, helping technical personnel to promptly discover abnormal conditions of the disaster recovery host, thereby helping to improve the overall efficiency of disaster recovery drills.
[0058] S400: After the firewall is opened, verify the network connectivity of the first physical subsystem and the second physical subsystem through the production host and the disaster recovery host to obtain second statistical information.
[0059] Since a disaster recovery drill will be conducted after the firewall is opened, it is necessary to compare and verify the network connectivity between the production host and the disaster recovery host of the first physical subsystem and the second physical subsystem respectively.
[0060] Optionally, in the disclosed embodiment, after the firewall is opened, the production end host may initiate network connectivity verification to the second physical subsystem to obtain a second positive verification result. The disaster recovery end host may initiate network connectivity verification to the second physical subsystem to obtain a third positive verification result. Based on the second positive verification result and the third positive verification result, system positive verification information is obtained.
[0061] In the disclosed embodiment, after the firewall is opened, the production-end host can send a telnet command to each designated port connected to the second physical subsystem to verify port connectivity, and generate a second positive verification result based on the connectivity verification results of each designated port.
[0062] In the disclosed embodiment, after the firewall is opened, the disaster recovery host can send a telnet command to each designated port connected to the second physical subsystem to verify port connectivity, and generate a third positive verification result based on the connectivity verification results of each designated port.
[0063] The disclosed embodiment may compare the second positive verification result with the third positive verification result to determine whether the second positive verification result and the third positive verification result are both connected normally, thereby obtaining system positive verification information.
[0064] Among them, the system positive verification information can be system positive connection success information, system positive connection failure information or system positive connection abnormality information. When the second positive verification result and the third positive verification result are both normal connectivity, the system positive verification information is system positive connection success information. When the second positive verification result and the third positive verification result are not both normal connectivity, the system positive verification information is system positive connection failure information. In the actual situation of system positive verification after the firewall is turned on, the script of the telnet command may not be sent to the host port, resulting in no connectivity result returned, and the situation where the no connectivity result is returned is classified as system positive connection abnormality information.
[0065] Optionally, in the embodiment of the present disclosure, after the firewall is opened, the second physical subsystem may initiate network connectivity verification to the production end host to obtain a second reverse verification result. The second physical subsystem may initiate network connectivity verification to the disaster recovery end host to obtain a third reverse verification result. Based on the second reverse verification result and the third reverse verification result, system reverse verification information is obtained.
[0066] In the embodiment of the present disclosure, after the firewall is opened, the second physical subsystem can send a telnet command to each designated port connected to the production host to verify port connectivity, and generate a second reverse verification result based on the connectivity verification results of each designated port.
[0067] In the disclosed embodiment, after the firewall is opened, the second physical subsystem can send a telnet command to each designated port connected to the disaster recovery host to verify port connectivity, and generate a third reverse verification result based on the connectivity verification results of each designated port.
[0068] The disclosed embodiment can compare the second reverse verification result with the third reverse verification result to determine whether the second forward verification result and the third forward verification result are both connected normally, thereby obtaining system reverse verification information.
[0069] Among them, the system reverse verification information can be system reverse connectivity success information, system reverse connectivity failure information or system reverse connectivity abnormality information. In the case where the second reverse verification result and the third reverse verification result are both abnormal connectivity, the system reverse verification information is system reverse connectivity success information. In the case where the second reverse verification result and the third reverse verification result are not both abnormal connectivity, the system reverse verification information is system reverse connectivity failure information. In the actual situation of system reverse verification after the firewall is turned on, the script of the telnet command may not be sent to the host port, resulting in no connectivity result returned, and the situation where the no connectivity result is returned is classified as system reverse connectivity abnormality information.
[0070] Optionally, the embodiment of the present disclosure may obtain second statistical information according to the system forward verification information and the system reverse verification information.
[0071] In the case where the system forward verification information is the system forward connection success information and the system reverse verification information is the system reverse connection success information, or the system forward verification information is the system forward connection failure information and the system reverse verification information is the system reverse connection failure information, the second statistical information includes the information that the system network connectivity verification is consistent in the forward and reverse directions, otherwise, the second statistical information includes the information that the system network connectivity verification is inconsistent in the forward and reverse directions. If the system forward connection is abnormal and / or the system reverse connection is abnormal, the second statistical information includes the information that the system network connectivity verification is abnormal in the forward and reverse directions.
[0072] Optionally, the second statistical information may include information of each physical subsystem, IP address of a host device involved, network connectivity verification result and network connectivity verification record.
[0073] The disclosed embodiment verifies the network connectivity of the production host and the disaster recovery host of the first physical subsystem after the firewall is opened, so as to determine whether the network connectivity of the production host and the disaster recovery host is consistent, thereby helping technical personnel to effectively judge the status of the host equipment and quickly locate the problem host so that the technical personnel can handle it in time, thereby improving the overall efficiency of the disaster recovery drill.
[0074] Optionally, network connectivity verification can be performed periodically by a scheduled script or immediately.
[0075] The present disclosure provides a method for verifying the network connectivity of a disaster recovery system network, which includes obtaining a first physical subsystem to be verified in the disaster recovery system network, wherein the first physical subsystem includes a production-end host, a disaster recovery-end host, and a firewall, and the firewall is used to perform network isolation between the production-end host and the disaster recovery-end host; obtaining a second physical subsystem that has a business logic association relationship with the first physical subsystem; before the firewall is opened, verifying the network connectivity of the disaster recovery-end host and the second physical subsystem to obtain first statistical information; after the firewall is opened, verifying the network connectivity of the first physical subsystem and the second physical subsystem through the production-end host and the disaster recovery-end host to obtain second statistical information. The embodiment of the present disclosure can improve the efficiency of disaster recovery drills by performing automated network connectivity verification on the hosts involved before and after the firewall is opened, and using the verified statistical information.
[0076] Although operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.
[0077] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0078] Corresponding to the above method embodiment, the present disclosure also provides a network connectivity verification device for a disaster recovery system network, the structure of which is as follows: Figure 2 As shown, it may include: a first physical subsystem obtaining unit 100 , a second physical subsystem obtaining unit 200 , a first statistical information obtaining unit 300 , and a second statistical information obtaining unit 400 .
[0079] The first physical subsystem obtaining unit 100 is used to obtain the first physical subsystem to be verified in the disaster recovery system network, wherein the first physical subsystem includes a production host, a disaster recovery host and a firewall, and the firewall is used to perform network isolation between the production host and the disaster recovery host.
[0080] The second physical subsystem obtaining unit 200 is used to obtain a second physical subsystem that has a service logic association relationship with the first physical subsystem.
[0081] The first statistical information obtaining unit 300 is used to verify the network connectivity between the disaster recovery host and the second physical subsystem before the firewall is opened to obtain first statistical information.
[0082] The second statistical information obtaining unit 400 is used to verify the network connectivity of the first physical subsystem and the second physical subsystem through the production end host and the disaster recovery end host after the firewall is opened, so as to obtain the second statistical information.
[0083] Optionally, the first statistical information obtaining unit 300 includes: a first forward verification result obtaining subunit, a first reverse verification result obtaining subunit and a first statistical information obtaining subunit.
[0084] The first positive verification result obtaining subunit is used to initiate network connectivity verification from the disaster recovery host to the second physical subsystem before the firewall is opened, so as to obtain a first positive verification result.
[0085] The first reverse verification result obtaining subunit is used to initiate network connectivity verification from the second physical subsystem to the disaster recovery host to obtain a first reverse verification result.
[0086] The first statistical information obtaining subunit is used to obtain first statistical information according to the first forward verification result and the first reverse verification result.
[0087] Optionally, the second statistical information obtaining unit 400 includes: a system forward verification information obtaining subunit, a system reverse verification information obtaining subunit and a second statistical information obtaining subunit.
[0088] The system positive verification information obtaining subunit is used to initiate network connectivity verification from the production end host to the second physical subsystem after the firewall is opened to obtain a second positive verification result. The disaster recovery end host initiates network connectivity verification from the second physical subsystem to obtain a third positive verification result. According to the second positive verification result and the third positive verification result, the system positive verification information is obtained.
[0089] The system reverse verification information obtaining subunit is used to initiate network connectivity verification from the second physical subsystem to the production end host after the firewall is opened to obtain a second reverse verification result. The second physical subsystem initiates network connectivity verification from the disaster recovery end host to obtain a third reverse verification result. Based on the second reverse verification result and the third reverse verification result, the system reverse verification information is obtained.
[0090] The second statistical information obtaining subunit is used to obtain second statistical information according to the system forward verification information and the system reverse verification information.
[0091] Optionally, the network connectivity verification is to perform port connectivity verification through the telnet command.
[0092] The present disclosure provides a network connectivity verification device for a disaster recovery system network, which obtains a first physical subsystem to be verified in the disaster recovery system network, wherein the first physical subsystem includes a production end host, a disaster recovery end host, and a firewall, and the firewall is used to perform network isolation between the production end host and the disaster recovery end host; obtains a second physical subsystem that has a business logic association relationship with the first physical subsystem; before the firewall is opened, the network connectivity of the disaster recovery end host and the second physical subsystem is verified to obtain first statistical information; after the firewall is opened, the network connectivity of the first physical subsystem and the second physical subsystem is verified through the production end host and the disaster recovery end host to obtain second statistical information. The embodiment of the present disclosure can improve the efficiency of disaster recovery drills by performing automated network connectivity verification on the hosts involved before and after the firewall is opened, and using the verified statistical information.
[0093] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0094] The network connectivity verification device of the disaster recovery system network includes a processor and a memory. The above-mentioned first physical subsystem acquisition unit 100, the second physical subsystem acquisition unit 200, the first statistical information acquisition unit 300 and the second statistical information acquisition unit 400 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0095] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to automatically verify the network connectivity of the hosts involved before and after the firewall is opened. The statistical information after verification can improve the efficiency of disaster recovery drills.
[0096] An embodiment of the present disclosure provides a computer-readable storage medium having a program stored thereon, and when the program is executed by a processor, a network connectivity verification method of the disaster recovery system network is implemented.
[0097] An embodiment of the present disclosure provides a processor, which is used to run a program, wherein the network connectivity verification method of the disaster recovery system network is executed when the program is run.
[0098] like Figure 3 As shown, the embodiment of the present disclosure provides an electronic device 1000, which includes at least one processor 1001, and at least one memory 1002 and a bus 1003 connected to the processor 1001; wherein the processor 1001 and the memory 1002 communicate with each other through the bus 1003; the processor 1001 is used to call the program instructions in the memory 1002 to execute the network connectivity verification method of the disaster recovery system network. The electronic device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0099] The present disclosure also provides a computer program product, which, when executed on an electronic device, is suitable for executing the steps of a method for initializing network connectivity verification of a disaster recovery system network.
[0100] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, apparatuses, electronic devices (systems), and computer program products according to embodiments of the present disclosure. 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 device to generate a machine, so that the instructions executed by the processor of the computer or other programmable 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 1A device that provides the functions specified in a block or multiple blocks.
[0101] In a typical configuration, an electronic device includes one or more processors (CPU), a memory, and a bus. The electronic device may also include an input / output interface, a network interface, and the like.
[0102] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
[0103] 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.
[0104] In the description of the present disclosure, it should be understood that the terms "up", "down", "front", "back", "left" and "right" etc. indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and simplifying the description. They do not indicate or imply that the positions or elements referred to must have specific directions, be constructed and operate in specific directions. Therefore, they should not be understood as limitations of the present disclosure.
[0105] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. It should also be noted that the terms "include", "comprise" or any other variants 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 further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0106] It will be appreciated by those skilled in the art that the embodiments of the present disclosure may be provided as methods, systems or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present disclosure 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.
[0107] The above are only embodiments of the present disclosure and are not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the scope of the claims of the present disclosure.
Claims
1. A method for verifying network connectivity of a disaster recovery system network, characterized in that: include: Obtaining a first physical subsystem to be verified in a disaster recovery system network, wherein the first physical subsystem includes a production end host, a disaster recovery end host, and a firewall, and the firewall is used to perform network isolation between the production end host and the disaster recovery end host; Obtaining a second physical subsystem that has a business logic association relationship with the first physical subsystem, wherein if the first physical subsystem and the second physical subsystem complete the business through interactive cooperation, then the first physical subsystem and the second physical subsystem have a business logic association relationship; Before the firewall is opened, verifying the network connectivity between the disaster recovery host and the second physical subsystem to obtain first statistical information; After the firewall is opened, the network connectivity of the first physical subsystem and the second physical subsystem is verified through the production end host and the disaster recovery end host to obtain second statistical information; Wherein, before the firewall is opened, the network connectivity verification is performed on the disaster recovery host and the second physical subsystem to obtain the first statistical information, including: Before the firewall is opened, the disaster recovery host sends a telnet command to each designated port for initiating a connection with the second physical subsystem to perform network connectivity verification, and obtain a first positive verification result; The second physical subsystem sends a telnet command to each designated port connected to the disaster recovery host to perform network connectivity verification, and obtain a first reverse verification result; First statistical information is obtained according to the first forward verification result and the first reverse verification result.
2. The method according to claim 1, characterized in that After the firewall is opened, the network connectivity of the first physical subsystem and the second physical subsystem is verified through the production end host and the disaster recovery end host to obtain second statistical information, including: After the firewall is opened, the production host initiates network connectivity verification to the second physical subsystem to obtain a second positive verification result; the disaster recovery host initiates network connectivity verification to the second physical subsystem to obtain a third positive verification result; and according to the second positive verification result and the third positive verification result, obtains system positive verification information; After the firewall is opened, the second physical subsystem initiates network connectivity verification to the production host to obtain a second reverse verification result; the second physical subsystem initiates network connectivity verification to the disaster recovery host to obtain a third reverse verification result; and system reverse verification information is obtained according to the second reverse verification result and the third reverse verification result; Second statistical information is obtained according to the system forward verification information and the system reverse verification information.
3. The method according to claim 1 or 2, characterized in that: The network connectivity verification is to perform port connectivity verification through the telnet command.
4. A network connectivity verification device for a disaster recovery system network, characterized in that: include: a first physical subsystem obtaining unit, a second physical subsystem obtaining unit, a first statistical information obtaining unit, and a second statistical information obtaining unit, The first physical subsystem obtaining unit is used to obtain a first physical subsystem to be verified in the disaster recovery system network, wherein the first physical subsystem includes a production end host, a disaster recovery end host and a firewall, and the firewall is used to perform network isolation between the production end host and the disaster recovery end host; The second physical subsystem obtaining unit is used to obtain a second physical subsystem that has a business logic association relationship with the first physical subsystem, wherein if the first physical subsystem and the second physical subsystem complete the business through interactive cooperation, then the first physical subsystem and the second physical subsystem have a business logic association relationship; The first statistical information obtaining unit is used to verify the network connectivity between the disaster recovery host and the second physical subsystem before the firewall is opened to obtain first statistical information; The second statistical information obtaining unit is used to verify the network connectivity of the first physical subsystem and the second physical subsystem through the production end host and the disaster recovery end host after the firewall is opened, so as to obtain second statistical information; The first statistical information obtaining unit includes: a first forward verification result obtaining subunit, a first reverse verification result obtaining subunit and a first statistical information obtaining subunit. The first positive verification result obtaining subunit is used for, before the firewall is opened, the disaster recovery host sends a telnet command to each designated port connected to the second physical subsystem to perform network connectivity verification and obtain a first positive verification result; The first reverse verification result obtaining subunit is used for the second physical subsystem to send a telnet command to each designated port connected to the disaster recovery host to perform network connectivity verification and obtain a first reverse verification result; The first statistical information obtaining subunit is used to obtain first statistical information according to the first forward verification result and the first reverse verification result.
5. The device according to claim 4, characterized in that The second statistical information obtaining unit includes: a system forward verification information obtaining subunit, a system reverse verification information obtaining subunit and a second statistical information obtaining subunit. The system positive verification information obtaining subunit is used to, after the firewall is opened, initiate network connectivity verification from the production end host to the second physical subsystem to obtain a second positive verification result; initiate network connectivity verification from the disaster recovery end host to the second physical subsystem to obtain a third positive verification result; and obtain system positive verification information according to the second positive verification result and the third positive verification result; The system reverse verification information obtaining subunit is used to, after the firewall is opened, initiate network connectivity verification from the second physical subsystem to the production end host to obtain a second reverse verification result; initiate network connectivity verification from the second physical subsystem to the disaster recovery end host to obtain a third reverse verification result; and obtain system reverse verification information according to the second reverse verification result and the third reverse verification result; The second statistical information obtaining subunit is used to obtain second statistical information according to the system forward verification information and the system reverse verification information.
6. The device according to claim 4 or 5, characterized in that The network connectivity verification is to perform port connectivity verification through the telnet command.
7. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the network connectivity verification method for a disaster recovery system network according to any one of claims 1 to 3 is implemented.
8. An electronic device, comprising at least one processor, and at least one memory and bus connected to the processor; wherein: The processor and the memory communicate with each other via the bus; The processor is used to call the program instructions in the memory to execute the network connectivity verification method for the disaster recovery system network according to any one of claims 1 to 3.
