Abnormal state testing method, device, terminal equipment and storage medium
By simulating the abnormal state test method in the video network device, the problem that the video network device cannot handle packet loss and repacket when network abnormalities are encountered is solved, and the stable operation of video network services and the improvement of customer experience is achieved.
Patent Information
- Application Number
- CN202110930426.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-13
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2041-08-13
AI Technical Summary
In the field of video networking, video network devices may experience packet loss and repacket problems when network abnormalities or data links are unsafe, resulting in video networking services that cannot proceed normally and affect customer experience.
An exception state testing method is provided, by receiving service exception simulation instructions sent by the service exception detection terminal, simulate different types of abnormal scenarios (such as packet loss, duplicate packet, tampering packet, and corrupt packet), and determine the service execution result based on the exception response information, and judge the ability of the visual connection device to handle abnormal states.
By simulating abnormal scenarios, potential problems can be discovered and solved in the video network business process, ensuring the stable operation of video network business and improving customer experience.
Smart Images

Figure CN113708993B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of visual networking technology, and in particular to an abnormal state testing method, device, terminal equipment and storage medium. Background Art
[0002] In the field of visual networking, visual networking equipment is usually used to perform visual networking services. The visual networking equipment includes at least a main control device, a sub-control device and a terminal device. In the process of the visual networking equipment performing services, packet loss, packet duplication and other problems may occur due to network abnormalities or insecure data links. In this way, the visual networking equipment may not be able to handle the problem or handle it incorrectly, which will cause the visual networking service to be unable to proceed normally, thereby interrupting the visual networking service. If the above problems occur when the customer uses the visual networking equipment, it will not only affect the normal operation of the business, but also affect the customer's experience. Therefore, how to ensure that the visual networking equipment can work normally before leaving the factory is an urgent problem to be solved. Summary of the invention
[0003] 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 the above problems or at least partially solve the above problems.
[0004] In a first aspect, an embodiment of the present invention provides an abnormal state testing method, the method comprising:
[0005] Receiving a service anomaly simulation instruction sent by a service anomaly detection terminal, wherein the service anomaly simulation instruction includes an abnormal device type identifier, an abnormal type, an abnormal number of times, and a service identifier;
[0006] Determine, according to the service identifier, the number of exceptions, and the service corresponding to the exception type, the exception response information corresponding to the abnormal device type identifier;
[0007] Determine, according to the abnormal response information, a service execution result corresponding to the abnormal device type identifier;
[0008] The service execution result is sent to the service anomaly detection terminal, so that the service anomaly detection terminal determines the ability of the visual connection device corresponding to the abnormal device type identifier to process abnormal state services according to the service execution result.
[0009] Optionally, determining the abnormal response information corresponding to the abnormal device type identifier according to the service identifier, the abnormal number of times and the service corresponding to the abnormal type includes:
[0010] If the exception type is a service packet loss type, no service response packet is returned;
[0011] If the exception type is a service repetition packet type, returning the same first service response packet corresponding to the number of exceptions;
[0012] If the exception type is a service tampering packet type, generating a second service tampering response packet, wherein the service data in the second service response packet is tampered with;
[0013] If the exception type is a service damage packet type, a third service damage response packet is generated, wherein the service data in the third service damage packet is lost.
[0014] Optionally, the visual networking device includes at least a main control device, a sub-control device and a visual networking terminal device, and the determining, according to the abnormal response information, a service execution result corresponding to the abnormal device type identifier includes:
[0015] If the abnormal type is a service packet loss type, the main control device sends a service start instruction to the visual network terminal through the sub-control device at preset intervals until a first response result indicating a successful service is received from the visual network terminal;
[0016] If the exception type is a service duplication packet type, the main control device filters the same first service response packets corresponding to the preset number of exceptions to obtain one first service response packet;
[0017] If the abnormal type is a service tampering packet type, the main control device parses the second service tampering response packet to obtain a second service response packet, and judges the second service response packet. If the content in the second service response packet does not comply with the visual networking protocol or the content in the second service response packet is tampered with, the main control device sends a service start instruction to the visual networking terminal through the sub-control device at a preset time until receiving a second response result indicating that the visual networking terminal returns a successful service.
[0018] If the abnormal type is a service damage packet type, the main control device parses the third service damage packet to obtain a third service damage packet. If the third service damage packet does not comply with the visual networking protocol or the content in the third service damage packet is lost, the main control device sends a service start instruction to the visual networking terminal through the sub-control device at a preset time interval until a third response result indicating a successful service is received from the visual networking terminal;
[0019] The main control device determines the service execution result corresponding to the abnormal device type identifier based on one or more of the first service response result, the first service response package, the second service response result and the third service response result, wherein the service execution result includes the first service status information of the visual device.
[0020] Optionally, the service anomaly detection terminal determines, according to the service execution result, the capability of the video connection device corresponding to the abnormal device type identifier to process the abnormal service, including:
[0021] The service anomaly detection system obtains first service status information of the visual connection device in the service execution result;
[0022] The service anomaly detection system obtains the second service status information of each visual connection device in the service record table stored on the main control device;
[0023] comparing the first service status information with the second service status information;
[0024] According to the first service status information and the second service status information, it is determined that the video connection device has the ability to handle abnormal services.
[0025] Optionally, the abnormal device type identifier includes at least one of the visual network number of the main control device, the visual network number of the sub-control device and the visual network number of the visual network terminal device, and the abnormal device type identifier is used to determine the identification of the abnormal source device; the service identifier includes at least one of video conferencing and video calling.
[0026] In a second aspect, an embodiment of the present invention provides an abnormal state testing device, the device comprising:
[0027] A receiving module, used to receive a service anomaly simulation instruction sent by a service anomaly detection terminal, wherein the service anomaly simulation instruction includes an abnormal device type identifier, an abnormal type, an abnormal number of times, and a service identifier;
[0028] A response module, configured to determine, according to the service identifier, the number of exceptions and the service corresponding to the exception type, the exception response information corresponding to the abnormal device type identifier;
[0029] A determination module, configured to determine a service execution result corresponding to the abnormal device type identifier according to the abnormal response information;
[0030] The judgment module is used to send the service execution result to the service anomaly detection terminal, so that the service anomaly detection terminal determines the ability of the visual connection device corresponding to the abnormal device type identifier to process abnormal state services according to the service execution result.
[0031] Optionally, the response module is used to:
[0032] If the exception type is a service packet loss type, no service response packet is returned;
[0033] If the exception type is a service repetition packet type, returning the same first service response packet corresponding to the number of exceptions;
[0034] If the exception type is a service tampering packet type, generating a second service tampering response packet, wherein the service data in the second service response packet is tampered with;
[0035] If the exception type is a service damage packet type, a third service damage response packet is generated, wherein the service data in the third service damage packet is lost.
[0036] Optionally, the visual networking device at least includes a main control device, a sub-control device and a visual networking terminal device, and the determination module is used to:
[0037] If the abnormal type is a service packet loss type, the main control device sends a service start instruction to the visual network terminal through the sub-control device at preset intervals until a first response result indicating a successful service is received from the visual network terminal;
[0038] If the exception type is a service duplication packet type, the main control device filters the same first service response packets corresponding to the preset number of exceptions to obtain one first service response packet;
[0039] If the abnormal type is a service tampering packet type, the main control device parses the second service tampering response packet to obtain a second service response packet, and judges the second service response packet. If the content in the second service response packet does not comply with the visual networking protocol or the content in the second service response packet is tampered with, the main control device sends a service start instruction to the visual networking terminal through the sub-control device at a preset time until receiving a second response result indicating that the visual networking terminal returns a successful service.
[0040] If the abnormal type is a service damage packet type, the main control device parses the third service damage packet to obtain a third service damage packet. If the third service damage packet does not comply with the visual networking protocol or the content in the third service damage packet is lost, the main control device sends a service start instruction to the visual networking terminal through the sub-control device at a preset time interval until a third response result indicating a successful service is received from the visual networking terminal;
[0041] The main control device determines the service execution result corresponding to the abnormal device type identifier based on one or more of the first service response result, the first service response package, the second service response result and the third service response result, wherein the service execution result includes the first service status information of the visual device.
[0042] Optionally, the judging module is used to:
[0043] The service anomaly detection system obtains first service status information of the visual connection device in the service execution result;
[0044] The service anomaly detection system obtains the second service status information of each visual connection device in the service record table stored on the main control device;
[0045] comparing the first service status information with the second service status information;
[0046] According to the first service status information and the second service status information, it is determined that the video connection device has the ability to handle abnormal services.
[0047] Optionally, the abnormal device type identifier includes at least one of the visual network number of the main control device, the visual network number of the sub-control device and the visual network number of the visual network terminal device, and the abnormal device type identifier is used to determine the identification of the abnormal source device; the service identifier includes at least one of video conferencing and video calling.
[0048] In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and a memory;
[0049] The memory stores a computer program; the at least one processor executes the computer program stored in the memory to implement the abnormal state testing method provided in the first aspect.
[0050] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed, the abnormal state testing method provided in the first aspect is implemented.
[0051] The embodiments of the present invention include the following advantages:
[0052] The abnormal state testing method, apparatus, terminal device and storage medium provided in the embodiments of the present invention receive a business abnormality simulation instruction sent by a business abnormality detection terminal, wherein the abnormal simulation instruction includes an abnormal device type identifier, an abnormality type, an abnormal number of times and a business identifier; determine the abnormal response information corresponding to the abnormal device type identifier according to the business identifier, the abnormal number of times and the business corresponding to the abnormal type; determine the business execution result corresponding to the abnormal device type identifier according to the abnormal response information; send the business execution result to the business abnormality detection terminal, so that the business abnormality detection terminal determines the ability of the visual device corresponding to the abnormal device type identifier to handle the abnormal state business according to the business execution result, performs abnormal situation simulation detection on each visual device through the business abnormality detection system, judges the ability of the visual device to handle the abnormal situation, and when the abnormal situation occurs in the visual network business process, can carry out normal business, thereby ensuring the stable operation of the visual network business. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 is a flowchart of the steps of an abnormal state testing method embodiment of the present invention;
[0054] Figure 2 is a flowchart of another abnormal state testing method embodiment of the present invention;
[0055] Figure 3 is a structural schematic diagram of an abnormal state testing system embodiment of the present invention;
[0056] Figure 4 is a flowchart of steps of another abnormal state testing method embodiment of the present invention;
[0057] Figure 5 is a structural block diagram of an abnormal state testing device embodiment of the present invention;
[0058] Figure 6 It is a structural schematic diagram of a terminal device of the present invention. DETAILED DESCRIPTION
[0059] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0060] The visual Internet is an important milestone in the development of the Internet. It is a real-time network that can realize real-time transmission of high-definition video and push many Internet applications towards high-definition video and high-definition face-to-face communication.
[0061] The visual network adopts real-time high-definition video exchange technology. It can integrate the required services such as high-definition video conferencing, video monitoring, intelligent monitoring analysis, emergency command, digital radio and television, delayed TV, online teaching, live broadcast, VOD on demand, TV mail, personalized recording (PVR), intranet (self-operated) channels, intelligent video broadcast control, information release and dozens of other video, voice, picture, text, communication, data and other services on a single system platform, and realize high-definition quality video playback through TV or computer.
[0062] Based on the above characteristics of the visual network, one of the core concepts of an embodiment of the present invention is proposed. In accordance with the protocol of the visual network, a business anomaly simulation instruction sent by a business anomaly detection terminal is received, and the anomaly simulation instruction includes an abnormal device type identifier, an anomaly type, an anomaly number and a business identifier; according to the business identifier, the anomaly number and the business corresponding to the anomaly type, the anomaly response information corresponding to the abnormal device type identifier is determined; according to the anomaly response information, the business execution result corresponding to the abnormal device type identifier is determined; the business execution result is sent to the business anomaly detection terminal, so that the business anomaly detection terminal determines the ability of the visual device corresponding to the abnormal device type identifier to handle abnormal state business according to the business execution result, and performs abnormal situation simulation detection on each visual device through the business anomaly detection system to judge the ability of the visual device to handle abnormal situations. When the abnormal situation occurs in the process of the visual network business, normal business can be carried out to ensure the stable operation of the visual network business.
[0063] The glossary is explained as follows:
[0064] Visual connection equipment: terminal equipment (Qiming, Jiguang, etc.), main control equipment and sub-control equipment of the core server, conference management server, network management server, etc.
[0065] An embodiment of the present invention provides an abnormal state test method for performing a state detection on a video connection device. The execution subject of this embodiment is an abnormal state test device, which is arranged on the video connection device.
[0066] Reference Figure 1 , shows a flowchart of an abnormal state testing method embodiment of the present invention, the method may specifically include the following steps:
[0067] S101, receiving a service anomaly simulation instruction sent by a service anomaly detection terminal, where the service anomaly simulation instruction includes an abnormal device type identifier, an abnormality type, an abnormality number, and a service identifier;
[0068] Specifically, in visual network services, visual network devices often experience abnormal scenarios such as service packet loss, service packet duplication, service tampering packets, and service damaged packets. Since the visual network devices are unable to handle or handle these scenarios incorrectly, the visual network services are interrupted. In this regard, an embodiment of the present invention provides an abnormal state testing method, which is applied to an abnormal state testing system. The abnormal state testing system is installed on a service anomaly detection terminal. The service anomaly detection terminal is used to issue service anomaly simulation instructions to simulate various abnormal scenarios, such as service packet loss, service duplication, etc.
[0069] The service anomaly detection terminal sends a service anomaly simulation instruction to the visual device, and the service anomaly simulation instruction includes an abnormal device type identifier, an abnormal type, an abnormal number of times and a service identifier, wherein the abnormal device type identifier includes at least one of the visual network number of the main control device, the visual network number of the sub-control device and the visual network number of the visual network terminal device, and the abnormal device type identifier is used to determine the identification of the abnormal source device; that is, the service anomaly detection terminal wants to perform an abnormal simulation detection on which visual device, and the identifier of which visual device is included in the service anomaly simulation instruction, and the abnormal type includes at least: a service packet loss type, a service duplication packet type, a service tampering packet type or a service damage packet type, and the service identifier includes at least one of video conferencing and videophone.
[0070] For example, if you want to perform abnormal simulation detection on the main control device of the video connection device, the abnormal device type identifier is the main control device identifier; if you want to perform abnormal simulation detection on the sub-control device of the video connection device, the abnormal device type identifier is the sub-control device identifier; if you want to perform abnormal simulation detection on the terminal device of the video connection device, the abnormal device type identifier is the terminal device identifier;
[0071] If the business anomaly simulation instruction may include the main control device identification, business packet loss, 3 times and start of the meeting, that is to say, the business anomaly detection terminal controls the main control device to execute the start of the meeting instruction, and the first 3 data packets are subjected to packet loss processing, that is, the main control device performs packet loss processing on the data packets and cannot send them to the sub-control device, nor can the terminal device be added to the meeting. When 3 data packets are lost, the main control device continues to send data packets to the sub-control device to allow the terminal device to join the meeting.
[0072] S102, determining the abnormal response information corresponding to the abnormal device type identifier according to the service identifier, the number of abnormalities, and the service corresponding to the abnormal type;
[0073] Specifically, the visual device determines the abnormal response information corresponding to the abnormal device type identifier according to the service identifier, the number of abnormalities and the service corresponding to the abnormal type in different abnormality scenarios;
[0074] Exemplarily, if the abnormality type is a service packet loss type: the video connection device does not return a service response packet to the service abnormality detection terminal;
[0075] If the exception type is a service repetition packet type: the video connection device returns the same service response packet corresponding to the number of exceptions. For example, if the number of exceptions is 4, the video connection device generates 4 identical service response packets.
[0076] That is to say, the abnormal response information corresponds to the abnormal device type identifier, for example, the master control device corresponds to the abnormal response information of the master control, the sub-control device corresponds to the abnormal response information of the sub-control, etc.; the abnormal response information may be not returning a business response packet, returning multiple response packets, returning a business tampering response packet, or returning a business damage response packet.
[0077] S103, determining the service execution result corresponding to the abnormal device type identifier according to the abnormal response information;
[0078] Specifically, the visual terminal determines the service execution result corresponding to the main control device, sub-control device or terminal device according to the abnormal response information in different scenarios;
[0079] For example, for a terminal device, if the terminal device performs packet loss processing and the main control device does not receive a response to the terminal device's joining result, the main control device will notify the terminal device to join the meeting again after a specified period of time until receiving a response result of successful joining from the terminal device. The main control device records the service status of each terminal device, for example, in some cases, the terminal device fails to join the meeting, and in some cases, the terminal device succeeds in joining the meeting.
[0080] If the terminal device performs service duplicate packet processing, and the main control device receives multiple identical response packets, the main control device processes the first response packet and discards the other response packets without processing. In this case, the terminal device can also join the conference successfully.
[0081] In an embodiment of the present invention, the main control device records the service execution results of each video connection device in different abnormal scenarios, such as service success or service failure.
[0082] S104. Send the service execution result to the service anomaly detection terminal, so that the service anomaly detection terminal determines the capability of the video connection device corresponding to the abnormal device type identifier to process the abnormal state service according to the service execution result.
[0083] Specifically, the visual device sends the service execution result to the service anomaly detection terminal. In this way, the service anomaly detection terminal can also obtain the service status of each visual device from the main control device in the visual device, and then compare the service status with the service execution result to determine whether the processing of each visual device in response to abnormal scenarios is correct, and determine the ability of the main control device, sub-control device or terminal device to handle abnormal status services.
[0084] The abnormal state testing method provided by the embodiment of the present invention receives a business abnormality simulation instruction sent by a business abnormality detection terminal, where the abnormal simulation instruction includes an abnormal device type identifier, an abnormality type, a number of abnormalities and a business identifier; determines the abnormal response information corresponding to the abnormal device type identifier according to the business identifier, the number of abnormalities and the business corresponding to the abnormal type; determines the business execution result corresponding to the abnormal device type identifier according to the abnormal response information; sends the business execution result to the business abnormality detection terminal, so that the business abnormality detection terminal determines the ability of the visual device corresponding to the abnormal device type identifier to handle the abnormal state business according to the business execution result, performs abnormal situation simulation detection on each visual device through the business abnormality detection system, judges the ability of the visual device to handle the abnormal situation, and when the abnormal situation occurs in the visual network business process, can carry out normal business, thereby ensuring the stable operation of the visual network business.
[0085] Another embodiment of the present invention further supplements the abnormal state testing method provided in the above embodiment.
[0086] like Figure 2 FIG. 1 is a flowchart showing another abnormal state testing method embodiment of the present invention, wherein the abnormal state testing method comprises:
[0087] S201, receiving a service anomaly simulation instruction sent by a service anomaly detection terminal, where the anomaly simulation instruction includes an abnormal device type identifier, an abnormality type, an abnormality number, and a service identifier;
[0088] Specifically, the abnormal device type identifier includes at least one of the visual network number of the main control device, the visual network number of the sub-control device and the visual network number of the visual network terminal device. The abnormal device type identifier is used to identify the abnormal source device; the service identifier includes at least one of video conferencing and video calling.
[0089] Since step S202 is Figure 1 The step S101 in the illustrated embodiment is the same. Figure 1 Step S101 has been described in detail in the specification, so step S202 will not be described again here.
[0090] S202, determining the abnormal response information corresponding to the abnormal device type identifier according to the service identifier, the number of abnormalities, and the service corresponding to the abnormal type;
[0091] Specifically, the visual device determines the abnormal response information corresponding to the abnormal device type identifier according to the service identifier, the number of abnormalities and the service corresponding to the abnormal type in different abnormality scenarios;
[0092] As an optional implementation method, if the abnormality type is a service packet loss type, no service response packet is returned; that is, the visual connection device does not return a service response packet to the service abnormality detection terminal;
[0093] As another optional implementation, if the exception type is a service repetition packet type, the same first service response packet corresponding to the number of exceptions is returned;
[0094] As another optional implementation, if the exception type is a service tampering packet type, a second service tampering response packet is generated, wherein service data in the second service response packet is tampered;
[0095] As another optional implementation, if the exception type is a service damage packet type, a third service damage response packet is generated, wherein service data in the third service damage packet is lost.
[0096] S2031. If the abnormal type is a service packet loss type, the main control device sends a service start instruction to the visual network terminal through the sub-control device at preset intervals until a first response result indicating a successful service is received from the visual network terminal;
[0097] S2032: If the exception type is a service duplication packet type, the master control device filters the same first service response packets corresponding to a preset number of exceptions to obtain a first service response packet;
[0098] S2033. If the abnormal type is a service tampering packet type, the master control device parses the second service tampering response packet to obtain a second service response packet, and judges the second service response packet. If the content in the second service response packet does not comply with the visual networking protocol or the content in the second service response packet is tampered with, the master control device sends a service start instruction to the visual networking terminal through the sub-control device at a preset time interval until receiving a second response result indicating that the service is successful from the visual networking terminal;
[0099] For example, taking the terminal device as an example, the main control device receives the tampered response packet returned by the terminal, and the main control device parses the response packet. If the content in the response packet does not conform to the visual network protocol, the parsing fails, and it is considered that the terminal device has failed to join the meeting. The main control device will notify the terminal to join the meeting again after a specified period of time until it receives a successful response result returned by the terminal device;
[0100] If the tampered response packet complies with the visual networking protocol, the main control device determines whether the response packet data has been tampered with based on the data in the sent service packet. If tampering is found, the terminal will be notified again to join the meeting after a specified period of time. Key parameters include: terminal device number, service type, service ID, whether there is a service processing result parameter (0 means success, other means failure), etc.
[0101] S2034. If the abnormal type is a service damage packet type, the main control device parses the third service damage packet to obtain the third service damage packet. If the third service damage packet does not comply with the visual networking protocol or the content in the third service damage packet is lost, the main control device sends a service start instruction to the visual networking terminal through the sub-control device at a preset time until a third response result indicating service success is received from the visual networking terminal.
[0102] Exemplarily, the main control device receives a damaged response packet returned by the terminal, and the main control device fails to parse it according to the visual networking protocol, and then notifies the terminal device to join the meeting again after a specified period of time;
[0103] The main control device notifies the terminal device to join the meeting again after a specified period of time. If the terminal device returns a successful joining, the main control device returns a terminal conference status notification to the abnormal simulation system. The main parameters include: operation code (terminal joining notification), terminal device number, conference global identifier, conference name, terminal status (in meeting), etc.
[0104] S204. The main control device determines the 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 package, the second service response result, and the third service response result, wherein the service execution result includes the first service status information of the visual connection device.
[0105] S205, the service anomaly detection system obtains first service status information of the visual connection device in the service execution result;
[0106] S206, the service anomaly detection system obtains the second service status information of each visual connection device in the service record table stored on the main control device;
[0107] S207, the service anomaly detection system compares the first service status information with the second service status information;
[0108] S208. If the first service status information and the second service status information are different, the service anomaly detection system determines that the video connection device has the ability to process abnormal services.
[0109] Specifically, the main control device eventually returns two response packets, "start conference response result" and "terminal conference status notification", to the business anomaly detection system; if the start conference response result is successful, the conference joining result of the participating terminal device is counted according to the terminal conference status notification, that is, the first business status information;
[0110] At the same time, the business anomaly detection system obtains the business status of the participating terminal device, that is, the first business status information, and compares it with the second business status information of each participating terminal recorded in the conference list on the main control device. If there is a difference, it means that the video connection device has processed incorrectly in the above-mentioned abnormal scenario; if the two are the same, it means that the video connection device has processed correctly in the above-mentioned abnormal scenario and the video connection device has a strong ability to handle abnormal business.
[0111] Figure 3 FIG. 1 is a schematic diagram of the structure of an abnormal state test system embodiment of the present invention. Figure 3 As shown, the abnormal state test system includes a business anomaly detection terminal and a visual connection device, wherein the visual connection device includes a main control device, a sub-control device and a terminal device. A business anomaly detection system is installed on the business anomaly detection terminal, and various simulation scenarios can be customized for the visual connection device. The visual connection device simulates the set abnormal scenarios during the business process. The business anomaly detection system obtains data of random length and sends it to the corresponding business receiving device. The business anomaly detection system counts the business processing results returned by each receiving device; the business anomaly detection system notifies the tested device to take effect on the simulated anomaly, and initiates a visual connection service for the tested device. The tested device starts the service and performs an abnormal simulation according to the effective simulation scenario. The business anomaly detection system counts the business processing results of the visual connection device and determines the ability of different visual connection devices to handle abnormal state services.
[0112] Figure 4 FIG. 1 is a flowchart of another abnormal state testing method embodiment of the present invention. Figure 4 As shown, the abnormal state testing method includes:
[0113] 1. The business anomaly detection system is connected to the core server through TCP socket, and logs in to the core server using the account registered on the core server; the core server includes the main control device and the sub-control device;
[0114] 2. The service anomaly detection system encapsulates the service anomaly simulation instruction to notify the device that needs to simulate the anomaly, such as the main control device, sub-control device or terminal device. The instruction package follows the visual network protocol. The main parameters include: operation code (service anomaly simulation), anomaly type, number of anomalies, service identification, list of terminal devices that need to simulate anomalies, etc.; anomaly types mainly include: service packet loss, service duplication packet, service tampering packet, service damage packet, etc.; number of anomalies: indicates the number of times the device simulates the anomaly, and returns to normal after exceeding the number of times;
[0115] 3. After receiving the service abnormality simulation instruction, the main control device forwards it to the sub-control device corresponding to the receiving terminal device, and finally the sub-control device notifies the receiving terminal device.
[0116] 4. After receiving the service anomaly simulation instruction, the terminal device saves and takes effect, and returns the setting result response package to the service anomaly detection system;
[0117] 5. The business anomaly detection system encapsulates the business package to detect whether the settings are effective. The business package follows the visual network protocol. The business package is forwarded to the sub-control device through the main control device, and then sent to the terminal device by the sub-control device to pull up the business;
[0118] 6. After receiving the service package, the terminal device detects whether to simulate abnormal services and whether the number of simulations, i.e. the number of abnormalities, exceeds the set number:
[0119] If abnormal business is not simulated or the number of simulations exceeds the set number, normal business will be performed;
[0120] Simulate packet loss: The terminal device starts the service but does not return the service result response packet to the main control device;
[0121] Simulate repeated service packets: The terminal device starts the service and returns multiple identical service response packets to the main control device;
[0122] Simulate service tampering packet: The terminal device starts the service and returns a service response packet with tampered content to the main control device;
[0123] Simulate a damaged service packet: The terminal device starts the service and returns an incomplete service response packet to the main control device;
[0124] 7. The main control device receives the service response packet returned by the terminal device and performs corresponding service processing according to the service response packet result. Taking the start of conference service as an example, the main control device notifies the terminal device to join the conference:
[0125] 7-1) Packet loss of terminal device: The main control device does not receive the response of the terminal device's joining result. The main control device will notify the terminal to join the meeting again after a specified period of time until it receives a response result of successful joining from the terminal device.
[0126] 7-2) Duplicate terminal device service packets: When the master device receives multiple identical response packets, the master device processes the first response packet and discards the other response packets without processing.
[0127] 7-3) The main control device receives the tampered response packet returned by the terminal, and parses the response packet. If the content in the response packet does not conform to the video networking protocol, the parsing fails and the terminal device is considered to have failed to join the meeting. The main control device will notify the terminal to join the meeting again after a specified period of time until it receives a successful response from the terminal device;
[0128] If the tampered response packet complies with the visual networking protocol, the main control device determines whether the response packet data has been tampered with based on the data in the sent service packet. If tampering is found, the terminal device will be notified again after a specified period of time to join the meeting. The key parameters include: terminal device number, service type, service identifier, whether there is a service processing result parameter (0 means success, other means failure), etc.
[0129] 7-4) The main control device receives the damaged response packet returned by the terminal device. If the main control device fails to parse the packet according to the visual networking protocol, it will notify the terminal device to join the meeting again after a specified period of time;
[0130] 8. The main control device notifies the terminal device to join the meeting again after a specified period of time. If the terminal device returns that the meeting is successfully joined, the main control device returns the terminal meeting status notification to the abnormal simulation system. The main parameters include: operation code (terminal meeting notification), terminal number, conference global identifier, conference name, terminal status (in meeting), etc.
[0131] 9. The main control device finally returns two response packets, "start meeting response result" and "terminal meeting status notification", to the business anomaly detection system;
[0132] 9-1) If the response result of starting the conference is successful, the joining results of the participating terminal devices are counted according to the terminal conference status notification. If the terminal device simulates abnormal times exceeding the set times and the main control device does not report the terminal conference status notification, it means that the main control device or the terminal device handles the above abnormal simulation incorrectly. The errors may be:
[0133] a. The main control device fails to notify the terminal to join the meeting again after the terminal loses the packet, receives a tampered packet, or receives a damaged packet;
[0134] b. The master device performs abnormal analysis after receiving a tampered or damaged packet;
[0135] c. The main control device returns multiple (greater than 1) identical terminal conference status notifications to a terminal device at the same time, indicating that the main control device handles duplicate packets incorrectly and does not perform filtering;
[0136] d. The terminal device is already in service and receives multiple notifications from the master device to join the conference, but an error occurs.
[0137] At the same time, the business anomaly detection system obtains the first business status of the participating terminal device and compares it with the second business status of each participating terminal recorded in the conference list on the main control. If there is a difference, it means that the main control device and the sub-control device have processed errors in the above abnormal scenario.
[0138] In addition to performing the above-mentioned abnormal simulation on the terminal device, the embodiment of the present invention can also perform the above-mentioned abnormal simulation on other video-linked devices, such as performing abnormal simulation on the sub-control device, or performing abnormal simulation on the main control device:
[0139] The simulation process of the sub-control device and the main control device is the same as the operation of the above-mentioned terminal device, which will not be repeated here;
[0140] After receiving the service packet, the sub-control device detects whether to simulate abnormal service and whether the number of simulations exceeds the set number: if abnormal service is not simulated or the number of simulations exceeds the set number, it is normal service; simulated packet loss: the sub-control device discards the received data packets until the number exceeds the set number (for example, if the packet loss is set to 100 times, 100 service packets will be discarded); simulated service duplicate packets: the sub-control device forwards multiple identical data packets to the terminal device and the main control device; simulated service tampered packets: the sub-control device forwards service packets with some tampered content to the terminal device and the main control device;
[0141] Simulated damaged service packets: The sub-control device returns incomplete service packets to the terminal device and the main control device.
[0142] The main control device and the terminal device receive the data packets forwarded by the sub-control device, and perform corresponding business processing according to the received data packets. The processing results are finally reported to the business anomaly detection system, which analyzes whether the detected device and peripheral devices process the above anomalies normally. For example, if two notification boxes for joining the meeting (the same meeting) pop up on the terminal device, it means that the terminal device does not process the duplicate packets; if the terminal crashes or does not respond after receiving a tampered or damaged packet, it means that the terminal handles the anomaly incorrectly; in the packet loss scenario, the number of packet losses has exceeded the set number, and the business is not started in the end, it means that the main control device may not initiate the business again, or the terminal device is abnormal, etc.
[0143] When the sub-control device sends an abnormal packet, the performance of the terminal device is specifically detected:
[0144] The terminal device receives an abnormal packet forwarded by the sub-control device. Take the start of a conference service as an example. If the main control device notifies the terminal device to join the conference through the sub-control device:
[0145] 1) Packet loss in sub-control device: If the terminal device does not receive the joining notification forwarded by the sub-control device, the terminal device fails to join the meeting. The main control device will notify the terminal to join the meeting through the sub-control device again after a specified period of time until the sub-control device exceeds the set number of packet losses. Then the main control device will forward the joining notification to the terminal device. After receiving the joining notification, the terminal device will perform corresponding business processing and return a successful joining response result.
[0146] 2) The sub-control device sends a duplicate service packet to the terminal device: When the terminal device receives multiple identical conference joining notifications, the terminal device processes the first notification packet and discards the other notification packets without processing.
[0147] 3) The sub-control device sends a tampered response packet to the terminal device:
[0148] a. The terminal device parses the response packet. If the content in the response packet does not conform to the visual networking protocol, the parsing fails and the terminal device discards it without processing the joining failure. The main control device will notify the terminal to join the meeting again through the sub-control after a specified period of time until the terminal device returns a successful joining response result; if the main elements of the joining notification command packet are: operation code (notifying the terminal to join the meeting), service identifier, conference global identifier, sender address, receiving terminal device address, etc.;
[0149] b. If the tampered response packet complies with the visual networking protocol, but the service type in the packet has been tampered with, the terminal device obtains the service type. If the service type does not belong to the visual networking service, it will be discarded and the joining failure will not be processed. The main control device will notify the terminal to join the meeting again through the sub-control after a specified period of time until the terminal device returns a successful joining response result;
[0150] c. If the tampered response packet complies with the visual networking protocol, but the sender address in the service packet has been tampered with, the terminal device continues the service and returns the joining result to the tampered address to detect the service exception handling capability in this abnormal scenario.
[0151] 4) The sub-control device sends a damaged service package to the terminal device. The terminal device fails to parse the package according to the visual network protocol and fails to join the meeting. The main control device will notify the terminal device to join the meeting again through the sub-control device after a specified period of time until the terminal device returns a successful response result.
[0152] If you cannot determine whether the problem is with the master device or the terminal device, you need to confirm it by capturing packets or checking the logs on the master device or the terminal device.
[0153] The embodiment of the present invention can also perform abnormal simulation detection on the main control device. The various abnormal packets sent by the terminal device to the main control device are all forwarded to the main control device by the sub-control device. For the main control device, whether it is an abnormal packet sent by the sub-control device or an abnormal packet sent by the terminal device, the main control device cannot distinguish and can only judge through the business anomaly detection system. If the business anomaly detection system is currently set to send the abnormal packet by the sub-control device, then the source of the abnormality must be on the sub-control device. If the business anomaly detection system is currently set to send the abnormal packet by the terminal device, then the source of the abnormality must be on the terminal device.
[0154] The business anomaly detection system sets the master device to send an abnormal packet (for example, when starting a meeting, the master device notifies the terminal that the meeting entry packet is lost or abnormal):
[0155] Packet loss on the master device: The master device starts the conference service and the conference status is in progress. At this time, the master device notifies the terminal that the conference joining packet is lost, and all terminals fail to join the conference.
[0156] The master device sends duplicate packets, tampered packets, and damaged packets: the sub-control device will forward the abnormal packets sent by the master device to the terminal device. The processing process of the terminal device after receiving the abnormal packet is the same as the above processing process, which will not be repeated here.
[0157] The embodiments of the present invention conduct comprehensive detection on the devices in the visual network under abnormal scenarios such as simulated service packet loss, service duplication, service tampering, and service damage, so as to timely discover and solve problems, so that normal services can be carried out when such abnormal situations occur during the visual network service process, thereby ensuring the stable operation of the visual network service.
[0158] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0159] The abnormal state testing method provided by the embodiment of the present invention receives a business abnormality simulation instruction sent by a business abnormality detection terminal, where the abnormal simulation instruction includes an abnormal device type identifier, an abnormality type, a number of abnormalities and a business identifier; determines the abnormal response information corresponding to the abnormal device type identifier according to the business identifier, the number of abnormalities and the business corresponding to the abnormal type; determines the business execution result corresponding to the abnormal device type identifier according to the abnormal response information; sends the business execution result to the business abnormality detection terminal, so that the business abnormality detection terminal determines the ability of the visual device corresponding to the abnormal device type identifier to handle the abnormal state business according to the business execution result, performs abnormal situation simulation detection on each visual device through the business abnormality detection system, judges the ability of the visual device to handle the abnormal situation, and when the abnormal situation occurs in the visual network business process, can carry out normal business, thereby ensuring the stable operation of the visual network business.
[0160] Another embodiment of the present invention provides an abnormal state testing device, which is used to execute the abnormal state testing method provided in the above embodiment.
[0161] Reference Figure 5, shows a structural block diagram of an abnormal state testing device embodiment of the present invention, the device can be applied to the visual network, and specifically may include the following modules: a receiving module 501, a responding module 502, a determining module 503 and a judging module 504, wherein:
[0162] The receiving module 501 is used to receive a service anomaly simulation instruction sent by the service anomaly detection terminal, where the anomaly simulation instruction includes an abnormal device type identifier, an abnormal type, an abnormal number of times and a service identifier;
[0163] The response module 502 is used to determine the abnormal response information corresponding to the abnormal device type identifier according to the service identifier, the number of abnormalities and the service corresponding to the abnormal type;
[0164] The determination module 503 is used to determine the service execution result corresponding to the abnormal device type identifier according to the abnormal response information;
[0165] The judgment module 504 is used to send the service execution result to the service anomaly detection terminal, so that the service anomaly detection terminal determines the ability of the video connection device corresponding to the abnormal device type identifier to process the abnormal state service according to the service execution result.
[0166] The abnormal state testing device provided by the embodiment of the present invention receives a business abnormality simulation instruction sent by a business abnormality detection terminal, where the abnormal simulation instruction includes an abnormal device type identifier, an abnormality type, a number of abnormalities and a business identifier; determines the abnormal response information corresponding to the abnormal device type identifier according to the business identifier, the number of abnormalities and the business corresponding to the abnormal type; determines the business execution result corresponding to the abnormal device type identifier according to the abnormal response information; sends the business execution result to the business abnormality detection terminal, so that the business abnormality detection terminal determines the ability of the visual device corresponding to the abnormal device type identifier to handle the abnormal state business according to the business execution result, performs abnormal situation simulation detection on each visual device through the business abnormality detection system, judges the ability of the visual device to handle the abnormal situation, and when the abnormal situation occurs in the visual network business process, can carry out normal business, thereby ensuring the stable operation of the visual network business.
[0167] Another embodiment of the present invention further supplements the abnormal state testing device provided in the above embodiment.
[0168] Optionally, a response module is used to:
[0169] If the exception type is a business packet loss type, no business response packet is returned;
[0170] If the exception type is a service repetition packet type, return the same first service response packet corresponding to the number of exceptions;
[0171] If the exception type is a service tampering packet type, a second service tampering response packet is generated, wherein service data in the second service response packet is tampered with;
[0172] If the exception type is a service damage packet type, a third service damage response packet is generated, wherein the service data in the third service damage packet is lost.
[0173] Optionally, the visual networking device includes at least a main control device, a sub-control device and a visual networking terminal device, and a determination module is used to:
[0174] If the abnormal type is a service packet loss type, the main control device sends a service start instruction to the visual network terminal through the sub-control device at preset intervals until receiving the first response result of the service success from the visual network terminal;
[0175] If the exception type is a service duplication packet type, the main control device filters the same first service response packets corresponding to the preset number of exceptions to obtain a first service response packet;
[0176] If the abnormal type is a service tampering packet type, the main control device parses the second service tampering response packet to obtain a second service response packet, and judges the second service response packet. If the content in the second service response packet does not comply with the visual networking protocol or the content in the second service response packet is tampered with, the main control device sends a service start instruction to the visual networking terminal through the sub-control device at a preset time until receiving a second response result indicating that the service is successful from the visual networking terminal;
[0177] If the exception type is a service damage packet type, the main control device parses the third service damage packet to obtain the third service damage packet. If the third service damage packet does not comply with the visual networking protocol or the content in the third service damage packet is lost, the main control device sends a service start instruction to the visual networking terminal through the sub-control device at a preset time until a third response result indicating service success is received from the visual networking terminal.
[0178] The main control device determines the service execution result corresponding to the abnormal device type identifier based on one or more of the first service response result, the first service response package, the second service response result and the third service response result, wherein the service execution result includes the first service status information of the visual device.
[0179] Optionally, the judgment module is used to:
[0180] The service anomaly detection system obtains first service status information of the visual connection device in the service execution result;
[0181] The service anomaly detection system obtains the second service status information of each visual connection device in the service record table stored on the main control device;
[0182] comparing the first service status information with the second service status information;
[0183] According to the first service status information and the second service status information, it is determined whether the video connection device has the ability to process abnormal services.
[0184] Optionally, the abnormal device type identifier includes at least one of the visual network number of the main control device, the visual network number of the sub-control device and the visual network number of the visual network terminal device, and the abnormal device type identifier is used to identify the abnormal source device; the service identifier includes at least one of video conferencing and video calling.
[0185] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any manner without conflict, and this application is not limited thereto.
[0186] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0187] The abnormal state testing device provided by the embodiment of the present invention receives a business abnormality simulation instruction sent by a business abnormality detection terminal, where the abnormal simulation instruction includes an abnormal device type identifier, an abnormality type, a number of abnormalities and a business identifier; determines the abnormal response information corresponding to the abnormal device type identifier according to the business identifier, the number of abnormalities and the business corresponding to the abnormal type; determines the business execution result corresponding to the abnormal device type identifier according to the abnormal response information; sends the business execution result to the business abnormality detection terminal, so that the business abnormality detection terminal determines the ability of the visual device corresponding to the abnormal device type identifier to handle the abnormal state business according to the business execution result, performs abnormal situation simulation detection on each visual device through the business abnormality detection system, judges the ability of the visual device to handle the abnormal situation, and when the abnormal situation occurs in the visual network business process, can carry out normal business, thereby ensuring the stable operation of the visual network business.
[0188] Yet another embodiment of the present invention provides a terminal device, which is used to execute the abnormal state testing method provided in the above embodiment.
[0189] Figure 6 is a schematic diagram of the structure of a terminal device of the present invention, such as Figure 6 As shown, the terminal device includes: at least one processor 601 and a memory 602;
[0190] The memory stores a computer program; and at least one processor executes the computer program stored in the memory to implement the abnormal state testing method provided in the above embodiment.
[0191] The terminal device provided in this embodiment receives a business anomaly simulation instruction sent by a business anomaly detection terminal, where the anomaly simulation instruction includes an abnormal device type identifier, an anomaly type, a number of anomalies and a business identifier; determines the abnormal response information corresponding to the abnormal device type identifier according to the business identifier, the number of anomalies and the business corresponding to the anomaly type; determines the business execution result corresponding to the abnormal device type identifier according to the abnormal response information; sends the business execution result to the business anomaly detection terminal, so that the business anomaly detection terminal determines the ability of the visual device corresponding to the abnormal device type identifier to handle abnormal state business according to the business execution result, performs abnormal situation simulation detection on each visual device through the business anomaly detection system, and judges the ability of the visual device to handle abnormal situations. When the abnormal situation occurs in the visual network business process, normal business can be carried out to ensure the stable operation of the visual network business.
[0192] Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed, the abnormal state testing method provided in any of the above embodiments is implemented.
[0193] According to the computer-readable storage medium of the present embodiment, by receiving a business anomaly simulation instruction sent by a business anomaly detection terminal, the anomaly simulation instruction includes an abnormal device type identifier, an anomaly type, a number of anomalies and a business identifier; determining the abnormal response information corresponding to the abnormal device type identifier according to the business identifier, the number of anomalies and the business corresponding to the anomaly type; determining the business execution result corresponding to the abnormal device type identifier according to the abnormal response information; sending the business execution result to the business anomaly detection terminal, so that the business anomaly detection terminal determines the ability of the visual device corresponding to the abnormal device type identifier to handle abnormal state business according to the business execution result, performs abnormal situation simulation detection on each visual device through the business anomaly detection system, judges the ability of the visual device to handle abnormal situations, and when the abnormal situation occurs in the visual network business process, can carry out normal business, thereby ensuring the stable operation of the visual network business.
[0194] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0195] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0196] The embodiments of the present invention are described with reference to flowcharts and / or block diagrams of methods, electronic devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing electronic device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing electronic device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0197] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing electronic device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0198] These computer program instructions can also be loaded onto a computer or other programmable data processing electronic device so that a series of operating steps are executed on the computer or other programmable electronic device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable electronic device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0199] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0200] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or electronic device that includes a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also includes elements that are inherent to such process, method, article or electronic device. In the absence of further restrictions, the elements defined by the sentence "comprises a..." do not exclude the presence of other identical elements in the process, method, article or electronic device that includes the elements.
[0201] The above is a detailed introduction to an abnormal state testing method and an abnormal state testing device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. An abnormal state testing method, characterized in that: The method comprises: Receive a service anomaly simulation instruction sent by a service anomaly detection terminal, wherein the service anomaly simulation instruction includes an abnormal device type identifier, an abnormal type, an abnormal number of times, and a service identifier, wherein the abnormal device type identifier includes at least one of a visual network number of a sub-control device and a visual network number of a visual network terminal; Determine, according to the service identifier, the number of exceptions, and the service corresponding to the exception type, the exception response information corresponding to the abnormal device type identifier; Determine, according to the abnormal response information, a service execution result corresponding to the abnormal device type identifier; Sending the service execution result to the service anomaly detection terminal, so that the service anomaly detection terminal compares the service execution result with the acquired service status of the visual network terminal, and determines the ability of the visual network device corresponding to the abnormal device type identifier to process the abnormal state service; The service anomaly detection terminal determines, according to the service execution result, the capability of the video connection device corresponding to the abnormal device type identifier to process the abnormal service, including: The service anomaly detection terminal obtains first service status information of the visual networking terminal in the service execution result; The service anomaly detection terminal obtains the second service status information of each of the visual network terminals in the service record table stored on the main control device; The first service status information and the second service status information are compared to determine whether the video connection device has the ability to handle abnormal services.
2. The method according to claim 1, characterized in that The determining, according to the service identifier, the number of exceptions, and the service corresponding to the exception type, the exception response information corresponding to the abnormal device type identifier includes: If the exception type is a service packet loss type, no service response packet is returned; If the exception type is a service repetition packet type, returning the same first service response packet corresponding to the number of exceptions; If the exception type is a service tampering packet type, generating a second service tampering response packet, wherein the service data in the second service tampering response packet is tampered with; If the exception type is a service damage packet type, a third service damage response packet is generated, wherein service data in the third service damage response packet is lost.
3. The method according to claim 2, characterized in that The visual networking device at least includes a main control device, a sub-control device and a visual networking terminal, and the determining of the service execution result corresponding to the abnormal device type identifier according to the abnormal response information includes: If the abnormal type is a service packet loss type, the main control device sends a service start instruction to the visual network terminal through the sub-control device at preset intervals until a first response result indicating a successful service is received from the visual network terminal; If the exception type is a service duplication packet type, the main control device filters the same first service response packets corresponding to the preset number of exceptions to obtain one first service response packet; If the abnormal type is a service tampering packet type, the main control device parses the second service tampering response packet to obtain a second service response packet, and judges the second service response packet. If the content in the second service response packet does not comply with the visual networking protocol or the content in the second service response packet is tampered with, the main control device sends a service start instruction to the visual networking terminal through the sub-control device at a preset time interval until receiving a second response result indicating that the visual networking terminal returns a successful service. If the exception type is a service damage packet type, the main control device parses the third service damage response packet to obtain a third service damage packet. If the third service damage packet does not comply with the visual networking protocol or the content in the third service damage packet is lost, the main control device sends a service start instruction to the visual networking terminal through the sub-control device at a preset time interval until a third response result indicating a successful service is received from the visual networking terminal; The main control device determines the service execution result corresponding to the abnormal device type identifier based on one or more of the first response result, the first service response package, the second response result and the third response result, wherein the service execution result includes the first service status information of the visual network terminal.
4. The method according to any one of claims 1 to 3, characterized in that: The abnormal device type identifier includes at least one of the visual network number of the main control device, the visual network number of the sub-control device and the visual network number of the visual network terminal. The abnormal device type identifier is used to identify the abnormal source device; the service identifier includes at least one of video conferencing and video calling.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the abnormal state testing method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Method and device for testing network anomaly, computer device, and readable medium
CN109495336A
Test method, terminal and electronic equipment
CN110427321A
Disaster recovery system test method, device and equipment and storage medium
CN112214411A