CN113641534A - Network disconnection simulation method and device, electronic equipment and system - Google Patents

Network disconnection simulation method and device, electronic equipment and system Download PDF

Info

Publication number
CN113641534A
CN113641534A CN202010393292.5A CN202010393292A CN113641534A CN 113641534 A CN113641534 A CN 113641534A CN 202010393292 A CN202010393292 A CN 202010393292A CN 113641534 A CN113641534 A CN 113641534A
Authority
CN
China
Prior art keywords
network
data
identifier
target data
breaking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010393292.5A
Other languages
Chinese (zh)
Inventor
任轩
谢吉宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010393292.5A priority Critical patent/CN113641534A/en
Publication of CN113641534A publication Critical patent/CN113641534A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking
    • G06F11/1482Generic software techniques for error detection or fault masking by means of middleware or OS functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments

Abstract

The application provides a network disconnection simulation method, which comprises the following steps: obtaining a network breaking rule aiming at data to be processed, wherein the network breaking rule is used for indicating that the network breaking simulation is carried out on target data carrying a network breaking identification in the data to be processed; obtaining the target data from the data to be processed; and stopping transmitting the target data to realize the network disconnection simulation. According to the network breaking simulation method, after the network breaking rule aiming at the data to be processed and used for indicating the target data carrying the network breaking identification in the data to be processed to be subjected to network breaking simulation is obtained, the target data can be further obtained from the data to be processed, and the network breaking simulation is carried out aiming at the target data, so that the network breaking simulation can be carried out on the data in a targeted manner, and the fineness of disaster tolerance drilling control on the data is improved.

Description

Network disconnection simulation method and device, electronic equipment and system
Technical Field
The application relates to the technical field of computers, in particular to a network disconnection simulation method. The application also provides a disconnected network simulation device, electronic equipment and a storage medium; the application also provides a data processing method related to the network disconnection simulation, a corresponding data processing device, an electronic device and a storage medium. The application also provides a network disconnection simulation system and a network management and control platform applied to the network disconnection simulation system.
Background
With the rapid development of computer technology and big data, an enterprise data center is often required to bear massive data, and the safety and stability of the data play a crucial role in the safety and stability of the enterprise. As an important network infrastructure for carrying enterprise data, an enterprise data center often suffers from irresistible natural disasters such as fire, flood, earthquake, war and the like, and human disasters such as computer crimes, computer viruses, power failure, network disconnection, hardware/software errors, human operation errors and the like in a real environment. Whether natural disasters or man-made disasters face a great threat to the security of data, so how to guarantee data also starts to become an increasingly concerned topic. At present, a common data disaster recovery method is a same-city dual-activity data disaster recovery method, that is, two data centers in the same city simultaneously carry data, and when one site fails due to a disaster, the core data carried by the site can be quickly switched to the other data center. However, since enterprise data is often very complicated and has a strong dependency relationship, when core data is switched by the same city dual-active data disaster recovery method, the effectiveness of core switching often cannot be ensured.
In order to ensure the effectiveness of core data switching, it is often necessary to perform a drilling of disaster recovery data switching on the data center periodically to verify the effectiveness of core data switching. The current practice mode for disaster recovery data switching to the data center is as follows: the method comprises the steps of simulating a machine room network fault by means of a machine room switch device network breaking and a network segment white list, namely, network breaking is carried out on network communication devices of a data center machine room, and the network segment white list is used for eliminating network breaking simulation of the network communication devices corresponding to partial data. However, due to the numerous and complicated enterprise data and the enhanced dependency between different data, the network disconnection + network segment white list mode of the machine room switch device is often difficult to perform network disconnection simulation with pertinence, so that the data of disaster tolerance drilling cannot be finely controlled.
Disclosure of Invention
The application provides a network disconnection simulation method and device, electronic equipment and a storage medium, which are used for performing network disconnection fault simulation on data in a targeted manner and improving the fineness of disaster tolerance drilling control on the data.
The application provides a network disconnection simulation method, which comprises the following steps:
the application provides a network disconnection simulation method, which comprises the following steps:
obtaining a network breaking rule aiming at data to be processed, wherein the network breaking rule is used for indicating that the network breaking simulation is carried out on target data carrying a network breaking identification in the data to be processed;
obtaining the target data from the data to be processed;
and stopping transmitting the target data to realize the network disconnection simulation.
Optionally, the obtaining the target data from the data to be processed includes:
acquiring data to be processed;
and detecting whether the data to be processed carries the network disconnection identifier or not, and taking the data carrying the network disconnection identifier as the target data.
Optionally, the network disconnection identifier is an identifier written in the message corresponding to the target data in advance;
the detecting whether the data to be processed carries the network disconnection identifier or not and using the data carrying the network disconnection identifier as the target data includes:
analyzing a message corresponding to the data to be processed;
detecting whether a 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.
Optionally, the network disconnection identifier is an identifier written in the message corresponding to the target data in advance, and includes: the network disconnection identifier is an identifier written in a header corresponding to the target data in advance;
the detecting whether the packet corresponding to the data to be processed carries the network disconnection identifier or not, and using the data to be processed carrying the network disconnection identifier in the packet as the target data includes: detecting whether a 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.
Optionally, the network disconnection identifier is an identifier written in a header corresponding to the target data in advance, and includes: the network disconnection identifier is an identifier written in a service type field corresponding to the target data in advance;
the detecting whether the header corresponding to the to-be-processed data carries the network disconnection identifier, and using the to-be-processed data carrying the network disconnection identifier in the header as the target data includes: detecting whether a service type field 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 service type field as the target data.
Optionally, the network disconnection identifier is an identifier written in a service type field corresponding to the target data in advance, and includes: the network disconnection identifier is an identifier which is written with a specified coding value in a service type field corresponding to the target data in advance;
the detecting whether the service type field corresponding to the data to be processed carries the network disconnection identifier or not, and taking the data to be processed carrying the network disconnection identifier in the service type field as the target data includes:
detecting whether the specified coding value is written in a service type field corresponding to the data to be processed;
if so, taking the data with the specified field in the service type field as a specified coding value as the data carrying the network disconnection identifier.
Optionally, the obtaining the network breaking rule for the data to be processed includes:
acquiring a network disconnection simulation starting instruction aiming at the data to be processed, wherein the network disconnection simulation starting instruction carries the network disconnection rule;
analyzing the network breaking simulation starting instruction to obtain the network breaking rule.
Optionally, the method further includes:
acquiring a network disconnection simulation ending instruction aiming at the target data in a network disconnection simulation state;
and resuming to transmit the target data according to the network-breaking simulation ending instruction.
Optionally, the stopping transmitting the target data to realize the network outage simulation includes: and carrying out packet loss on the target data to realize the network disconnection simulation.
Optionally, the stopping transmitting the target data to realize the network outage simulation includes: and suspending the transmission of the target data to realize the simulation of network disconnection.
In another aspect of the present application, a network disconnection simulation apparatus is provided, including:
the network breaking rule obtaining unit is used for obtaining a network breaking rule aiming at the data to be processed, and the network breaking rule is used for indicating that the network breaking simulation is carried out on target data carrying a network breaking identifier in the data to be processed;
a target data obtaining unit, configured to obtain the target data from the data to be processed;
and the network disconnection simulating unit is used for stopping transmitting the target data and realizing network disconnection simulation.
In another aspect of the present application, an electronic device is provided, including:
a processor; and
the device is powered on and loads the program of the disconnected network simulation method, and then executes the following steps:
obtaining a network breaking rule aiming at data to be processed, wherein the network breaking rule is used for indicating that the network breaking simulation is carried out on target data carrying a network breaking identification in the data to be processed;
obtaining the target data from the data to be processed;
and stopping transmitting the target data to realize the network disconnection simulation.
In another aspect of the present application, there is provided a storage medium storing a program for a network disconnection simulation method, the program being executed by a processor and performing the steps of:
obtaining a network breaking rule aiming at data to be processed, wherein the network breaking rule is used for indicating that the network breaking simulation is carried out on target data carrying a network breaking identification in the data to be processed;
obtaining the target data from the data to be processed;
and stopping transmitting the target data to realize the network disconnection simulation.
In another aspect of the present application, a data processing method is provided, including:
acquiring a network breaking identifier write-in request message aiming at target data;
and writing a network breaking identifier for the target data according to the network breaking identifier writing request message, wherein the network breaking identifier is used for indicating a network management platform to carry out network breaking simulation on the target data after acquiring a network breaking rule.
Optionally, the writing the network disconnection identifier for the target data according to the network disconnection identifier writing request message includes:
identifying target data;
and writing the network breaking identification into the message corresponding to the target data.
Optionally, the writing of the network disconnection identifier in the message corresponding to the target data includes: and writing the network breaking identification into a header corresponding to the target data.
Optionally, the writing the network disconnection identifier in the header corresponding to the target data includes: and writing the network breaking identification in a service type field corresponding to the target data.
Optionally, the writing of the network outage identifier in the service type field corresponding to the target data includes:
determining a designated field in which the network breaking identifier is written in a service type field corresponding to the target data;
and writing a specified encoding value in the specified field as the network breaking identifier.
Optionally, the identifying target data includes:
acquiring identification information corresponding to data storage equipment of data to be processed;
obtaining the data storage equipment of which the identification information is the designated identification information from the identification information corresponding to the data storage equipment of the data to be processed;
and taking the data stored in the data storage device of which the identification information is the designated identification information as target data.
Optionally, writing a network disconnection identifier for the target data includes:
sending a network disconnection identifier writing instruction to the data storage device of which the identifier information is the designated identifier information;
and writing a network breaking identifier for the target data in the data storage equipment with the identifier information as the designated identifier information.
Optionally, the obtaining of the network disconnection identifier write request message for the target data includes:
establishing a hypertext transfer protocol with the disaster tolerance drilling platform;
and acquiring a network breaking identifier write-in request message aiming at the target data through the hypertext transfer protocol established with the disaster tolerance drilling platform.
Optionally, after the network disconnection identifier writing operation is executed, the method includes the following steps:
acquiring a network breaking identifier revocation message aiming at target data; and canceling the disconnected network identifier of the target data written with the disconnected network identifier according to the disconnected network identifier canceling message.
In another aspect of the present application, there is provided a data processing apparatus including:
a network break identifier write request message obtaining unit, configured to obtain a network break identifier write request message for target data;
and the network breaking identifier writing unit is used for writing a network breaking identifier into the target data according to the network breaking identifier writing request message, and the network breaking identifier is used for indicating a network management platform to perform network breaking simulation on the target data after acquiring a network breaking rule.
In another aspect of the present application, an electronic device is provided, including:
a processor; and
a memory for storing a program of a data processing method, the apparatus performing the following steps after being powered on and passing the program of the data processing method:
acquiring a network breaking identifier write-in request message aiming at target data;
and writing a network breaking identifier for the target data according to the network breaking identifier writing request message, wherein the network breaking identifier is used for indicating a network management platform to carry out network breaking simulation on the target data after acquiring a network breaking rule.
In another aspect of the present application, there is provided a storage medium storing a program of a data processing method, the program being executed by a processor to perform the steps of:
acquiring a network breaking identifier write-in request message aiming at target data;
and writing a network breaking identifier for the target data according to the network breaking identifier writing request message, wherein the network breaking identifier is used for indicating a network management platform to carry out network breaking simulation on the target data after acquiring a network breaking rule.
In another aspect of the present application, a network disconnection simulation system is provided, including: the system comprises a disaster tolerance drilling platform, a network disconnection identification management platform and network transmission equipment participating in network disconnection simulation;
the disaster recovery drilling platform is used for sending a network disconnection simulation request instruction, and the network disconnection simulation request instruction comprises a network disconnection rule aiming at data to be processed; sending a network breaking identification writing request message aiming at target data to the network breaking identification management platform;
the network disconnection identifier management platform is used for acquiring the network disconnection identifier writing request message aiming at the target data, which is sent by the disaster tolerance drilling platform; writing a network breaking identifier for the target data according to the network breaking identifier writing request message, wherein the network breaking identifier is used for indicating network transmission equipment to perform network breaking simulation on the target data after acquiring a network breaking rule;
the network transmission equipment is used for obtaining a network breaking rule aiming at the data to be processed, and the network breaking rule is used for indicating that the network breaking simulation is carried out on target data carrying a network breaking identifier in the data to be processed; obtaining the target data from the data to be processed; and stopping transmitting the target data to realize the simulation of network disconnection.
Optionally, the method further includes:
the network management and control platform is used for obtaining a network disconnection simulation request instruction of the disaster tolerance drilling platform for the data to be processed, generating a network disconnection drilling starting message according to the network disconnection simulation request instruction, and transmitting the network disconnection drilling starting instruction to the network transmission equipment under the management of the network management and control platform;
the network transmission device is used for obtaining a network breaking rule aiming at data to be processed, and comprises the following steps: and the network transmission equipment analyzes the network breaking drill starting instruction to obtain a network breaking rule aiming at the data to be processed.
Optionally, the network disconnection identifier management platform is implemented by using a network service quality management and control platform.
Optionally, the network transmission device includes one or two of the following types of switches: core layer switches, metropolitan core switches.
On the other hand, the application provides a network management and control platform, which is configured to receive a network disconnection simulation request instruction of the disaster tolerance drilling platform for the to-be-processed data, generate a network disconnection drilling starting instruction according to the network disconnection simulation request instruction, and transmit the network disconnection drilling starting instruction to the network transmission device under the management of the network management and control platform.
Compared with the prior art, the method has the following advantages:
according to the network disconnection simulation method, after the network disconnection rule aiming at the data to be processed and used for indicating that the target data carrying the network disconnection identification in the data to be processed is subjected to network disconnection fault simulation is obtained, the target data can be further obtained from the data to be processed, and the operation of stopping transmission is carried out aiming at the target data, so that the network disconnection simulation is realized. The network disconnection simulation method can obtain the target data and carry out network disconnection simulation aiming at the target data, so that the network disconnection simulation can be carried out on the data in a targeted manner, and the fineness of disaster tolerance drilling control on the data is improved.
According to the data processing method, after the network breaking identification writing request message aiming at the target data is obtained, the network breaking identification can be written into the target data according to the network breaking identification writing request message, wherein the network breaking identification is used for indicating a network management platform to carry out network breaking fault simulation on the target data after a network breaking rule is obtained. According to the data processing method, the network breaking identification used for indicating the network management platform to perform network breaking fault simulation on the target data after the network breaking rule is obtained can be written into the target data, so that the network breaking simulation can be performed on the data in a targeted manner, and the fineness of performing disaster tolerance drilling control on the data is improved.
Drawings
Fig. 1 is a schematic diagram of an application scenario embodiment of a network disconnection simulation method provided in the present application.
Fig. 2 is a flowchart of a network outage simulation method provided in the first embodiment of the present application.
Fig. 3 is a flowchart of a target data obtaining method provided in the first embodiment of the present application.
Fig. 4 is a schematic diagram of a network disconnection simulation apparatus provided in a second embodiment of the present application.
Fig. 5 is a schematic diagram of an electronic device provided in an embodiment of the present application.
Fig. 6 is a flowchart of a data processing method provided in a fifth embodiment of the present application.
Fig. 7 is a schematic diagram of a data processing apparatus provided in a second embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, but rather construed as limited to the embodiments set forth herein.
The network disconnection simulation method provided by the application can be applied to a disaster recovery drilling scene for a data center, and is a schematic diagram of an application scene embodiment of the network disconnection simulation method provided by the application as shown in fig. 1. In the first scenario embodiment provided by the present application, the network outage simulation method provided by the present application is specifically described in detail by taking an application scenario in which the network outage simulation method provided by the present application is applied to a data disaster tolerance drilling system as an example.
In the application scenario embodiment of the present application, the data disaster tolerance is as follows: two or more sets of data centers with the same functions, which can monitor the health status and switch functions, are established in different places far away from each other, when a disaster occurs in one data center, the data centers in different places can quickly take over the local data center to ensure the continuity, and the specific data disaster tolerance strategies include same-city double-activity, same-city multiple-activity, same-city double-activity + different-place double-activity and the like. Generally, a data center has a disaster such as a fire, an earthquake, a power outage, a network outage, and the like, and only a disaster simulation needs to be performed on the data center during disaster recovery performance, and normal operation of part of cores needs to be maintained during normal disaster recovery performance. Therefore, during disaster recovery performance, network disconnection simulation is generally performed on part of network transmission equipment in the data center.
Data in the application scenario implementation of the present application generally are: data generated when individuals, companies, enterprises, and units, etc. are processed through the network platform, such as: data generated by a social networking platform, data generated by a take-away platform, data of a certain enterprise, and the like. In the application scenario embodiment of the present application, data is specifically taken as an example of enterprise data, and the application scenario embodiment of data processing provided by the present application is described in detail.
In the application scenario implementation of the present application, the disaster recovery drilling system 101 includes: a disaster tolerance drilling platform 101-1, a network disconnection identification management platform 101-2 and a network transmission device 101-3 participating in network disconnection simulation.
The disaster recovery drilling platform 101-1 is used for sending a network disconnection simulation request instruction, and the network disconnection simulation request instruction comprises a network disconnection rule aiming at data to be processed; and sending a network breaking identification writing request message aiming at the target enterprise data to the network breaking identification management platform 101-2.
The network disconnection identifier management platform 101-2 is used for acquiring a network disconnection identifier write request message aiming at target data, which is sent by the disaster tolerance drilling platform 101-1; and writing a network breaking identifier for the target data according to the network breaking identifier writing request message, wherein the network breaking identifier is used for indicating the network transmission equipment 101-3 to perform network breaking simulation on the target data after acquiring a network breaking rule.
The network transmission equipment 101-3 is used for obtaining a network breaking rule aiming at the data to be processed, and the network breaking rule is used for indicating that the target data carrying the network breaking identification in the data to be processed is subjected to network breaking simulation; obtaining target data from the data to be processed; and stopping transmitting the target data to realize the simulation of network disconnection. The network transmission equipment comprises one or two of the following types of switches: core layer switches, metropolitan core switches.
In this embodiment of the present application scenario, the disaster recovery drilling system 101 further includes: the network management and control platform 101-4 is configured to obtain a network disconnection simulation request instruction of the disaster recovery drilling platform 101-1 for the data to be processed, generate a network disconnection drilling start message according to the network disconnection simulation request instruction, and transmit the network disconnection drilling start instruction to the network transmission device 101-3 under the network management and control platform management 101-4, where a specific process of the network transmission device 101-3 obtaining a network disconnection rule for the data to be processed is as follows: the network transmission equipment 101-3 analyzes the network breaking drill starting instruction to obtain the network breaking rule aiming at the data to be processed.
In an embodiment of the present application scenario, a process of obtaining target data is as follows: the method comprises the steps of obtaining identification information corresponding to data storage equipment of data to be processed, obtaining the data storage equipment of which the identification information is designated identification information from the identification information corresponding to the data storage equipment of the data to be processed, and taking the data stored in the data storage equipment of which the identification information is the designated identification information as target data. Writing the network breaking identifier into the target data to obtain the identifier information corresponding to the data storage device of the data to be processed; obtaining the data storage device 101-21 with the identification information as the designated identification information from the identification information corresponding to the data storage device of the data to be processed; data stored in the data storage device 101-21 whose identification information is the designated identification information is taken as target data; sending a network disconnection identifier writing instruction to the data storage device 101-21 with the identifier information being the designated identifier information; in the data storage device 101-21 with the identification information as the designated identification information, a designated encoding value is written into a designated field in the service type field of the target data as the network disconnection identification.
In the first scenario embodiment of the present application, after the network transmission device 101-3 corresponding to the target enterprise data of the enterprise performs network outage simulation for the target enterprise data, the disaster tolerance drilling system 101 performs disaster tolerance drilling on the target data, that is, the target data is switched from the current data center to another data center in the same city.
In an embodiment of an application scenario provided by the present application, a network transmission device corresponding to target data includes: the system comprises a hub, a switch, a network bridge, a router, a gateway and the like, wherein the switch is mainly used; the network breaking simulation mode is as follows: and the network transmission equipment corresponding to the target data terminates the network transmission of the target, namely, the target data is subjected to packet loss.
In the application scenario embodiment provided by the present application, the network disconnection identifier is an identifier written in a message corresponding to the enterprise target enterprise data, and specifically, a preset specified code value is written in a specified field in a service type field of a header corresponding to the enterprise target enterprise data to serve as the network disconnection identifier. The Service type field has 8 bits, and according to The QoS (Quality of Service) classification standard DSCP (Differentiated Services Code Point) of Diff-Serv (Differentiated Services) issued by IETF (The Internet Engineering Task Force, Internet Engineering Task Force) in 12 months of 1998, in The Service type field of The IP header of each packet, The coding value of The first 6 bits is used to prioritize. Since the coding values of the first 6 bits are used to differentiate priorities in the DSCP, the DSCP can correspond to 64 priorities, but generally, the division of the priority categories of the data is often much less than 64, so that in the application scenario embodiment of the present application, the specified coding value in the coding values of the first 6 bits of the service type field can be preset as a network disconnection identifier, for example: if there are three priorities of enterprise data, 000000 (fast), 000001 (fast), and 000010 (normal), then 000011 may be defined in advance as the network outage identifier.
The network disconnection simulation method provided by the application can be respectively applied to the disaster recovery drilling platform 101-1, the network disconnection identifier management platform 101-2 and the network transmission equipment network disconnection identifier management platform 101-3 which participates in the network disconnection simulation and works independently according to the specific processing process, and is not repeated here.
It should be noted that the application scenario or the execution subject of the network disconnection simulation method provided by the present application is not specifically limited, and the network disconnection simulation method provided by the present application is not limited to the above application scenario, nor is it limited to be applied to data disaster tolerance drilling. The application provides the above application scenario embodiments for the purpose of facilitating understanding of the network disconnection simulation method provided by the application, and is not used to limit the network disconnection simulation method provided by the application.
First embodiment
The first embodiment of the present application provides a network-breaking simulation method, which is performed by a Switch in a network, where the Switch may be various devices that perform forwarding Distribution of information on the network, and most importantly, may be performed by a DSW (Distribution Layer) functioning as a Core Switch, or may be performed by a Man Core of a metro network Core Switch.
The following description is made with reference to fig. 2 to 3.
Fig. 2 is a flowchart of a network outage simulation method according to a first embodiment of the present application.
In step S201, a network disconnection rule for the data to be processed is obtained, where the network disconnection rule is used to indicate that the target data carrying the network disconnection identifier in the data to be processed is subjected to network disconnection simulation.
Since the network outage simulation method provided in the first embodiment of the present application is generally used for data disaster tolerance drilling, during the data disaster tolerance drilling, only disaster simulation needs to be performed on the data center, and during the normal disaster tolerance drilling, normal operation of part of cores needs to be maintained. Therefore, the data to be processed in the first embodiment of the present application is designated data.
In the first embodiment of the present application, the data is generally: data generated when individuals, companies, enterprises, and units, etc. are processed through the network platform, such as: data generated by a social networking platform, data generated by a take-away platform, data of a certain enterprise, and the like.
In the first embodiment of the present application, the process of obtaining the network breaking rule for the data to be processed is as follows: firstly, obtaining a network breaking simulation starting instruction aiming at data to be processed, wherein the network breaking simulation starting instruction carries a network breaking rule; and then analyzing the network breaking simulation starting instruction to obtain a network breaking rule. Under different disconnected network simulation systems, the sending party of the disconnected network drilling starting instruction can be different; a common method is that the network disconnection simulation system includes a network management and control platform, and the specific method for obtaining the network disconnection rule for the data to be processed is to establish a hypertext transfer protocol with the network management and control platform; obtaining a disconnected network drilling starting instruction through a hypertext transmission link between the network drilling equipment and a network control platform; analyzing the network disconnection request message to obtain a network disconnection rule aiming at the data to be processed; the network-off drilling starting instruction is firstly sent by the disaster tolerance drilling platform and is forwarded to each exchanger participating in drilling through the network control platform. In addition, under some network breaking simulation systems, a network management and control platform is not arranged, and a network breaking exercise starting instruction can be directly sent to the exchanger by the disaster tolerance exercise platform.
In step S202, target data is obtained from the data to be processed.
In the first embodiment of the present application, please refer to fig. 3, which is a flowchart of a method for obtaining target data provided in the first embodiment of the present application, wherein the step of obtaining target data from data to be processed includes:
step S202-1: and acquiring data to be processed.
Step S202-2: and detecting whether the data to be processed carries the network disconnection identifier or not, and taking the data carrying the network disconnection identifier as target data.
In the first embodiment of the present application, the following different detection steps may be correspondingly performed according to the location where the network disconnection flag is written:
when the network disconnection identifier is an identifier written in a message corresponding to the target data in advance, the detection step for detecting the data carrying the network disconnection identifier in the data to be processed is as follows: analyzing a message corresponding to the data to be processed; and detecting whether a message corresponding to the data to be processed carries a network disconnection identifier, and taking the data to be processed carrying the network disconnection identifier in the message as target data.
Among them are the data units exchanged and transmitted in the network, which contain the complete data information to be transmitted.
In the first embodiment of the present application, when the network disconnection identifier is an identifier written in a packet corresponding to target data in advance, specifically, an identifier written in a header corresponding to the target data in advance, it is detected whether the packet corresponding to the data to be processed carries the network disconnection identifier, and the detection step of using the data to be processed carrying the network disconnection identifier in the packet as the target data is as follows: and detecting whether a header corresponding to the data to be processed carries a network disconnection identifier, and taking the data to be processed carrying the network disconnection identifier in the header as target data.
Further, in the first embodiment of the present application, when the network outage identifier is an identifier written in a header corresponding to the target data in advance, specifically, an identifier written in a service type field corresponding to the target data in advance, it is detected whether a header corresponding to the to-be-processed data carries the network outage identifier, and the to-be-processed data carrying the network outage identifier in the header is used as the detection step of the target data: and detecting whether the service type field corresponding to the data to be processed carries the network disconnection identifier or not, and taking the data to be processed carrying the network disconnection identifier in the service type field as target data.
Specifically, in the first embodiment of the present application, the identifier of the disconnected network is an identifier written in a service type field corresponding to the target data in advance, and includes: the network disconnection identifier is an identifier obtained by writing a specified code value into a service type field corresponding to target data in advance, at this time, detecting whether the service type field corresponding to the data to be processed carries the network disconnection identifier, and using the data to be processed carrying the network disconnection identifier in the service type field as the target data, including: detecting whether a specified coding value is written in a service type field corresponding to data to be processed; if so, taking the specified field in the service type field as the data of the specified coding value as the data carrying the network disconnection identifier.
In the first embodiment of the present application, a specified code value in the code values of the first 6 bits of the service type field may be preset as a network disconnection identifier, for example: if there are three priorities for enterprise data, 110000 (core), 110001 (mailbox), and 110010 (normal), 110011 can be defined in advance as an off-network identity.
In step S203, transmission of the target data is stopped, and the network disconnection simulation is realized.
In the first embodiment of the present application, the implementation manner of performing the network outage simulation on the target data is as follows: interrupting network transmission of target data, and the specific implementation process is as follows: sending a network disconnection simulation instruction to network transmission equipment corresponding to the target data; and the network transmission equipment corresponding to the target data interrupts the network transmission of the target data aiming at the network disconnection simulation instruction.
In a first embodiment provided by the present application, a network transmission device corresponding to target data includes: hubs, switches, bridges, routers, gateways, etc.; the simulation of the broken network is as follows: the network transmission device corresponding to the target data terminates the network transmission to the target, that is, the target data is subjected to packet loss or transmission suspension. Specifically, the network transmission device such as the switch does not forward or suspend transmission of the target data required to be forwarded by the network transmission device, so that the server which transmits the target data cannot transmit the data outwards, that is, the network is disconnected on the data, and the effect of network disconnection simulation is realized.
The method for simulating network disconnection provided in the first embodiment of the present application further includes:
under the state of network disconnection simulation, acquiring a network disconnection simulation ending instruction aiming at target data; and restoring the transmission target data according to the network-breaking simulation ending instruction. The specific implementation mode is that a network disconnection simulation ending instruction is sent to the network transmission equipment corresponding to the target data, and the network transmission equipment corresponding to the target data resumes transmitting the target data according to the network disconnection simulation ending instruction.
In the method for simulating network disconnection provided in the first embodiment of the present application, after a network disconnection rule for indicating that target data carrying a network disconnection identifier in data to be processed is subjected to network disconnection simulation is obtained, the target data is further obtained from the data to be processed, and network disconnection simulation is performed on the target data. The network-breaking simulation method provided in the first embodiment of the application can obtain the target data and perform network-breaking simulation on the target data, so that network-breaking simulation can be performed on the data in a targeted manner, and the fineness of performing disaster tolerance drilling control on the data is improved.
Second embodiment
Corresponding to the method for simulating the network disconnection provided in the first embodiment of the present application, a second embodiment of the present application also provides a device for simulating the network disconnection. Since the apparatus embodiment is substantially similar to the method first embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
Fig. 4 is a schematic diagram of a network outage simulation apparatus according to a second embodiment of the present application.
This disconnected net analogue means includes:
a network breaking rule obtaining unit 401, configured to obtain a network breaking rule for data to be processed, where the network breaking rule is used to instruct to perform network breaking simulation on target data carrying a network breaking identifier in the data to be processed;
a target data obtaining unit 402, configured to obtain the target data from the data to be processed;
and a network disconnection simulating unit 403, configured to perform network disconnection simulation on the target data, that is, stop transmitting the target data, and implement network disconnection simulation.
Optionally, the target data obtaining unit 402 is specifically configured to obtain data to be processed; and detecting whether the data to be processed carries the network disconnection identifier or not, and taking the data carrying the network disconnection identifier as the target data.
Optionally, the network disconnection identifier is an identifier written in the message corresponding to the target data in advance;
the detecting whether the data to be processed carries the network disconnection identifier includes, as the target data, using the data carrying the network disconnection identifier:
analyzing a message corresponding to the data to be processed;
detecting whether a 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.
Optionally, the network disconnection identifier is an identifier written in the message corresponding to the target data in advance, and includes: the network disconnection identifier is an identifier written in a header corresponding to the target data in advance;
the detecting whether the packet corresponding to the data to be processed carries the network disconnection identifier or not, and using the data to be processed carrying the network disconnection identifier in the packet as the target data includes: detecting whether a 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.
Optionally, the network disconnection identifier is an identifier written in a header corresponding to the target data in advance, and includes: the network disconnection identifier is an identifier written in a service type field corresponding to the target data in advance;
the detecting whether the header corresponding to the to-be-processed data carries the network disconnection identifier, and using the to-be-processed data carrying the network disconnection identifier in the header as the target data includes: detecting whether a service type field 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 service type field as the target data.
Optionally, the network disconnection identifier is an identifier written in a service type field corresponding to the target data in advance, and includes: the network disconnection identifier is an identifier which is written with a specified coding value in a service type field corresponding to the target data in advance;
the detecting whether the service type field corresponding to the data to be processed carries the network disconnection identifier or not, and taking the data to be processed carrying the network disconnection identifier in the service type field as the target data includes:
detecting whether the specified coding value is written in a service type field corresponding to the data to be processed;
if so, taking the data with the specified field in the service type field as a specified coding value as the data carrying the network disconnection identifier.
Optionally, the network breaking rule obtaining unit 401 is specifically configured to
Acquiring a network disconnection simulation starting instruction aiming at the data to be processed, wherein the network disconnection simulation starting instruction carries the network disconnection rule; analyzing the network breaking simulation starting instruction to obtain the network breaking rule.
Optionally, the device for simulating a network disconnection provided in the second embodiment of the present application further includes: the network-breaking simulation ending unit is used for receiving a network-breaking simulation ending instruction in a network-breaking simulation state; resuming transmitting the target data.
Optionally, the network disconnection simulating unit 403 is specifically configured to perform packet loss on the target data, so as to implement the network disconnection simulation.
Optionally, the network disconnection simulating unit 403 is specifically configured to suspend transmitting the target data, so as to implement network disconnection simulation. And stopping transmitting the target data to realize the network disconnection simulation.
In the network disconnection simulation apparatus provided in the second embodiment of the present application, after the network disconnection rule for indicating that the target data carrying the network disconnection identifier in the data to be processed is subjected to network disconnection simulation is obtained, the target data is further obtained from the data to be processed, and network disconnection simulation is performed on the target data. The network-breaking simulation device provided in the second embodiment of the present application can obtain the target data and perform network-breaking simulation for the target data, so as to perform network-breaking simulation for the data in a targeted manner, thereby improving the fineness of performing disaster tolerance drilling control on the data.
Third embodiment
Corresponding to the method for simulating network disconnection provided in the first embodiment of the present application, a third embodiment of the present application provides an electronic device.
As shown in fig. 5, fig. 5 is a schematic view of an electronic device provided in an embodiment of the present application.
The electronic device includes:
a processor 501; and
the memory 502 is used for storing a program of a network disconnection simulation method, and after the device is powered on and passes through the program of the network disconnection simulation method, the following steps are executed:
obtaining a network breaking rule aiming at data to be processed, wherein the network breaking rule is used for indicating that the network breaking simulation is carried out on target data carrying a network breaking identification in the data to be processed;
obtaining the target data from the data to be processed;
and stopping transmitting the target data to realize the network disconnection simulation.
In the electronic device for simulating network disconnection provided in the third embodiment of the present application, after the network disconnection rule for indicating that the target data carrying the network disconnection identifier in the data to be processed is subjected to network disconnection simulation is obtained, the target data is further obtained from the data to be processed, and network disconnection simulation is performed on the target data. The network-disconnection simulation electronic device provided in the third embodiment of the present application can obtain target data and perform network-disconnection simulation for the target data, so that network-disconnection simulation can be performed on data in a targeted manner, and the fineness of performing disaster-tolerant drilling control on data is improved.
It should be noted that, for the detailed description of the electronic device provided in the third embodiment of the present application, reference may be made to the related description of the first embodiment of the present application, and details are not repeated here.
Fourth embodiment
A fourth embodiment of the present application provides a storage medium storing a program of a network disconnection simulation method, corresponding to the network disconnection simulation method provided in the first embodiment of the present application, the program being executed by a processor to perform the steps of:
obtaining a network breaking rule aiming at data to be processed, wherein the network breaking rule is used for indicating that the network breaking simulation is carried out on target data carrying a network breaking identification in the data to be processed;
obtaining the target data from the data to be processed;
and stopping transmitting the target data to realize the network disconnection simulation.
The network-disconnection simulation storage medium provided in the fourth embodiment of the present application obtains, after obtaining a network-disconnection rule for data to be processed, the network-disconnection rule being used to indicate that target data carrying a network-disconnection identifier in the data to be processed is to be subjected to 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 storage medium provided in the fourth embodiment of the present application can obtain target data and perform network-disconnection simulation for the target data, so that network-disconnection simulation can be performed on data in a targeted manner, and the fineness of performing disaster-tolerant drilling control on data is improved.
It should be noted that, for the detailed description of the storage medium provided in the fourth embodiment of the present application, reference may be made to the related description of the first embodiment of the present application, and details are not repeated here.
Fifth embodiment
A fifth embodiment of the present application provides a data processing method, which is described below with reference to fig. 6
Please refer to fig. 6, which is a flowchart illustrating a data processing method according to a fifth embodiment of the present application. The method is used for writing a network breaking identifier in target data; the method is executed by a device capable of performing message operation on transmission data, and typically adopts a QoS (quality of service) control platform, namely a QoS control platform; the existing QoS control platform in the cloud service can issue a QoS mark to a specified machine, namely, a corresponding value of DSCP of specified 6 bits of TOS field of packet header of a data packet is modified before the data packet is sent from a machine network card; by utilizing the function, marking of the target data can be realized.
In step S601, a network disconnection identifier write request message for the target data is obtained.
In a fifth embodiment of the present application, obtaining a network disconnection identifier write request message for target data includes: establishing a hypertext transfer protocol with the disaster tolerance drilling platform; and obtaining a network breaking identifier write-in request message aiming at the target data through a hypertext transfer protocol established with the disaster tolerance drilling platform.
In step S602, according to the network disconnection identifier write request message, a network disconnection identifier is written in the target data, where the network disconnection identifier is used to instruct the network management platform to perform network disconnection simulation on the target data after obtaining the network disconnection rule.
In a fifth embodiment of the present application, writing a network disconnection identifier for target data according to a network disconnection identifier write request message includes: identifying target data; and writing the network disconnection identifier in the message corresponding to the target data.
The process of identifying the target data comprises the following steps: acquiring identification information corresponding to data storage equipment of data to be processed; obtaining the data storage equipment of which the identification information is the designated identification information from the identification information corresponding to the data storage equipment of the data to be processed; data stored in the data storage device whose identification information is the designated identification information is taken as target data.
It should be noted that writing the network disconnection identifier for the target data includes: sending a network disconnection identifier writing instruction to the data storage equipment of which the identifier information is the designated identifier information; and writing a network breaking identifier for the target data in the data storage equipment with the identification information as the designated identification information.
The writing of the network disconnection identifier in the message corresponding to the target data includes: and writing the network breaking identification in the header corresponding to the target data. Specifically, writing the network interruption identifier in the header corresponding to the target data includes: and writing the network breaking identification in the service type field corresponding to the target data.
It should be noted that writing the network outage identifier in the service type field corresponding to the target data includes: determining a designated field in which a network breaking identifier is written in a service type field corresponding to target data; and writing a specified encoding value in the specified field as a network breaking identifier.
After the target data is written with the network disconnection identifier, the network disconnection identifier of the target data may also need to be revoked, so after the network disconnection identifier writing operation is performed, the following steps may be included: acquiring a network breaking identifier revocation message aiming at target data; and canceling the disconnected network identifier of the target data written with the disconnected network identifier according to the disconnected network identifier canceling message.
According to the data processing method provided in the fifth embodiment of the present application, after the network disconnection identifier write request message for the target data is obtained, the network disconnection identifier can be written into the target data according to the network disconnection identifier write request message, where the network disconnection identifier is used to instruct the network management platform to perform network disconnection simulation on the target data after the network disconnection rule is obtained. The data processing method provided in the fifth embodiment of the present application can write, into the target data, the network disconnection identifier for instructing the network management platform to perform network disconnection simulation on the target data after obtaining the network disconnection rule, so that network disconnection simulation can be performed on the data in a targeted manner, and the precision of performing disaster tolerance drilling control on the data is improved.
Sixth embodiment
Corresponding to the data processing method provided in the fifth embodiment of the present application, a sixth embodiment of the present application also provides a data processing apparatus. Since the apparatus embodiment is substantially similar to the method fifth embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
Fig. 7 is a schematic diagram of a data processing apparatus according to a second embodiment of the present application.
The data processing apparatus includes:
a network disconnection identifier write request message obtaining unit 701, configured to obtain a network disconnection identifier write request message for target data;
and a network disconnection identifier writing unit 702, configured to write a network disconnection identifier for the target data according to the network disconnection identifier writing request message, where the network disconnection identifier is used to instruct a network management platform to perform network disconnection simulation on the target data after obtaining a network disconnection rule.
Optionally, the network disconnection identifier writing unit 702 is specifically configured to identify target data; and writing the network breaking identification into the message corresponding to the target data.
Optionally, the writing of the network disconnection identifier in the message corresponding to the target data includes: and writing the network breaking identification into a header corresponding to the target data.
Optionally, the writing the network disconnection identifier in the header corresponding to the target data includes: and writing the network breaking identification in a service type field corresponding to the target data.
Optionally, the writing of the network outage identifier in the service type field corresponding to the target data includes:
determining a designated field in which the network breaking identifier is written in a service type field corresponding to the target data;
and writing a specified encoding value in the specified field as the network breaking identifier.
Optionally, the obtaining target data includes:
acquiring identification information corresponding to data storage equipment of data to be processed;
obtaining the data storage equipment of which the identification information is the designated identification information from the identification information corresponding to the data storage equipment of the data to be processed;
and taking the data stored in the data storage device of which the identification information is the designated identification information as target data.
Optionally, writing a network disconnection identifier for the target data includes:
sending a network disconnection identifier writing instruction to the data storage device of which the identifier information is the designated identifier information;
and writing a network breaking identifier for the target data in the data storage equipment with the identifier information as the designated identifier information.
Optionally, the network disconnection identifier write request message obtaining unit 701 is specifically configured to establish a hypertext transfer protocol with the disaster tolerance drilling platform; and acquiring a network breaking identifier write-in request message aiming at the target data through the hypertext transfer protocol established with the disaster tolerance drilling platform.
Optionally, the data processing apparatus provided in the sixth embodiment of the present application further includes: the network breaking identification canceling unit is used for executing the following steps after the network breaking identification writing operation is executed: acquiring a network breaking identifier revocation message aiming at target data; and canceling the disconnected network identifier of the target data written with the disconnected network identifier according to the disconnected network identifier canceling message.
The data processing apparatus provided in the sixth embodiment of the present 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, where the network disconnection identifier is used to instruct a network management platform to perform network disconnection simulation on the target data after obtaining a network disconnection rule. The data processing device provided in the sixth embodiment of the present application can write, into the target data, the network disconnection identifier for instructing the network management platform to perform network disconnection simulation on the target data after obtaining the network disconnection rule, so that network disconnection simulation can be performed on the data in a targeted manner, and the precision of performing disaster tolerance drilling control on the data is improved.
Seventh embodiment
A seventh embodiment of the present application provides an electronic device, which corresponds to the first application scenario embodiment of the data processing method provided in the fifth embodiment of the present application.
As shown in fig. 5, fig. 5 is a schematic view of an electronic device provided in an embodiment of the present application.
The electronic device includes:
a processor 501; and
a memory 502 for storing a program of a data processing method, the apparatus performing the following steps after being powered on and passing the program of the data processing method:
acquiring a network breaking identifier write-in request message aiming at target data;
and writing a network breaking identifier for the target data according to the network breaking identifier writing request message, wherein the network breaking identifier is used for indicating a network management platform to carry out network breaking simulation on the target data after acquiring a network breaking rule.
The data processing electronic device provided in the seventh embodiment of the present application, after obtaining the network disconnection identifier write request message for the target data, can write the network disconnection identifier for the target data according to the network disconnection identifier write request message, where the network disconnection identifier is used to instruct the network management platform to perform network disconnection simulation on the target data after obtaining the network disconnection rule. The data processing electronic device provided in the seventh embodiment of the present application can write, into the target data, a network disconnection identifier for instructing the network management platform to perform network disconnection simulation on the target data after obtaining the network disconnection rule, so that network disconnection simulation can be performed on the data in a targeted manner, and the fineness of performing disaster tolerance drilling control on the data is improved.
It should be noted that, for the detailed description of the electronic device provided in the seventh embodiment of the present application, reference may be made to the related description of the first embodiment of the present application, and details are not repeated here.
Eighth embodiment
In correspondence with the data processing method provided in the fifth embodiment of the present application, an eighth embodiment of the present application provides a storage medium storing a program of the data processing method, the program being executed by a processor to perform the steps of:
acquiring a network breaking identifier write-in request message aiming at target data;
and writing a network breaking identifier for the target data according to the network breaking identifier writing request message, wherein the network breaking identifier is used for indicating a network management platform to carry out network breaking simulation on the target data after acquiring a network breaking rule.
The data processing storage medium provided in the eighth embodiment of the present application, after obtaining the network disconnection identifier write request message for the target data, can write the network disconnection identifier for the target data according to the network disconnection identifier write request message, where the network disconnection identifier is used to instruct the network management platform to perform network disconnection simulation on the target data after obtaining the network disconnection rule. The data processing storage medium provided in the eighth embodiment of the present application can write, into the target data, a network disconnection identifier for instructing the network management platform to perform network disconnection simulation on the target data after obtaining the network disconnection rule, so that network disconnection simulation can be performed on the data in a targeted manner, and the fineness of performing disaster tolerance drilling control on the data is improved.
It should be noted that, for the detailed description of the storage medium provided in the eighth embodiment of the present application, reference may be made to the related description of the fifth embodiment of the present application, and details are not described here again.
Ninth embodiment
Corresponding to the first embodiment of the present application and the first application scenario embodiment of the method for simulating a network outage provided in the first embodiment of the present application, a ninth embodiment of the present application further provides a system for simulating a network outage. Since the system embodiment is substantially similar to the method first embodiment, it is relatively simple to describe, and reference may be made to the relevant description of the first embodiment of the present application for relevant points. The method embodiments described below are merely illustrative.
Referring to fig. 1 again, the network disconnection simulation system includes: the system comprises a disaster tolerance drilling 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 of course also includes various network transmission devices 101-3 that participate in the network outage simulation.
The disaster recovery drilling platform 101-1 is configured to send a network disconnection simulation request instruction, where the network disconnection simulation request instruction includes a network disconnection rule for data to be processed; sending a network disconnection identifier write request message aiming at target data to the network disconnection identifier management platform 101-2;
the network management and control platform 101-4 is configured to obtain a network disconnection request instruction of the disaster recovery drilling platform 101-1 for data to be processed; and generating a network breaking drill starting message according to the network breaking request instruction, and transmitting the network breaking drill starting instruction to the network transmission equipment under the management of the network management and control platform. In some cases, the network management and control platform 101-4 may not be provided, and the disaster tolerance drilling platform 101-1 may directly perform the above functions.
The network disconnection identifier management platform 101-2 is configured to obtain a network disconnection identifier write request message for the target data, which is sent by the disaster recovery drilling platform 101-1; and writing a network breaking identifier for the target data according to the network breaking identifier writing request message, wherein the network breaking identifier is used for indicating the network management platform 101-2 to perform network breaking simulation on the target data after acquiring a network breaking rule.
The network transmission equipment 101-3 is configured to obtain a network disconnection rule for the data to be processed, where the network disconnection rule is used to instruct to perform network disconnection simulation on target data carrying a network disconnection identifier in the data to be processed; obtaining the target data from the data to be processed; and aiming at the target data which is stopped to be transmitted, realizing the simulation of network disconnection.
In the data processing system provided in the ninth embodiment of the present application, after the network disconnection rule for indicating that the target data carrying the network disconnection identifier in the data to be processed is subjected to network disconnection simulation is obtained, the target data is further obtained from the data to be processed, and the network disconnection simulation is performed on the target data. The network-breaking simulation system provided in the ninth embodiment of the present application can obtain the target data and perform network-breaking simulation for the target data, so as to perform network-breaking simulation for the data in a targeted manner, thereby improving the fineness of performing disaster tolerance drilling control on the data. Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or Flash memory (Flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, information structures, modules of a program, 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 technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage media, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable Media does not include non-Transitory computer readable Media (transient Media), such as modulated information signals and carrier waves.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may 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, and the like) having computer-usable program code embodied therein.

Claims (30)

1. A network disconnection simulation method is characterized by comprising the following steps:
obtaining a network breaking rule aiming at data to be processed, wherein the network breaking rule is used for indicating that the network breaking simulation is carried out on target data carrying a network breaking identification in the data to be processed;
obtaining the target data from the data to be processed;
and stopping transmitting the target data to realize the network disconnection simulation.
2. The method for simulating network disconnection according to claim 1, wherein the obtaining the target data from the data to be processed comprises:
acquiring data to be processed;
and detecting whether the data to be processed carries the network disconnection identifier or not, and taking the data carrying the network disconnection identifier as the target data.
3. The network disconnection simulation method according to claim 2, wherein the network disconnection identifier is an identifier written in a message corresponding to the target data in advance;
the detecting whether the data to be processed carries the network disconnection identifier or not and using the data carrying the network disconnection identifier as the target data includes:
analyzing a message corresponding to the data to be processed;
detecting whether a 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.
4. The method according to claim 3, wherein the network outage simulation method is an identifier written in a message corresponding to the target data in advance, and includes: the network disconnection identifier is an identifier written in a header corresponding to the target data in advance;
the detecting whether the packet corresponding to the data to be processed carries the network disconnection identifier or not, and using the data to be processed carrying the network disconnection identifier in the packet as the target data includes: detecting whether a 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.
5. The method according to claim 4, wherein the network outage identifier is an identifier written in a header corresponding to the target data in advance, and includes: the network disconnection identifier is an identifier written in a service type field corresponding to the target data in advance;
the detecting whether the header corresponding to the to-be-processed data carries the network disconnection identifier, and using the to-be-processed data carrying the network disconnection identifier in the header as the target data includes: detecting whether a service type field 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 service type field as the target data.
6. The method according to claim 5, wherein the network outage identifier is an identifier written in a service type field corresponding to the target data in advance, and includes: the network disconnection identifier is an identifier which is written with a specified coding value in a service type field corresponding to the target data in advance;
the detecting whether the service type field corresponding to the data to be processed carries the network disconnection identifier or not, and taking the data to be processed carrying the network disconnection identifier in the service type field as the target data includes:
detecting whether the specified coding value is written in a service type field corresponding to the data to be processed;
if so, taking the data with the specified field in the service type field as a specified coding value as the data carrying the network disconnection identifier.
7. The method for simulating network breaking according to claim 1, wherein the obtaining of the network breaking rule for the data to be processed comprises:
acquiring a network disconnection simulation starting instruction aiming at the data to be processed, wherein the network disconnection simulation starting instruction carries the network disconnection rule;
analyzing the network breaking simulation starting instruction to obtain the network breaking rule.
8. The network outage simulation method according to claim 1, further comprising:
acquiring a network disconnection simulation ending instruction aiming at the target data in a network disconnection simulation state;
and resuming to transmit the target data according to the network-breaking simulation ending instruction.
9. The method for simulating network disconnection according to claim 1, wherein the stopping of transmitting the target data to realize the network disconnection simulation includes: and carrying out packet loss on the target data to realize the network disconnection simulation.
10. The method for simulating network disconnection according to claim 1, wherein the stopping of transmitting the target data to realize the network disconnection simulation includes: and suspending the transmission of the target data to realize the simulation of network disconnection.
11. A network disconnection simulating device, comprising:
the network breaking rule obtaining unit is used for obtaining a network breaking rule aiming at the data to be processed, and the network breaking rule is used for indicating that the network breaking simulation is carried out on target data carrying a network breaking identifier in the data to be processed;
a target data obtaining unit, configured to obtain the target data from the data to be processed;
and the network disconnection simulating unit is used for stopping transmitting the target data and realizing network disconnection simulation.
12. An electronic device, comprising:
a processor; and
the device is powered on and loads the program of the disconnected network simulation method, and then executes the following steps:
obtaining a network breaking rule aiming at data to be processed, wherein the network breaking rule is used for indicating that the network breaking simulation is carried out on target data carrying a network breaking identification in the data to be processed;
obtaining the target data from the data to be processed;
and stopping transmitting the target data to realize the network disconnection simulation.
13. A storage medium storing a program for a network disconnection simulation method, the program being executed by a processor and executing the steps of:
obtaining a network breaking rule aiming at data to be processed, wherein the network breaking rule is used for indicating that the network breaking simulation is carried out on target data carrying a network breaking identification in the data to be processed;
obtaining the target data from the data to be processed;
and stopping transmitting the target data to realize the network disconnection simulation.
14. A data processing method, comprising:
acquiring a network breaking identifier write-in request message aiming at target data;
and writing a network breaking identifier for the target data according to the network breaking identifier writing request message, wherein the network breaking identifier is used for indicating a network management platform to carry out network breaking simulation on the target data after acquiring a network breaking rule.
15. The data processing method according to claim 14, wherein writing a network disconnection identifier for the target data according to the network disconnection identifier write request message includes:
identifying target data;
and writing the network breaking identification into the message corresponding to the target data.
16. The data processing method according to claim 15, wherein writing the network outage identifier in the packet corresponding to the target data comprises: and writing the network breaking identification into a header corresponding to the target data.
17. The data processing method according to claim 16, wherein the writing the network outage identifier in the header corresponding to the target data includes: and writing the network breaking identification in a service type field corresponding to the target data.
18. The data processing method according to claim 17, wherein writing the network outage identifier in a service type field corresponding to the target data comprises:
determining a designated field in which the network breaking identifier is written in a service type field corresponding to the target data;
and writing a specified encoding value in the specified field as the network breaking identifier.
19. The data processing method of claim 15, wherein the identifying target data comprises:
acquiring identification information corresponding to data storage equipment of data to be processed;
obtaining the data storage equipment of which the identification information is the designated identification information from the identification information corresponding to the data storage equipment of the data to be processed;
and taking the data stored in the data storage device of which the identification information is the designated identification information as target data.
20. The data processing method of claim 19, wherein writing a network outage indicator for the target data comprises:
sending a network disconnection identifier writing instruction to the data storage device of which the identifier information is the designated identifier information;
and writing a network breaking identifier for the target data in the data storage equipment with the identifier information as the designated identifier information.
21. The data processing method of claim 14, wherein the obtaining of the network breaking identifier write request message for the target data comprises:
establishing a hypertext transfer protocol with the disaster tolerance drilling platform;
and acquiring a network breaking identifier write-in request message aiming at the target data through the hypertext transfer protocol established with the disaster tolerance drilling platform.
22. The data processing method of claim 14, wherein after the network-breaking identification write operation is performed, the method comprises the following steps:
acquiring a network breaking identifier revocation message aiming at target data; and canceling the disconnected network identifier of the target data written with the disconnected network identifier according to the disconnected network identifier canceling message.
23. A data processing apparatus, comprising:
a network break identifier write request message obtaining unit, configured to obtain a network break identifier write request message for target data;
and the network breaking identifier writing unit is used for writing a network breaking identifier into the target data according to the network breaking identifier writing request message, and the network breaking identifier is used for indicating a network management platform to perform network breaking simulation on the target data after acquiring a network breaking rule.
24. An electronic device, comprising:
a processor; and
a memory for storing a program of a data processing method, the apparatus performing the following steps after being powered on and passing the program of the data processing method:
acquiring a network breaking identifier write-in request message aiming at target data;
and writing a network breaking identifier for the target data according to the network breaking identifier writing request message, wherein the network breaking identifier is used for indicating a network management platform to carry out network breaking simulation on the target data after acquiring a network breaking rule.
25. A storage medium storing a program of a data processing method, the program being executed by a processor to perform the steps of:
acquiring a network breaking identifier write-in request message aiming at target data;
and writing a network breaking identifier for the target data according to the network breaking identifier writing request message, wherein the network breaking identifier is used for indicating a network management platform to carry out network breaking simulation on the target data after acquiring a network breaking rule.
26. A network outage simulation system, comprising: the system comprises a disaster tolerance drilling platform, a network disconnection identification management platform and network transmission equipment participating in network disconnection simulation;
the disaster recovery drilling platform is used for sending a network disconnection simulation request instruction, and the network disconnection simulation request instruction comprises a network disconnection rule aiming at data to be processed; sending a network breaking identification writing request message aiming at target data to the network breaking identification management platform;
the network disconnection identifier management platform is used for acquiring the network disconnection identifier writing request message aiming at the target data, which is sent by the disaster tolerance drilling platform; writing a network breaking identifier for the target data according to the network breaking identifier writing request message, wherein the network breaking identifier is used for indicating network transmission equipment to perform network breaking simulation on the target data after acquiring a network breaking rule;
the network transmission equipment is used for obtaining a network breaking rule aiming at the data to be processed, and the network breaking rule is used for indicating that the network breaking simulation is carried out on target data carrying a network breaking identifier in the data to be processed; obtaining the target data from the data to be processed; and stopping transmitting the target data to realize the simulation of network disconnection.
27. The network outage simulation system of claim 26, further comprising:
the network management and control platform is used for obtaining a network disconnection simulation request instruction of the disaster tolerance drilling platform for the data to be processed, generating a network disconnection drilling starting message according to the network disconnection simulation request instruction, and transmitting the network disconnection drilling starting instruction to the network transmission equipment under the management of the network management and control platform;
the network transmission device is used for obtaining a network breaking rule aiming at data to be processed, and comprises the following steps: and the network transmission equipment analyzes the network breaking drill starting instruction to obtain a network breaking rule aiming at the data to be processed.
28. The system of claim 26, wherein the offline identification management platform is implemented using a network quality of service management platform.
29. The system of claim 26, wherein the network transport device comprises one or both of the following types of switches: core layer switches, metropolitan core switches.
30. The network management and control platform is characterized by being used for receiving a network disconnection simulation request instruction of the disaster recovery drilling platform for the data to be processed, generating a network disconnection drilling starting instruction according to the network disconnection simulation request instruction, and transmitting the network disconnection drilling starting instruction to network transmission equipment under the management of the network management and control platform.
CN202010393292.5A 2020-05-11 2020-05-11 Network disconnection simulation method and device, electronic equipment and system Pending CN113641534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010393292.5A CN113641534A (en) 2020-05-11 2020-05-11 Network disconnection simulation method and device, electronic equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010393292.5A CN113641534A (en) 2020-05-11 2020-05-11 Network disconnection simulation method and device, electronic equipment and system

Publications (1)

Publication Number Publication Date
CN113641534A true CN113641534A (en) 2021-11-12

Family

ID=78415425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010393292.5A Pending CN113641534A (en) 2020-05-11 2020-05-11 Network disconnection simulation method and device, electronic equipment and system

Country Status (1)

Country Link
CN (1) CN113641534A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114389849A (en) * 2021-12-17 2022-04-22 中电信数智科技有限公司 Disaster recovery drilling method and system for network security

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114389849A (en) * 2021-12-17 2022-04-22 中电信数智科技有限公司 Disaster recovery drilling method and system for network security
CN114389849B (en) * 2021-12-17 2024-04-16 中电信数智科技有限公司 Disaster recovery and backup exercise method and system for network security

Similar Documents

Publication Publication Date Title
US9992101B2 (en) Parallel multipath routing architecture
CN113037560B (en) Service flow switching method and device, storage medium and electronic equipment
JP2018508072A (en) Method and apparatus for pushing messages
US9485156B2 (en) Method and system for generic application liveliness monitoring for business resiliency
CN104283780A (en) Method and device for establishing data transmission route
CN109495345A (en) A kind of BFD processing method and the network equipment
CN113641534A (en) Network disconnection simulation method and device, electronic equipment and system
CN102970277B (en) Method and system for building multi-source safety relevance
US20170048081A1 (en) Multi-ring reliable messaging system
CN110278094A (en) Link restoring method and device, system, storage medium, electronic device
CN111490961B (en) Communication connection blocking system, method, device and equipment
US9172607B2 (en) Transmitting of configuration items within a network
CN112769849B (en) Method, system, equipment and storage medium for virus diagnosis and blocking
CN113114588B (en) Data processing method and device, electronic equipment and storage medium
CN108616423A (en) A kind of talk-around device monitoring method and device
US10931796B2 (en) Diffusing packets to identify faulty network apparatuses in multipath inter-data center networks
WO2017184807A1 (en) Parallel multipath routing architecture
CN106559439B (en) A kind of method for processing business and equipment
KR101511841B1 (en) Fault tolerance system based on virtual machine and method for arbitrating packets
CN113973114A (en) Cloud server live migration method, virtual switch and software defined network architecture
JP4220861B2 (en) Test support method and test support apparatus
CN113641364B (en) Method and system for deploying super-fusion cloud platform multi-node system
CN113010337B (en) Fault detection method, master control node, working node and distributed system
Evang A 10-Layer Model for Service Availability Risk Management
Kashiwazaki et al. A proposal of stochastic quantitative resilience index based on SLAs for communication lines

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40062861

Country of ref document: HK