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

Distributed access method of video networking platform Download PDF

Info

Publication number
CN114338681A
CN114338681A CN202111540470.3A CN202111540470A CN114338681A CN 114338681 A CN114338681 A CN 114338681A CN 202111540470 A CN202111540470 A CN 202111540470A CN 114338681 A CN114338681 A CN 114338681A
Authority
CN
China
Prior art keywords
streaming media
video
networking platform
video networking
node
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.)
Granted
Application number
CN202111540470.3A
Other languages
Chinese (zh)
Other versions
CN114338681B (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

Images

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 process management. The invention comprises the following steps: firstly, the front-end equipment performs sip registration, after the registration is successful, the video networking platform queries the resolution and the code stream of the front-end equipment and stores the two attributes and the equipment id into the zookeeper, and because the code stream and the resolution which have the greatest influence on IO are the code stream and the resolution, whether the existing streaming media can process the video or not is deduced according to the code stream, and if the existing streaming media cannot process the video, the video is discarded. Discarding proves that the streaming media cluster has reached the peak value of processing video, and if the stream is still received, the streaming media node is very likely to be down. The invention can improve the reliability and the availability 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 be effectively managed when thousands of videos are accessed. The method can be widely applied to the management occasion of the cloud video access process.

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 process management.
Background
The GB28181 protocol is a protocol for unified equipment access and streaming media transmission in the security industry, which is realized by the public security ministry, and specifies the interconnection structure of a public security video monitoring networking system, the basic requirements and the security requirements of transmission, exchange and control, 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 large market scale. The security video monitoring products continuously expand new application fields, and the security monitoring is not only applied to the government, the military, but also applied to the fields of traffic, schools, hospitals and the like. This also facilitates the GB28181 protocol to be the main basis for platform compatible frontends and different brand platform interconnections.
In the existing video networking platform, each streaming media server only receives media data of a plurality of front-end devices independently, so that an effective cluster cannot be formed. If one streaming media server is down, the front-end equipment connected with the streaming media server becomes a decoration. Moreover, the existing video networking platform cannot balance to the streaming media server node according to the video parameters of the front-end equipment, and cannot automatically balance the resource overhead before the streaming media server.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a distributed access method of a video networking platform, which can improve the reliability and the availability 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 be effectively managed when thousands of videos are accessed.
The distributed access method of the video networking platform 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 the method comprises the following steps:
s1, real-time video stream enters the front-end equipment and sip registration is carried out;
s2, after the registration is successful, the video networking platform inquires the resolution and the code stream of the video networking platform and stores the two attributes and the equipment id into the zookeeper;
s3, judging whether the stream media is received: since the code stream and the resolution factor have the greatest influence on IO, whether the existing streaming media can process the video or not is deduced according to the code stream:
s31, if it can not receive, discarding proves that the cluster of the streaming media has reached the peak value of processing the video, the current streaming media is not enough to support the video, if the stream is still received, the node of the streaming media is very easy to be down, thus refusing to receive;
s32: if the data can be received, the load is balanced, the streaming media nodes are distributed, and the streaming media processes the received data.
Preferably, in step S1, the GB 28181-based national standard platform includes a front-end device, a sip server and a streaming server, where:
the front-end equipment is used for monitoring the video acquisition, coding, storage and transmission functions of a site;
sip server, which provides registration, and establishes/terminates session connection function, and performs session control;
the streaming media server provides a forwarding service of real-time media stream, and provides 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 streaming media nodes and storing relevant parameters of front-end equipment by using 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 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 be recovered to normal in a short time, the sip server initiates registration again with the redundant streaming media node according to the device id stored in the zookeeper under the streaming media node, so as to ensure that the multiple channels of videos are not affected.
Preferably, in step S32, because the server difference is small and the front-end device is stored in zookeeper, the number of front-end devices under each streaming media node is counted by using a load balancing policy of the minimum connection number LC.
Preferably, in step S32, the streaming media node where the minimum number of front-end devices is located is selected, and this node is the streaming media node for the next video access.
The invention has the beneficial effects that: the distributed access method of the video networking platform provided by the invention is used for releasing a new video stream by putting a streaming media server node aiming at the situation that a GB28181 video networking platform cannot effectively utilize the network condition and the code rate and resolution ratio distribution of a camera after reading media data from the camera. And the most adopted codes of the current monitoring video are H264 and H265, although the codes have high coding efficiency and can effectively reduce the network io overhead and the pressure of a streaming media server, how to realize load balance, high reliability and high availability when the monitoring video faces thousands of paths of video monitoring.
Drawings
Fig. 1 is a basic flow diagram of the video networking platform of the present invention.
Fig. 2 is a diagram of distributed processing based on the GB28181 video networking platform.
Fig. 3 is a redundant backup diagram of a streaming media server of a video networking platform.
Fig. 4 is a schematic diagram of two kinds of load balancing of streaming media of a video networking platform.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
as shown in fig. 1, the present invention provides a distributed access method for a video networking platform, which can improve the reliability and availability of the video networking platform, improve the platform load balancing capability, and support horizontal extension. The national standard video networking platform can be effectively managed when thousands of videos are accessed.
Fig. 1 shows a basic flow chart of a video networking platform. Firstly, the front-end equipment performs sip registration, after the registration is successful, the video networking platform queries the resolution and the code stream of the front-end equipment and stores the two attributes and the equipment id into the zookeeper, and because the code stream and the resolution which have the greatest influence on IO are the code stream and the resolution, whether the existing streaming media can process the video or not is deduced according to the code stream, and if the existing streaming media cannot process the video, the video is discarded. Discarding proves that the streaming media cluster has reached the peak value of processing video, and if the stream is still received, the streaming media node is very likely to be down.
The distributed access method of the video networking platform 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 the method comprises the following steps:
s1, real-time video stream enters the front-end equipment and sip registration is carried out;
s2, after the registration is successful, the video networking platform inquires the resolution and the code stream of the video networking platform and stores the two attributes and the equipment id into the zookeeper;
s3, judging whether the stream media is received: since the code stream and the resolution factor have the greatest influence on IO, whether the existing streaming media can process the video or not is deduced according to the code stream:
s31, if it can not receive, discarding proves that the cluster of the streaming media has reached the peak value of processing the video, the current streaming media is not enough to support the video, if the stream is still received, the node of the streaming media is very easy to be down, thus refusing to receive;
s32: if the data can be received, the load is balanced, the streaming media nodes are distributed, and the streaming media processes the received data.
Preferably, in step S1, the GB 28181-based national standard platform includes a front-end device, a sip server and a streaming server, where:
the front-end equipment is used for monitoring the video acquisition, coding, storage and transmission functions of a site;
sip server, which provides registration, and establishes/terminates session connection function, and performs session control;
the streaming media server provides a forwarding service of real-time media stream, and provides 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 streaming media nodes and storing relevant parameters of front-end equipment by using 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 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 be recovered to normal in a short time, the sip server initiates registration again with the redundant streaming media node according to the device id stored in the zookeeper under the streaming media node, so as to ensure that the multiple channels of videos are not affected.
Preferably, in step S32, because the server difference is small and the front-end device is stored in zookeeper, the number of front-end devices under each streaming media node is counted by using a load balancing policy of the minimum connection number LC.
Preferably, in step S32, the streaming media node where the minimum number of front-end devices is located is selected, and this node is the streaming media node for the next video access.
As shown in fig. 2, the technical solution of the present invention is based on GB28181 video networking platform for distributed processing. And zk is a zookeeper node, and a plurality of zk can form a zookeeper cluster. The plurality of streaming media service nodes form a streaming media cluster.
Fig. 3 shows a redundant backup of a streaming media server of a video networking platform. When one streaming media server is down and cannot be recovered to normal in a short time (zookeeper can automatically perform heartbeat detection), the sip service can re-initiate registration to a redundant streaming media node according to the device id stored on the zookeeper under the streaming media node, so that the influence on multiple paths of videos is avoided. The specific zookeeper node directory may be stored as { streaming media node } - { device id }.
Fig. 4 is a schematic diagram illustrating a streaming media load balancing of a video networking platform. Because the server differences are small and the front-end device will be stored in zookeeper (which will also delete the node if the front-end device is disconnected). Therefore, a load balancing strategy of the minimum connection number LC is adopted, the number of front-end equipment under each streaming media node is counted, and the streaming media node where the minimum number of the front-end equipment is located is selected. The node is the streaming media node for the next video access.
The distributed access method of the video networking platform provided by the invention is used for releasing a new video stream by putting a streaming media server node aiming at the situation that a GB28181 video networking platform cannot effectively utilize the network condition and the code rate and resolution ratio distribution of a camera after reading media data from the camera. And the most adopted codes of the current monitoring video are H264 and H265, although the codes have high coding efficiency and can effectively reduce the network io overhead and the pressure of a streaming media server, how to realize load balance, high reliability and high availability when the monitoring video faces thousands of paths of video monitoring.
The method can be widely applied to the management occasion of the cloud video access process.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (8)

1. A distributed access method of a video networking platform is characterized in that the method is applied to a GB28181 national standard platform, the GB28181 national standard platform comprises front-end equipment, an sip server and a streaming media server, and the method comprises the following steps:
s1, real-time video stream enters the front-end equipment and sip registration is carried out;
s2, after the registration is successful, the video networking platform inquires the resolution and the code stream of the video networking platform and stores the two attributes and the equipment id into the zookeeper;
s3, judging whether the stream media is received: if the data can be received, the load is balanced, the streaming media nodes are distributed, and the streaming media processes the received data.
2. The distributed access method for the video networking platform according to claim 1, wherein in step S1, the GB 28181-based national standard platform includes a front-end device, an sip server and a streaming server, wherein:
the front-end equipment is used for monitoring the video acquisition, coding, storage and transmission functions of a site;
sip server, which provides registration, and establishes/terminates session connection function, and performs session control;
the streaming media server provides a forwarding service of real-time media stream, and provides storage of media, retrieval of historical media information and on-demand service.
3. The distributed access method for video networking platform according to claim 1, wherein in step S2, the GB 28181-based national standard platform refers to a distributed architecture based on GB28181 video networking platform, wherein: the zookeeper cluster is used for monitoring the change of streaming media nodes and storing relevant parameters of front-end equipment by using distributed coordination service.
4. The distributed access method for a video networking platform according to claim 3, wherein in step S2, zk is a zookeeper node, a plurality of zk form a zookeeper cluster, and a plurality of streaming media service nodes form a streaming media cluster.
5. The distributed access method for a video networking platform according to claim 3, wherein in step S2, the zookeeper node directory is stored as { streaming media node } - { device id }.
6. The distributed access method for a video networking platform according to claim 1, wherein in step S31, when the streaming media server is down and cannot be recovered to normal in a short time, the sip server initiates registration again with the redundant streaming media node according to the device id stored in the zookeeper under the streaming media node, so as to ensure that multiple videos are not affected.
7. The distributed access method for the video networking platform according to claim 6, wherein in step S32, the front-end device uses a load balancing policy of a minimum connection number LC in zookeeper storage to count the number of front-end devices under each streaming media node.
8. The distributed access method for video networking platform of claim 7, wherein in step S32, the streaming media node with the smallest number of front-end devices is selected, and the selected streaming media 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 true CN114338681A (en) 2022-04-12
CN114338681B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037748A (en) * 2022-06-06 2022-09-09 周海燕 Communication transit cloud platform based on Internet of things
CN116107760A (en) * 2023-04-07 2023-05-12 浪潮电子信息产业股份有限公司 Load balancing method, device, equipment and medium

Citations (7)

* 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
US20130054806A1 (en) * 2011-08-31 2013-02-28 Metaswitch Networks Ltd Load Balancing for SIP Services
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 南方电网科学研究院有限责任公司 Video stream 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

Patent Citations (7)

* 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
US20130054806A1 (en) * 2011-08-31 2013-02-28 Metaswitch Networks Ltd Load Balancing for SIP Services
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 南方电网科学研究院有限责任公司 Video stream 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
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)》, 14 May 2020 (2020-05-14) *
熊卫刚: "《基于MCPTT协议的分布式集群通信框架设计》", 《信息科技》, vol. 49, no. 12, 20 December 2020 (2020-12-20) *

Cited By (3)

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

Also Published As

Publication number Publication date
CN114338681B (en) 2024-04-30

Similar Documents

Publication Publication Date Title
CN114338681A (en) Distributed access method of video networking platform
KR101910537B1 (en) Service processing method, system and device
CN106657191B (en) Load balancing method and related device and system
CN108062243B (en) Execution plan generation method, task execution method and device
CN103997623B (en) video monitoring method based on P2P technology
CN101741658B (en) Video monitoring system and interaction method in same
CN107249121A (en) A kind of video monitoring system based on cloud platform
CN103634552A (en) Monitoring video storage method, system and central management server
CN112272291B (en) Video storage method, device, management equipment and readable storage medium
CN101140594A (en) Data-base space automatic extended method and management module
CN103888729A (en) Method and device for synchronizing camera information between video monitoring platforms
CN108322318B (en) Alarm analysis method and equipment
CN102333206A (en) Monitoring storage system and method for improving reliability of monitoring storage
CN101459836A (en) Service processing method and system for content distributing network of interactive network television
CN102215378B (en) A kind of multimedia sensing network system of dynamic group net
CN110233749B (en) Fault processing method, system and device and storage medium
CN113489601B (en) Anti-destruction method and device based on autonomous cloud network architecture of video networking
CN106488416B (en) Industry short message sending method and device
CN111654526B (en) Load balancing method and system for streaming media server
US20140317181A1 (en) Establishing dynamic connection
CN104767964B (en) The method and its device, video monitoring system of video storage control and optimization
CN112260946A (en) Link fault processing method and device, terminal equipment and storage medium
CN113347036B (en) Method and system for realizing cloud environment bypass monitoring by utilizing public cloud storage
CN113301380B (en) Service management and control method and device, terminal equipment and storage medium
CN102546995B (en) Data distribution processing method and device

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