A method, apparatus, electronic device, and system for simulating network disconnection
By writing a network outage identifier into the data and stopping the transmission of data carrying that identifier, the problem of fine-grained control in data center disaster recovery drills in existing technologies is solved, enabling more effective network outage simulation and core data switching.
Patent Information
- Application Number
- CN202010393292.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-11
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2040-05-11
AI Technical Summary
Existing data center disaster recovery drills are difficult to control precisely, especially when enterprise data is massive and has complex dependencies. They cannot effectively simulate network outages, resulting in the inability to guarantee the effectiveness of core data switching.
By writing a network disconnection identifier into the data, network disconnection rules are used to identify and stop the transmission of target data carrying the network disconnection identifier from the data to be processed, thereby simulating network disconnection.
It improves the precision of data center disaster recovery drills, enabling targeted simulation of network outages to ensure the effectiveness of core data switching.
Smart Images

Figure CN113641534B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, specifically to a method for simulating network outages. This application also provides a network outage simulation device, electronic device, and storage medium; furthermore, it provides a data processing method related to network outage simulation, as well as a corresponding data processing device, electronic device, and storage medium. This application also provides a network outage simulation system, and a network management platform applied to the network outage simulation system. Background Technology
[0002] With the rapid development of computer technology and big data, enterprise data centers often need to handle massive amounts of data, and data security and stability play a crucial role in the safe and stable operation of enterprises. As a vital network infrastructure carrying enterprise data, enterprise data centers are often affected by unavoidable natural disasters such as fires, floods, earthquakes, and wars, as well as man-made disasters such as computer crime, computer viruses, power outages, network outages, hardware / software errors, and human error. Both natural and man-made disasters pose a significant threat to data security, making data security an increasingly important issue. Currently, a commonly used data disaster recovery method is the intra-city active-active data disaster recovery method. This method involves two data centers in the same city simultaneously carrying data; when one site fails due to a disaster, the core data it carries can be quickly switched to the other data center. However, because enterprise data is often very complex and has strong dependencies, the effectiveness of switching core data using the intra-city active-active data disaster recovery method often cannot be guaranteed.
[0003] To ensure the effectiveness of core data failover, regular disaster recovery data failover drills are often necessary to verify its effectiveness. Currently, the method for conducting disaster recovery data failover drills in data centers involves disconnecting network equipment in the data center's switches and using a network segment whitelist. This simulates a network failure by disconnecting the network communication equipment in the data center, and the network segment whitelist is used to exclude network failure simulations for specific data types. The main reason for implementing the network whitelist is that core data has high disaster recovery requirements, necessitating high-frequency, targeted drills for different data types to identify minor issues. However, due to the complexity of enterprise data and the increasing interdependence between different data types, the method of disconnecting network equipment in the data center's switches and using a network segment whitelist often makes it difficult to perform targeted network failure simulations, thus failing to provide precise control over the data used in disaster recovery drills. Summary of the Invention
[0004] This application provides a method, apparatus, electronic device, and storage medium for simulating network outages, thereby improving the precision of disaster recovery drills and control of data.
[0005] This application provides a method for simulating network outages, including:
[0006] This application provides a method for simulating network outage, including:
[0007] Obtain network disconnection rules for the data to be processed, the network disconnection rules being used to instruct network disconnection simulation to be performed on target data in the data to be processed that carries a network disconnection identifier;
[0008] The target data is obtained from the data to be processed;
[0009] Stop transmitting the target data to simulate a network outage.
[0010] Optionally, obtaining the target data from the data to be processed includes:
[0011] Obtain the data to be processed;
[0012] The system detects whether the data to be processed carries the network disconnection identifier, and uses the data carrying the network disconnection identifier as the target data.
[0013] Optionally, the network disconnection identifier is an identifier pre-written in the message corresponding to the target data;
[0014] The step of detecting whether the data to be processed carries the network disconnection identifier and using the data carrying the network disconnection identifier as the target data includes:
[0015] Parse the message corresponding to the data to be processed;
[0016] Detect whether the message corresponding to the data to be processed carries the network disconnection identifier, and take the data to be processed that carries the network disconnection identifier as the target data.
[0017] Optionally, the network disconnection identifier is an identifier pre-written in the message corresponding to the target data, including: the network disconnection identifier is an identifier pre-written in the header corresponding to the target data;
[0018] The step of detecting whether the message corresponding to the data to be processed carries the network disconnection identifier, and taking the data to be processed carrying the network disconnection identifier in the message as the target data, includes: detecting whether the header corresponding to the data to be processed carries the network disconnection identifier, and taking the data to be processed carrying the network disconnection identifier in the header as the target data.
[0019] Optionally, the network disconnection identifier is an identifier pre-written in the header corresponding to the target data, including: the network disconnection identifier is an identifier pre-written in the service type field corresponding to the target data;
[0020] The step of detecting whether the header corresponding to the data to be processed carries the network disconnection identifier, and taking the data to be processed that carries the network disconnection identifier in the header as the target data, includes: detecting whether the service type field corresponding to the data to be processed carries the network disconnection identifier, and taking the data to be processed that carries the network disconnection identifier in the service type field as the target data.
[0021] Optionally, the network disconnection identifier is an identifier pre-written in the service type field corresponding to the target data, including: the network disconnection identifier is an identifier for which a specified encoding value is pre-written in the service type field corresponding to the target data;
[0022] The step of detecting whether the service type field corresponding to the data to be processed carries the network disconnection identifier, and taking the data to be processed that carries the network disconnection identifier in the service type field as the target data, includes:
[0023] Detect whether the specified encoded value has been written into the service type field corresponding to the data to be processed;
[0024] If so, the data with the specified encoding value in the specified field of the service type field will be used as the data carrying the network disconnection identifier.
[0025] Optionally, obtaining the network disconnection rules for the data to be processed includes:
[0026] Obtain a network disconnection simulation start command for the data to be processed, wherein the network disconnection simulation start command carries the network disconnection rule;
[0027] The network disconnection simulation startup command is parsed to obtain the network disconnection rules.
[0028] Optional, also includes:
[0029] In the state of network disconnection simulation, a network disconnection simulation end command is obtained for the target data;
[0030] According to the command to end the network outage simulation, the transmission of the target data is resumed.
[0031] Optionally, stopping the transmission of the target data to simulate a network outage includes: dropping packets in the target data to simulate the network outage.
[0032] Optionally, stopping the transmission of the target data to simulate a network outage includes: pausing the transmission of the target data to simulate a network outage.
[0033] In another aspect, this application provides a network outage simulation device, comprising:
[0034] A network disconnection rule acquisition unit is used to acquire network disconnection rules for data to be processed, wherein the network disconnection rules are used to instruct network disconnection simulation to be performed on target data carrying network disconnection identifiers in the data to be processed.
[0035] A target data acquisition unit is used to obtain the target data from the data to be processed;
[0036] The network disconnection simulation unit is used to stop transmitting the target data and realize network disconnection simulation.
[0037] In another aspect, this application provides an electronic device, comprising:
[0038] Processor; and
[0039] The device includes a memory for storing the program for the network outage simulation method. After the device is powered on and the program for the network outage simulation method is loaded, the following steps are performed:
[0040] Obtain network disconnection rules for the data to be processed, the network disconnection rules being used to instruct network disconnection simulation to be performed on target data in the data to be processed that carries a network disconnection identifier;
[0041] The target data is obtained from the data to be processed;
[0042] Stop transmitting the target data to simulate a network outage.
[0043] In another aspect, this application provides a storage medium storing a program for simulating a network outage, which is executed by a processor to perform the following steps:
[0044] Obtain network disconnection rules for the data to be processed, the network disconnection rules being used to instruct network disconnection simulation to be performed on target data in the data to be processed that carries a network disconnection identifier;
[0045] The target data is obtained from the data to be processed;
[0046] Stop transmitting the target data to simulate a network outage.
[0047] In another aspect, this application provides a data processing method, comprising:
[0048] Obtain the write request message for the network disconnection identifier of the target data;
[0049] According to the network disconnection identifier write request message, a network disconnection identifier is written to the target data. The network disconnection identifier is used to instruct the network management platform to simulate a network disconnection for the target data after obtaining the network disconnection rules.
[0050] Optionally, writing a network disconnection identifier to the target data according to the network disconnection identifier write request message includes:
[0051] Identify target data;
[0052] Write the network disconnection identifier into the message corresponding to the target data.
[0053] Optionally, writing the network disconnection identifier into the message corresponding to the target data includes writing the network disconnection identifier into the header corresponding to the target data.
[0054] Optionally, writing the network disconnection identifier into the header corresponding to the target data includes writing the network disconnection identifier into the service type field corresponding to the target data.
[0055] Optionally, writing the network disconnection identifier into the service type field corresponding to the target data includes:
[0056] Determine the specified field in the service type field corresponding to the target data to which the network disconnection identifier is written;
[0057] Write the specified encoded value into the specified field as the network disconnection identifier.
[0058] Optionally, the identified target data includes:
[0059] Obtain the identification information corresponding to the data storage device of the data to be processed;
[0060] From the identification information corresponding to the data storage device of the data to be processed, the data storage device whose identification information is specified is obtained;
[0061] The data stored in the data storage device containing the specified identification information is used as the target data.
[0062] Optionally, writing a network disconnection identifier to the target data includes:
[0063] Send a network disconnection identifier write command to the data storage device whose identifier information is the specified identifier information;
[0064] In the data storage device whose identification information is the specified identification information, a network disconnection identifier is written for the target data.
[0065] Optionally, obtaining the network disconnection identifier write request message for the target data includes:
[0066] Establish a hypertext transfer protocol with the disaster recovery exercise platform;
[0067] The network disconnection identifier write request message for the target data is obtained through the hypertext transfer protocol established with the disaster recovery exercise platform.
[0068] Optionally, after the network disconnection flag write operation is performed, the following steps are included:
[0069] Obtain a network disconnection flag cancellation message for the target data; based on the network disconnection flag cancellation message, cancel the network disconnection flag of the target data that has been written with the network disconnection flag.
[0070] In another aspect, this application provides a data processing apparatus, comprising:
[0071] The unit for obtaining the network disconnection identifier write request message is used to obtain the network disconnection identifier write request message for the target data.
[0072] The network disconnection identifier writing unit is used to write a network disconnection identifier to the target data according to the network disconnection identifier writing request message. The network disconnection identifier is used to instruct the network management platform to simulate network disconnection for the target data after obtaining the network disconnection rules.
[0073] In another aspect, this application provides an electronic device, comprising:
[0074] Processor; and
[0075] A memory for storing a program for a data processing method, which, upon being powered on and fed through the program for the data processing method, executes the following steps:
[0076] Obtain the write request message for the network disconnection identifier of the target data;
[0077] According to the network disconnection identifier write request message, a network disconnection identifier is written to the target data. The network disconnection identifier is used to instruct the network management platform to simulate a network disconnection for the target data after obtaining the network disconnection rules.
[0078] In another aspect, this application provides a storage medium storing a program for a data processing method, which is executed by a processor to perform the following steps:
[0079] Obtain the write request message for the network disconnection identifier of the target data;
[0080] According to the network disconnection identifier write request message, a network disconnection identifier is written to the target data. The network disconnection identifier is used to instruct the network management platform to simulate a network disconnection for the target data after obtaining the network disconnection rules.
[0081] In another aspect, this application provides a network outage simulation system, including: a disaster recovery exercise platform, a network outage identification management platform, and network transmission equipment participating in the network outage simulation;
[0082] The disaster recovery exercise platform is used to send a network outage simulation request command, which includes network outage rules for the data to be processed; and to send a network outage identifier write request message for the target data to the network outage identifier management platform.
[0083] The network outage identifier management platform is used to obtain the network outage identifier writing request message for the target data sent by the disaster recovery exercise platform; according to the network outage identifier writing request message, it writes a network outage identifier for the target data, and the network outage identifier is used to instruct the network transmission device to perform a network outage simulation on the target data after obtaining the network outage rules;
[0084] The network transmission device is configured to obtain network disconnection rules for the data to be processed, the network disconnection rules being used to instruct the network disconnection simulation to be performed on target data carrying a network disconnection identifier in the data to be processed; to obtain the target data from the data to be processed; and to stop transmitting the target data to achieve network disconnection simulation.
[0085] Optional, also includes:
[0086] The network management platform is used to obtain the network outage simulation request instruction from the disaster recovery exercise platform for the data to be processed, generate a network outage exercise start message according to the network outage simulation request instruction, and transmit the network outage exercise start instruction to the network transmission device under the management of the network management platform.
[0087] The network transmission device is used to obtain network disconnection rules for the data to be processed, including: the network transmission device parses the network disconnection exercise start command to obtain network disconnection rules for the data to be processed.
[0088] Optionally, the network outage identification management platform is implemented using a network service quality control platform.
[0089] Optionally, the network transmission equipment includes one or two of the following types of switches: core layer switch and metropolitan area core switch.
[0090] In another aspect, this application provides a network management platform for receiving a network outage simulation request instruction from the disaster recovery exercise platform for the data to be processed, generating a network outage exercise start instruction based on the network outage simulation request instruction, and transmitting the network outage exercise start instruction to the network transmission devices managed by the network management platform.
[0091] Compared with the prior art, this application has the following advantages:
[0092] The network outage simulation method provided in this application, after obtaining network outage rules for the target data carrying network outage identifiers within the data to be processed, further obtains the target data from the data to be processed and performs a stop transmission operation on the target data to achieve network outage simulation. The network outage simulation method provided in this application can obtain the target data and perform network outage simulation on the target data, thereby enabling targeted network outage simulation of data and improving the precision of disaster recovery drill control.
[0093] The data processing method provided in this application, after receiving a network outage identifier write request message for target data, can write a network outage identifier for the target data according to the network outage identifier write request message. The network outage identifier is used to instruct the network management platform to simulate a network outage fault for the target data after obtaining network outage rules. This data processing method can write a network outage identifier to the target data, instructing the network management platform to simulate a network outage fault for the target data after obtaining network outage rules, thereby enabling targeted network outage simulation of the data and improving the precision of disaster recovery drill control. Attached Figure Description
[0094] Figure 1 This is a schematic diagram illustrating an application scenario of the network outage simulation method provided in this application.
[0095] Figure 2 This is a flowchart of a network disconnection simulation method provided in the first embodiment of this application.
[0096] Figure 3 This is a flowchart of a target data acquisition method provided in the first embodiment of this application.
[0097] Figure 4 This is a schematic diagram of a network disconnection simulation device provided in the second embodiment of this application.
[0098] Figure 5 This is a schematic diagram of an electronic device provided in an embodiment of this application.
[0099] Figure 6 This is a flowchart of a data processing method provided in the fifth embodiment of this application.
[0100] Figure 7 This is a schematic diagram of a data processing device provided in the second embodiment of this application. Detailed Implementation
[0101] Numerous specific details are set forth in the following description to provide a full understanding of the invention. However, the invention can be practiced in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0102] The network outage simulation method provided in this application can be applied to disaster recovery drills for data centers, such as... Figure 1 The diagram shown illustrates an application scenario embodiment of the network outage simulation method provided in this application. In the first scenario embodiment provided by this application, the application of the network outage simulation method provided in this application to a data disaster recovery drill system is specifically used as an example to provide a detailed description of the network outage simulation method provided in this application.
[0103] The data disaster recovery in this application scenario embodiment involves establishing two or more functionally identical data centers in geographically distant locations, capable of monitoring each other's health status and switching functions. When a disaster occurs in one data center, the remote data center can quickly take over, ensuring continuity. Specific data disaster recovery strategies include intra-city active-active, intra-city multi-active, and intra-city active-active + geographically active-active. Generally, data center disasters include fires, earthquakes, power outages, and network outages. Since disaster recovery drills only require simulating the disaster in the data center, and routine disaster recovery drills require maintaining the normal operation of some core components, disaster recovery drills typically simulate network outages for some network transmission equipment in the data center.
[0104] The data used in the application scenarios of this application generally refers to data generated by individuals, companies, enterprises, and organizations through network platforms, such as data generated by online social platforms, data generated by food delivery platforms, and data from a specific enterprise. This application scenario embodiment specifically uses enterprise data as an example to provide a detailed description of the data processing application scenario embodiment provided by this application.
[0105] In the application scenario of this application, the disaster recovery exercise system 101 includes: a disaster recovery exercise platform 101-1, a network outage identification management platform 101-2, and a network transmission device 101-3 that participates in the network outage simulation.
[0106] The disaster recovery exercise platform 101-1 is used to send network outage simulation request commands, which contain network outage rules for the data to be processed; and to send a network outage identifier write request message for the target enterprise data to the network outage identifier management platform 101-2.
[0107] The network disconnection identifier management platform 101-2 is used to receive the network disconnection identifier write request message for the target data sent by the disaster recovery exercise platform 101-1; according to the network disconnection identifier write request message, it writes the network disconnection identifier for the target data. The network disconnection identifier is used to instruct the network transmission device 101-3 to perform network disconnection simulation on the target data after obtaining the network disconnection rules.
[0108] Network transmission device 101-3 is used to obtain network disconnection rules for the data to be processed. The network disconnection rules are used to instruct target data carrying a network disconnection identifier in the data to be processed to simulate network disconnection; obtain the target data from the data to be processed; and stop transmitting the target data to realize the network disconnection simulation. The network transmission device includes one or two of the following types of switches: core layer switch and metropolitan area core switch.
[0109] In this application scenario embodiment, the disaster recovery drill system 101 further includes: a network management platform 101-4, used to obtain a network disconnection simulation request instruction from the disaster recovery drill platform 101-1 for the data to be processed, generate a network disconnection drill start message according to the network disconnection simulation request instruction, and transmit the network disconnection drill start instruction to the network transmission device 101-3 under the network management platform 101-4. At this time, the specific process of the network transmission device 101-3 obtaining the network disconnection rules for the data to be processed is as follows: the network transmission device 101-3 parses the network disconnection drill start instruction and obtains the network disconnection rules for the data to be processed.
[0110] In this application scenario embodiment, the process of obtaining target data is as follows: Obtain the identification information corresponding to the data storage device of the data to be processed; from the identification information corresponding to the data storage device of the data to be processed, obtain the data storage device whose identification information is a specified identification information; and use the data stored in the data storage device whose identification information is a specified identification information as the target data. Specifically, the operation of writing a network disconnection flag to the target data is as follows: Obtain the identification information corresponding to the data storage device of the data to be processed; from the identification information corresponding to the data storage device of the data to be processed, obtain the data storage device 101-21 whose identification information is a specified identification information; use the data stored in the data storage device 101-21 whose identification information is a specified identification information as the target data; send a network disconnection flag writing instruction to the data storage device 101-21 whose identification information is a specified identification information; and write a specified encoded value as a network disconnection flag in the specified field of the service type field of the target data in the data storage device 101-21 whose identification information is a specified identification information.
[0111] In the first scenario embodiment of this application, after the network transmission device 101-3 corresponding to the enterprise target data performs a network outage simulation on the enterprise target data, the disaster recovery exercise system 101 will perform a disaster recovery exercise on the target data, that is, switch the target data from the current data center to another data center in the same city.
[0112] In the application scenario embodiments provided in this application, the network transmission devices corresponding to the target data include: hubs, switches, bridges, routers, gateways, etc. This application mainly uses switches; the network disconnection simulation method is: the network transmission devices corresponding to the target data terminate the network transmission to the target, that is, the target data is dropped.
[0113] In the application scenario embodiments provided in this application, the network disconnection identifier is an identifier written into the packet corresponding to the enterprise target data. Specifically, a pre-set specified encoded value is written as the network disconnection identifier into a specified field in the service type field of the header corresponding to the enterprise target data. The service type field has 8 bits. According to the DSCP (Differentiated Services Code Point) QoS classification standard for Diff-Serv (Differentiated Service) published by the IETF (The Internet Engineering Task Force) in December 1998, the first 6 bits of the encoded value in the service type field of the IP header of each data packet are used to distinguish priorities. Since DSCP uses the first 6 bits of the encoded value to distinguish priorities, DSCP can correspond to 64 priorities. However, in general, the number of priority categories for data is often far less than 64. Therefore, in the application scenario embodiment of this application, a specified encoded value in the first 6 bits of the encoded value of the service type field can be preset as a network disconnection identifier. For example, if the enterprise data has three priorities: 000000 (fast), 000001 (fast), and 000010 (normal), then 000011 can be pre-defined as a network disconnection identifier.
[0114] The network outage simulation method provided in this application can also be applied to scenarios where the disaster recovery exercise platform 101-1, the network outage identification management platform 101-2, and the network transmission equipment network outage identification management platform 101-3 participating in the network outage simulation work independently, depending on the specific processing procedure. These will not be described in detail here.
[0115] It should be noted that this application does not impose specific limitations on the application scenarios or the executing entity of the network outage simulation method provided in this application. The network outage simulation method provided in this application is not limited to the above-mentioned application scenarios, nor is it limited to data disaster recovery drills. The purpose of providing the above-mentioned application scenario embodiments in this application is to facilitate understanding of the network outage simulation method provided in this application, and is not intended to limit the network outage simulation method provided in this application.
[0116] First Embodiment
[0117] The first embodiment of this application provides a method for simulating network outages. This method is executed by a switch in the network. The switch can be any device that performs information forwarding and distribution on the network. The most important one is the DSW (Distribution Layer Switch), which plays the role of a core switch. It can also be executed by the ManCore core switch of the metropolitan area network.
[0118] The following combination Figures 2-3 Please provide an explanation.
[0119] Please refer to Figure 2 This is a flowchart of a network disconnection simulation method provided in the first embodiment of this application.
[0120] In step S201, a network disconnection rule is obtained for the data to be processed. The network disconnection rule is used to instruct the target data in the data to be processed that carries a network disconnection identifier to perform a network disconnection simulation.
[0121] Since the network outage simulation method provided in the first embodiment of this application is generally used for data disaster recovery drills, only disaster simulation of the data center is required during disaster recovery drills, and the normal operation of some core components needs to be maintained during normal disaster recovery drills. Therefore, the data to be processed in the first embodiment of this application is specified data.
[0122] In the first embodiment of this application, the data is generally: data generated by individuals, companies, enterprises and organizations when they process data through network platforms, such as data generated by online social platforms, data generated by food delivery platforms, data of a certain enterprise, etc.
[0123] In the first embodiment of this application, the process of obtaining the network disconnection rules for the data to be processed is as follows: First, a network disconnection simulation start command for the data to be processed is obtained, which carries the network disconnection rules; then, the network disconnection simulation start command is parsed to obtain the network disconnection rules. Under different network disconnection simulation systems, the sender of the network disconnection simulation start command may differ. A common approach is that the network disconnection simulation system includes a network management platform. In this case, the specific method for obtaining the network disconnection rules for the data to be processed is as follows: First, a Hypertext Transfer Protocol (HTTP) is established with the network management platform; through the HTTP link with the network management platform, the network disconnection simulation start command is obtained; the network disconnection request message is parsed to obtain the network disconnection rules for the data to be processed; the network disconnection simulation start command is first issued by the disaster recovery simulation platform and then forwarded to each participating switch through the network management platform. Furthermore, in some network disconnection simulation systems, no network management platform is set up, and the disaster recovery simulation platform can directly send the network disconnection simulation start command to the switch.
[0124] In step S202, the target data is obtained from the data to be processed.
[0125] In the first embodiment of this application, the step of obtaining the target data from the data to be processed is described in the following reference. Figure 3 Here is a flowchart of a method for obtaining target data provided in the first embodiment of this application:
[0126] Step S202-1: Obtain the data to be processed.
[0127] Step S202-2: Detect whether the data to be processed carries a network disconnection flag, and use the data carrying the network disconnection flag as the target data.
[0128] In the first embodiment of this application, the following different detection steps can be performed according to the location where the network disconnection flag is written:
[0129] When the network disconnection identifier is a pre-written identifier in the message corresponding to the target data, the detection steps for detecting data carrying the network disconnection identifier in the data to be processed are: parsing the message corresponding to the data to be processed; detecting whether the message corresponding to the data to be processed carries the network disconnection identifier, and taking the data to be processed carrying the network disconnection identifier in the message as the target data.
[0130] Among them, the data unit is the data exchanged and transmitted in the network, which contains the complete data information to be sent.
[0131] In the first embodiment of this application, when the network disconnection identifier is a identifier pre-written in the message corresponding to the target data, specifically an identifier pre-written in the header corresponding to the target data, the detection step of checking whether the message corresponding to the data to be processed carries a network disconnection identifier and using the data to be processed carrying a network disconnection identifier in the message as the target data is as follows: checking whether the header corresponding to the data to be processed carries a network disconnection identifier, and using the data to be processed carrying a network disconnection identifier in the header as the target data.
[0132] Furthermore, in the first embodiment of this application, when the network disconnection identifier is specifically an identifier pre-written in the header corresponding to the target data, the detection step is to detect whether the header corresponding to the data to be processed carries a network disconnection identifier and to use the data to be processed carrying a network disconnection identifier in the header as the target data: Detect whether the service type field corresponding to the data to be processed carries a network disconnection identifier and to use the data to be processed carrying a network disconnection identifier in the service type field as the target data.
[0133] Specifically, in the first embodiment of this application, the network disconnection identifier is an identifier pre-written in the service type field corresponding to the target data, including: the network disconnection identifier is an identifier pre-written with a specified encoded value in the service type field corresponding to the target data. At this time, it is detected whether the service type field corresponding to the data to be processed carries a network disconnection identifier, and the data to be processed carrying a network disconnection identifier in the service type field is taken as the target data, including: detecting whether the service type field corresponding to the data to be processed has been written with a specified encoded value; if so, the data with the specified field in the service type field having the specified encoded value is taken as the data carrying the network disconnection identifier.
[0134] In the first embodiment of this application, a specified encoding value in the encoding value of the first 6 bits of the service type field can be preset as a network disconnection identifier. For example, if the enterprise data has three priorities: 110000 (core), 110001 (email), and 110010 (normal), then 110011 can be preset as a network disconnection identifier.
[0135] In step S203, the transmission of target data is stopped to simulate a network outage.
[0136] In the first embodiment of this application, the method for simulating network disconnection for target data is to interrupt the network transmission of the target data. Specifically, the implementation process is as follows: send a network disconnection simulation command to the network transmission device corresponding to the target data; the network transmission device corresponding to the target data interrupts the network transmission of the target data in response to the network disconnection simulation command.
[0137] In the first embodiment provided in this application, the network transmission devices corresponding to the target data include hubs, switches, bridges, routers, gateways, etc.; the network outage simulation is as follows: the network transmission devices corresponding to the target data terminate the network transmission to the target, that is, they drop packets or suspend the transmission of the target data. Specifically, network transmission devices such as switches stop forwarding or suspend the transmission of target data that they are required to forward. This is equivalent to the server transmitting this target data being unable to transmit data outward, that is, the network is disconnected in terms of data, thus achieving the effect of network outage simulation.
[0138] The network disconnection simulation method provided in the first embodiment of this application further includes:
[0139] In the simulated network outage state, a network outage simulation termination command is obtained for the target data; based on the network outage simulation termination command, the transmission of the target data is resumed. Specifically, a network outage simulation termination command is sent to the network transmission device corresponding to the target data, and the network transmission device corresponding to the target data resumes the transmission of the target data upon receiving the network outage simulation termination command.
[0140] The network outage simulation method provided in the first embodiment of this application, after obtaining network outage rules for the target data carrying network outage identifiers in the data to be processed, further obtains the target data from the data to be processed and performs network outage simulation on the target data. The network outage simulation method provided in the first embodiment of this application can obtain the target data and perform network outage simulation on the target data, thereby enabling targeted network outage simulation of data and improving the precision of disaster recovery drill control.
[0141] Second Embodiment
[0142] Corresponding to the network disconnection simulation method provided in the first embodiment of this application, the second embodiment of this application also provides a network disconnection simulation device. Since the device embodiment is basically similar to the first method embodiment, the description is relatively simple; relevant details can be found in the description of the method embodiment. The device embodiments described below are merely illustrative.
[0143] Please refer to Figure 4 This is a schematic diagram of a network disconnection simulation device provided in the second embodiment of this application.
[0144] The internet outage simulation device includes:
[0145] The network disconnection rule acquisition unit 401 is used to acquire network disconnection rules for the data to be processed, wherein the network disconnection rules are used to instruct network disconnection simulation to be performed on target data carrying network disconnection identifiers in the data to be processed.
[0146] The target data acquisition unit 402 is used to obtain the target data from the data to be processed;
[0147] The network disconnection simulation unit 403 is used to simulate a network disconnection for the target data, that is, to stop transmitting the target data and realize the network disconnection simulation.
[0148] Optionally, the target data acquisition unit 402 is specifically used to acquire data to be processed; detect whether the data to be processed carries the network disconnection identifier, and use the data carrying the network disconnection identifier as the target data.
[0149] Optionally, the network disconnection identifier is an identifier pre-written in the message corresponding to the target data;
[0150] The step of detecting whether the data to be processed carries the network disconnection identifier, and then using the data carrying the network disconnection identifier as the target data, includes:
[0151] Parse the message corresponding to the data to be processed;
[0152] Detect whether the message corresponding to the data to be processed carries the network disconnection identifier, and take the data to be processed that carries the network disconnection identifier as the target data.
[0153] Optionally, the network disconnection identifier is an identifier pre-written in the message corresponding to the target data, including: the network disconnection identifier is an identifier pre-written in the header corresponding to the target data;
[0154] The step of detecting whether the message corresponding to the data to be processed carries the network disconnection identifier, and taking the data to be processed carrying the network disconnection identifier in the message as the target data, includes: detecting whether the header corresponding to the data to be processed carries the network disconnection identifier, and taking the data to be processed carrying the network disconnection identifier in the header as the target data.
[0155] Optionally, the network disconnection identifier is an identifier pre-written in the header corresponding to the target data, including: the network disconnection identifier is an identifier pre-written in the service type field corresponding to the target data;
[0156] The step of detecting whether the header corresponding to the data to be processed carries the network disconnection identifier, and taking the data to be processed that carries the network disconnection identifier in the header as the target data, includes: detecting whether the service type field corresponding to the data to be processed carries the network disconnection identifier, and taking the data to be processed that carries the network disconnection identifier in the service type field as the target data.
[0157] Optionally, the network disconnection identifier is an identifier pre-written in the service type field corresponding to the target data, including: the network disconnection identifier is an identifier for which a specified encoding value is pre-written in the service type field corresponding to the target data;
[0158] The step of detecting whether the service type field corresponding to the data to be processed carries the network disconnection identifier, and taking the data to be processed that carries the network disconnection identifier in the service type field as the target data, includes:
[0159] Detect whether the specified encoded value has been written into the service type field corresponding to the data to be processed;
[0160] If so, the data with the specified encoding value in the specified field of the service type field will be used as the data carrying the network disconnection identifier.
[0161] Optionally, the network disconnection rule acquisition unit 401 is specifically used for
[0162] Obtain a network disconnection simulation start command for the data to be processed, the network disconnection simulation start command carrying the network disconnection rule; parse the network disconnection simulation start command to obtain the network disconnection rule.
[0163] Optionally, the network disconnection simulation device provided in the second embodiment of this application further includes: a network disconnection simulation termination unit, used to receive a network disconnection simulation termination command in the network disconnection simulation state and resume the transmission of the target data.
[0164] Optionally, the network outage simulation unit 403 is specifically used to perform packet loss on the target data to realize the network outage simulation.
[0165] Optionally, the network outage simulation unit 403 is specifically used to pause the transmission of the target data to simulate a network outage. Stopping the transmission of the target data simulates a network outage.
[0166] The network outage simulation device provided in the second embodiment of this application, after obtaining network outage rules for the target data carrying a network outage identifier in the data to be processed, further obtains the target data from the data to be processed and performs network outage simulation on the target data. The network outage simulation device provided in the second embodiment of this application can obtain the target data and perform network outage simulation on the target data, thereby enabling targeted network outage simulation of data and improving the precision of disaster recovery drill control.
[0167] Third Embodiment
[0168] Corresponding to the network disconnection simulation method provided in the first embodiment of this application, the third embodiment of this application provides an electronic device.
[0169] As shown in 5, Figure 5 This is a schematic diagram of an electronic device provided in an embodiment of this application.
[0170] The electronic device includes:
[0171] Processor 501; and
[0172] The memory 502 stores the program for the network outage simulation method. After the device is powered on and the program for the network outage simulation method is passed, the following steps are executed:
[0173] Obtain network disconnection rules for the data to be processed, the network disconnection rules being used to instruct network disconnection simulation to be performed on target data in the data to be processed that carries a network disconnection identifier;
[0174] The target data is obtained from the data to be processed;
[0175] Stop transmitting the target data to simulate a network outage.
[0176] The network outage simulation electronic device provided in the third embodiment of this application, after obtaining network outage rules for the target data carrying a network outage identifier in the data to be processed, further obtains the target data from the data to be processed and performs network outage simulation on the target data. The network outage simulation electronic device provided in the third embodiment of this application can obtain the target data and perform network outage simulation on the target data, thereby enabling targeted network outage simulation of data and improving the precision of disaster recovery drill control.
[0177] It should be noted that for a detailed description of the electronic device provided in the third embodiment of this application, please refer to the relevant description of the first embodiment of this application, which will not be repeated here.
[0178] Fourth embodiment
[0179] Corresponding to the network disconnection simulation method provided in the first embodiment of this application, the fourth embodiment of this application provides a storage medium storing a program for the network disconnection simulation method. This program is executed by a processor to perform the following steps:
[0180] Obtain network disconnection rules for the data to be processed, the network disconnection rules being used to instruct network disconnection simulation to be performed on target data in the data to be processed that carries a network disconnection identifier;
[0181] The target data is obtained from the data to be processed;
[0182] Stop transmitting the target data to simulate a network outage.
[0183] The network outage simulation storage medium provided in the fourth embodiment of this application, after obtaining network outage rules for the target data carrying a network outage identifier in the data to be processed, further obtains the target data from the data to be processed and performs network outage simulation on the target data. The network outage simulation storage medium provided in the fourth embodiment of this application can obtain the target data and perform network outage simulation on the target data, thereby enabling targeted network outage simulation of data and improving the precision of disaster recovery drill control.
[0184] It should be noted that for a detailed description of the storage medium provided in the fourth embodiment of this application, please refer to the relevant description of the first embodiment of this application, which will not be repeated here.
[0185] Fifth embodiment
[0186] The fifth embodiment of this application provides a data processing method, which is described below in conjunction with... Figure 6 Explanation
[0187] Please refer to Figure 6 This is a flowchart of a data processing method provided in the fifth embodiment of this application. The method is used to write a network disconnection identifier into the target data. The method is executed by a device capable of performing message operations on transmitted data, typically a QoS management platform. The QoS management platform is an existing management platform in cloud services, capable of issuing QoS tags to designated machines, that is, modifying the corresponding 6-bit DSCP value of the TOS field in the packet header before the data packet is sent from the machine's network card. Using this function, the target data can be tagged.
[0188] In step S601, a network disconnection identifier write request message for the target data is obtained.
[0189] In the fifth embodiment of this application, obtaining a network disconnection identifier write request message for target data includes: establishing a hypertext transfer protocol with the disaster recovery exercise platform; and obtaining a network disconnection identifier write request message for target data through the hypertext transfer protocol established with the disaster recovery exercise platform.
[0190] In step S602, a network disconnection identifier is written to the target data according to the network disconnection identifier write request message. The network disconnection identifier is used to instruct the network management platform to simulate network disconnection for the target data after obtaining the network disconnection rules.
[0191] In the fifth embodiment of this application, writing a network disconnection identifier to target data according to a network disconnection identifier write request message includes: identifying the target data; and writing the network disconnection identifier into the message corresponding to the target data.
[0192] The process of identifying target data is as follows: obtaining the identification information corresponding to the data storage device of the data to be processed; obtaining the data storage device whose identification information is the specified identification information from the identification information corresponding to the data storage device of the data to be processed; and using the data stored in the data storage device whose identification information is the specified identification information as the target data.
[0193] It should be noted that writing a network disconnection identifier to the target data includes: sending a network disconnection identifier write command to the data storage device with the specified identifier information; and writing the network disconnection identifier to the target data in the data storage device with the specified identifier information.
[0194] Specifically, writing a network disconnection identifier into the message corresponding to the target data includes writing the network disconnection identifier into the header of the target data. More specifically, writing the network disconnection identifier into the header of the target data includes writing the network disconnection identifier into the service type field of the target data.
[0195] It should be noted that writing the network disconnection flag into the service type field corresponding to the target data includes: determining the specified field to write the network disconnection flag into the service type field corresponding to the target data; and writing a specified encoded value into the specified field as the network disconnection flag.
[0196] After the network disconnection flag is written to the target data, it may be necessary to cancel the network disconnection flag of the target data. Therefore, after the network disconnection flag writing operation is performed, the following steps may be included: obtaining a network disconnection flag cancellation message for the target data; canceling the network disconnection flag of the target data that has been written with the network disconnection flag according to the network disconnection flag cancellation message.
[0197] The data processing method provided in the fifth embodiment of this application, after obtaining a network disconnection identifier write request message for target data, can write a network disconnection identifier for the target data according to the network disconnection identifier write request message. The network disconnection identifier is used to instruct the network management platform to perform a network disconnection simulation on the target data after obtaining the network disconnection rules. The data processing method provided in the fifth embodiment of this application can write a network disconnection identifier to the target data, instructing the network management platform to perform a network disconnection simulation on the target data after obtaining the network disconnection rules, thereby enabling targeted network disconnection simulation of the data and improving the precision of disaster recovery drill control.
[0198] Sixth Embodiment
[0199] Corresponding to the data processing method provided in the fifth embodiment of this application, the sixth embodiment of this application also provides a data processing apparatus. Since the apparatus embodiment is basically similar to the fifth method embodiment, the description is relatively simple; relevant details can be found in the description of the method embodiment. The apparatus embodiments described below are merely illustrative.
[0200] Please refer to Figure 7 This is a schematic diagram of a data processing device provided in the second embodiment of this application.
[0201] The data processing device includes:
[0202] The network disconnection identifier write request message acquisition unit 701 is used to acquire a network disconnection identifier write request message for target data;
[0203] The network disconnection identifier writing unit 702 is used to write a network disconnection identifier to the target data according to the network disconnection identifier writing request message. The network disconnection identifier is used to instruct the network management platform to simulate network disconnection for the target data after obtaining the network disconnection rules.
[0204] Optionally, the network disconnection identifier writing unit 702 is specifically used to identify target data and write the network disconnection identifier into the message corresponding to the target data.
[0205] Optionally, writing the network disconnection identifier into the message corresponding to the target data includes writing the network disconnection identifier into the header corresponding to the target data.
[0206] Optionally, writing the network disconnection identifier into the header corresponding to the target data includes writing the network disconnection identifier into the service type field corresponding to the target data.
[0207] Optionally, writing the network disconnection identifier into the service type field corresponding to the target data includes:
[0208] Determine the specified field in the service type field corresponding to the target data to which the network disconnection identifier is written;
[0209] Write the specified encoded value into the specified field as the network disconnection identifier.
[0210] Optionally, obtaining the target data includes:
[0211] Obtain the identification information corresponding to the data storage device of the data to be processed;
[0212] From the identification information corresponding to the data storage device of the data to be processed, the data storage device whose identification information is specified is obtained;
[0213] The data stored in the data storage device containing the specified identification information is used as the target data.
[0214] Optionally, writing a network disconnection identifier to the target data includes:
[0215] Send a network disconnection identifier write command to the data storage device whose identifier information is the specified identifier information;
[0216] In the data storage device whose identification information is the specified identification information, a network disconnection identifier is written for the target data.
[0217] Optionally, the network disconnection identifier write request message obtaining unit 701 is specifically used to establish a hypertext transfer protocol with the disaster recovery exercise platform; and obtain a network disconnection identifier write request message for the target data through the hypertext transfer protocol established with the disaster recovery exercise platform.
[0218] Optionally, the data processing apparatus provided in the sixth embodiment of this application further includes: a network disconnection flag cancellation unit, used to perform the following steps after the network disconnection flag writing operation is executed: obtaining a network disconnection flag cancellation message for the target data; and canceling the network disconnection flag of the target data that has been written with the network disconnection flag according to the network disconnection flag cancellation message.
[0219] The data processing apparatus provided in the sixth embodiment of this application, after receiving a network disconnection identifier write request message for target data, can write a network disconnection identifier for the target data according to the network disconnection identifier write request message. The network disconnection identifier is used to instruct the network management platform to perform a network disconnection simulation on the target data after obtaining the network disconnection rules. The data processing apparatus provided in the sixth embodiment of this application can write a network disconnection identifier to the target data, instructing the network management platform to perform a network disconnection simulation on the target data after obtaining the network disconnection rules, thereby enabling targeted network disconnection simulation of the data and improving the precision of disaster recovery drill control.
[0220] Seventh Embodiment
[0221] Corresponding to the first application scenario embodiment of the data processing method provided in the fifth embodiment of this application, the seventh embodiment of this application provides an electronic device.
[0222] As shown in 5, Figure 5 This is a schematic diagram of an electronic device provided in an embodiment of this application.
[0223] The electronic device includes:
[0224] Processor 501; and
[0225] The memory 502 stores a program for a data processing method. After the device is powered on and the program for the data processing method is passed, the following steps are executed:
[0226] Obtain the write request message for the network disconnection identifier of the target data;
[0227] According to the network disconnection identifier write request message, a network disconnection identifier is written to the target data. The network disconnection identifier is used to instruct the network management platform to simulate a network disconnection for the target data after obtaining the network disconnection rules.
[0228] The data processing electronic device provided in the seventh embodiment of this application, after receiving a network disconnection identifier write request message for target data, can write a network disconnection identifier for the target data according to the network disconnection identifier write request message. The network disconnection identifier is used to instruct the network management platform to perform a network disconnection simulation on the target data after obtaining the network disconnection rules. The data processing electronic device provided in the seventh embodiment of this application can write a network disconnection identifier to the target data, instructing the network management platform to perform a network disconnection simulation on the target data after obtaining the network disconnection rules, thereby enabling targeted network disconnection simulation of data and improving the precision of disaster recovery drill control.
[0229] It should be noted that for a detailed description of the electronic device provided in the seventh embodiment of this application, please refer to the relevant description of the first embodiment of this application, which will not be repeated here.
[0230] Eighth embodiment
[0231] Corresponding to the data processing method provided in the fifth embodiment of this application, the eighth embodiment of this application provides a storage medium storing a program for the data processing method, which is executed by a processor to perform the following steps:
[0232] Obtain the write request message for the network disconnection identifier of the target data;
[0233] According to the network disconnection identifier write request message, a network disconnection identifier is written to the target data. The network disconnection identifier is used to instruct the network management platform to simulate a network disconnection for the target data after obtaining the network disconnection rules.
[0234] The data processing storage medium provided in the eighth embodiment of this application, after receiving a network disconnection identifier write request message for target data, can write a network disconnection identifier for the target data according to the network disconnection identifier write request message. The network disconnection identifier is used to instruct the network management platform to perform network disconnection simulation on the target data after obtaining network disconnection rules. The data processing storage medium provided in the eighth embodiment of this application can write a network disconnection identifier to the target data, instructing the network management platform to perform network disconnection simulation on the target data after obtaining network disconnection rules, thereby enabling targeted network disconnection simulation of data and improving the precision of disaster recovery drill control.
[0235] It should be noted that for a detailed description of the storage medium provided in the eighth embodiment of this application, please refer to the relevant description of the fifth embodiment of this application, which will not be repeated here.
[0236] Ninth Embodiment
[0237] Corresponding to the network disconnection simulation method and first application scenario embodiment provided in the first embodiment of this application, the ninth embodiment of this application also provides a network disconnection simulation system. Since the system embodiment is basically similar to the method embodiment in the first embodiment, the description is relatively simple; relevant details can be found in the relevant descriptions of the first embodiment of this application. The method embodiments described below are merely illustrative.
[0238] Please refer to again Figure 1 The network outage simulation system includes: a disaster recovery exercise platform 101-1, a network management and control platform 101-4, and a network outage identification management platform 101-2; the network outage simulation system also includes various network transmission devices 101-3 that participate in the network outage simulation.
[0239] The disaster recovery exercise platform 101-1 is used to send a network outage simulation request instruction, which includes network outage rules for the data to be processed; and to send a network outage identifier write request message for the target data to the network outage identifier management platform 101-2.
[0240] The network management platform 101-4 is used to receive network disconnection request instructions from the disaster recovery exercise platform 101-1 for the data to be processed; generate a network disconnection exercise start message according to the network disconnection request instructions; and transmit the network disconnection exercise start message to the network transmission devices managed by the network management platform. In some cases, the network management platform 101-4 may not be set up, and the disaster recovery exercise platform 101-1 may directly perform the above functions.
[0241] The network disconnection identifier management platform 101-2 is used to obtain the network disconnection identifier writing request message for the target data sent by the disaster recovery exercise platform 101-1; according to the network disconnection identifier writing request message, it writes a network disconnection identifier for the target data. The network disconnection identifier is used to instruct the network management platform 101-2 to perform a network disconnection simulation on the target data after obtaining the network disconnection rules.
[0242] The network transmission device 101-3 is used to obtain network disconnection rules for the data to be processed. The network disconnection rules are used to instruct the network disconnection simulation to be performed on the target data carrying the network disconnection identifier in the data to be processed; to obtain the target data from the data to be processed; and to perform network disconnection simulation by stopping the transmission of the target data.
[0243] The data processing system provided in the ninth embodiment of this application, after obtaining a network disconnection rule for the data to be processed, which instructs target data carrying a network disconnection identifier in the data to be processed to perform network disconnection simulation, further obtains the target data from the data to be processed and performs network disconnection simulation on the target data. The network disconnection simulation system provided in the ninth embodiment of this application can obtain the target data and perform network disconnection simulation on the target data, thereby enabling targeted network disconnection simulation of data and improving the precision of disaster recovery drill control. Although this application has been disclosed above with reference to preferred embodiments, it is not intended to limit this application. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of this application. Therefore, the scope of protection of this application should be determined by the scope defined in the claims of this application.
[0244] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0245] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0246] Computer-readable media include both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, information structures, program modules, or other information. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage media, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include non-transitory computer-readable media, such as modulated information signals and carrier waves.
[0247] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
Claims
1. A method of off-network simulation, the method comprising: The application is applied to the scene of disaster recovery drill for a data center, and includes the following steps: Obtain a network interruption rule for to-be-processed data, the network interruption rule being used to indicate network interruption simulation on target data carrying a network interruption identifier in the to-be-processed data; the target data is data stored in a data storage device with specified identifier information; the network interruption identifier is an identifier written in advance in a service type field of a header of a packet corresponding to the target data; Obtain the target data from the to-be-processed data; wherein detecting whether the to-be-processed data carries the network interruption identifier, and taking data carrying the network interruption identifier as the target data, comprises: analyzing a packet corresponding to the to-be-processed data; Detect whether the network interruption identifier is carried in a service type field corresponding to the to-be-processed data, and take the to-be-processed data carrying the network interruption identifier in the service type field as the target data; stop transmitting the target data to realize network interruption simulation.
2. The network outage simulation method of claim 1, wherein, The step of obtaining the target data from the to-be-processed data comprises: Obtain to-be-processed data; Detect whether the to-be-processed data carries the network interruption identifier, and take data carrying the network interruption identifier as the target data.
3. The network outage simulation method of claim 1, wherein, The network interruption identifier is an identifier with a specified code value written in advance in a service type field corresponding to the target data; The step of detecting whether the network interruption identifier is carried in a service type field corresponding to the to-be-processed data, and taking the to-be-processed data carrying the network interruption identifier in the service type field as the target data comprises: Detect whether the specified code value is written in the service type field corresponding to the to-be-processed data; If yes, take data with the specified code value in the service type field as data carrying the network interruption identifier.
4. The network outage simulation method of claim 1, wherein, The step of obtaining the network interruption rule for to-be-processed data comprises: Obtain a network interruption simulation start instruction for the to-be-processed data, the network interruption simulation start instruction carrying the network interruption rule; Analyze the network interruption simulation start instruction to obtain the network interruption rule.
5. The network outage simulation method of claim 1, wherein, Further comprising: In a network interruption simulation state, obtain a network interruption simulation end instruction for the target data; According to the network interruption simulation end instruction, resume transmitting the target data.
6. The network outage simulation method of claim 1, wherein, The step of stopping transmitting the target data to realize network interruption simulation comprises: packet loss on the target data to realize the network interruption simulation.
7. The network outage simulation method of claim 1, wherein, The step of stopping transmitting the target data to realize network interruption simulation comprises: pausing transmission of the target data to realize network interruption simulation.
8. An off-network simulation device, comprising: The application is applied to the scene of disaster recovery drill for a data center, and includes the following steps: A network interruption rule obtaining unit is configured to obtain a network interruption rule for to-be-processed data, the network interruption rule being used to indicate network interruption simulation on target data carrying a network interruption identifier in the to-be-processed data; the target data is data stored in a data storage device with specified identifier information; the network interruption identifier is an identifier written in advance in a service type field of a header of a packet corresponding to the target data; The target data obtaining unit is configured to obtain the target data from the to-be-processed data, and further configured to parse a message corresponding to the to-be-processed data, detect whether the service type field corresponding to the to-be-processed data carries the network disconnection identifier, and take the to-be-processed data carrying the network disconnection identifier in the service type field as the target data; The network disconnection simulating unit is configured to stop transmitting the target data, and realize network disconnection simulation.
9. An electronic device, comprising: The application is applied to the scenario of disaster recovery drill for a data center, and includes: a processor; and a memory configured to store a program of a network disconnection simulation method, wherein after the device is powered on and the program of the network disconnection simulation method is loaded, the following steps are performed: obtaining a network disconnection rule for to-be-processed data, wherein the network disconnection rule is used to indicate network disconnection simulation on target data carrying a network disconnection identifier in the to-be-processed data; the target data is data stored in a data storage device with specified identifier information; the network disconnection identifier is an identifier written in advance in a service type field of a header of a message corresponding to the target data; obtaining the target data from the to-be-processed data; parsing a message corresponding to the to-be-processed data, detecting whether the service type field corresponding to the to-be-processed data carries the network disconnection identifier, and taking the to-be-processed data carrying the network disconnection identifier in the service type field as the target data; stopping transmitting the target data, and realizing network disconnection simulation.
10. A storage medium, characterized by The application is applied to the scenario of disaster recovery drill for a data center, and includes: obtaining a network disconnection rule for to-be-processed data, wherein the network disconnection rule is used to indicate network disconnection simulation on target data carrying a network disconnection identifier in the to-be-processed data; the network disconnection identifier is an identifier written in advance in a service type field of a header of a message corresponding to the target data, and is used to indicate network disconnection simulation on the target data; obtaining the target data from the to-be-processed data; wherein a message corresponding to the to-be-processed data is parsed, it is detected whether the service type field corresponding to the to-be-processed data carries the network disconnection identifier, and the to-be-processed data carrying the network disconnection identifier in the service type field is taken as the target data; stopping transmitting the target data, and realizing network disconnection simulation.
11. A data processing method, characterized by, The application is applied to the scenario of disaster recovery drill for a data center, and includes: obtaining a network disconnection identifier writing request message for target data; writing a network disconnection identifier for the target data according to the network disconnection identifier writing request message, wherein the network disconnection identifier is written in a service type field of a header of a message corresponding to the target data, and is used to indicate that a network management platform performs network disconnection simulation on the target data after obtaining a network disconnection rule; the target data is data stored in a data storage device with specified identifier information.
12. The data processing method according to claim 11, characterized in that, The writing of the network disconnection identifier for the target data according to the network disconnection identifier writing request message includes: identifying target data; writing the network disconnection identifier in a message corresponding to the target data.
13. The data processing method of claim 11, wherein, The writing of the network disconnection identifier in the service type field of the message corresponding to the target data includes: determining to write the specified field of the off-network identifier in a service type field corresponding to the target data; writing a specified encoding value as the off-network identifier in the specified field.
14. The data processing method according to claim 12, characterized by, The target data includes: obtaining the identifier information corresponding to the data storage device of the to-be-processed data; obtaining the data storage device whose identifier information is the specified identifier information from the identifier information corresponding to the data storage device of the to-be-processed data; storing the data in the data storage device whose identifier information is the specified identifier information as the target data.
15. The data processing method according to claim 14, characterized in that, The off-network identifier written for the target data includes: sending an off-network identifier writing instruction to the data storage device whose identifier information is the specified identifier information; writing the off-network identifier for the target data in the data storage device whose identifier information is the specified identifier information.
16. The data processing method of claim 11, wherein, The off-network identifier writing request message for the target data includes: establishing a hypertext transfer protocol with a disaster recovery rehearsal platform; obtaining the off-network identifier writing request message for the target data through the hypertext transfer protocol established with the disaster recovery rehearsal platform.
17. The data processing method of claim 11, wherein, After the off-network identifier writing operation is executed, the following steps are included: obtaining an off-network identifier revocation message for the target data; and revoking the off-network identifier of the target data to which the off-network identifier has been written according to the off-network identifier revocation message.
18. A data processing apparatus, characterized by The scene applied to the disaster recovery rehearsal for the data center includes: an off-network identifier writing request message obtaining unit, configured to obtain an off-network identifier writing request message for target data; an off-network identifier writing unit, configured to write an off-network identifier for a packet corresponding to the target data according to the off-network identifier writing request message, the off-network identifier being written in a service type field of a header of the packet corresponding to the target data, the off-network identifier being used to instruct a network management platform to perform off-network simulation on the target data after obtaining an off-network rule; and the target data being data stored in a data storage device with specified identifier information.
19. An electronic device, comprising: The scene applied to the disaster recovery rehearsal for the data center includes: a processor; and a memory, configured to store a program of a data processing method, and after the device is powered on and the program of the data processing method is executed, the following steps are performed: obtaining an off-network identifier writing request message for target data; writing an off-network identifier for a packet corresponding to the target data according to the off-network identifier writing request message, the off-network identifier being written in a service type field of a header of the packet corresponding to the target data, the off-network identifier being used to instruct a network management platform to perform off-network simulation on the target data after obtaining an off-network rule; and the target data being data stored in a data storage device with specified identifier information.
20. A storage medium, characterized by The scene applied to the disaster recovery rehearsal for the data center includes: a program of a data processing method, which is executed by a processor and performs the following steps: obtaining an off-network identifier writing request message for target data; According to the offline identifier writing request message, an offline identifier is written for a packet corresponding to the target data, the offline identifier is written in a service type field of a header of the packet corresponding to the target data, and the offline identifier is used to indicate that the network management platform performs offline simulation on the target data after obtaining an offline rule; the target data is data stored in a data storage device with specified identifier information.
21. An off-network simulation system, comprising: The application is applied to a scenario of disaster recovery drill for a data center, and includes a disaster recovery drill platform, an offline identifier management platform, and a network transmission device participating in offline simulation. The disaster recovery drill platform is configured to send an offline simulation request instruction, the offline simulation request instruction contains an offline rule for to-be-processed data, and send an offline identifier writing request message for target data to the offline identifier management platform; the target data is data stored in a data storage device with specified identifier information. The offline identifier management platform is configured to obtain the offline identifier writing request message for target data sent by the disaster recovery drill platform, and write an offline identifier for a packet corresponding to the target data according to the offline identifier writing request message; the offline identifier is written in a service type field of a header of the packet corresponding to the target data, and the offline identifier is used to indicate that the network transmission device performs offline simulation on the target data after obtaining an offline rule. The network transmission device is configured to obtain an offline rule for to-be-processed data, the offline rule is used to indicate that target data carrying an offline identifier in the to-be-processed data is subjected to offline simulation, obtain the target data from the to-be-processed data, and stop transmitting the target data to implement offline simulation. The network transmission device is further configured to analyze a packet corresponding to the to-be-processed data, detect whether the to-be-processed data carries the offline identifier in a service type field, and take the to-be-processed data carrying the offline identifier in the service type field as the target data.
22. The web break simulation system of claim 21, wherein, Further comprising: A network management and control platform is configured to obtain an offline simulation request instruction for the to-be-processed data from the disaster recovery drill platform, generate an offline drill start message according to the offline simulation request instruction, and deliver the offline drill start instruction to the network transmission device managed by the network management and control platform. The network transmission device is configured to obtain an offline rule for to-be-processed data, including that the network transmission device analyzes the offline drill start instruction to obtain the offline rule for the to-be-processed data.
23. The web break simulation system of claim 21, wherein, The offline identifier management platform is implemented by a network service quality management and control platform.
24. The web break simulation system of claim 21, wherein, The network transmission device includes one or two of the following types of switches: a core layer switch and a metropolitan area core switch.
25. A network management and control platform, characterized in that, Applied to the scene of disaster recovery drill for data center, the network management and control platform is used for receiving a network interruption simulation request instruction of a disaster recovery drill platform for to-be-processed data, generating a network interruption drill start instruction according to the network interruption simulation request instruction, and delivering the network interruption drill start instruction to a network transmission device managed by the network management and control platform, wherein the network interruption drill start instruction comprises a network interruption rule, and the network interruption rule is used for indicating to perform network interruption simulation on target data carrying a network interruption identifier in the to-be-processed data; the target data is data stored in a data storage device with specified identifier information; and the network interruption identifier is an identifier written in a service type field of a header of a packet corresponding to the target data in advance.
Citation Information
Patent Citations
System of carrying out fault simulation in distributed system, apparatus and method thereof
CN107645397A