CN106375100B - Method of realizing group broadcasting and device in a kind of video monitoring system - Google Patents
Method of realizing group broadcasting and device in a kind of video monitoring system Download PDFInfo
- Publication number
- CN106375100B CN106375100B CN201610779669.4A CN201610779669A CN106375100B CN 106375100 B CN106375100 B CN 106375100B CN 201610779669 A CN201610779669 A CN 201610779669A CN 106375100 B CN106375100 B CN 106375100B
- Authority
- CN
- China
- Prior art keywords
- multicast group
- multicast
- media stream
- signaling
- same
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/185—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/16—Multipoint routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明公开了一种视频监控系统中组播实现方法及装置,应用于视频管理服务器,所述视频监控系统中同网段的前端设备共享相同的一个IP地址,所述组播实现方法通过接收配置信息,加入所述前端设备的信令组播组,并接收所述前端设备通过所述信令组播组发送的注册消息,记录前端设备的信令组播组和媒体流组播组;从而根据媒体流请求消息中的前端设备ID将对应的信令组播组和媒体流组播组告知给客户端,通知客户端加入该信令组播组和媒体流组播组。本发明的装置包括配置模块、注册模块和组播管理模块。本发明的方法及装置实现了相同IP地址的前端设备的组播,提高了IP地址的利用率,便于IP地址的部署。
The invention discloses a method and device for implementing multicast in a video monitoring system, which are applied to a video management server. Front-end equipment in the same network segment in the video monitoring system share the same IP address. The method for implementing multicast receives Configure information, join the signaling multicast group of the front-end equipment, and receive the registration message sent by the front-end equipment through the signaling multicast group, and record the signaling multicast group and the media stream multicast group of the front-end equipment; Therefore, according to the front-end device ID in the media stream request message, the corresponding signaling multicast group and media stream multicast group are notified to the client, and the client is notified to join the signaling multicast group and media stream multicast group. The device of the invention includes a configuration module, a registration module and a multicast management module. The method and device of the present invention realize the multicasting of the front-end equipment with the same IP address, improve the utilization rate of the IP address, and facilitate the deployment of the IP address.
Description
技术领域technical field
本发明属于视频监控技术领域,尤其涉及一种视频监控系统中组播实现方法及装置。The invention belongs to the technical field of video monitoring, in particular to a method and device for realizing multicast in a video monitoring system.
背景技术Background technique
经典的PIM Sparse-Mode(PIM-SM)是单向树的转发,初始组播流量从源发送到RP,然后由RP使用共享树转发给接收者;如果RP不在最短路径树上,会发生自动的从源到接受者的最短路径树的计算,进而生成源树路由条目(S,G);这样的行为可能导致路由器维护比较多的源树路由条目(S,G),造成一定的系统和网络资源的占用。The classic PIM Sparse-Mode (PIM-SM) is a unidirectional tree forwarding. The initial multicast traffic is sent from the source to the RP, and then the RP uses the shared tree to forward it to the receiver; if the RP is not on the shortest path tree, automatic The calculation of the shortest path tree from the source to the receiver, and then generate the source tree routing entries (S, G); such behavior may cause the router to maintain more source tree routing entries (S, G), resulting in certain system and occupancy of network resources.
Bidirectional PIM(Bidir-PIM)即双向PIM属于PIM-SM的一个分支和扩展技术,能够优化PIM-SM单向树所导致的资源占用问题。在Bidir-PIM运行模式下,无需建立任何源树条目(S,G),所有的组播流量都使用共享树转发,在该模式下,没有任何源注册消息,组播源和接收者都加入到同一棵共享树。Bidir-PIM特别适合组播源和接收客户都很多的应用,例如多方电视电话会议。在Bidir-PIM协议中,组播源的业务流被无条件的转发往RP,再由RP向多个客户机进行转发。它不需求源注册过程,省去了路由设备对大量组播源进行源状态管理的资源消耗。在Bidir-PIM协议域中只存在(*,G)表项,而不需要(S,G)表项,所以又大量的减少了设备因为维护组播转发表项都导致的资源损耗。Bidirectional PIM (Bidir-PIM), that is, bidirectional PIM is a branch and extension technology of PIM-SM, which can optimize the resource occupation problem caused by the unidirectional tree of PIM-SM. In the Bidir-PIM mode of operation, there is no need to create any source tree entries (S, G), and all multicast traffic is forwarded using the shared tree. In this mode, there is no source registration message, and both the multicast source and the receiver join to the same shared tree. Bidir-PIM is especially suitable for applications with many multicast sources and receiving clients, such as multi-party video conference calls. In the Bidir-PIM protocol, the service flow of the multicast source is unconditionally forwarded to the RP, and then the RP forwards it to multiple clients. It does not require the source registration process, and saves the resource consumption of routing equipment for source state management of a large number of multicast sources. In the Bidir-PIM protocol domain, there are only (*, G) entries, and no (S, G) entries are needed, so the resource consumption caused by the maintenance of multicast forwarding entries of the device is greatly reduced.
然而在基于双向PIM的视频监控系统中,由于前端设备比较多,在现网中增加视频监控设备时,IP地址部署起来会比较麻烦,可能存在IP地址不够、或者部署时出现地址冲突影响到业务。However, in the two-way PIM-based video surveillance system, due to the large number of front-end devices, when adding video surveillance devices to the live network, it will be more troublesome to deploy IP addresses. There may be insufficient IP addresses, or address conflicts during deployment may affect services. .
发明内容Contents of the invention
本发明的目的是提供一种视频监控系统中组播实现方法及装置,应用在基于双向PIM的视频监控系统中,解决前端设备较多,可能存在IP地址不够、或者部署时出现地址冲突影响到业务等问题。The purpose of the present invention is to provide a method and device for implementing multicast in a video monitoring system, which is applied in a video monitoring system based on two-way PIM, and solves the problem that there are many front-end equipment, and there may be insufficient IP addresses, or address conflicts during deployment affect the business issues.
为了实现上述目的,本发明技术方案如下:In order to achieve the above object, the technical scheme of the present invention is as follows:
一种视频监控系统中组播实现方法,应用于视频管理服务器,所述视频监控系统中同网段的前端设备共享相同的一个IP地址,配置所述前端设备对应的视频管理服务器的ID信息、以及对应的信令组播组和媒体流组播组,所述前端设备启动后加入到信令组播组和媒体流组播组,所述视频监控系统中组播实现方法包括:A method for implementing multicast in a video surveillance system, applied to a video management server, where front-end devices on the same network segment in the video surveillance system share the same IP address, configure the ID information of the video management server corresponding to the front-end device, And the corresponding signaling multicast group and media stream multicast group, the front-end equipment joins the signaling multicast group and the media stream multicast group after starting, and the method for implementing multicast in the video surveillance system includes:
接收配置信息,加入所述前端设备的信令组播组;receiving configuration information, and joining the signaling multicast group of the front-end equipment;
接收所述前端设备通过所述信令组播组发送的注册消息,记录前端设备的信令组播组和媒体流组播组;receiving a registration message sent by the front-end device through the signaling multicast group, and recording the signaling multicast group and the media stream multicast group of the front-end device;
接收客户端媒体流请求消息,根据媒体流请求消息中的前端设备ID将对应的信令组播组和媒体流组播组告知给客户端,通知客户端加入该信令组播组和媒体流组播组。Receive the client's media stream request message, inform the client of the corresponding signaling multicast group and media stream multicast group according to the front-end device ID in the media stream request message, and notify the client to join the signaling multicast group and media stream multicast group.
进一步地,所述视频监控系统中组播实现方法,还包括:Further, the multicast implementation method in the video monitoring system also includes:
通过信令组播组接收客户端释放媒体流的消息,并通过该信令组播组进行回应,使得客户端在收到回应后发送离开消息离开对应的媒体流组播组。Receive the message that the client releases the media stream through the signaling multicast group, and respond through the signaling multicast group, so that the client sends a leave message to leave the corresponding media stream multicast group after receiving the response.
进一步地,所述视频监控系统中组播实现方法,还包括:Further, the multicast implementation method in the video monitoring system also includes:
向所述信令组播组中的成员通告客户端所请求的前端设备及对应的媒体流组播组。Notifying the members of the signaling multicast group of the front-end device requested by the client and the corresponding media stream multicast group.
本发明所述同网段的前端设备共享相同的一个IP地址,是指处于同一个二层网络中的前端设备共享相同的一个IP地址。The front-end devices in the same network segment sharing the same IP address in the present invention means that the front-end devices in the same two-layer network share the same IP address.
所述共享相同的一个IP地址的前端设备的信令组播组相同,所述共享相同的一个IP地址的前端设备具有各自独立的媒体流组播组。The signaling multicast groups of the front-end devices sharing the same IP address are the same, and the front-end devices sharing the same IP address have their own independent media stream multicast groups.
本发明还提出了一种视频监控系统中组播实现装置,应用于视频管理服务器,所述视频监控系统中同网段的前端设备共享相同的一个IP地址,所述前端设备配置有对应的视频管理服务器的ID信息、以及对应的信令组播组和媒体流组播组,所述前端设备启动后加入到信令组播组和媒体流组播组,所述视频监控系统中组播实现装置包括:The present invention also proposes a device for implementing multicast in a video surveillance system, which is applied to a video management server. The front-end equipment on the same network segment in the video surveillance system shares the same IP address, and the front-end equipment is configured with a corresponding video ID information of the management server, and the corresponding signaling multicast group and media stream multicast group. Devices include:
配置模块,用于接收配置信息,加入所述前端设备的信令组播组;A configuration module, configured to receive configuration information and join the signaling multicast group of the front-end device;
注册模块,用于接收所述前端设备通过所述信令组播组发送的注册消息,记录前端设备的信令组播组和媒体流组播组;A registration module, configured to receive a registration message sent by the front-end device through the signaling multicast group, and record the signaling multicast group and the media stream multicast group of the front-end device;
组播管理模块,用于接收客户端媒体流请求消息,根据媒体流请求消息中的前端设备ID将对应的信令组播组和媒体流组播组告知给客户端,通知客户端加入该信令组播组和媒体流组播组。The multicast management module is used to receive the client media stream request message, inform the client of the corresponding signaling multicast group and media stream multicast group according to the front-end device ID in the media stream request message, and notify the client to join the message Make multicast group and media stream multicast group.
进一步地,所述组播管理模块,还用于:Further, the multicast management module is also used for:
通过信令组播组接收客户端释放媒体流的消息,并通过该信令组播组进行回应,使得客户端在收到回应后发送离开消息离开对应的媒体流组播组。Receive the message that the client releases the media stream through the signaling multicast group, and respond through the signaling multicast group, so that the client sends a leave message to leave the corresponding media stream multicast group after receiving the response.
进一步地,所述组播管理模块,还用于:Further, the multicast management module is also used for:
向所述信令组播组中的成员通告客户端所请求的前端设备及对应的媒体流组播组。Notifying the members of the signaling multicast group of the front-end device requested by the client and the corresponding media stream multicast group.
本发明提出了一种视频监控系统中组播实现方法及装置,一个网段内的IPC共享相同的IP地址接入视频监控网络,通过基于双向PIM的组播技术完成与视频监控中其它设备进行交互。通过组播实现对相同IP地址的一批IPC进行批量配置,一个网段内的IPC共享相同的一个IP地址,在全网支持双向pim的组播组网内,进行视频监控业务通信。本发明的方法及装置,提高了IP地址的利用率,便于IP地址的部署,同时还能实现相同组播组设备的交互。The present invention proposes a method and device for implementing multicast in a video surveillance system. The IPCs in a network segment share the same IP address to access the video surveillance network, and the two-way PIM-based multicast technology is used to communicate with other devices in the video surveillance. interact. Through multicast, a batch of IPCs with the same IP address can be configured in batches. IPCs in a network segment share the same IP address, and the video surveillance business communication can be carried out in the multicast network that supports bidirectional PIM in the whole network. The method and device of the invention improve the utilization rate of the IP address, facilitate the deployment of the IP address, and at the same time realize the interaction of devices in the same multicast group.
附图说明Description of drawings
图1为基于双向PIM组网的视频监控系统网络图;Figure 1 is a network diagram of a video surveillance system based on bidirectional PIM networking;
图2为本发明视频监控系统中组播实现方法流程图;Fig. 2 is the flow chart of the multicast implementation method in the video surveillance system of the present invention;
图3为本发明视频监控系统中组播实现装置结构示意图。Fig. 3 is a schematic structural diagram of a device for implementing multicast in the video surveillance system of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明技术方案做进一步详细说明,以下实施例不构成对本发明的限定。The technical solution of the present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments, and the following embodiments do not constitute a limitation of the present invention.
本实施例以图1为例,视频监控系统基于双向PIM组网,前端设备分为两组,分别是同IP的IPC组1和同IP的IPC组2,IPC组1对应的信令组播组为G_sig1,IPC组2对应的信令组播组为G_sig2。视频监控系统中还包括客户端、视频管理服务器、存储设备和电视墙等设备。This embodiment takes Figure 1 as an example. The video monitoring system is based on two-way PIM networking, and the front-end equipment is divided into two groups, which are IPC group 1 with the same IP and IPC group 2 with the same IP, and the signaling multicast corresponding to IPC group 1 The group is G_sig1, and the signaling multicast group corresponding to IPC group 2 is G_sig2. The video surveillance system also includes equipment such as clients, video management servers, storage devices, and video walls.
其中,共享IP地址的前端设备IPC加入视频管理服务器前,需配置这些IPC的视频管理服务器的ID信息,IPC的ID信息,以及对应的组播组。本实施例所有同网段的IPC共享相同的一个单播IP地址,例如同一个二层网络中的IPC共享相同的一个IP地址,不同二层网络中的IPC的IP地址不同。本实施例IPC出厂默认禁用免费ARP功能,以避免网络设备报ARP冲突。Wherein, before the front-end equipment IPCs sharing IP addresses join the video management server, ID information of the video management server of these IPCs, ID information of the IPCs, and corresponding multicast groups need to be configured. In this embodiment, all IPCs on the same network segment share the same unicast IP address. For example, IPCs in the same layer 2 network share the same IP address, and IPCs in different layer 2 networks have different IP addresses. In this embodiment, the IPC factory defaults to disable the gratuitous ARP function to avoid ARP conflicts reported by network devices.
在对这些IPC进行配置时,可以通过直连登录到IPC进行配置,也可以在与这些IPC相同网段的PC上,设置组播搜索工具发现这些IPC。PC发送组播或者广播onvif发现报文;这些IPC收到组播发现报文后,可以通过单播或者组播把相关信息发送给PC。比如回应的信息包括,设备的类型,MAC地址,序列号,版本等。PC通过组播报文对IPC进行配置,配置中针对MAC地址对IPC进行区分,设置这些IPC的视频管理服务器的ID信息,IPC的ID信息,以及对应的组播组。由于所有的IPC有相同的IP地址,此消息通过组播或者广播发送,在消息体中通过mac地址区分各IPC的配置信息。具体配置如下:When configuring these IPCs, you can log in to the IPCs through a direct connection for configuration, or you can set up a multicast search tool on a PC on the same network segment as these IPCs to discover these IPCs. PCs send multicast or broadcast onvif discovery packets; these IPCs can send relevant information to PCs through unicast or multicast after receiving the multicast discovery packets. For example, the response information includes device type, MAC address, serial number, version, etc. The PC configures the IPCs through multicast packets. In the configuration, the MAC addresses are used to distinguish the IPCs, and the ID information of the video management server of these IPCs, the ID information of the IPCs, and the corresponding multicast groups are set. Since all IPCs have the same IP address, this message is sent by multicast or broadcast, and the configuration information of each IPC is distinguished by the mac address in the message body. The specific configuration is as follows:
表1Table 1
如表1所示,IPC摄像机Id_a、Id_b位于IPC组1中,其对应的信令组为G_sig1,但分别对应不同的媒体流组播组。即相同IP地址的IPC共享相同的信令组播组G_sig,但每个IPC有自己独立的媒体流组播组,即G_media字段对应的值。IPC收到PC的配置后,发送IGMP加入报文,加入到各自对应的两个组播组中,并在IPC启动时检查配置项,如果存在G_sig和G_media组播组配置,则IPC启动后就自动的加入到对应的组播组中。As shown in Table 1, IPC cameras Id_a and Id_b are located in IPC group 1, and their corresponding signaling group is G_sig1, but respectively correspond to different media stream multicast groups. That is, IPCs with the same IP address share the same signaling multicast group G_sig, but each IPC has its own independent media stream multicast group, which is the value corresponding to the G_media field. After the IPC receives the configuration from the PC, it sends an IGMP join message to join the corresponding two multicast groups, and checks the configuration items when the IPC starts. If there are G_sig and G_media multicast group configurations, the IPC will start Automatically join the corresponding multicast group.
需要说明的,相同IP地址的IPC对应的信令组播组可以相同也可以不同,配置相同的信令组播组可以节省网络资源,本实施例以具有相同的信令组播组为例进行说明,而相同IP地址的IPC在本实施例中有自己独立的媒体流组播组,在开放的情况下也可以共用一个组播组。It should be noted that the signaling multicast groups corresponding to IPCs with the same IP address can be the same or different. Configuring the same signaling multicast group can save network resources. This embodiment takes the same signaling multicast group as an example. Note, while the IPCs with the same IP address have their own independent media stream multicast group in this embodiment, they can also share a multicast group in an open situation.
本实施例客户端还需要登录到视频管理服务器,并配置视频管理服务器加入到信令组播组G_sig中,也可以直接登录到视频管理服务器进行配置。客户端通过用户名和密码登录到视频管理服务器,配置视频管理服务器的G_sig组播组。如图1,有两个同IP的IPC组,其信令组播组地址分别为G_sig1和G_sig2,则在视频管理服务器上需要配置上G_sig1和G_sig2两个组播组。视频管理服务器收到客户端的配置后发送IGMP消息加入到组播组G_sig1和G_sig2,同时视频管理服务器上存在已登录的客户端的信息。In this embodiment, the client also needs to log in to the video management server, and configure the video management server to join the signaling multicast group G_sig, or directly log in to the video management server for configuration. The client logs in to the video management server through the user name and password, and configures the G_sig multicast group of the video management server. As shown in Figure 1, there are two IPC groups with the same IP, and their signaling multicast group addresses are G_sig1 and G_sig2 respectively, so two multicast groups G_sig1 and G_sig2 need to be configured on the video management server. After receiving the configuration from the client, the video management server sends an IGMP message to join the multicast groups G_sig1 and G_sig2, and at the same time, there is information about the logged-in client on the video management server.
本实施例共享IP地址的前端设备IPC加入到视频管理服务器,IPC通过此前配置的G_sig组发送设备注册消息到视频管理服务器,消息的基本格式如下:(消息类型,接受者ID,设备ID,设备媒体组)。The front-end device IPC of the shared IP address of this embodiment joins the video management server, and the IPC sends the device registration message to the video management server through the G_sig group configured beforehand. The basic format of the message is as follows: (message type, recipient ID, device ID, device media group).
视频管理服务器通过接受者ID判断到是前端设备IPC发送给自己的设备注册消息后,将IPC的设备信息记入数据库,并将这些IPC置为上线状态,如下表所示:After the video management server judges the device registration message sent by the front-end device IPC through the recipient ID, it records the device information of the IPC into the database, and puts these IPCs into the online state, as shown in the following table:
表2Table 2
在经过上述的配置之后,IPC、客户端和视频管理服务器就可以相互交互,实现视频监控系统中的组播业务。After the above configuration, the IPC, the client and the video management server can interact with each other to realize the multicast service in the video surveillance system.
如图2所示,一种视频监控系统中组播实现方法,应用于视频管理服务器,该视频监控系统中同网段的前端设备共享相同的一个单播IP地址,根据MAC地址对所述前端设备进行区分,配置所述前端设备对应的视频管理服务器的ID信息、以及对应的信令组播组和媒体流组播组,所述前端设备启动后加入到信令组播组和媒体流组播组。本实施例视频监控系统中组播实现方法包括:As shown in Figure 2, a method for implementing multicast in a video surveillance system is applied to a video management server. In the video surveillance system, front-end devices on the same network segment share the same unicast IP address, and the front-end devices are configured according to the MAC address. The device distinguishes, configures the ID information of the video management server corresponding to the front-end device, and the corresponding signaling multicast group and media stream multicast group, and the front-end device joins the signaling multicast group and media stream group after starting broadcast group. The implementation method of multicast in the video surveillance system of this embodiment includes:
接收配置信息,加入所述前端设备的信令组播组;receiving configuration information, and joining the signaling multicast group of the front-end equipment;
接收前端设备通过信令组播组发送的注册消息,记录前端设备的信令组播组和媒体流组播组;Receive the registration message sent by the front-end device through the signaling multicast group, and record the signaling multicast group and media stream multicast group of the front-end device;
接收客户端媒体流请求消息,根据媒体流请求消息中的前端设备ID将对应的信令组播组和媒体流组播组告知给客户端,通知其加入该信令组播组和媒体流组播组。Receive the client's media stream request message, inform the client of the corresponding signaling multicast group and media stream multicast group according to the front-end device ID in the media stream request message, and notify it to join the signaling multicast group and media stream group broadcast group.
具体地,客户端获取或者释放指定ID的IPC的媒体流的过程如下:Specifically, the process for the client to obtain or release the media stream of the IPC with the specified ID is as follows:
本发明的一种实施例,客户端获取指定ID的IPC的媒体流。客户端向视频管理服务器发送媒体流请求消息,请求指定ID的IPC的媒体流。视频管理服务器接收客户端媒体流请求消息,根据媒体流请求消息中的前端设备ID将对应的信令组播组和媒体流组播组告知给客户端,通知其加入该信令组播组和媒体流组播组。In an embodiment of the present invention, the client acquires the media stream of the IPC with the specified ID. The client sends a media stream request message to the video management server, requesting the media stream of the IPC with the specified ID. The video management server receives the client media stream request message, informs the client of the corresponding signaling multicast group and media stream multicast group according to the front-end equipment ID in the media stream request message, and notifies it to join the signaling multicast group and the media stream multicast group. Media stream multicast group.
在具体实施中,视频管理服务器还可以先判断是否已经有用户(客户端)请求过该IPC的媒体流,如果有,视频管理服务器将IPC对应的G_sig组播组和G_media组播组告知给客户端,并通知客户端PC加入到该信令组播组和媒体流组播组。如果没有,则视频管理服务器记录下该ID的IPC已经被请求过媒体流,视频管理服务器将IPC对应的G_sig组播组和G_media组播组告知给客户端,并通知客户端PC加入到该信令组播组和媒体流组播组。In specific implementation, the video management server can also first judge whether a user (client) has requested the media stream of the IPC, and if so, the video management server will notify the client of the G_sig multicast group and the G_media multicast group corresponding to the IPC end, and notify the client PC to join the signaling multicast group and media stream multicast group. If not, then the video management server records that the IPC of the ID has been requested for a media stream, and the video management server informs the client of the G_sig multicast group and the G_media multicast group corresponding to the IPC, and notifies the client PC to join the information stream. Make multicast group and media stream multicast group.
同理,客户端释放指定ID的IPC的媒体流时,客户端释放实况离开组播组时,通过G_sig组播组发送消息,消息中携带视频管理服务器的ID信息,指示该消息是发送给视频管理服务器的。视频管理服务器通过G_sig组播组回应消息到客户端,消息中携带用户的用户名,客户端收到离开消息并从用户名中识别到时发送给自己的后,发送igmp leave消息离开G_media组播组,这里不再赘述。Similarly, when the client releases the media stream of the IPC with the specified ID, and when the client releases the live broadcast and leaves the multicast group, it sends a message through the G_sig multicast group, and the message carries the ID information of the video management server, indicating that the message is sent to the video management server. The video management server responds to the client through the G_sig multicast group, and the message carries the user's username. After the client receives the leave message and recognizes it from the username, it sends the igmp leave message to leave the G_media multicast group, which will not be repeated here.
本实施例,优选地,视频管理服务器还周期性向信令组播组中的成员通告客户端所请求的前端设备及对应的媒体流组播组,即将下表的信息通告到信令组播组:In this embodiment, preferably, the video management server also periodically notifies the members of the signaling multicast group of the front-end equipment requested by the client and the corresponding media stream multicast group, that is, the information in the following table is notified to the signaling multicast group :
表3table 3
从而,通过这种方式,IPC、客户端知道相互可以通过共享的信令组播组交互,并通过媒体流组播组交互媒体流。Therefore, in this way, the IPC and the client know that they can interact with each other through the shared signaling multicast group, and exchange media streams through the media stream multicast group.
例如进行批量配置,当用户(客户端)需要对IPC进行批量配置的时候,客户端在配置消息中携带IPC的ID和配置信息,通过相同的G_sig组播组发送到所有的前端IPC上,前端IPC读取消息中ID与自己匹配的一段配置。而对于一些通用的配置信息,可以使用公共配置项统一发送,比如时间同步等等。For example, batch configuration, when the user (client) needs to configure the IPC in batches, the client carries the ID and configuration information of the IPC in the configuration message, and sends it to all front-end IPCs through the same G_sig multicast group, the front-end IPC reads a piece of configuration whose ID matches itself in the message. For some general configuration information, you can use public configuration items to send them uniformly, such as time synchronization and so on.
例如,客户端设备间的交互,所有的客户端间可以通过G_sig组进行交互,或者点播了特定IPC的客户端通过G_media组进行交互,相互发送媒体流等。For example, for the interaction between client devices, all clients can interact through the G_sig group, or clients who order a specific IPC can interact through the G_media group to send media streams to each other.
如图3所示,与上述方法对应地,一种视频监控系统中组播实现装置,应用于视频管理服务器,该视频监控系统中组播实现装置包括:As shown in Figure 3, corresponding to the above method, a device for implementing multicast in a video surveillance system is applied to a video management server, and the device for implementing multicast in the video surveillance system includes:
配置模块,用于接收配置信息,加入所述前端设备的信令组播组;A configuration module, configured to receive configuration information and join the signaling multicast group of the front-end device;
注册模块,用于接收所述前端设备通过所述信令组播组发送的注册消息,记录前端设备的信令组播组和媒体流组播组;A registration module, configured to receive a registration message sent by the front-end device through the signaling multicast group, and record the signaling multicast group and the media stream multicast group of the front-end device;
组播管理模块,用于接收客户端媒体流请求消息,根据媒体流请求消息中的前端设备ID将对应的信令组播组和媒体流组播组告知给客户端,通知客户端加入该信令组播组和媒体流组播组。The multicast management module is used to receive the client media stream request message, inform the client of the corresponding signaling multicast group and media stream multicast group according to the front-end device ID in the media stream request message, and notify the client to join the message Make multicast group and media stream multicast group.
与上述方法对应地,视频监控系统中同网段的前端设备共享相同的一个IP地址,前端设备配置有对应的视频管理服务器的ID信息、以及对应的信令组播组和媒体流组播组,前端设备启动后加入到信令组播组和媒体流组播组。Corresponding to the above method, the front-end devices on the same network segment in the video surveillance system share the same IP address, and the front-end devices are configured with the ID information of the corresponding video management server, and the corresponding signaling multicast group and media stream multicast group , the front-end device joins the signaling multicast group and the media stream multicast group after startup.
对应地,组播管理模块,还用于:Correspondingly, the multicast management module is also used for:
通过信令组播组接收客户端释放媒体流的消息,并通过该信令组播组进行回应,使得客户端在收到回应后发送离开消息离开对应的媒体流组播组。Receive the message that the client releases the media stream through the signaling multicast group, and respond through the signaling multicast group, so that the client sends a leave message to leave the corresponding media stream multicast group after receiving the response.
对应地,组播管理模块,还用于:Correspondingly, the multicast management module is also used for:
向所述信令组播组中的成员通告客户端所请求的前端设备及对应的媒体流组播组。Notifying the members of the signaling multicast group of the front-end device requested by the client and the corresponding media stream multicast group.
关于组播组管理模块在操作时的具体实现过程,在上述方法项的描述中均有详细的介绍,这里不再赘述。The specific implementation process of the multicast group management module during operation has been introduced in detail in the description of the above-mentioned method items, and will not be repeated here.
以上实施例仅用以说明本发明的技术方案而非对其进行限制,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。The above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and changes according to the present invention. deformation, but these corresponding changes and deformations should belong to the scope of protection of the appended claims of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610779669.4A CN106375100B (en) | 2016-08-31 | 2016-08-31 | Method of realizing group broadcasting and device in a kind of video monitoring system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610779669.4A CN106375100B (en) | 2016-08-31 | 2016-08-31 | Method of realizing group broadcasting and device in a kind of video monitoring system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106375100A CN106375100A (en) | 2017-02-01 |
CN106375100B true CN106375100B (en) | 2019-11-05 |
Family
ID=57898632
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610779669.4A Active CN106375100B (en) | 2016-08-31 | 2016-08-31 | Method of realizing group broadcasting and device in a kind of video monitoring system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106375100B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111064589B (en) * | 2018-10-16 | 2022-06-14 | 浙江宇视科技有限公司 | Simple configuration method of UNP client |
CN111327534B (en) * | 2018-12-13 | 2022-06-14 | 浙江宇视科技有限公司 | A method and device for cross-domain unicast-to-multicast transmission |
CN112423007B (en) * | 2020-11-09 | 2022-07-08 | 杭州叙简科技股份有限公司 | Multicast-based webrtc video stream transmission system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102984175A (en) * | 2012-12-21 | 2013-03-20 | 浙江宇视科技有限公司 | Front-end monitoring equipment without IP and agent device |
CN103916715A (en) * | 2014-04-11 | 2014-07-09 | 浙江宇视科技有限公司 | Self-adaptive monitoring method and device based on network segments |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8145798B1 (en) * | 2000-05-01 | 2012-03-27 | Novell, Inc. | System and method for automatic provisioning of onsite networking services |
-
2016
- 2016-08-31 CN CN201610779669.4A patent/CN106375100B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102984175A (en) * | 2012-12-21 | 2013-03-20 | 浙江宇视科技有限公司 | Front-end monitoring equipment without IP and agent device |
CN103916715A (en) * | 2014-04-11 | 2014-07-09 | 浙江宇视科技有限公司 | Self-adaptive monitoring method and device based on network segments |
Also Published As
Publication number | Publication date |
---|---|
CN106375100A (en) | 2017-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10484303B2 (en) | Replication with dedicated metal deployment in a cloud | |
US8369246B2 (en) | Method and apparatus for sending and receiving multicast packets on a multicast tree | |
CN110324165B (en) | Network equipment management method, device and system | |
US20150222446A1 (en) | Discovering IP Multicast Group Memberships in Software Defined Networks | |
CN104601959A (en) | Video monitoring system and method for rapidly accessing web camera | |
CN105897444B (en) | Multicast group management method and device | |
US9735974B2 (en) | Message processing | |
US20170078115A1 (en) | Multi-homed access | |
EP3451585B1 (en) | Auto-configuring multicast protocol parameters of a network device | |
US8559353B2 (en) | Multicast quality of service module and method | |
WO2007054006A1 (en) | A base station of wideband wireless access system and a method for realizing group-broadcast service | |
CN102025799A (en) | Method for discovery and automatic configuration for IP address of device | |
WO2018171396A1 (en) | Data transmission method, device and system | |
US10225091B2 (en) | Method for implementing point-to-multipoint multicast, network node, and system | |
CN105337746B (en) | A kind of transmission method and device of multicast packet | |
WO2018068588A1 (en) | Method and software-defined networking (sdn) controller for providing multicast service | |
CN106375100B (en) | Method of realizing group broadcasting and device in a kind of video monitoring system | |
CN101222425B (en) | Multicast forwarding method and multicast router | |
JP2014506765A (en) | Efficient multicast in distributed systems architecture | |
CN106487677B (en) | Provider edge equipment and data forwarding method | |
CN101924698A (en) | Method, system and equipment for balancing two-layer domain load based on IP unicast route | |
CN106559268B (en) | Dynamic port isolation method and device for IP monitoring system | |
CN107276774B (en) | Multicast message transmission method and forwarding equipment | |
CN110730154B (en) | Service processing method and device for video network | |
US20200021450A1 (en) | Managing multicast scaling |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |