Introduction to the problem of wrong port opening of the EasyGBS video platform of the IP camera GB28181 protocol video platform and the solution

In the previous article, we talked about the problem of port opening in the EasyGBS video platform, so everyone should know that the port plays an important role in EasyGBS. Recently we are working on an EasyGBS live project, and there is a problem that the video stream cannot be played after a period of time, and then the service can be played again after restarting the service. It 's similar to the last question ( why it can't play after the EasyGBS port is opened ), but after analysis, it is found to be a different problem.

analyse problem

First of all, I suspect that the port may not be opened, but I found that the client has opened it. So you need to use the tool nc (netcat) to check whether the port is open.

Note: download address https://eternallybored.org/misc/netcat/

Configure environment variables after downloading

62.png

Then execute the nc -l -u -p 50198 command on the other party's server to start an interactive udp monitoring service port of 50198. Then execute nc -u local server ip 50198 to start a client that sends data to 50198.

After the dynamic interaction, through packet capture analysis, it is found that the 50198 external network cannot be accessed, and only the internal network can access the transmission data:

63.png

64.png

But 50010 port can be accessed inside and outside the network.

65.png

So to determine the problem, although the client's port was opened, but the wrong port was opened, the 50000-50200 port was opened to the 50000-50020 port, which caused the video to be cut off after the start of the broadcast.

EasyGBS, as a video platform that can support the GB28181 protocol, can be cascaded with other platforms through the GB28181 protocol, and we provide a rich secondary development interface for everyone to use, and you can freely develop and integrate. For more video-related solutions, you can visit TSINGSEE Green Rhinoceros Video. Welcome to contact us for a demonstration program, intuitive experience, or download and test by yourself.

TSINGSEE Qingxi Video focuses on the development and research of computer vision and pattern recognition, covering intelligent analysis servers supporting multiple protocols and multiple channels such as ONVIF, RTSP, GB/T28181, etc. The main products include EasyGBS national standard video cloud service, EasyDSS Internet video cloud service, EasyCVR security video cloud service, EasyRTC video conference cloud service, EasyNVR video edge computing gateway, EasyNTS cloud gateway, etc. It also has EasyDarwin open source community and open platform.

EasyDarwin is an open source community developed and maintained by the domestic video streaming team TSINGSEE Qingxi Video. Since its creation and development in December 2012, it has expanded from the original single-service streaming media server form to the current open source project of the cloud platform architecture.

Guess you like

Origin blog.csdn.net/EasyGBS/article/details/108752681