Testing methods, devices, equipment and media for video surveillance management cloud platforms
By configuring dial-up testing management and analysis services in the video surveillance management cloud platform, multiple edge nodes are identified and dial-up testing tasks are generated. This solves the problem of untimely alarms when edge node services are down, and enables efficient and accurate fault detection and location, thereby improving operation and maintenance efficiency and platform stability.
Patent Information
- Application Number
- CN202411774662.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2044-12-04
AI Technical Summary
In a video surveillance management cloud platform, when there are many edge nodes, there may be issues such as node service crashes and delayed alarms.
By configuring the test management service at the central node, multiple edge nodes are identified, test tasks are generated, test requests are executed, request response delays and video stream access status are recorded, the target operation is re-executed to confirm the problem node, error information is generated and pushed to the operation and maintenance personnel.
It enables multi-node coverage detection of the cloud platform, accurate problem localization, reduced false alarms, improved operation and maintenance efficiency, reduced operation and maintenance costs, and enhanced platform stability.
Smart Images

Figure CN119893176B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network communication technology, specifically to testing methods, devices, equipment, and media for video surveillance management cloud platforms. Background Technology
[0002] With the widespread adoption of video surveillance equipment, more and more homes, factories, and city roads are choosing to connect their surveillance devices to video surveillance management cloud platforms. Using these cloud platforms, users can view the surveillance footage in real time via mobile apps or web pages, and also record footage. The recorded files are uploaded to the cloud without consuming local resources. These cloud platforms typically have multiple edge nodes in various locations, enabling localized access and disaster recovery. However, when there are many edge nodes, issues such as node service failures and delayed alarms may occur.
[0003] Therefore, there is an urgent need for a solution that can monitor the status of the cloud platform in real time, accurately and efficiently, issue timely alarms when anomalies occur, and effectively avoid false alarms. Summary of the Invention
[0004] Therefore, the technical problem to be solved by the present invention is to overcome the problem of untimely alarms, such as node service crashes, that may occur when there are many edge nodes in the related technology.
[0005] To address the aforementioned technical problems, this invention provides a dial-up testing method for a video surveillance management cloud platform, comprising:
[0006] Set up a test environment; the test environment includes: the central node and each edge node in the video surveillance management cloud platform;
[0007] The setup of the test environment includes configuring a dial-up test management service at the central node;
[0008] Based on the aforementioned test management service, multiple test nodes among all edge nodes are determined according to preset conditions, and test tasks are generated. The test tasks include each test node, the test frequency corresponding to each test node, the test execution function corresponding to each test node, and the test alarm threshold corresponding to each test node.
[0009] The testing task is distributed to each testing node;
[0010] The following target operations are performed at each testing node: When a testing node receives the testing task and the video surveillance management cloud platform has been connected to the testing node, a testing request is generated according to the testing task, and the testing request is sent to the video surveillance management cloud platform according to the corresponding testing frequency. The request response delay is recorded, and it is determined whether the video stream corresponding to the testing execution function has been successfully accessed. The testing request includes the streaming address of the testing node. The testing request is used to request the video surveillance management cloud platform to access the video stream corresponding to the testing execution function according to the streaming address.
[0011] If the request response delay is determined to be greater than the corresponding test alarm threshold, or if the video stream corresponding to the test execution function is not successfully accessed, the target operation is re-executed at the test node.
[0012] If the target operation is re-executed at the test node, and it is determined again that the request response delay is greater than the corresponding test alarm threshold, or the video stream corresponding to the test execution function is not successfully accessed, then the test node is identified as a problem node and an error message is generated.
[0013] In one optional implementation, the setup of the test environment further includes configuring a dial-up analysis service and a message push service on the central node.
[0014] In one optional implementation, after identifying the test node as a problem node and generating error information, the method further includes:
[0015] The problematic node and the error information are sent to the test analysis service of the central node; the test problem is obtained through analysis by the test analysis service.
[0016] The test issue is pushed to the maintenance personnel through the message push service.
[0017] In one optional implementation, the setup of the test environment further includes: configuring an RTSP server and a test request service at each edge node; the RTSP server is used to generate a streaming address according to the test task and send the streaming address to the test request service; the test request service is used to generate a test request according to the test task and send the test request to the video surveillance management cloud platform according to the corresponding test frequency.
[0018] In one optional implementation, the step of distributing the testing task to each testing node includes:
[0019] The testing task is distributed to each testing node through a preset communication protocol; the preset communication protocol includes: Hypertext Transfer Protocol.
[0020] In one optional implementation, after determining again that the request response delay is greater than the corresponding dial-up alarm threshold, or that the video stream corresponding to the dial-up execution function has not been successfully accessed, the method further includes: re-determining the dial-up node to perform the target operation.
[0021] In one optional implementation, before generating a test request based on the test task, the method further includes:
[0022] When the testing node receives the testing task, and the video surveillance management cloud platform is not connected to the testing node, a device access request is sent to the video surveillance management cloud platform.
[0023] Secondly, the present invention provides a testing device for a video surveillance management cloud platform, comprising:
[0024] The first processing module is used to build a test environment; the test environment includes: a central node and each edge node in the video surveillance management cloud platform; building the test environment includes: configuring a dial-up test management service on the central node;
[0025] The second processing module is used to determine multiple testing nodes among all edge nodes based on the testing management service and preset conditions, and generate testing tasks; the testing tasks include each testing node, the testing frequency corresponding to each testing node, the testing execution function corresponding to each testing node, and the testing alarm threshold corresponding to each testing node.
[0026] The third processing module is used to distribute the test task to each test node;
[0027] The fourth processing module is used to perform the following target operations at each testing node: when the testing node receives the testing task and the video surveillance management cloud platform has been connected to the testing node, it generates a testing request according to the testing task, sends the testing request to the video surveillance management cloud platform according to the corresponding testing frequency, records the request response delay, and determines whether the video stream corresponding to the testing execution function has been successfully accessed; the testing request includes the streaming address of the testing node; the testing request is used to request the video surveillance management cloud platform to access the video stream corresponding to the testing execution function according to the streaming address;
[0028] The fifth processing module includes a first processing unit, which is used to re-execute the target operation at the testing node when it is determined that the request response delay is greater than the corresponding testing alarm threshold, or when the video stream corresponding to the testing execution function is not successfully accessed.
[0029] The sixth processing module is used to identify the test node as a problem node and generate error information if, when the test node re-executes the target operation, it is determined that the request response delay is greater than the corresponding test alarm threshold, or the video stream corresponding to the test execution function is not successfully accessed.
[0030] Thirdly, the present invention provides a computer device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the dialing method of the video surveillance management cloud platform described in the first aspect or any corresponding embodiment.
[0031] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions on a single computer-readable storage medium, the computer instructions being used to cause a computer to execute the testing method of the video surveillance management cloud platform described in the first aspect or any corresponding embodiment.
[0032] Fifthly, the present invention provides a computer program product, including computer instructions, which are used to cause a computer to execute the testing method of the video surveillance management cloud platform described in the first aspect or any corresponding embodiment.
[0033] The technical solution provided by this invention has the following technical effects:
[0034] Multi-node coverage: By determining multiple test nodes based on preset conditions, targeted testing can be performed on multiple edge nodes in the video surveillance management cloud platform. Different edge nodes are often in different network environments and carry different monitoring equipment loads. Testing multiple nodes can comprehensively detect the operation of the cloud platform under diverse conditions, avoiding the one-sidedness caused by testing only a single node, and better reflecting the overall performance and stability of the entire cloud platform.
[0035] Rich task parameter settings: The testing tasks cover key parameters such as testing frequency, testing execution function, and testing alarm threshold for each testing node. The testing frequency can be set as needed, for example, it can be flexibly adjusted according to the importance or usage frequency of different monitoring scenarios. For monitoring nodes in critical areas, a higher testing frequency can be set to closely monitor their status. The testing execution function can specify specific operations (such as streaming, recording, etc.) to test the performance of different functions of the cloud platform in detail. The setting of testing alarm thresholds makes the judgment of abnormal situations more accurate. It can define when a problem is identified based on different business needs and performance standards. This rich and flexible configuration method makes the testing work highly consistent with actual monitoring and operation and maintenance needs.
[0036] Efficient and accurate problem detection and localization:
[0037] Real-time monitoring and iterative verification: During the execution of the target operation at the test node, the request response delay and confirmation of successful video stream access are recorded in real time. If the request response delay exceeds the test alarm threshold or the video stream access fails, the target operation is immediately re-executed at that test node. This is equivalent to initial troubleshooting and verification of potential anomalies, avoiding misjudgments of faults due to temporary network fluctuations or other accidental factors. Timely re-testing confirms the authenticity of the problem, improving the accuracy of problem detection and reducing false alarms.
[0038] Precise Problem Node Location: If, after re-executing the target operation, the problem persists (exceeding the alarm threshold or failing to connect to the video stream), the corresponding test node is identified as a problem node, and an error message is generated. This allows for precise location of the specific edge node causing the problem, helping maintenance personnel quickly focus on the troubleshooting scope and accurately find the root cause. Whether it's a hardware failure, software configuration error, or network connection issue with the cloud platform, these can be analyzed and resolved more efficiently, significantly reducing the time and cost of troubleshooting and repair.
[0039] Aligning with real-world operation and maintenance scenarios and reducing operation and maintenance costs:
[0040] Simulating real user behavior: The test request includes the streaming address of the test node, which requests the video surveillance management cloud platform to access the corresponding video stream based on this address. This is similar to the actual user's operation logic when viewing surveillance footage through various terminals (such as mobile apps, web pages, etc.), realistically simulating the cloud platform's performance under user scenarios. This test method allows for the early detection of issues that may affect user experience, ensuring users can smoothly access surveillance video streams and view recordings during normal use, thus improving user satisfaction.
[0041] Reduced maintenance workload and costs: Precise problem localization and effective anomaly detection mechanisms prevent maintenance personnel from blindly troubleshooting when faced with a large number of monitoring nodes and a complex cloud platform, reducing unnecessary investment of manpower and resources. At the same time, by proactively identifying and resolving potential problems, losses that may result from video surveillance failures can be effectively reduced. For example, in some critical security monitoring scenarios, timely problem fixing can prevent security incidents, thereby improving the overall maintenance efficiency of the video surveillance management cloud platform and reducing long-term maintenance costs.
[0042] Continuous optimization of cloud platform performance: By periodically and from multiple angles conducting tests on the cloud platform according to the technical solution of this invention, performance bottlenecks and potential faults in different edge nodes and functional execution can be identified in a timely manner. Maintenance personnel can then make targeted optimizations and adjustments to the cloud platform based on the test results, such as optimizing network configuration, upgrading server hardware, and improving software algorithms. This ensures that the video surveillance management cloud platform maintains consistently good performance, providing reliable video surveillance services for numerous monitoring application scenarios (such as home, factory, and urban road monitoring), and guaranteeing the real-time performance, integrity, and viewability of the monitored footage.
[0043] Enhancing the stability of the video surveillance management cloud platform: By continuously testing multiple edge nodes and promptly addressing issues, the cloud platform can better cope with various complex network environment changes and equipment failures, reducing the risk of the entire video surveillance management cloud platform being paralyzed due to local problems. This enhances the overall stability of the cloud platform, enabling it to function reliably and stably over long periods of operation and meet users' continuous needs for video surveillance. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in the specific embodiments or related technologies of the present invention, the drawings used in the description of the specific embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0045] Figure 1 This is a flowchart illustrating the testing method of the video surveillance management cloud platform according to an embodiment of the present invention;
[0046] Figure 2 This is a schematic diagram of the detection system according to an embodiment of the present invention;
[0047] Figure 3 This is a flowchart illustrating the dialing test system according to an embodiment of the present invention;
[0048] Figure 4 This is a schematic diagram of the structure of the testing device of the video surveillance management cloud platform according to an embodiment of the present invention;
[0049] Figure 5 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed Implementation
[0050] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0051] With the widespread adoption of video surveillance equipment, more and more homes, factories, and city roads are choosing to connect their surveillance devices to video surveillance management cloud platforms. Using these cloud platforms, users can view the surveillance footage in real time via mobile apps or web pages, and also record footage. The recorded files are uploaded to the cloud without consuming local resources. These cloud platforms typically have multiple edge nodes in various locations, enabling localized access and disaster recovery. However, when there are many edge nodes, there may be instances where node services fail or alarms are not timely. If a node service cannot operate normally, it can cause significant losses to the customer's business.
[0052] Real-Time Streaming Protocol (RTSP) is an application layer protocol in the TCP / IP protocol suite. It defines how one-to-many applications can efficiently transmit multimedia data over an IP network. It uses TCP or UDP for data transmission and is primarily used for multimedia data transfer. As a video streaming protocol, most video surveillance cameras on the market today have the capability to acquire real-time monitoring streams via RTSP. Video surveillance cloud management platforms can use the RTSP protocol to pull live streams from monitoring devices over the network to the management platform for playback and storage. This invention targets such video surveillance cloud management platforms.
[0053] To address this issue, this invention provides a testing method, apparatus, equipment, and medium for a video surveillance management cloud platform. By calculating the physical properties of the blank control test, the system can be evaluated before and after the implementation of real-time optimization technology, while ensuring that the physical properties of the raw materials remain unchanged, thus solving the aforementioned problems.
[0054] According to an embodiment of the present invention, a testing method for a video surveillance management cloud platform is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer device such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0055] Figure 1This is a flowchart illustrating the testing method of the video surveillance management cloud platform according to an embodiment of the present invention.
[0056] like Figure 1 As shown, this embodiment of the invention provides a dial-up testing method for a video surveillance management cloud platform, which is a video surveillance management cloud platform based on the RTSP protocol.
[0057] The testing methods for this video surveillance management cloud platform include:
[0058] S101: Set up the test environment.
[0059] In this embodiment, the test environment includes a central node and each edge node in the video surveillance management cloud platform. In this embodiment, the test environment can be the test environment of a cloud-edge architecture video surveillance management cloud platform.
[0060] In this embodiment, setting up the test environment specifically includes configuring a dial-up testing management service at the central node. Edge nodes are video surveillance devices; for example, an edge node is a camera. Dial-up testing tasks can be scheduled through the dial-up testing management service. For example, the number of dial-up nodes to be tested can be set, the dial-up frequency can be set, the dial-up execution function can be set, and the dial-up alarm threshold can be set. After the tasks are scheduled, the dial-up tasks are distributed to the specified number of dial-up nodes. In this field, a dial-up testing management service is a service used to monitor and evaluate the performance of network services or applications.
[0061] In this embodiment, setting up the test environment also includes configuring a dial-up analysis service and a message push service on the central node.
[0062] In this embodiment, setting up the test environment further includes configuring an RTSP server and a test request service at each edge node. The RTSP server is used to generate streaming addresses based on the test task and distribute the streaming addresses to the test request service. The test request service is used to generate test requests based on the test task and send the test requests to the video surveillance management cloud platform according to the corresponding test frequency.
[0063] In this embodiment, a testing system for a video surveillance management cloud platform is designed based on the technical solution of the present invention. Users can log in to this testing system to build a test environment. Users log in to the testing system and configure the network node information of the video surveillance management cloud platform. The network nodes include a central node and multiple edge nodes.
[0064] In this embodiment, signaling services, streaming media services, and storage services can also be deployed on multiple edge nodes. Edge nodes can deploy edge management services, RTSP servers, and testing request services for the testing system. The RTSP streaming media service can utilize the open-source EasyDarwin server. The RTSP stream is pushed using ffmpeg, which can generate stream addresses for various vendors. For example, the RTSP pull address format for a camera is rtsp: / / [username]:[passwd]@[ip]:[port] / [codec] / [channel] / [subtype] / av_stream. ffmpeg pushes the stream to the EasyDarwin server via push commands, and the RTSP streaming media service can then generate the corresponding RTSP pull address. Through this pull address, the video surveillance management cloud platform can easily obtain the video stream.
[0065] S102: Based on the dial-up test management service, determine multiple dial-up test nodes among all edge nodes according to preset conditions, and generate dial-up test tasks.
[0066] In this embodiment, the dialing test task includes each dialing test node, the dialing test frequency corresponding to each dialing test node, the dialing test execution function corresponding to each dialing test node, and the dialing test alarm threshold corresponding to each dialing test node.
[0067] In this embodiment, testing tasks can be planned based on the testing management service. Testing tasks can be configured with testing nodes, testing frequency, testing execution functions, testing alarm thresholds, etc.
[0068] In this embodiment, the dialing frequency, dialing execution function, and dialing alarm threshold can be set and modified according to actual needs. As an example, the dialing frequency is set to once every 10 seconds, the dialing execution function is real-time video viewing, and video recording query within five minutes, etc. The dialing alarm threshold is set to trigger an alarm if there is no response within 1000ms.
[0069] In this embodiment, the testing frequency can be automatically adjusted based on the historical performance data and real-time load of the testing nodes. For example, the testing frequency can be appropriately increased during peak business hours or for testing nodes that have recently experienced anomalies. Conversely, the testing frequency can be reduced when the testing nodes are running stably for a long period and under low load, in order to balance testing resource consumption and monitoring effectiveness.
[0070] In this embodiment, the preset condition can be an abnormal time period predicted based on the abnormal patterns of edge nodes, and edge nodes currently in the abnormal time period are identified as test nodes. Specifically, machine learning algorithms can be used to learn the performance fluctuation patterns of edge nodes, predict the time points when problems may occur, and increase the test frequency in advance for key monitoring. For example, if it is found that the network traffic of a certain edge node fluctuates regularly during a specific time period of the week or a specific date of the month and has been accompanied by brief service anomalies, the test will be automatically strengthened during these periods.
[0071] Furthermore, the system can automatically customize test execution functions based on the type and distribution area of the monitoring devices connected to the edge nodes, as well as user usage habits. For example, for nodes connected to factory areas and primarily used for production process monitoring, the focus is on testing long-term recording and image quality during specific time periods. For nodes connected to urban roads and primarily used for traffic flow monitoring, the emphasis is on testing real-time image switching speed and the ability to view multiple images simultaneously.
[0072] In this embodiment, including multiple testing nodes in a single testing task can improve the comprehensiveness of the detection: it can detect the performance of the cloud platform under different network topologies and load conditions. For example, edge nodes closer to the central node may have better network conditions, while edge nodes located in remote areas may have limited network bandwidth. By testing multiple edge nodes, a comprehensive understanding of the cloud platform's adaptability under various network conditions can be obtained.
[0073] It can improve the accuracy of fault location: If there is only one test node, it is difficult to determine whether the problem is with the node itself or a general problem of the cloud platform when a problem occurs. However, multiple test nodes can help to quickly locate whether the fault is in a specific edge node (such as hardware failure or configuration error of that node) or a core service of the cloud platform (such as failure of central storage service or streaming media forwarding service).
[0074] S103: Distribute the testing task to each testing node.
[0075] In this embodiment, S103 distributes the testing task to each testing node, specifically including:
[0076] The testing tasks are distributed to each testing node using a preset communication protocol. The preset communication protocol includes Hypertext Transfer Protocol (HTTP).
[0077] In this embodiment, after the testing task is planned, it is sent to each testing node via the HTTP protocol.
[0078] S104: Perform the following target operations at each test node: When a test node receives a test task and the video surveillance management cloud platform has been connected to the test node, generate a test request according to the test task, send the test request to the video surveillance management cloud platform according to the corresponding test frequency, record the request response delay, and determine whether the video stream corresponding to the test execution function has been successfully accessed.
[0079] In this embodiment, the test request includes the streaming address of the test node. The test request is used to request the video surveillance management cloud platform to access the video stream corresponding to the test execution function based on the streaming address.
[0080] In this embodiment, before generating a test request based on the test task, the test method of the video surveillance management cloud platform further includes: when the test node receives the test task and the video surveillance management cloud platform is not connected to the test node, sending a device access request to the video surveillance management cloud platform.
[0081] In this embodiment, after the testing task is distributed to each testing node, for a single testing node, upon receiving the task, it determines whether it is connected to the video surveillance management cloud platform. If it is determined that the testing node is not connected to the video surveillance management cloud platform, it sends an RTSP device access request to the platform, executes the RTSP registration process, and connects itself to the platform. When the platform has connected to the testing node, the RTSP server deployed on the node generates a streaming address based on the testing task and distributes it to the testing request service deployed on the node. The testing request service generates a testing request based on the task and sends it to the video surveillance management cloud platform according to the corresponding testing frequency. Upon receiving the testing request, the platform sends a streaming request to the streaming media service. The streaming media service returns the streaming result to the platform. Successful streaming access allows successful connection to the video stream corresponding to the testing function. Unsuccessful streaming access results in unsuccessful connection to the video stream corresponding to the testing function. When the dial-up test execution function is set to real-time video viewing, the real-time video can be viewed after the stream is successfully pulled. When the dial-up test execution function is set to video recording viewing, the video recording can be viewed after the stream is successfully pulled.
[0082] In this embodiment, the testing node receives a testing task. The RTSP server generates an RTSP stream based on the task and returns the RTSP stream address to the testing request service. The testing request service then requests the video surveillance management cloud platform to pull the stream according to the RTSP stream address. After successful streaming, it requests real-time video viewing and recording access according to the testing task. The video surveillance management cloud platform connects the video stream to the platform via the RTSP pull address. The testing request service then begins sending HTTP request tasks to the video surveillance management cloud platform at a planned frequency, requesting real-time video and recordings from the current node.
[0083] In this embodiment, the edge management service is primarily responsible for the overall management of various resources and services of the edge node. It acts like a "housekeeper" for the edge node, coordinating interactions between different services within the node and communication with other nodes or the central node.
[0084] Specific uses of edge management services:
[0085] Configuration Management: Manages the configuration information of the edge nodes themselves, such as network settings and storage paths. When new monitoring devices are connected to the edge nodes or when configuration changes are made to existing devices, the edge management service is responsible for accurately transmitting the relevant configuration information to the corresponding service components to ensure that the devices can be connected and run normally.
[0086] Resource allocation and scheduling: Rationally allocate computing and storage resources within edge nodes. For example, when multiple video surveillance devices simultaneously connect and upload data, or when multiple users simultaneously request to view surveillance footage, the edge management service will schedule resources such as CPU, memory, and network bandwidth based on the priority and resource requirements of each task to ensure that each task is appropriately processed and to avoid service quality degradation caused by resource contention.
[0087] Status Monitoring and Maintenance: Real-time monitoring of the operational status of each service within the edge nodes. It periodically checks the working status of RTSP servers, dial-up request services, etc., and collects performance metrics such as CPU utilization, memory usage, and service response time. Once an anomaly is detected in a service, such as a service process crash or performance metrics exceeding normal ranges, the edge management service will take timely measures, such as attempting to restart the service or adjusting resource allocation, and report the anomaly to the central node.
[0088] Overview of RTSP server functions: An RTSP server is a server used to implement real-time streaming media transmission control. It plays a core role in video surveillance systems, handling various requests related to streaming media and serving as a key hub for video stream transmission.
[0089] Specific uses of RTSP servers:
[0090] Stream Address Generation: Capable of generating RTSP stream addresses in various vendor formats. Different brands of video surveillance equipment may have different stream address format requirements. For example, the RTSP pull address format for a certain camera might be rtsp: / / [username]:[passwd]@[ip]:[port] / [codec] / [channel] / [subtype] / av_stream. The RTSP server, through interaction with the video surveillance equipment and configuration information, generates pull addresses according to the corresponding formats, enabling the video surveillance management cloud platform to obtain the video stream through these addresses.
[0091] Video Stream Transmission Control: This manages and controls the transmission of video streams. It receives video streams from video surveillance equipment and processes and transmits them accordingly based on client requests (such as play, pause, fast forward, and rewind commands) from clients (e.g., users viewing surveillance footage via a mobile app or webpage). For example, when a user clicks to play the live feed from a surveillance device on a mobile app, the RTSP server sends the device's video stream to the user's client using appropriate network protocols and parameters.
[0092] Protocol Conversion and Adaptation: In some cases, it may be necessary to convert video streams using different protocols. For example, some older surveillance equipment may use a special proprietary protocol to transmit video streams. An RTSP server can convert this type of video stream into one that conforms to the RTSP standard, allowing for better management and transmission on the cloud platform. Simultaneously, it can adapt to different network environments and client device requirements, such as adjusting parameters like video stream resolution and frame rate to ensure smooth video playback under varying bandwidth conditions.
[0093] Overview of the Dial-up Request Service: The Dial-up Request Service is primarily used to simulate user request behavior to the video surveillance management cloud platform in order to test the platform's performance and stability. It acts like a "simulated user," sending various requests to the platform according to pre-defined rules and frequencies.
[0094] The specific purpose of the dial-up test request service:
[0095] Simulated User Requests: HTTP requests are sent to the video surveillance cloud management platform at a planned frequency. These requests can include streaming requests (to obtain real-time monitoring footage), recording viewing requests, etc. For example, streaming requests are sent to the cloud platform every 10 seconds to simulate frequent user viewing of monitoring footage. This method allows for testing the platform's responsiveness under different load conditions.
[0096] Performance testing: After sending a request, the system monitors the platform's response, such as response time and whether the video stream was successfully acquired. If the response time exceeds a set threshold (e.g., no response within 1000ms), a performance issue or service failure is considered possible. Simultaneously, the quality of the acquired video stream can be checked, such as whether the video is choppy or has dropped frames, thus comprehensively evaluating the platform's service quality.
[0097] Fault Detection and Feedback: When an anomaly is detected in the platform's response to a request, such as the inability to obtain video streams or excessively long response times, the test request service will feed back relevant information to other services (such as the test analysis service) for further analysis and processing. It acts as a "frontline sentinel" in the entire test system, providing crucial data support for the timely detection and resolution of platform faults.
[0098] S105: When it is determined that the request response delay is greater than the corresponding dial test alarm threshold, or the video stream corresponding to the dial test execution function is not successfully accessed, the target operation is re-executed at the dial test node.
[0099] In this embodiment, when an abnormal situation is initially determined to exist in the test node, such as when the request response delay is greater than the corresponding test alarm threshold, or when the video stream corresponding to the test execution function is not successfully accessed, a second confirmation is performed to re-execute the target operation on the test node and trigger the test task again. When the test node receives the test task and the video surveillance management cloud platform has been connected to the test node, a test request is generated according to the test task, and a test request is sent to the video surveillance management cloud platform according to the corresponding test frequency. The request response delay is recorded, and it is determined whether the video stream corresponding to the test execution function has been successfully accessed.
[0100] S106: If the target operation is re-executed at the test node, and it is determined again that the request response delay is greater than the corresponding test alarm threshold, or the video stream corresponding to the test execution function is not successfully accessed, then the test node is identified as a problem node and an error message is generated.
[0101] In this embodiment, if an anomaly is still identified after secondary confirmation—for example, if the request response delay exceeds the corresponding test alarm threshold, or if the video stream corresponding to the test execution function is not successfully accessed—then, after secondary confirmation, if the test node is found to have an anomaly, it can be identified as a problem node, and an error message can be generated. If, after secondary confirmation, no anomalies are found, the current test can be terminated, and the next test can begin.
[0102] In this embodiment, the test request service can receive the request result returned by the video surveillance management cloud platform. The request result includes request failure or request success. Request success indicates that there are no abnormalities, such as determining that the request response delay is less than or equal to the corresponding test alarm threshold, and that the video stream corresponding to the test execution function has been successfully accessed. Request failure indicates that there are abnormalities, such as determining that the request response delay is greater than the corresponding test alarm threshold, or that the video stream corresponding to the test execution function has not been successfully accessed.
[0103] In this embodiment, the error message typically includes the following:
[0104] Basic Information Section:
[0105] Test node identifier: such as node number, IP address, etc., used to uniquely identify the test node where the problem occurs. This helps maintenance personnel quickly locate the specific physical device or network node, narrowing down the scope of troubleshooting.
[0106] Timestamp: Records the precise time when a problem occurs, allowing operations and maintenance personnel to understand the chronological order of the problem's occurrence. This facilitates comprehensive analysis by combining system logs and other information to determine whether the problem is sudden, persistent within a specific time period, or related to other events.
[0107] Anomaly details:
[0108] Request / response latency data: This refers to the specific latency duration. For example, if the test alarm threshold is set to 1000ms, and the actual request / response latency is 1500ms, then this 1500ms data will be recorded in the error message. Operations personnel can use this to assess the severity of the problem, understand the degree of slowness in network transmission or service processing, and further analyze whether the latency is caused by insufficient network bandwidth, excessive server load, or a specific operation in the software code.
[0109] Connection failure reason code or description: If the video stream corresponding to the dial-up test execution function fails to connect, the relevant error code or detailed description information will be recorded. For example, the connection failure may be due to reasons such as an incorrect video stream address (incorrect IP address, port number, or channel number, etc.), authentication failure (incorrect username or password or insufficient permissions), or unavailable resources (the corresponding monitoring device is offline or the storage space is full, etc.). The error message will clearly state these reasons, making it convenient for maintenance personnel to directly investigate and repair the root cause of the problem.
[0110] Related task information section:
[0111] Test Task Details: This includes information such as the test frequency and functions performed by the test node in this test task. For example, does the problem occur during a 10-second stream pull test or during a test of the video recording viewing function? This helps operations and maintenance personnel understand the problem's behavior under specific task requirements and scenarios, and determine whether the problem is caused by unreasonable task settings or defects in certain functional modules.
[0112] Test task execution count: Records the number of times the test task has been executed on this test node. Especially when the target operation still fails after being re-executed, this count information can reflect the persistence and recurrence of the problem, and has certain reference value for judging the stability of the problem and the possible difficulty of solving it.
[0113] Error messages are mainly used for the following purposes:
[0114] Troubleshooting and Repair: Based on the details in the error messages, maintenance personnel can quickly pinpoint the source of the problem and its possible causes, then take appropriate measures to repair it. For example, if the problem is network latency, they can check the network connection lines, network device configurations (such as router and switch settings), and network bandwidth usage. If the video stream access failure is due to device offline status, they can check the power supply, network connection, and the device's own operating status, thereby efficiently resolving problems at the testing nodes and ensuring the normal operation of the video surveillance management cloud platform.
[0115] System performance analysis and optimization: By collecting and organizing a large amount of error information, system performance can be analyzed and optimized. For example, if multiple test nodes experience similar response latency issues within a specific time period, it may indicate that the cloud platform's central server is overloaded, requiring server resource expansion or optimization of the task scheduling algorithm. If frequent access failures occur due to incorrect video stream addresses, it may be necessary to check the address generation mechanism or the accuracy of data storage, thereby improving the overall performance and stability of the video surveillance management cloud platform and preventing similar problems from recurring.
[0116] Generating Operations and Maintenance Reports and Logs: Error messages are a crucial basis for generating operations and maintenance reports. These reports can inform senior management or relevant departments about the operational status of the video surveillance management cloud platform, including problems encountered, their resolution, and their impact on overall service quality. Simultaneously, these error messages are also recorded in the system's operations and maintenance logs as part of the system's historical operational data, providing data support and reference for subsequent system upgrades, fault prediction, and the formulation of operations and maintenance strategies.
[0117] In this embodiment, in addition to the above-mentioned cases of abnormal situations, there are also cases where no abnormal situations exist. When it is determined that no abnormal situations exist, for example, when it is determined that the request response delay is less than or equal to the corresponding dial-up alarm threshold, and the video stream corresponding to the dial-up execution function is successfully accessed, the test ends.
[0118] After confirming again that the request response delay exceeds the corresponding dial-up alarm threshold, or that the video stream corresponding to the dial-up execution function has not been successfully accessed, the dial-up testing method of this video surveillance management cloud platform also includes: re-determining the target operation for the dial-up node. That is, switching the dial-up node and re-performing the dial-up test.
[0119] As an example, when an edge node in a region fails, testing other edge nodes can reveal whether the cloud platform can switch services in a timely manner and transfer the monitoring tasks for that region to other normal nodes, thereby ensuring the continuity of video surveillance services.
[0120] In this embodiment, if an anomaly is confirmed a second time, other testing nodes in the testing task can be re-determined to perform the target operation, or testing nodes can be re-determined among all edge nodes based on preset conditions. The method of re-determining testing nodes among all edge nodes based on preset conditions is similar to the above-described method of determining multiple testing nodes among all edge nodes based on preset conditions, and will not be repeated here.
[0121] In this invention, when re-determining whether the test node is connected to the video surveillance management cloud platform, it is necessary to re-determine whether the test node is connected to the video surveillance management cloud platform. When the test node is not connected to the video surveillance management cloud platform, the test node sends a device access request to the video surveillance management cloud platform, re-executes the RTSP registration process, and triggers the test task again.
[0122] In this embodiment, after identifying the test node as a problem node and generating error information, the test method of the video surveillance management cloud platform further includes:
[0123] Problem nodes and error messages are sent to the central node's test analysis service. The test analysis service then analyzes the data to identify test issues.
[0124] The issue was pushed to the maintenance personnel via push notification service.
[0125] In this embodiment, the test problem can be sent to the maintenance personnel who are handling the problem via SMS or other push notifications.
[0126] The technical solution of this invention is a scheme for testing a video surveillance management cloud platform based on the RTSP protocol, and based on this scheme, the following is designed: Figure 2 The dial-up testing system is shown. The corresponding process for this dial-up testing system is as follows: Figure 3 As shown. Using the technical solution and testing system of this invention, the service and network status of edge nodes can be monitored. This testing system allows for customized settings of testing frequency and testing nodes, automatic generation of testing result reports, and automatic notification of testing failure alarms.
[0127] This invention provides a technical solution for testing a video surveillance management cloud platform that uses the RTSP protocol to access video surveillance equipment. It supports generating RTSP video streams in various streaming address formats from different surveillance vendors. By periodically sending requests for streaming, live broadcasting, and video-on-demand to the management platform, it monitors for network or service failures. To reduce the false alarm rate during testing, the RTSP stream generation service is deployed across multiple nodes to ensure that false alarms caused by problems with the testing system are effectively eliminated.
[0128] The technical solution of this invention enables dial-up testing of a video surveillance management cloud platform accessed via the RTSP protocol. This ensures that maintenance personnel are notified as early as possible when a fault occurs in the video surveillance management cloud platform, improving customer experience and satisfaction. It effectively reduces false alarms and misreports, lowering maintenance costs. By using a dial-up testing system to monitor the operation of the video surveillance management cloud platform, it can continuously test and monitor nodes across the country for faults 24 / 7, reducing maintenance manpower costs and identifying problems early.
[0129] Currently, dial-up testing systems are commonly used in various scenarios such as communications and the internet. This invention is the first to apply a dial-up testing system to a video surveillance management cloud platform and solves the RTSP registration problem. Furthermore, it employs a two-factor authentication method for dial-up testing initiated by multiple nodes, avoiding false alarms and misreports caused by problems with the dial-up testing system, effectively reducing operation and maintenance costs.
[0130] It should be noted that the contents not described in detail in this specification are common knowledge to those skilled in the art.
[0131] This embodiment also provides a testing device for a video surveillance management cloud platform. A single device is used to implement the above embodiments and optional implementation methods, and details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0132] Figure 4 This is a schematic diagram of the testing device of the video surveillance management cloud platform according to an embodiment of the present invention.
[0133] This invention provides a testing device for a video surveillance management cloud platform, such as... Figure 4As shown, the testing device for this video surveillance management cloud platform includes:
[0134] The first processing module 11 is used to set up the test environment. The test environment includes: the central node and each edge node in the video surveillance management cloud platform. Setting up the test environment includes: configuring the dial-up test management service on the central node.
[0135] The second processing module 12 is used to determine multiple test nodes among all edge nodes based on preset conditions and the test management service, and generate test tasks. The test tasks include each test node, the test frequency corresponding to each test node, the test execution function corresponding to each test node, and the test alarm threshold corresponding to each test node.
[0136] The third processing module 13 is used to distribute the testing tasks to each testing node.
[0137] The fourth processing module 14 is used to perform the following target operations at each testing node: When a testing node receives a testing task and the video surveillance management cloud platform has been connected to the testing node, it generates a testing request based on the testing task, sends the testing request to the video surveillance management cloud platform according to the corresponding testing frequency, records the request response delay, and determines whether the video stream corresponding to the testing execution function has been successfully accessed. The testing request includes the streaming address of the testing node. The testing request is used to request the video surveillance management cloud platform to access the video stream corresponding to the testing execution function according to the streaming address.
[0138] The fifth processing module 15 includes a first processing unit 151, which is used to re-execute the target operation at the testing node when it is determined that the request response delay is greater than the corresponding testing alarm threshold, or when the video stream corresponding to the testing execution function is not successfully accessed.
[0139] The sixth processing module 16 is used to identify the test node as a problem node and generate error information if, when the target operation is re-executed at the test node, the request response delay is again determined to be greater than the corresponding test alarm threshold, or the video stream corresponding to the test execution function is not successfully accessed.
[0140] In an optional implementation, the first processing module 11 is further configured to configure dial-up analysis service and message push service at the central node.
[0141] In one optional implementation, the testing device of the video surveillance management cloud platform further includes: an analysis and push module, used to, after identifying the testing node as a problem node and generating error information, send the problem node and error information to the testing analysis service of the central node. The testing problem is obtained through analysis by the testing analysis service. The testing problem is then pushed to maintenance personnel through a message push service.
[0142] In an optional implementation, the first processing module 11 is further configured to configure an RTSP server and a test request service at each edge node. The RTSP server generates a streaming address based on the test task and sends the streaming address to the test request service. The test request service generates a test request based on the test task and sends the test request to the video surveillance management cloud platform according to the corresponding test frequency.
[0143] In one optional implementation, the third processing module 13 is specifically used to distribute the testing tasks to each testing node via a preset communication protocol. The preset communication protocol includes: Hypertext Transfer Protocol.
[0144] In an optional implementation, the fifth processing module 15 further includes a second processing unit, which is used to re-determine the target operation to be performed by the testing node when it is determined again that the request response delay is greater than the corresponding testing alarm threshold, or when the video stream corresponding to the testing execution function is not successfully accessed.
[0145] In an optional implementation, the fourth processing module 14 is further configured to send a device access request to the video surveillance management cloud platform before generating a test request based on the test task, when the test node receives the test task and the video surveillance management cloud platform is not connected to the test node.
[0146] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0147] In this embodiment, the testing device of the video surveillance management cloud platform is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0148] This invention also provides a computer device having the above-described features. Figure 4 The device shown is a test device for the video surveillance management cloud platform.
[0149] Please see Figure 5 , Figure 5 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention, such as... Figure 5As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In an alternative implementation, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor device). Figure 5 Take a processor 10 as an example.
[0150] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0151] The memory 20 stores instructions executable by at least one processor 10 to cause at least one processor 10 to perform the method shown in the above embodiments.
[0152] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store application programs required for operating the device and at least one function. The data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In an alternative embodiment, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0153] Memory 20 may include volatile memory, such as random access memory. Memory may also include non-volatile memory, such as flash memory, hard disk, or solid-state drive. Memory 20 may also include combinations of the above types of memory.
[0154] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.
[0155] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded over a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc. Further, the storage medium may also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0156] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0157] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A testing method for a video surveillance management cloud platform, characterized in that, include: Set up the test environment; The test environment includes: a central node and each edge node in the video surveillance management cloud platform; The setup of the test environment includes: configuring a dial-up test management service on the central node; Based on the aforementioned test management service, multiple test nodes among all edge nodes are determined according to preset conditions, and test tasks are generated. The test tasks include each test node, the test frequency corresponding to each test node, the test execution function corresponding to each test node, and the test alarm threshold corresponding to each test node. The testing task is distributed to each testing node; The following target operations are performed at each testing node: When a testing node receives the testing task and the video surveillance management cloud platform has been connected to the testing node, a testing request is generated according to the testing task, and the testing request is sent to the video surveillance management cloud platform according to the corresponding testing frequency. The request response delay is recorded, and it is determined whether the video stream corresponding to the testing execution function has been successfully accessed. The testing request includes the streaming address of the testing node. The testing request is used to request the video surveillance management cloud platform to access the video stream corresponding to the testing execution function according to the streaming address. If the request response delay is determined to be greater than the corresponding test alarm threshold, or if the video stream corresponding to the test execution function is not successfully accessed, the target operation is re-executed at the test node. If the target operation is re-executed at the test node, and it is determined again that the request response delay is greater than the corresponding test alarm threshold, or the video stream corresponding to the test execution function is not successfully accessed, then the test node is identified as a problem node and an error message is generated. The setup of the test environment also includes: configuring an RTSP server and a test request service at each edge node; the RTSP server is used to generate a streaming address according to the test task and send the streaming address to the test request service; the test request service is used to generate a test request according to the test task and send the test request to the video surveillance management cloud platform according to the corresponding test frequency.
2. The method according to claim 1, characterized in that, The setup of the test environment also includes configuring a dial-up analysis service and a message push service on the central node.
3. The method according to claim 2, characterized in that, After identifying the test node as a problem node and generating error information, the process also includes: The problematic node and the error information are sent to the test analysis service of the central node; the test problem is obtained through analysis by the test analysis service. The test issue is pushed to the maintenance personnel through the message push service.
4. The method according to claim 1, characterized in that, The step of distributing the testing task to each testing node includes: The testing task is distributed to each testing node through a preset communication protocol; the preset communication protocol includes: Hypertext Transfer Protocol.
5. The method according to claim 1, characterized in that, After determining again that the request response delay is greater than the corresponding dial-up alarm threshold, or that the video stream corresponding to the dial-up execution function has not been successfully accessed, the method further includes: re-determining the dial-up node to execute the target operation.
6. The method according to claim 1, characterized in that, Before generating a test request based on the test task, the process also includes: When the testing node receives the testing task, and the video surveillance management cloud platform is not connected to the testing node, a device access request is sent to the video surveillance management cloud platform.
7. A testing device for a video surveillance management cloud platform, characterized in that, include: The first processing module is used to set up the test environment; The test environment includes: a central node and each edge node in the video surveillance management cloud platform; setting up the test environment includes: configuring a dial-up test management service on the central node; The second processing module is used to determine multiple testing nodes among all edge nodes based on the testing management service and preset conditions, and generate testing tasks; the testing tasks include each testing node, the testing frequency corresponding to each testing node, the testing execution function corresponding to each testing node, and the testing alarm threshold corresponding to each testing node. The third processing module is used to distribute the test task to each test node; The fourth processing module is used to perform the following target operations at each testing node: when the testing node receives the testing task and the video surveillance management cloud platform has been connected to the testing node, it generates a testing request according to the testing task, sends the testing request to the video surveillance management cloud platform according to the corresponding testing frequency, records the request response delay, and determines whether the video stream corresponding to the testing execution function has been successfully accessed; the testing request includes the streaming address of the testing node; the testing request is used to request the video surveillance management cloud platform to access the video stream corresponding to the testing execution function according to the streaming address; The fifth processing module includes a first processing unit, which is used to re-execute the target operation at the testing node when it is determined that the request response delay is greater than the corresponding testing alarm threshold, or when the video stream corresponding to the testing execution function is not successfully accessed. The sixth processing module is used to determine the testing node as a problem node and generate error information if, when the target operation is re-executed at the testing node, the request response delay is determined to be greater than the corresponding testing alarm threshold again, or the video stream corresponding to the testing execution function is not successfully accessed. The first processing module is further configured to configure an RTSP server and a test request service at each edge node; the RTSP server is configured to generate a streaming address according to the test task and send the streaming address to the test request service; the test request service is configured to generate a test request according to the test task and send the test request to the video surveillance management cloud platform according to the corresponding test frequency.
8. A computer device, characterized in that, include: The system includes a memory and a processor, which are interconnected. The memory stores computer instructions, and the processor executes the computer instructions to perform the dialing method of the video surveillance management cloud platform according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, which are used to cause the computer to execute the dialing method of the video surveillance management cloud platform according to any one of claims 1 to 6.
Citation Information
Patent Citations
Streaming media network connectivity and playing quality dial testing method and system
CN112019836A
Dial testing system for video monitoring cloud management platform
CN117857776A