CN114338681B - Distributed access method of video networking platform - Google Patents

Distributed access method of video networking platform Download PDF

Info

Publication number
CN114338681B
CN114338681B CN202111540470.3A CN202111540470A CN114338681B CN 114338681 B CN114338681 B CN 114338681B CN 202111540470 A CN202111540470 A CN 202111540470A CN 114338681 B CN114338681 B CN 114338681B
Authority
CN
China
Prior art keywords
streaming media
video
node
networking platform
video networking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111540470.3A
Other languages
Chinese (zh)
Other versions
CN114338681A (en
Inventor
程仁豪
李凡平
石柱国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ISSA Technology Co Ltd
Original Assignee
ISSA Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ISSA Technology Co Ltd filed Critical ISSA Technology Co Ltd
Priority to CN202111540470.3A priority Critical patent/CN114338681B/en
Publication of CN114338681A publication Critical patent/CN114338681A/en
Application granted granted Critical
Publication of CN114338681B publication Critical patent/CN114338681B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to a distributed access method of a video networking platform, and belongs to the technical field of cloud video access flow management. The method comprises the following steps: firstly, front-end equipment performs sip registration, after the registration is successful, a video networking platform inquires the resolution and the code stream of the front-end equipment and stores the two attributes and the equipment id into a zookeeper, and whether the existing streaming media can process the video or not is deduced according to the code stream because the code stream and the resolution are the largest in influence of IO, and if not, the streaming media are discarded. Discarding proves that the streaming media cluster has reached the peak value of the processed video, and if the streaming media cluster is still receiving, the streaming media node is extremely easy to downtime. The invention can improve the reliability and usability of the video networking platform, improve the load balancing capability of the platform and support the transverse expansion. The national standard video networking platform can effectively manage thousands of paths of videos when the national standard video networking platform is accessed. The method and the device can be widely applied to cloud video access process management occasions.

Description

Distributed access method of video networking platform
Technical Field
The invention relates to a distributed access method of a video networking platform, and belongs to the technical field of cloud video access flow management.
Background
The GB28181 protocol is a unified equipment access and streaming media transmission protocol in security industry realized by the lead of the public security department, and specifies the interconnection structure, the basic requirements and the security requirements of transmission, exchange and control of a public security video monitoring networking system, and the technical requirements of control, transmission flow, protocol interfaces and the like. The security video monitoring industry gradually develops into a mature industry with huge market scale. The security video monitoring products continuously expand new application fields, and the security monitoring is not only applied to government and military but also applied to traffic, schools, hospitals and other fields at present. This also promotes the GB28181 protocol to be the primary basis for platform compatible front-ends and different brands of platform interconnections.
In the existing video networking platform, each streaming media server only receives media data of a plurality of front-end devices individually, so that an effective cluster cannot be formed. If a streaming media server is down, the front-end equipment connected with the streaming media server becomes a furnishing. In addition, the existing video networking platform cannot balance to the streaming media server node according to the video parameters of the front-end equipment, and the resource overhead before the streaming media server cannot be automatically balanced.
Disclosure of Invention
Aiming at the defects existing in the prior art, the invention provides a distributed access method of a video networking platform, which can improve the reliability and usability of the video networking platform, improve the load balancing capability of the platform and support transverse expansion. The national standard video networking platform can effectively manage thousands of paths of videos when the national standard video networking platform is accessed.
The invention discloses a distributed access method of a video networking platform, which is applied to a GB28181 national standard platform, wherein the GB28181 national standard platform comprises front-end equipment, a sip server and a streaming media server, and comprises the following steps:
s1, a real-time video stream enters front-end equipment and sip registration is carried out;
S2, after successful registration, the video networking platform inquires the resolution and the code stream of the video networking platform and stores the two attributes and the device id into a zookeeper;
S3, judging whether the streaming media is received or not: since the influence of IO is the code stream and resolution ratio at the maximum, it is inferred from the code stream whether the existing streaming media can process video:
S31, discarding if the stream media cluster can not receive the video, wherein discarding proves that the stream media cluster reaches the peak value of the processed video, the existing stream media is insufficient to support the video, and if the stream media node is extremely easy to downtime due to the fact that the stream media is still received, the stream media cluster is refused to receive the video;
S32: if the data can be received, load balancing is carried out, the streaming media nodes are distributed, and the streaming media processes the received data.
Preferably, in the step S1, the GB 28181-based national standard platform includes a front-end device, a sip server and a streaming media server, where:
The front-end equipment is used for monitoring the functions of video acquisition, coding, storage and transmission on site;
The Sip server provides registration, session connection establishment/termination functions and a module for session control;
and the streaming media server provides forwarding service of real-time media stream, storage of media, retrieval of historical media information and on-demand service.
Preferably, in step S2, the GB 28181-based national standard platform refers to a distributed architecture based on a GB28181 video networking platform, where: the zookeeper cluster is used for monitoring the change of the streaming media node and storing the related parameters of the front-end equipment by using a distributed coordination service.
Preferably, in step S2, zk is a zookeeper node, a plurality of zks form a zookeeper cluster, and a plurality of streaming media service nodes form a streaming media cluster.
Preferably, in the step S2, the zookeeper node directory is stored as { streaming media node } { device id }.
Preferably, in step S31, when the streaming media server is down and cannot recover to normal in a short time, the sip server will reinitiate registration to the redundant streaming media node according to the device id under the streaming media node stored on the zookeeper, thereby ensuring that the multipath video is not affected.
Preferably, in the step S32, because the server difference is small and the front-end devices are stored in the zookeeper, the number of front-end devices under each streaming media node is counted by adopting a load balancing policy of the minimum connection number LC.
Preferably, in step S32, the streaming media node with the smallest number of front-end devices is selected, and this node is the streaming media node for the next video access.
The beneficial effects of the invention are as follows: the distributed access method of the video networking platform aims at the situation that the GB28181 video networking platform cannot effectively utilize network after reading media data from a camera, and the code rate and resolution of the camera are distributed and put into a streaming media server node, so that a new video stream is released. In addition, the codes adopted in the prior monitoring video are H264 and H265, and although the codes have high coding efficiency, the network io overhead and the streaming media server pressure can be effectively reduced, how to realize load balancing, high reliability and high availability when the monitoring video is monitored in thousands of paths.
Drawings
Fig. 1 is a basic flow diagram of a video networking platform of the present invention.
Fig. 2 is a distributed processing diagram based on the GB28181 video networking platform.
Fig. 3 is a redundant backup view of streaming media servers for a video networking platform.
Fig. 4 is a schematic diagram of two load balancing of streaming media of a video networking platform.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1:
As shown in fig. 1, the invention provides a distributed access method of a video networking platform, which can improve the reliability and usability of the video networking platform, improve the load balancing capability of the platform and support transverse expansion. The national standard video networking platform can effectively manage thousands of paths of videos when the national standard video networking platform is accessed.
A basic flow diagram of a video networking platform is shown in fig. 1. Firstly, front-end equipment performs sip registration, after the registration is successful, a video networking platform inquires the resolution and the code stream of the front-end equipment and stores the two attributes and the equipment id into a zookeeper, and whether the existing streaming media can process the video or not is deduced according to the code stream because the code stream and the resolution are the largest in influence of IO, and if not, the streaming media are discarded. Discarding proves that the streaming media cluster has reached the peak value of the processed video, and if the streaming media cluster is still receiving, the streaming media node is extremely easy to downtime.
The invention discloses a distributed access method of a video networking platform, which is applied to a GB28181 national standard platform, wherein the GB28181 national standard platform comprises front-end equipment, a sip server and a streaming media server, and comprises the following steps:
s1, a real-time video stream enters front-end equipment and sip registration is carried out;
S2, after successful registration, the video networking platform inquires the resolution and the code stream of the video networking platform and stores the two attributes and the device id into a zookeeper;
S3, judging whether the streaming media is received or not: since the influence of IO is the code stream and resolution ratio at the maximum, it is inferred from the code stream whether the existing streaming media can process video:
S31, discarding if the stream media cluster can not receive the video, wherein discarding proves that the stream media cluster reaches the peak value of the processed video, the existing stream media is insufficient to support the video, and if the stream media node is extremely easy to downtime due to the fact that the stream media is still received, the stream media cluster is refused to receive the video;
S32: if the data can be received, load balancing is carried out, the streaming media nodes are distributed, and the streaming media processes the received data.
Preferably, in the step S1, the GB 28181-based national standard platform includes a front-end device, a sip server and a streaming media server, where:
The front-end equipment is used for monitoring the functions of video acquisition, coding, storage and transmission on site;
The Sip server provides registration, session connection establishment/termination functions and a module for session control;
and the streaming media server provides forwarding service of real-time media stream, storage of media, retrieval of historical media information and on-demand service.
Preferably, in step S2, the GB 28181-based national standard platform refers to a distributed architecture based on a GB28181 video networking platform, where: the zookeeper cluster is used for monitoring the change of the streaming media node and storing the related parameters of the front-end equipment by using a distributed coordination service.
Preferably, in step S2, zk is a zookeeper node, a plurality of zks form a zookeeper cluster, and a plurality of streaming media service nodes form a streaming media cluster.
Preferably, in the step S2, the zookeeper node directory is stored as { streaming media node } { device id }.
Preferably, in step S31, when the streaming media server is down and cannot recover to normal in a short time, the sip server will reinitiate registration to the redundant streaming media node according to the device id under the streaming media node stored on the zookeeper, thereby ensuring that the multipath video is not affected.
Preferably, in the step S32, because the server difference is small and the front-end devices are stored in the zookeeper, the number of front-end devices under each streaming media node is counted by adopting a load balancing policy of the minimum connection number LC.
Preferably, in step S32, the streaming media node with the smallest number of front-end devices is selected, and this node is the streaming media node for the next video access.
As shown in fig. 2, the technical scheme of the invention is to perform distributed processing based on a GB28181 video networking platform. Where zk is a zookeeper node, and multiple zks may form a zookeeper cluster. The plurality of streaming media service nodes form a streaming media cluster.
A redundant backup of streaming servers of a video networking platform is shown in fig. 3. When one streaming media server is down and cannot recover to normal in a short time (the zookeeper can automatically detect the heartbeat), the sip service can reinitiate registration to the redundant streaming media nodes according to the equipment id under the streaming media nodes stored on the zookeeper, so that the multipath video is ensured not to be affected. A specific zookeeper node directory may be stored as { streaming media node } { device id }.
Fig. 4 is a schematic diagram of streaming media load balancing of the video networking platform. Because the server differences are small and the head-end will be stored in the zookeeper (which will also delete the node if the head-end is disconnected). And the load balancing strategy of the minimum connection number LC is adopted to count the number of front-end devices under each streaming media node, and the streaming media node with the minimum number of front-end devices is selected. The node is the streaming media node of the next video access.
The distributed access method of the video networking platform aims at the situation that the GB28181 video networking platform cannot effectively utilize network after reading media data from a camera, and the code rate and resolution of the camera are distributed and put into a streaming media server node, so that a new video stream is released. In addition, the codes adopted in the prior monitoring video are H264 and H265, and although the codes have high coding efficiency, the network io overhead and the streaming media server pressure can be effectively reduced, how to realize load balancing, high reliability and high availability when the monitoring video is monitored in thousands of paths.
The method and the device can be widely applied to cloud video access process management occasions.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (1)

1. The distributed access method of the video networking platform is characterized by being applied to a GB28181 national standard platform, wherein the GB28181 national standard platform comprises front-end equipment, a sip server and a streaming media server, and comprises the following steps of:
S1, a real-time video stream enters front-end equipment and sip registration is carried out; the national standard platform based on GB28181 comprises front-end equipment, a sip server and a streaming media server, wherein:
The front-end equipment is used for monitoring the functions of video acquisition, coding, storage and transmission on site;
The Sip server provides registration, session connection establishment/termination functions and a module for session control;
The streaming media server provides forwarding service of real-time media stream, storage of media, retrieval of historical media information and on-demand service;
S2, after successful registration, the video networking platform inquires the resolution and the code stream of the video networking platform and stores the two attributes and the device id into a zookeeper; GB 28181-based national standard platform refers to a distributed architecture based on a GB28181 video networking platform, wherein: the zookeeper cluster is used for monitoring the change of the streaming media node and storing the related parameters of the front-end equipment by using a distributed coordination service;
zk is a zookeeper node, a plurality of zks form a zookeeper cluster, and a plurality of streaming media service nodes form a streaming media cluster;
The zookeeper node directory is stored as { streaming media node } { -device id };
s3, judging whether the streaming media is received or not: if the data can be received, carrying out load balancing, distributing streaming media nodes, and processing the received data by streaming media;
When the streaming media server is down and can not recover to normal in a short time, the sip server can reinitiate registration to the redundant streaming media node according to the equipment id under the streaming media node stored on the zookeeper, so as to ensure that the multipath video is not affected;
The front-end equipment stores in a zookeeper, adopts a load balancing strategy of minimum connection number LC, and counts the number of the front-end equipment under each streaming media node;
And selecting the streaming media node with the minimum front-end equipment number, wherein the node is the streaming media node for the next video access.
CN202111540470.3A 2021-12-16 2021-12-16 Distributed access method of video networking platform Active CN114338681B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111540470.3A CN114338681B (en) 2021-12-16 2021-12-16 Distributed access method of video networking platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111540470.3A CN114338681B (en) 2021-12-16 2021-12-16 Distributed access method of video networking platform

Publications (2)

Publication Number Publication Date
CN114338681A CN114338681A (en) 2022-04-12
CN114338681B true CN114338681B (en) 2024-04-30

Family

ID=81052101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111540470.3A Active CN114338681B (en) 2021-12-16 2021-12-16 Distributed access method of video networking platform

Country Status (1)

Country Link
CN (1) CN114338681B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037748B (en) * 2022-06-06 2024-05-10 御生活(广州)科技服务有限公司 Communication transfer cloud platform based on internet of things
CN116107760B (en) * 2023-04-07 2023-07-14 浪潮电子信息产业股份有限公司 Load balancing method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001365A (en) * 2007-01-19 2007-07-18 北京华纬讯电信技术有限公司 Method for implementing media flow balance dispatching in vedio service
CN106375721A (en) * 2016-09-14 2017-02-01 重庆邮电大学 Smart video monitoring system based on cloud platform
CN108289190A (en) * 2017-01-10 2018-07-17 湖南易分销电子商务有限公司 The research and realization of a kind of video monitoring system to media server
CN109714648A (en) * 2018-12-03 2019-05-03 南方电网科学研究院有限责任公司 A kind of video flow load balancing method and device
US10523733B1 (en) * 2016-05-31 2019-12-31 Ribbon Communications Operating Company, Inc. Highly scalable methods and apparatus for balancing SIP loads across a cluster of SIP processing entities
CN111193801A (en) * 2019-12-31 2020-05-22 杭州当虹科技股份有限公司 National standard 28181 platform distributed cluster realization system based on JAIN-SIP

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8775628B2 (en) * 2011-08-31 2014-07-08 Metaswitch Networks Ltd. Load balancing for SIP services

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001365A (en) * 2007-01-19 2007-07-18 北京华纬讯电信技术有限公司 Method for implementing media flow balance dispatching in vedio service
US10523733B1 (en) * 2016-05-31 2019-12-31 Ribbon Communications Operating Company, Inc. Highly scalable methods and apparatus for balancing SIP loads across a cluster of SIP processing entities
CN106375721A (en) * 2016-09-14 2017-02-01 重庆邮电大学 Smart video monitoring system based on cloud platform
CN108289190A (en) * 2017-01-10 2018-07-17 湖南易分销电子商务有限公司 The research and realization of a kind of video monitoring system to media server
CN109714648A (en) * 2018-12-03 2019-05-03 南方电网科学研究院有限责任公司 A kind of video flow load balancing method and device
CN111193801A (en) * 2019-12-31 2020-05-22 杭州当虹科技股份有限公司 National standard 28181 platform distributed cluster realization system based on JAIN-SIP

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《基于MCPTT协议的分布式集群通信框架设计》;熊卫刚;《信息科技》;20201220;第49卷(第12期);全文 *
Prajakta Papalkar ; Mahendra Gaikwad.《Adaptive load balancing approach for Cluster Bidirectional Diagonal Mesh Topology》.《2019 9th International Conference on Emerging Trends in Engineering and Technology - Signal and Information Processing (ICETET-SIP-19)》.2020,全文. *

Also Published As

Publication number Publication date
CN114338681A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN114338681B (en) Distributed access method of video networking platform
KR101910537B1 (en) Service processing method, system and device
EP2202921B1 (en) A data storage method, a management server, a storage equipment and system
CN103997623B (en) video monitoring method based on P2P technology
CN106657191B (en) Load balancing method and related device and system
CN107249121A (en) A kind of video monitoring system based on cloud platform
CN103634552A (en) Monitoring video storage method, system and central management server
CN102333206A (en) Monitoring storage system and method for improving reliability of monitoring storage
CN110098987B (en) Method for balancing multilayer long connection load of Internet of things
CN107959602B (en) A kind of method of network entry and device
CN108650482B (en) Response method and device for video call service
CN103139607B (en) A kind of real-time network monitoring system and method thereof
CN108551571B (en) Monitoring video distribution method, device and system and distribution server
CN111654526B (en) Load balancing method and system for streaming media server
CN112866390B (en) Data transmission method, device, terminal equipment and storage medium
CN101242367A (en) Method for selecting forward node end in media stream
CN112260946B (en) Link failure processing method and device, terminal equipment and storage medium
WO2022126837A1 (en) Intelligent scheduling system for video monitoring service
CN103036808A (en) Method and system for removing network jitter
CN110808917B (en) Multilink aggregation data retransmission method and transmitting equipment
CN101695044A (en) Stream media service node and load balancing method thereof
CN107707395A (en) A kind of data transmission method, device and system
CN104767964A (en) Video storage control and optimization method and device, and video monitoring system
CN116723081A (en) Packet loss optimization method and device
CN110740295A (en) Method and device for polling and playing video streams monitored by video network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant