Analysis of message interaction data packets accessed by the national standard GB28181 protocol of the video centralized storage/cloud storage platform EasyCVR

Security video monitoring/centralized video storage/cloud storage/disk array EasyCVR platform has strong scalability, flexible video capabilities, and easy deployment. The mainstream standard protocols that can be supported include national standard GB28181, RTSP/Onvif, RTMP, etc., as well as manufacturers' private protocols and SDK access, including SDKs for Haikang Ehome, Haidayu and other devices. EasyCVR, a video aggregation and fusion management platform, not only has the ability of traditional security video surveillance, but also has the ability to access AI intelligent analysis. It has strong scalability and flexible video capabilities. It can distribute RTMP, RTSP, HTTP-FLV, WebSocket-FLV, HLS to the outside world , WebRTC and other video streams.

In the project operation and maintenance process of the video surveillance convergence platform EasCVR, it is often necessary to use packet capture to judge the problems on the project site. In the previous article, we also introduced and analyzed some package information with abnormal interactions. Today, I will introduce to you the data analysis of Baowen under the normal interaction between the national standard protocol and the device side in the EasyCVR platform for centralized video storage.

1. The server captures packets

First of all, capture packets on the server, here we choose a Linux server to capture packets. Check the network status of the server, enter ip addr, and confirm the network environment of the project site.

Then use the tcpdump command to capture all the data on this network segment.

It shows that the data is being captured. During this period, you can perform debugging operations such as playing video on the video surveillance/centralized video storage/cloud storage EasyCVR. After debugging, press ctrl+c to stop capturing packets.

At this point, you can see that there is an additional target.cap file on the current path, which is the data packet. Then we exported it and analyzed it in windows.

2. Data screening

After getting the packet data, filter it first, and only get the sip information, as follows:

3. Return 401

After each device is connected, the EasyCVR platform will return a 401 message to the device, so that the device can pass information such as SIP ID, channel ID, and access password to the server.

4. Return 200 OK

If the SIP message is correct, the server returns 200 OK; if it returns a 403 error, it means that the device failed to access, and the access password is wrong. At this time, you need to check the access password to check whether the access password on the device and the server are consistent.

5. Send invite

When the security video monitoring platform EasyCVR plays the monitoring screen of the device, the server will send an invite message to the device, telling the device that the stream can be sent to the specified port.

As shown in the figure above, here it means telling the device to send the stream to UDP port 50002.

6、100 Trying

After receiving the information, the device will send a temporary message 100 Trying, then send the stream data, and return 200 OK.

7. Determine whether the interaction is normal

Then we can filter the UDP port 50002 to determine whether the flow has come.

At this point, you can see that the data flow is already interacting. If there is no data after filtering, you need to check whether ports 50000 to 60000 have been opened.

The simple packet capture process of the EasyCVR video aggregation platform is introduced here. Users can also refer to the above steps to troubleshoot some simple problems in the process of video stream access, transmission, and interaction.

Security monitoring/centralized video storage/cloud storage EasyCVR video aggregation platform can support lightweight access and aggregation management of massive videos. The platform can provide video storage disk array, video surveillance live broadcast, video carousel, video recording, cloud storage, playback and retrieval, intelligent alarm, server cluster, voice intercom, PTZ control, electronic map, platform cascading, H.265 Functions such as automatic transcoding. Interested users can go to the demonstration platform for experience or deployment testing.

Guess you like

Origin blog.csdn.net/TsingSee/article/details/132477638