CN113708993A - Abnormal state testing method and device, terminal equipment and storage medium - Google Patents

Abnormal state testing method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN113708993A
CN113708993A CN202110930426.7A CN202110930426A CN113708993A CN 113708993 A CN113708993 A CN 113708993A CN 202110930426 A CN202110930426 A CN 202110930426A CN 113708993 A CN113708993 A CN 113708993A
Authority
CN
China
Prior art keywords
service
abnormal
packet
type
equipment
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
CN202110930426.7A
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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN202110930426.7A priority Critical patent/CN113708993A/en
Publication of CN113708993A publication Critical patent/CN113708993A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0847Transmission error
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides an abnormal state testing method, an abnormal state testing device, terminal equipment and a storage medium, wherein the abnormal state testing method comprises the following steps: receiving a service abnormity simulation instruction sent by a service abnormity detection terminal; determining abnormal response information corresponding to the abnormal equipment type identifier according to the service identifier, the abnormal times and the service corresponding to the abnormal type; determining a service execution result corresponding to the abnormal equipment type identifier according to the abnormal response information; and sending the service execution result to a service abnormity detection terminal so that the service abnormity detection terminal determines the capacity of the video equipment corresponding to the abnormal equipment type identifier for processing the abnormal state service according to the service execution result, carrying out abnormal condition simulation detection on each video equipment through a service abnormity detection system, judging the capacity of the video equipment for processing the abnormal condition, and when the abnormal condition occurs in the video networking service process, the video networking service can be normally operated, thereby ensuring the stable operation of the video networking service.

Description

Abnormal state testing method and device, terminal equipment and storage medium
Technical Field
The invention relates to the technical field of video networking, in particular to an abnormal state testing method, an abnormal state testing device, terminal equipment and a storage medium.
Background
In the field of video networking, a video networking device is usually adopted to execute a video networking service, the video networking device at least comprises a main control device, a sub-control device, a terminal device and the like, and in the process of carrying out the service by the video networking device, due to network abnormity or unsafe data link, the problems of packet loss, heavy packet and the like may occur, so that the problem that the video networking service cannot be normally carried out or is incorrectly processed by the video networking device may occur, thereby interrupting the video networking service.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide an abnormal state testing method, apparatus, terminal device and storage medium that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides an abnormal state testing method, where the method includes:
receiving a service abnormity simulation instruction sent by a service abnormity detection terminal, wherein the service abnormity simulation instruction comprises an abnormal equipment type identifier, an abnormal type, abnormal times and a service identifier;
determining abnormal response information corresponding to the abnormal equipment type identifier according to the service identifier, the abnormal times and the service corresponding to the abnormal type;
determining a service execution result corresponding to the abnormal equipment type identifier according to the abnormal response information;
and sending the service execution result to the service abnormity detection terminal so that the service abnormity detection terminal determines the capacity of the video equipment corresponding to the abnormal equipment type identifier for processing abnormal state service according to the service execution result.
Optionally, the determining, according to the service identifier, the abnormal number of times, and the service corresponding to the abnormal type, the abnormal response information corresponding to the abnormal device type identifier includes:
if the abnormal type is a service packet loss type, a service response packet is not returned;
if the abnormal type is a service repeated packet type, returning the same first service response packet corresponding to the abnormal times;
if the abnormal type is the type of the service tampering packet, generating a second service tampering response packet, wherein the service data in the second service response packet is tampered;
and if the abnormal type is the service damage packet type, generating a third service damage response packet, wherein the service data in the third service damage packet is lost.
Optionally, the determining, according to the abnormal response information, a service execution result corresponding to the abnormal device type identifier includes:
if the abnormal type is a service packet loss type, the main control device sends a service starting instruction to the video network terminal at preset time intervals through the sub-control device until receiving a first response result that the video network terminal successfully returns the service;
if the abnormal type is a service repeated packet type, the master control device filters the same first service response packet corresponding to the preset abnormal times to obtain one first service response packet;
if the abnormal type is a service tampering packet type, the main control device analyzes the second service tampering response packet to obtain a second service response packet, judges the second service response packet, and if the content in the second service response packet does not conform to the video networking protocol or the content in the second service response packet is tampered, the main control device sends a service starting instruction to the video networking terminal through the sub-control device at preset intervals until a second response result that the video networking terminal returns the service successfully is received;
if the abnormal type is a service damage packet type, the main control device analyzes the third service damage packet to obtain a third service damage packet, and if the third service damage packet does not conform to a video networking protocol or the content in the third service damage packet is lost, the main control device sends a service starting instruction to a video networking terminal through a sub-control device at intervals of preset time until a third response result that the video networking terminal returns the service successfully is received;
and the master control equipment determines the service execution result corresponding to the abnormal equipment type identifier according to one or more of the first service response result, the first service response packet, the second service response result and the third service response result, wherein the service execution result comprises first service state information of the video connection equipment.
Optionally, the determining, by the service anomaly detection terminal, the capability of the visual contact device corresponding to the abnormal device type identifier to process the abnormal service according to the service execution result includes:
the service abnormity detection system acquires first service state information of the video equipment in the service execution result;
the service abnormity detection system acquires second service state information of each video connection device in a service record table stored on the main control device;
comparing the first service state information with the second service state information;
and determining that the video connection equipment has the capability of processing abnormal services according to the first service state information and the second service state information.
Optionally, the abnormal device type identifier at least includes one of a video networking number of the master control device, a video networking number of the slave control device, and a video networking number of the video networking terminal device, and the abnormal device type identifier is used to determine to identify the abnormal source device; the service identifier at least comprises one of a video conference and a video telephone.
In a second aspect, an embodiment of the present invention provides an abnormal state testing apparatus, where the apparatus includes:
the receiving module is used for receiving a service abnormity simulation instruction sent by a service abnormity detection terminal, wherein the service abnormity simulation instruction comprises an abnormal equipment type identifier, an abnormal type, abnormal times and a service identifier;
the response module is used for determining abnormal response information corresponding to the abnormal equipment type identifier according to the service identifier, the abnormal times and the service corresponding to the abnormal type;
the determining module is used for determining a service execution result corresponding to the abnormal equipment type identifier according to the abnormal response information;
and the judging module is used for sending the service execution result to the service abnormity detection terminal so that the service abnormity detection terminal determines the capacity of the visual connection equipment corresponding to the abnormal equipment type identifier for processing abnormal state service according to the service execution result.
Optionally, the response module is configured to:
if the abnormal type is a service packet loss type, a service response packet is not returned;
if the abnormal type is a service repeated packet type, returning the same first service response packet corresponding to the abnormal times;
if the abnormal type is the type of the service tampering packet, generating a second service tampering response packet, wherein the service data in the second service response packet is tampered;
and if the abnormal type is the service damage packet type, generating a third service damage response packet, wherein the service data in the third service damage packet is lost.
Optionally, the internet of view device at least includes a main control device, a sub-control device and an internet of view terminal device, and the determining module is configured to:
if the abnormal type is a service packet loss type, the main control device sends a service starting instruction to the video network terminal at preset time intervals through the sub-control device until receiving a first response result that the video network terminal successfully returns the service;
if the abnormal type is a service repeated packet type, the master control device filters the same first service response packet corresponding to the preset abnormal times to obtain one first service response packet;
if the abnormal type is a service tampering packet type, the main control device analyzes the second service tampering response packet to obtain a second service response packet, judges the second service response packet, and if the content in the second service response packet does not conform to the video networking protocol or the content in the second service response packet is tampered, the main control device sends a service starting instruction to the video networking terminal through the sub-control device at preset intervals until a second response result that the video networking terminal returns the service successfully is received;
if the abnormal type is a service damage packet type, the main control device analyzes the third service damage packet to obtain a third service damage packet, and if the third service damage packet does not conform to a video networking protocol or the content in the third service damage packet is lost, the main control device sends a service starting instruction to a video networking terminal through a sub-control device at intervals of preset time until a third response result that the video networking terminal returns the service successfully is received;
and the master control equipment determines the service execution result corresponding to the abnormal equipment type identifier according to one or more of the first service response result, the first service response packet, the second service response result and the third service response result, wherein the service execution result comprises first service state information of the video connection equipment.
Optionally, the determining module is configured to:
the service abnormity detection system acquires first service state information of the video equipment in the service execution result;
the service abnormity detection system acquires second service state information of each video connection device in a service record table stored on the main control device;
comparing the first service state information with the second service state information;
and determining that the video connection equipment has the capability of processing abnormal services according to the first service state information and the second service state information.
Optionally, the abnormal device type identifier at least includes one of a video networking number of the master control device, a video networking number of the slave control device, and a video networking number of the video networking terminal device, and the abnormal device type identifier is used to determine to identify the abnormal source device; the service identifier at least comprises one of a video conference and a video telephone.
In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the abnormal state testing method provided by the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed, the abnormal state testing method provided in the first aspect is implemented.
The embodiment of the invention has the following advantages:
according to the abnormal state testing method, the abnormal state testing device, the terminal equipment and the storage medium, the service abnormality simulation instruction sent by the service abnormality detection terminal is received, and the abnormal simulation instruction comprises an abnormal equipment type identifier, an abnormal type, abnormal times and a service identifier; determining abnormal response information corresponding to the abnormal equipment type identifier according to the service identifier, the abnormal times and the service corresponding to the abnormal type; determining a service execution result corresponding to the abnormal equipment type identifier according to the abnormal response information; and sending the service execution result to a service abnormity detection terminal so that the service abnormity detection terminal determines the capacity of the video equipment corresponding to the abnormal equipment type identifier for processing the abnormal state service according to the service execution result, carrying out abnormal condition simulation detection on each video equipment through a service abnormity detection system, judging the capacity of the video equipment for processing the abnormal condition, and when the abnormal condition occurs in the video networking service process, the video networking service can be normally operated, thereby ensuring the stable operation of the video networking service.
Drawings
FIG. 1 is a flow chart of the steps of one embodiment of the abnormal state testing method of the present invention;
FIG. 2 is a flow chart of steps in another embodiment of a method of testing for an abnormal condition of the present invention;
FIG. 3 is a schematic structural diagram of an abnormal state testing system according to an embodiment of the present invention;
FIG. 4 is a flow chart of steps in yet another abnormal state testing method embodiment of the present invention;
FIG. 5 is a block diagram of an abnormal state testing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal device of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
Based on the characteristics of the video network, one of the core concepts of the embodiment of the invention is provided, and the service abnormity simulation instruction sent by the service abnormity detection terminal is received according to the protocol of the video network, wherein the service abnormity simulation instruction comprises an abnormal equipment type identifier, an abnormal type, abnormal times and a service identifier; determining abnormal response information corresponding to the abnormal equipment type identifier according to the service identifier, the abnormal times and the service corresponding to the abnormal type; determining a service execution result corresponding to the abnormal equipment type identifier according to the abnormal response information; and sending the service execution result to a service abnormity detection terminal so that the service abnormity detection terminal determines the capacity of the video equipment corresponding to the abnormal equipment type identifier for processing the abnormal state service according to the service execution result, carrying out abnormal condition simulation detection on each video equipment through a service abnormity detection system, judging the capacity of the video equipment for processing the abnormal condition, and when the abnormal condition occurs in the video networking service process, the video networking service can be normally operated, thereby ensuring the stable operation of the video networking service.
The nouns are explained as follows:
and (3) visual connection equipment: terminal devices (lighting, aurora, etc.), master control devices and sub-control devices of the core server, a conference management server, a network management server, etc.
An embodiment of the present invention provides an abnormal state testing method, which is used for performing one-time state detection on a piece of video equipment. The execution main body of the embodiment is an abnormal state testing device and is arranged on the visual connection equipment.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of an abnormal state testing method according to the present invention is shown, where the method may specifically include the following steps:
s101, receiving a service abnormity simulation instruction sent by a service abnormity detection terminal, wherein the service abnormity simulation instruction comprises an abnormal equipment type identifier, an abnormal type, abnormal times and a service identifier;
specifically, in the video networking service, the video networking device often has abnormal scenes such as a service packet loss, a service duplicate packet, a service tamper packet, a service damage packet, and the like, and the video networking service is interrupted due to the fact that the video networking device cannot process or incorrectly process the scene.
The method comprises the steps that a service anomaly detection terminal sends a service anomaly simulation instruction to a video networking device, wherein the service anomaly simulation instruction comprises an anomaly device type identifier, an anomaly type, anomaly times and a service identifier, the anomaly device type identifier at least comprises one of a video networking number of a main control device, a video networking number of a sub-control device and a video networking number of a video networking terminal device, and the anomaly device type identifier is used for identifying an anomaly source device; that is to say, the service anomaly detection terminal wants to perform anomaly simulation detection on which video connection device, and the service anomaly simulation instruction includes an identifier of which video connection device, and the anomaly type at least includes: the service packet loss type, the service repeat packet type, the service tampering packet type or the service damage packet type, and the service identifier at least comprises one of a video conference and a video telephone.
Exemplarily, if it is desired to perform an abnormal simulation detection on the master control device of the video device, the abnormal device type identifier is the master control device identifier; if the abnormal simulation detection is required to be carried out on the sub-control equipment of the visual equipment, the abnormal equipment type identifier is the sub-control equipment identifier; if the terminal equipment of the video equipment is required to be subjected to abnormal simulation detection, the abnormal equipment type identifier is the terminal equipment identifier;
if the service anomaly simulation instruction can include a main control device identifier, a service packet loss, 3 times and a conference opening, that is, the service anomaly detection terminal controls the main control device to execute the conference opening instruction, the first 3 data packets execute packet loss processing, that is, the main control device performs packet loss processing on the data packets, the data packets cannot be sent to the sub-control device, and the terminal device cannot be added into the conference, when the 3 data packets lose the packets, the main control device continues to send the data packets to the sub-control device, so that the terminal device is added into the to-be-conferenced conference.
S102, determining abnormal response information corresponding to the abnormal equipment type identifier according to the service identifier, the abnormal times and the service corresponding to the abnormal type;
specifically, the visual connection equipment determines abnormal response information corresponding to the type identifier of the abnormal equipment according to the service identifier, the abnormal times and the service corresponding to the abnormal type in the scene of different abnormal types;
exemplarily, if the exception type is a service packet loss type: the video equipment does not return a service response packet to the service abnormity detection terminal;
if the abnormal type is a service repeated packet type: the visual connection device returns the same service response packet corresponding to the abnormal frequency, for example, if the abnormal frequency is 4, the visual connection device generates 4 same service response packets.
That is, the abnormal response information corresponds to the abnormal device type identifier, for example, the abnormal response information of the main control device corresponding to the main control device, the abnormal response information of the sub control device corresponding to the sub control device, and the like; the abnormal response information may be a response packet for returning a plurality of response packets, a response packet for returning a service tampering, or a response packet for returning a service damage.
S103, determining a service execution result corresponding to the abnormal equipment type identifier according to the abnormal response information;
specifically, the visual connection terminal determines a service execution result corresponding to the main control device, the sub-control device or the terminal device according to the abnormal response information in different scenes;
for example, for the terminal device, if the terminal device performs packet loss processing, the main control device does not receive a response of the conference entering result of the terminal device, and the main control device notifies the terminal device of the conference entering again at specified time intervals until a response result of successful conference entering returned by the terminal device is received. The service state of each terminal device is recorded on the master control device, for example, in some cases, the terminal device entry fails, and in some cases, the terminal device entry succeeds.
If the terminal device executes the processing of the service repeat packet, the main control device receives a plurality of same response packets, the main control device processes the first response packet, and other response packets are discarded without processing, under the condition, the terminal device can be successfully entered.
In the embodiment of the present invention, the master control device may record the service execution result, such as service success or service failure, of each of the video connection devices in different abnormal scenarios.
And S104, sending the service execution result to the service abnormity detection terminal so that the service abnormity detection terminal determines the capacity of the visual connection equipment corresponding to the abnormal equipment type identification for processing the abnormal state service according to the service execution result.
Specifically, the video-networking equipment sends the service execution result to the service abnormality detection terminal, so that the service abnormality detection terminal can also acquire the service state of each video-networking equipment from the main control equipment in the video-networking equipment, and then compare the service state with the service execution result to judge whether the processing of each video-networking equipment in the abnormal scene is correct or not, so as to determine the capacity of the main control equipment, the sub-control equipment or the terminal equipment for processing the abnormal state service.
According to the abnormal state testing method provided by the embodiment of the invention, a service abnormality simulation instruction sent by a service abnormality detection terminal is received, wherein the abnormality simulation instruction comprises an abnormal equipment type identifier, an abnormal type, abnormal times and a service identifier; determining abnormal response information corresponding to the abnormal equipment type identifier according to the service identifier, the abnormal times and the service corresponding to the abnormal type; determining a service execution result corresponding to the abnormal equipment type identifier according to the abnormal response information; and sending the service execution result to a service abnormity detection terminal so that the service abnormity detection terminal determines the capacity of the video equipment corresponding to the abnormal equipment type identifier for processing the abnormal state service according to the service execution result, carrying out abnormal condition simulation detection on each video equipment through a service abnormity detection system, judging the capacity of the video equipment for processing the abnormal condition, and when the abnormal condition occurs in the video networking service process, the video networking service can be normally operated, thereby ensuring the stable operation of the video networking service.
The present invention further provides a supplementary description of the abnormal state testing method provided in the above embodiment.
As shown in fig. 2, a flow chart of steps of another embodiment of the abnormal state testing method of the present invention is shown, and the abnormal state testing method includes:
s201, receiving a service abnormity simulation instruction sent by a service abnormity detection terminal, wherein the abnormity simulation instruction comprises an abnormal equipment type identifier, an abnormal type, abnormal times and a service identifier;
specifically, the abnormal device type identifier at least includes one of a video networking number of the master control device, a video networking number of the slave control device, and a video networking number of the video networking terminal device, and the abnormal device type identifier is used for identifying the abnormal source device; the service identifier at least comprises one of video conference and video telephone.
Since step S202 is the same as step S101 in the embodiment shown in fig. 1. Step S101 has already been described in detail in fig. 1, and therefore step S202 is not described again here.
S202, determining abnormal response information corresponding to the abnormal equipment type identifier according to the service identifier, the abnormal times and the service corresponding to the abnormal type;
specifically, the visual connection equipment determines abnormal response information corresponding to the type identifier of the abnormal equipment according to the service identifier, the abnormal times and the service corresponding to the abnormal type in the scene of different abnormal types;
as an optional implementation manner, if the abnormal type is a service packet loss type, a service response packet is not returned; that is, the video equipment does not return a service response packet to the service anomaly detection terminal;
as another optional implementation, if the exception type is a service repeat packet type, returning the same first service response packet corresponding to the exception times;
as another optional implementation manner, if the exception type is a service tampering packet type, generating a second service tampering response packet, where service data in the second service response packet is tampered;
as another optional implementation manner, if the exception type is a service failure packet type, a third service failure response packet is generated, where service data in the third service failure packet is lost.
S2031, if the abnormal type is a service packet loss type, the main control device sends a service start instruction to the video network terminal through the sub-control device at intervals of preset time until receiving a first response result that the video network terminal successfully returns the service;
s2032, if the abnormal type is the type of the business repeat packet, the master control device filters the same first business response packet corresponding to the preset abnormal times to obtain a first business response packet;
s2033, if the abnormal type is the type of the service tampering packet, the main control device analyzes the second service tampering response packet to obtain a second service response packet, judges the second service response packet, and if the content in the second service response packet does not conform to the video networking protocol or the content in the second service response packet is tampered, the main control device sends a service starting instruction to the video networking terminal through the sub-control device at intervals of preset time until a second response result that the video networking terminal returns the service successfully is received;
illustratively, taking the terminal device as an example, the main control device receives a tampered response packet returned by the terminal, analyzes the response packet, if the content in the response packet does not conform to the video networking protocol, the analysis fails, considers that the access of the terminal device fails, and notifies the terminal of the access again at specified time intervals until receiving a response result that the access is successful returned by the terminal device;
if the tampered response packet conforms to the video networking protocol, the main control device judges whether the response packet data is tampered according to data in the sent service packet, if the response packet data is tampered, the main control device informs the terminal to enter the conference again after a specified time interval, and the key parameters comprise: terminal equipment number, service type, service identification, whether a service processing result parameter (0 indicates success, and the others indicate failure), and the like.
S2034, if the abnormal type is the type of the service damage packet, the main control device analyzes the third service damage packet to obtain a third service damage packet, and if the third service damage packet does not conform to the video networking protocol or the content in the third service damage packet is lost, the main control device sends a service start instruction to the video networking terminal through the sub-control device at intervals of preset time until a third response result that the video networking terminal returns the service successfully is received;
illustratively, the main control equipment receives a damage response packet returned by the terminal, if the main control equipment fails to analyze according to the video networking protocol, the main control equipment notifies the terminal equipment of meeting again after every specified time;
the main control equipment informs the terminal equipment to enter the conference again after every appointed time, if the terminal equipment returns the conference entering success, the main control equipment returns a terminal conference state notice to the abnormal simulation system, and the main parameters comprise: an operation code (terminal conference-in notification), a terminal device number, a conference global identifier, a conference name, a terminal status (in conference), and the like.
S204, the main control device determines a service execution result corresponding to the abnormal device type identifier according to one or more of the first service response result, the first service response packet, the second service response result and the third service response result, wherein the service execution result comprises first service state information of the visual connection device.
S205, the service abnormity detection system acquires first service state information of the video equipment in the service execution result;
s206, the service abnormity detection system acquires second service state information of each video connection device in a service record table stored on the main control device;
s207, the service abnormity detection system compares the first service state information with the second service state information;
and S208, if the first service state information is different from the second service state information, the service abnormity detection system determines that the video equipment has the capacity of processing abnormal services.
Specifically, the master control device finally returns two response packets, "response result for starting conference" and "state notification for terminal conference" to the service anomaly detection system; if the conference starting response result is successful, counting conference entering results of the participant terminal equipment, namely first service state information, according to the terminal conference state notification;
meanwhile, the service abnormity detection system acquires the service state of the participant terminal equipment, namely first service state information, and compares the service state with second service state information of each participant terminal recorded in a conference list on the main control equipment, and if the service state information is different, the video conference equipment is indicated to process errors in the abnormal scene; if the two are the same, it is indicated that the video connection equipment is correctly processed in the abnormal scene, and the capability of the video connection equipment for processing the abnormal service is strong.
Fig. 3 is a schematic structural diagram of an embodiment of an abnormal state testing system of the present invention, and as shown in fig. 3, the abnormal state testing system includes a service abnormality detection terminal and a visual connection device, where the visual connection device includes a main control device, a sub control device and a terminal device, a service abnormality detection system is installed on the service abnormality detection terminal, various simulation scenes can be set by user for the visual connection device, the visual connection device simulates a set abnormal scene in a service process, the service abnormality detection system obtains data of a random length and sends the data to a corresponding service receiving device, and the service abnormality detection system counts a service processing result returned by each receiving device; the service anomaly detection system informs the tested equipment of taking effect of the simulated anomaly and initiates the video networking service to the tested equipment, the tested equipment starts the service and carries out anomaly simulation according to the effective simulation scene, and the service anomaly detection system counts the service processing results of the video networking equipment and determines the capability of different video networking equipment for processing the service in the abnormal state.
Fig. 4 is a flowchart illustrating steps of another embodiment of an abnormal state testing method according to the present invention, as shown in fig. 4, the abnormal state testing method includes:
1. the service anomaly detection system is connected to the core server through a tcp socket and logs in the core server by using an account registered on the core server; the core server comprises a main control device and a sub-control device;
2. the service anomaly detection system encapsulates a service anomaly simulation instruction to inform equipment needing anomaly simulation, such as main control equipment, branch control equipment or terminal equipment, wherein an instruction packet follows a video networking protocol, and main parameters comprise: operation codes (service abnormity simulation), abnormity types, abnormity times, service identifiers, a list of terminal equipment needing abnormity simulation and the like; the types of anomalies mainly include: service packet loss, service duplication packet, service tampering packet, service damage packet and the like; the number of anomalies: representing that the equipment simulates the abnormal times and returns to normal after exceeding the times;
3. after receiving the service abnormity simulation instruction, the main control device forwards the service abnormity simulation instruction to the sub-control device corresponding to the receiving terminal device, and finally the sub-control device informs the receiving terminal device
4. The terminal equipment receives the business abnormity simulation instruction, then saves the instruction and takes effect, and returns a setting result response packet to the business abnormity detection system;
5. the service anomaly detection system encapsulates a service packet to detect whether the setting is effective or not, the service packet follows a video networking protocol, the service packet is forwarded to the sub-control equipment through the main control equipment, and then the sub-control equipment sends the service packet to the terminal equipment to pull up the service;
6. after receiving the service packet, the terminal device detects whether to simulate the abnormal service, and whether the simulation times, namely the abnormal times, exceed the set times:
if the abnormal service is not simulated or the simulation times exceed the set times, the service is normal;
packet loss simulation: the terminal equipment starts the service, but does not return a service result response packet to the main control equipment;
simulating a service repeat packet: the terminal equipment starts the service and returns a plurality of same service response packets to the main control equipment;
simulating a service tampering package: the terminal equipment starts the service and returns a service response packet with tampered part of the content to the main control equipment;
simulating a service failure packet: the terminal equipment starts the service and returns a service response packet with incomplete content to the main control equipment;
7. the main control device receives a service response packet returned by the terminal device, and performs corresponding service processing according to a service response packet result, taking a conference service as an example, the main control device notifies the terminal device to enter a conference:
7-1) packet loss of the terminal equipment: the main control equipment does not receive the response of the conference entering result of the terminal equipment, and the main control equipment informs the terminal of conference entering again after a specified time interval until the response result of successful conference entering returned by the terminal equipment is received.
7-2) terminal equipment service repeated packet: the main control equipment receives a plurality of same response packets, the main control equipment processes the first response packet, and other response packets are discarded and not processed.
7-3) the main control equipment receives a tampered response packet returned by the terminal, analyzes the response packet, if the content in the response packet does not conform to the video networking protocol, the analysis fails, the access of the terminal equipment is considered to fail, and the main control equipment informs the terminal of access again at specified time intervals until a successful access response result returned by the terminal equipment is received;
if the tampered response packet conforms to the video networking protocol, the main control device judges whether the response packet data is tampered according to data in the sent service packet, if the response packet data is tampered, the main control device notifies the terminal device to enter the conference again at specified time intervals, and the key parameters comprise: terminal equipment number, service type, service identification, whether a service processing result parameter (0 indicates success, and the others indicate failure) exists, and the like;
7-4) the main control equipment receives a damage response packet returned by the terminal equipment, if the main control equipment fails to analyze according to the video networking protocol, the main control equipment informs the terminal equipment of meeting again after every specified time;
8. the main control equipment informs the terminal equipment to enter the conference again after every appointed time, if the terminal equipment returns the conference entering success, the main control equipment returns a terminal conference state notice to the abnormal simulation system, and the main parameters comprise: operation codes (terminal conference-in notification), terminal numbers, conference global identification, conference names, terminal states (in conference), and the like;
9. the main control equipment finally returns two response packets, namely a conference starting response result and a terminal conference state notification, to the service anomaly detection system;
9-1) if the response result of starting the conference is successful, counting the conference entering result of the participating terminal equipment according to the terminal conference state notification, if the abnormal simulation times of the terminal equipment exceed the set times, the main control equipment does not report the terminal conference state notification, which indicates that the main control equipment or the terminal equipment has processing errors in the abnormal simulation, and the errors may occur:
a. the main control equipment does not inform the terminal of meeting again after the terminal loses a packet, or receives a tampering packet or a damage packet;
b. the master control equipment resolves the exception after receiving the tampering packet or the damage packet;
c. the master control equipment returns a plurality of (more than 1) same terminal conference state notifications of a certain terminal equipment at the same time, which indicates that the master control equipment processes the repeated packets incorrectly without filtering;
d. the terminal equipment receives the notification of the main control equipment for multiple times of meeting entry and processes errors when the terminal equipment is already in service;
meanwhile, the service abnormity detection system acquires the first service state of the participant terminal equipment, compares the first service state with the second service state of each participant terminal recorded in the main control upper meeting list, and if the difference indicates that the main control equipment and the sub-control equipment process errors in the abnormal scene.
In the embodiment of the present invention, in addition to performing the above-mentioned exception simulation on the terminal device, the above-mentioned exception simulation may be performed on other visual connection devices, for example, performing the exception simulation on the sub-control device, or performing the exception simulation on the main control device:
the simulation process of the sub-control device and the main control device is the same as the operation of the terminal device, and is not described herein again;
after receiving the service packet, the sub-control equipment detects whether abnormal services need to be simulated or not and whether the simulation times exceed the set times or not: if the abnormal service is not simulated or the simulation times exceed the set times, the service is normal; packet loss simulation: the sub-control device discards the received data packets until the set number of times is exceeded (for example, if the set number is 100 times of packet loss, 100 service packets are discarded); simulating a service repeat packet: the sub-control equipment forwards a plurality of same data packets to the terminal equipment and the main control equipment; simulating a service tampering package:
the sub-control equipment forwards the service packet with the tampered part of the content to the terminal equipment and the main control equipment;
simulating a service failure packet: and the sub-control equipment returns the service packet with incomplete content to the terminal equipment and the main control equipment.
The main control device and the terminal device receive the data packet forwarded by the sub-control device, perform corresponding service processing according to the received data packet, finally report the processing result to the service anomaly detection system, and analyze whether the processing is normal for the anomaly detected device and the peripheral device by the service anomaly detection system, if: the terminal equipment pops up two notice boxes of conference entrance (same conference) to indicate that the terminal equipment does not process the repeated packet; the terminal receives the tampered packet or the damaged packet, crashes, does not respond and the like, and shows that the terminal processes the exception wrongly; in a packet loss scene, the packet loss times exceed the set times, and finally the service is not pulled up, which indicates that the master control device may not initiate the service again, or the terminal device is abnormal, etc.;
when the branch control equipment sends an abnormal packet, the performance condition of the terminal equipment is specifically detected:
if the terminal device receives the abnormal packet forwarded by the sub-control device, taking the conference service as an example, the main control device notifies the terminal device to enter the conference through the sub-control device:
1) packet loss of the sub-control equipment: the terminal equipment does not receive the conference entering notification forwarded by the sub-control equipment, the terminal equipment fails in conference entering, the main control equipment notifies the terminal to conference entering again through the sub-control equipment at intervals of specified time, the conference entering notification is forwarded to the terminal equipment until the sub-control equipment exceeds the set packet loss times, and the terminal equipment performs corresponding service processing after receiving the conference entering notification and returns a response result of successful conference entering.
2) The sub-control equipment sends a service repeat packet to the terminal equipment: and the terminal equipment receives a plurality of same conference notifications, processes the first notification packet, and discards other notification packets without processing.
3) The sub-control equipment sends a tampered response packet to the terminal equipment:
a. the terminal equipment analyzes the response packet, if the content in the response packet does not conform to the video networking protocol, the analysis is failed, the terminal equipment discards the access failure and does not process the access failure, and the main control equipment informs the terminal of the access again through sub-control at intervals of specified time until receiving a response result of successful access returned by the terminal equipment; if the main elements of the incoming notification command packet are: operation codes (informing terminals to enter a meeting), service identifiers, a global conference identifier, a sender address, a receiving terminal equipment address and the like;
b. if the tampered response packet conforms to the video networking protocol, but the service type in the packet is tampered, the terminal device acquires the service type, if the service type does not belong to the video networking service, the access failure is discarded and not processed, the main control device informs the terminal of the access again through sub-control at specified time intervals until the response result that the access success is returned by the terminal device is received;
c. if the tampered response packet conforms to the video networking protocol, but the sender address in the service packet is tampered, the terminal device continues the service, returns an incoming result to the tampered address, and detects the service exception handling capacity in the exception scene.
4) The sub-control equipment sends the damaged service packet to the terminal equipment, the terminal equipment fails to analyze according to the video networking protocol, the terminal equipment fails to enter the conference, and the main control equipment informs the terminal equipment of entering the conference again through the sub-control equipment at intervals of specified time until a response result of successful conference entering is received from the terminal equipment.
If the problem of the master control device or the terminal device cannot be determined, the master control device or the terminal device needs to be confirmed by packet capturing or log viewing.
The embodiment of the invention can also carry out abnormal simulation detection on the main control equipment, the terminal equipment sends various abnormal packets to the main control equipment, the abnormal packets of the terminal equipment are forwarded to the main control equipment by the sub-control equipment, for the main control equipment, the abnormal packets sent by the sub-control equipment or the abnormal packets sent by the terminal equipment are the abnormal packets, the main control equipment cannot be distinguished and can only be judged by the abnormal service detection system, if the abnormal service detection system currently sets that the sub-control equipment sends the abnormal packets, the abnormal source is definitely on the sub-control equipment, and if the abnormal service detection system currently sets that the terminal equipment sends the abnormal packets, the abnormal source is definitely on the terminal equipment.
The service anomaly detection system sets the main control device to send an anomaly packet (for example, when a conference is started, the main control device notifies the terminal that the packet is lost or is abnormal in the conference):
packet loss of the master control equipment: the main control equipment starts the conference service, the conference state is in the conference, at the moment, the main control equipment informs the terminals of packet loss in conference entrance, and all the terminals fail in conference entrance.
The main control equipment sends a repeated packet, a tampered packet and a damaged packet: the sub-control device will forward the abnormal packet sent by the main control to the terminal device, and the processing procedure after the terminal device receives the abnormal packet is the same as the above processing procedure, which is not described herein again.
The embodiment of the invention carries out comprehensive detection on the equipment in the video network under abnormal scenes such as simulated service packet loss, service repeated packet, service tampering packet, service damage packet and the like, finds the problems in time and solves the problems, so that the video network can be operated normally when the abnormal conditions occur in the process of the video network operation, and the stable operation of the video network operation is ensured.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
According to the abnormal state testing method provided by the embodiment of the invention, a service abnormality simulation instruction sent by a service abnormality detection terminal is received, wherein the abnormality simulation instruction comprises an abnormal equipment type identifier, an abnormal type, abnormal times and a service identifier; determining abnormal response information corresponding to the abnormal equipment type identifier according to the service identifier, the abnormal times and the service corresponding to the abnormal type; determining a service execution result corresponding to the abnormal equipment type identifier according to the abnormal response information; and sending the service execution result to a service abnormity detection terminal so that the service abnormity detection terminal determines the capacity of the video equipment corresponding to the abnormal equipment type identifier for processing the abnormal state service according to the service execution result, carrying out abnormal condition simulation detection on each video equipment through a service abnormity detection system, judging the capacity of the video equipment for processing the abnormal condition, and when the abnormal condition occurs in the video networking service process, the video networking service can be normally operated, thereby ensuring the stable operation of the video networking service.
Another embodiment of the present invention provides an abnormal state testing apparatus, configured to execute the abnormal state testing method provided in the foregoing embodiment.
Referring to fig. 5, a block diagram of an embodiment of an abnormal state testing apparatus according to the present invention is shown, where the apparatus may be applied in a video network, and specifically includes the following modules: a receiving module 501, a responding module 502, a determining module 503 and a judging module 504, wherein:
the receiving module 501 is configured to receive a service anomaly simulation instruction sent by a service anomaly detection terminal, where the anomaly simulation instruction includes an abnormal device type identifier, an abnormal type, an abnormal frequency, and a service identifier;
the response module 502 is configured to determine, according to the service identifier, the abnormal times, and the service corresponding to the abnormal type, abnormal response information corresponding to the abnormal device type identifier;
the determining module 503 is configured to determine a service execution result corresponding to the abnormal device type identifier according to the abnormal response information;
the determining module 504 is configured to send the service execution result to the service anomaly detection terminal, so that the service anomaly detection terminal determines, according to the service execution result, a capability of the connected-to-video device corresponding to the abnormal device type identifier to process the abnormal state service.
The abnormal state testing device provided by the embodiment of the invention receives the service abnormality simulation instruction sent by the service abnormality detection terminal, wherein the abnormality simulation instruction comprises an abnormal equipment type identifier, an abnormal type, abnormal times and a service identifier; determining abnormal response information corresponding to the abnormal equipment type identifier according to the service identifier, the abnormal times and the service corresponding to the abnormal type; determining a service execution result corresponding to the abnormal equipment type identifier according to the abnormal response information; and sending the service execution result to a service abnormity detection terminal so that the service abnormity detection terminal determines the capacity of the video equipment corresponding to the abnormal equipment type identifier for processing the abnormal state service according to the service execution result, carrying out abnormal condition simulation detection on each video equipment through a service abnormity detection system, judging the capacity of the video equipment for processing the abnormal condition, and when the abnormal condition occurs in the video networking service process, the video networking service can be normally operated, thereby ensuring the stable operation of the video networking service.
The present invention further provides a supplementary explanation of the abnormal state testing apparatus provided in the above embodiment.
Optionally, a response module for:
if the abnormal type is a service packet loss type, a service response packet is not returned;
if the abnormal type is the type of the service repeated packet, returning the same first service response packet corresponding to the abnormal times;
if the abnormal type is the type of the service tampering packet, generating a second service tampering response packet, wherein the service data in the second service response packet is tampered;
and if the abnormal type is the service damage packet type, generating a third service damage response packet, wherein the service data in the third service damage packet is lost.
Optionally, the video networking device at least includes a main control device, a sub-control device and a video networking terminal device, and the determining module is configured to:
if the abnormal type is a service packet loss type, the main control device sends a service starting instruction to the video network terminal through the sub-control device at intervals of preset time until receiving a first response result that the video network terminal successfully returns the service;
if the abnormal type is a service repeated packet type, the main control equipment filters the same first service response packet corresponding to the preset abnormal times to obtain a first service response packet;
if the abnormal type is the type of the service tampering packet, the main control equipment analyzes the second service tampering response packet to obtain a second service response packet, the second service response packet is judged, if the content in the second service response packet does not conform to the video networking protocol or the content in the second service response packet is tampered, the main control equipment sends a service starting instruction to the video networking terminal through the sub-control equipment at intervals of preset time until a second response result that the video networking terminal returns the service successfully is received;
if the abnormal type is the service damage packet type, the main control device analyzes a third service damage packet to obtain a third service damage packet, and if the third service damage packet does not conform to the video networking protocol or the content in the third service damage packet is lost, the main control device sends a service starting instruction to the video networking terminal through the sub-control device at intervals of preset time until a third response result that the video networking terminal returns the service successfully is received;
and the main control equipment determines a service execution result corresponding to the abnormal equipment type identifier according to one or more of the first service response result, the first service response packet, the second service response result and the third service response result, wherein the service execution result comprises first service state information of the visual connection equipment.
Optionally, the determining module is configured to:
the service abnormity detection system acquires first service state information of the video equipment in a service execution result;
the service abnormity detection system acquires second service state information of each video connection device in a service record table stored on the main control device;
comparing the first service state information with the second service state information;
and determining that the video equipment has the capability of processing abnormal services according to the first service state information and the second service state information.
Optionally, the abnormal device type identifier at least includes one of a video networking number of the master control device, a video networking number of the slave control device, and a video networking number of the video networking terminal device, and the abnormal device type identifier is used for identifying the abnormal source device; the service identifier at least comprises one of video conference and video telephone.
It should be noted that the respective implementable modes in the present embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present application is not limited thereto.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The abnormal state testing device provided by the embodiment of the invention receives the service abnormality simulation instruction sent by the service abnormality detection terminal, wherein the abnormality simulation instruction comprises an abnormal equipment type identifier, an abnormal type, abnormal times and a service identifier; determining abnormal response information corresponding to the abnormal equipment type identifier according to the service identifier, the abnormal times and the service corresponding to the abnormal type; determining a service execution result corresponding to the abnormal equipment type identifier according to the abnormal response information; and sending the service execution result to a service abnormity detection terminal so that the service abnormity detection terminal determines the capacity of the video equipment corresponding to the abnormal equipment type identifier for processing the abnormal state service according to the service execution result, carrying out abnormal condition simulation detection on each video equipment through a service abnormity detection system, judging the capacity of the video equipment for processing the abnormal condition, and when the abnormal condition occurs in the video networking service process, the video networking service can be normally operated, thereby ensuring the stable operation of the video networking service.
Still another embodiment of the present invention provides a terminal device, configured to execute the abnormal state testing method provided in the foregoing embodiment.
Fig. 6 is a schematic structural diagram of a terminal device of the present invention, and as shown in fig. 6, the terminal device includes: at least one processor 601 and memory 602;
the memory stores a computer program; at least one processor executes a computer program stored in a memory to implement the abnormal state testing method provided by the above-described embodiments.
The terminal device provided in this embodiment receives a service anomaly simulation instruction sent by a service anomaly detection terminal, where the anomaly simulation instruction includes an abnormal device type identifier, an abnormal type, an abnormal frequency, and a service identifier; determining abnormal response information corresponding to the abnormal equipment type identifier according to the service identifier, the abnormal times and the service corresponding to the abnormal type; determining a service execution result corresponding to the abnormal equipment type identifier according to the abnormal response information; and sending the service execution result to a service abnormity detection terminal so that the service abnormity detection terminal determines the capacity of the video equipment corresponding to the abnormal equipment type identifier for processing the abnormal state service according to the service execution result, carrying out abnormal condition simulation detection on each video equipment through a service abnormity detection system, judging the capacity of the video equipment for processing the abnormal condition, and when the abnormal condition occurs in the video networking service process, the video networking service can be normally operated, thereby ensuring the stable operation of the video networking service.
Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed, the abnormal state testing method provided in any one of the above embodiments is implemented.
According to the computer-readable storage medium of the embodiment, by receiving a service anomaly simulation instruction sent by a service anomaly detection terminal, the anomaly simulation instruction includes an abnormal device type identifier, an abnormal type, abnormal times and a service identifier; determining abnormal response information corresponding to the abnormal equipment type identifier according to the service identifier, the abnormal times and the service corresponding to the abnormal type; determining a service execution result corresponding to the abnormal equipment type identifier according to the abnormal response information; and sending the service execution result to a service abnormity detection terminal so that the service abnormity detection terminal determines the capacity of the video equipment corresponding to the abnormal equipment type identifier for processing the abnormal state service according to the service execution result, carrying out abnormal condition simulation detection on each video equipment through a service abnormity detection system, judging the capacity of the video equipment for processing the abnormal condition, and when the abnormal condition occurs in the video networking service process, the video networking service can be normally operated, thereby ensuring the stable operation of the video networking service.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention 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.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, electronic devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing electronic device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing electronic device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing electronic devices to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing electronic device to cause a series of operational steps to be performed on the computer or other programmable electronic device to produce a computer implemented process such that the instructions which execute on the computer or other programmable electronic device provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or electronic device that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or electronic device. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or electronic device that comprises the element.
The above detailed description is provided for an abnormal state testing method and an abnormal state testing apparatus provided by the present invention, and the principle and the implementation manner of the present invention are explained by applying specific examples, and the description of the above examples is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An abnormal state testing method, characterized in that the method comprises:
receiving a service abnormity simulation instruction sent by a service abnormity detection terminal, wherein the service abnormity simulation instruction comprises an abnormal equipment type identifier, an abnormal type, abnormal times and a service identifier;
determining abnormal response information corresponding to the abnormal equipment type identifier according to the service identifier, the abnormal times and the service corresponding to the abnormal type;
determining a service execution result corresponding to the abnormal equipment type identifier according to the abnormal response information;
and sending the service execution result to the service abnormity detection terminal so that the service abnormity detection terminal determines the capacity of the video equipment corresponding to the abnormal equipment type identifier for processing abnormal state service according to the service execution result.
2. The method according to claim 1, wherein the determining, according to the service identifier, the abnormal number of times, and the service corresponding to the abnormal type, the abnormal response information corresponding to the abnormal device type identifier includes:
if the abnormal type is a service packet loss type, a service response packet is not returned;
if the abnormal type is a service repeated packet type, returning the same first service response packet corresponding to the abnormal times;
if the abnormal type is the type of the service tampering packet, generating a second service tampering response packet, wherein the service data in the second service response packet is tampered;
and if the abnormal type is the service damage packet type, generating a third service damage response packet, wherein the service data in the third service damage packet is lost.
3. The method according to claim 2, wherein the visual connection device at least includes a main control device, a sub-control device and a visual connection terminal device, and the determining, according to the abnormal response information, a service execution result corresponding to the abnormal device type identifier includes:
if the abnormal type is a service packet loss type, the main control device sends a service starting instruction to the video network terminal at preset time intervals through the sub-control device until receiving a first response result that the video network terminal successfully returns the service;
if the abnormal type is a service repeated packet type, the master control device filters the same first service response packet corresponding to the preset abnormal times to obtain one first service response packet;
if the abnormal type is a service tampering packet type, the main control device analyzes the second service tampering response packet to obtain a second service response packet, judges the second service response packet, and if the content in the second service response packet does not conform to the video networking protocol or the content in the second service response packet is tampered, the main control device sends a service starting instruction to the video networking terminal through the sub-control device at preset intervals until a second response result that the video networking terminal returns the service successfully is received;
if the abnormal type is a service damage packet type, the main control device analyzes the third service damage packet to obtain a third service damage packet, and if the third service damage packet does not conform to a video networking protocol or the content in the third service damage packet is lost, the main control device sends a service starting instruction to a video networking terminal through a sub-control device at intervals of preset time until a third response result that the video networking terminal returns the service successfully is received;
and the master control equipment determines the service execution result corresponding to the abnormal equipment type identifier according to one or more of the first service response result, the first service response packet, the second service response result and the third service response result, wherein the service execution result comprises first service state information of the video connection equipment.
4. The method according to claim 1, wherein the determining, by the service anomaly detection terminal, the capability of the visual connection device corresponding to the abnormal device type identifier to process the abnormal service according to the service execution result includes:
the service abnormity detection system acquires first service state information of the video equipment in the service execution result;
the service abnormity detection system acquires second service state information of each video connection device in a service record table stored on the main control device;
comparing the first service state information with the second service state information;
and determining that the video connection equipment has the capability of processing abnormal services according to the first service state information and the second service state information.
5. The method according to any one of claims 1 to 4, wherein the abnormal device type identifier includes at least one of an internet-of-view number of a master control device, an internet-of-view number of a slave control device, and an internet-of-view number of an internet-of-view terminal device, and the abnormal device type identifier is used to determine to identify an abnormal source device; the service identifier at least comprises one of a video conference and a video telephone.
6. An abnormal state testing apparatus, comprising:
the receiving module is used for receiving a service abnormity simulation instruction sent by a service abnormity detection terminal, wherein the service abnormity simulation instruction comprises an abnormal equipment type identifier, an abnormal type, abnormal times and a service identifier;
the response module is used for determining abnormal response information corresponding to the abnormal equipment type identifier according to the service identifier, the abnormal times and the service corresponding to the abnormal type;
the determining module is used for determining a service execution result corresponding to the abnormal equipment type identifier according to the abnormal response information;
and the judging module is used for sending the service execution result to the service abnormity detection terminal so that the service abnormity detection terminal determines the capacity of the visual connection equipment corresponding to the abnormal equipment type identifier for processing abnormal state service according to the service execution result.
7. The apparatus of claim 6, wherein the response module is configured to:
if the abnormal type is a service packet loss type, a service response packet is not returned;
if the abnormal type is a service repeated packet type, returning the same first service response packet corresponding to the abnormal times;
if the abnormal type is the type of the service tampering packet, generating a second service tampering response packet, wherein the service data in the second service response packet is tampered;
and if the abnormal type is the service damage packet type, generating a third service damage response packet, wherein the service data in the third service damage packet is lost.
8. The apparatus according to claim 7, wherein the visual connection device at least includes a main control device, a sub-control device and a visual connection terminal device, and the determining module is configured to:
if the abnormal type is a service packet loss type, the main control device sends a service starting instruction to the video network terminal at preset time intervals through the sub-control device until receiving a first response result that the video network terminal successfully returns the service;
if the abnormal type is a service repeated packet type, the master control device filters the same first service response packet corresponding to the preset abnormal times to obtain one first service response packet;
if the abnormal type is a service tampering packet type, the main control device analyzes the second service tampering response packet to obtain a second service response packet, judges the second service response packet, and if the content in the second service response packet does not conform to the video networking protocol or the content in the second service response packet is tampered, the main control device sends a service starting instruction to the video networking terminal through the sub-control device at preset intervals until a second response result that the video networking terminal returns the service successfully is received;
if the abnormal type is a service damage packet type, the main control device analyzes the third service damage packet to obtain a third service damage packet, and if the third service damage packet does not conform to a video networking protocol or the content in the third service damage packet is lost, the main control device sends a service starting instruction to a video networking terminal through a sub-control device at intervals of preset time until a third response result that the video networking terminal returns the service successfully is received;
and the master control equipment determines the service execution result corresponding to the abnormal equipment type identifier according to one or more of the first service response result, the first service response packet, the second service response result and the third service response result, wherein the service execution result comprises first service state information of the video connection equipment.
9. A terminal device, comprising: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the memory-stored computer program to implement the abnormal state testing method of any of claims 1-5.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when executed, implements the abnormal state testing method of any one of claims 1-5.
CN202110930426.7A 2021-08-13 2021-08-13 Abnormal state testing method and device, terminal equipment and storage medium Pending CN113708993A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110930426.7A CN113708993A (en) 2021-08-13 2021-08-13 Abnormal state testing method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110930426.7A CN113708993A (en) 2021-08-13 2021-08-13 Abnormal state testing method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113708993A true CN113708993A (en) 2021-11-26

Family

ID=78653100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110930426.7A Pending CN113708993A (en) 2021-08-13 2021-08-13 Abnormal state testing method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113708993A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114268957A (en) * 2021-11-30 2022-04-01 中国联合网络通信集团有限公司 Abnormal business data processing method, device, server and storage medium
CN115278357A (en) * 2022-07-06 2022-11-01 海南乾唐视联信息技术有限公司 Data processing method, data processing apparatus, communication apparatus, and storage medium
CN115529231A (en) * 2022-09-27 2022-12-27 青岛海信智慧生活科技股份有限公司 Method and related device for determining abnormal user equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030069010A1 (en) * 2001-10-10 2003-04-10 Srinivasa Eravelli Systems and techniques for testing a communications device
US20050268170A1 (en) * 2004-05-11 2005-12-01 International Business Machines Corporation Control method, system, and program product employing an embedded mechanism for testing a system's fault-handling capability
US20090132877A1 (en) * 2005-09-23 2009-05-21 At&T Intellectual Property Ii, L.P. Method for Embedded Integrated End-to-End Testing
CN101582844A (en) * 2009-06-29 2009-11-18 江苏金智科技股份有限公司 Negative testing method applicable to standard and digital relay protective devices
CN104090839A (en) * 2014-07-02 2014-10-08 中国银行股份有限公司 Simulation test method and device for abnormal scene
CN105259561A (en) * 2015-11-24 2016-01-20 郑州威科姆科技股份有限公司 Device and method for testing exception handling ability of satellite time synchronization device
CN106339302A (en) * 2016-08-22 2017-01-18 腾讯科技(深圳)有限公司 Test method and device for client
US10684940B1 (en) * 2018-09-18 2020-06-16 Amazon Technologies, Inc. Microservice failure modeling and testing
CN112214411A (en) * 2020-10-20 2021-01-12 腾讯科技(深圳)有限公司 Disaster recovery system testing method, device, equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030069010A1 (en) * 2001-10-10 2003-04-10 Srinivasa Eravelli Systems and techniques for testing a communications device
US20050268170A1 (en) * 2004-05-11 2005-12-01 International Business Machines Corporation Control method, system, and program product employing an embedded mechanism for testing a system's fault-handling capability
US20090132877A1 (en) * 2005-09-23 2009-05-21 At&T Intellectual Property Ii, L.P. Method for Embedded Integrated End-to-End Testing
CN101582844A (en) * 2009-06-29 2009-11-18 江苏金智科技股份有限公司 Negative testing method applicable to standard and digital relay protective devices
CN104090839A (en) * 2014-07-02 2014-10-08 中国银行股份有限公司 Simulation test method and device for abnormal scene
CN105259561A (en) * 2015-11-24 2016-01-20 郑州威科姆科技股份有限公司 Device and method for testing exception handling ability of satellite time synchronization device
CN106339302A (en) * 2016-08-22 2017-01-18 腾讯科技(深圳)有限公司 Test method and device for client
US10684940B1 (en) * 2018-09-18 2020-06-16 Amazon Technologies, Inc. Microservice failure modeling and testing
CN112214411A (en) * 2020-10-20 2021-01-12 腾讯科技(深圳)有限公司 Disaster recovery system testing method, device, equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114268957A (en) * 2021-11-30 2022-04-01 中国联合网络通信集团有限公司 Abnormal business data processing method, device, server and storage medium
CN114268957B (en) * 2021-11-30 2023-07-04 中国联合网络通信集团有限公司 Abnormal business data processing method, device, server and storage medium
CN115278357A (en) * 2022-07-06 2022-11-01 海南乾唐视联信息技术有限公司 Data processing method, data processing apparatus, communication apparatus, and storage medium
CN115278357B (en) * 2022-07-06 2024-07-12 海南乾唐视联信息技术有限公司 Data processing method, device, communication device and storage medium
CN115529231A (en) * 2022-09-27 2022-12-27 青岛海信智慧生活科技股份有限公司 Method and related device for determining abnormal user equipment

Similar Documents

Publication Publication Date Title
CN113708993A (en) Abnormal state testing method and device, terminal equipment and storage medium
CN113259351B (en) Intrusion detection method, device, storage medium and electronic equipment
CN108173813B (en) Vulnerability detection method and device
JP2018508072A (en) Method and apparatus for pushing messages
CN107800783B (en) Method and device for remotely monitoring server
CN110620685A (en) Method and device for reporting device exception
CN112235161A (en) Camera network protocol fuzzy test method based on FSM
CN112713996B (en) Block chain-based fault verification method, server and terminal
CN111143844B (en) Safety detection method and system for Internet of things equipment and related device
CN113360752A (en) Message pushing method, device, equipment and readable medium
CN112583659A (en) Method and device for detecting network state of video network, terminal equipment and storage medium
CN112671603A (en) Fault detection method and server
CN104601578A (en) Recognition method and device for attack message and core device
CN113645103B (en) Method and device for detecting communication link abnormity between video monitoring platform and front-end equipment
CN114443334A (en) Method and device for reproducing fault information, equipment for reproducing fault and storage medium
CN113765745A (en) Service performance testing method and device, terminal equipment and storage medium
JP2004248192A (en) CONTROL SEQUENCE GENERATING METHOD IN VoIP SERVICE, TESTING METHOD USING THE SAME, TESTING AND CAPTURING DEVICE USED FOR TESTING METHOD AND COMPUTER PROGRAM FOR IMPLEMENTING TESTING AND CAPTURING DEVICE
CN115174245A (en) Test method and system based on DoIP protocol detection
WO2017107462A1 (en) P2p network-based data processing method, apparatus and system
CN113852984A (en) Wireless terminal access monitoring system and method, electronic equipment and readable storage device
CN112004161A (en) Processing method and device of address resources, terminal equipment and storage medium
CN115396883A (en) Network data security processing method and system
CN111193624A (en) Data packet transmission method and device, terminal equipment and storage medium
CN111885097A (en) Network card processing method and device, electronic equipment and storage medium
KR101680736B1 (en) Process for checking status of network device

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