Platform cascade video balancing method and system

文档序号:73223 发布日期:2021-10-01 浏览:17次 中文

阅读说明:本技术 一种平台级联视频平衡方法及系统 (Platform cascade video balancing method and system ) 是由 程顺 于 2021-07-08 设计创作,主要内容包括:本发明公开一种平台级联视频平衡方法及系统,其中,所述系统包括信令控制模块、包转发控制模块和物理隔离装置,内网通过物理隔离装置分别与信令控制模块和包转发控制模块通信连接,所述信令控制模块和包转发控制模块分别通过物理隔离装置与外网通信连接。本发明通过将信令确认和视频流转发相分离的办法解决了上级侧点播者较多时网闸无法满足更多点播者的点播查看需求的问题。(The invention discloses a platform cascade video balance method and a system thereof, wherein the system comprises a signaling control module, a packet forwarding control module and a physical isolation device, an internal network is respectively in communication connection with the signaling control module and the packet forwarding control module through the physical isolation device, and the signaling control module and the packet forwarding control module are respectively in communication connection with an external network through the physical isolation device. The invention solves the problem that the gatekeeper can not meet the demand of more jukeboxes for viewing when more jukeboxes exist on the upper side by separating the signaling confirmation from the video stream forwarding.)

1. A platform cascade video balance method is characterized by comprising the following steps:

1) the signaling control module analyzes the signaling data from the internal network, judges whether a signaling request in the signaling data is legal or not, modifies the legal signaling request and sends the modified legal signaling request to the external network, and sends a packet forwarding message which is generated according to the modified signaling request and contains a packet forwarding strategy to the packet forwarding control module;

2) the outer network sends a response to the signaling control module after receiving the legal signaling request, and then sends the media stream specified in the signaling request to the packet forwarding control module according to the signaling request;

3) after receiving the response sent by the external network, the signaling control module sends a response corresponding to the legal signaling request to the internal network;

4) and the packet forwarding control module analyzes the packet forwarding message and forwards the media stream sent by the external network to the internal network through the physical isolation device according to a packet forwarding strategy in the packet forwarding message.

2. The platform cascading video balancing method according to claim 1, wherein in step 1), the packet forwarding policy at least includes an IP of the packet forwarding control module for receiving the media stream, a port of the packet forwarding control module for receiving the media stream, an IP of the packet forwarding control module for sending the media stream, an IP of the intranet for receiving the media stream, and a port of the intranet for receiving the media stream.

3. The method according to claim 1, wherein in step 1), the signaling control module modifies the legal signaling request to modify the IP and port of the extranet and intranet in the legal signaling request.

4. The platform cascading video balancing method of claim 3, wherein the extranet and the intranet both have mapped addresses and ports on the physical isolation device.

5. The platform cascade video balancing method according to any one of claims 1 to 4, wherein in step 1), after the signaling control module receives the signaling data from the intranet, the signaling control module issues a packet forwarding packet formed according to the signaling data to the corresponding physical isolation device according to the weight and health status of the packet forwarding control module.

6. The method for platform cascade video balancing according to any one of claims 2 to 4, wherein in step 1), the signaling control module modifies the legal signaling request in such a way that the receiving stream IP and the port in the legal signaling request are replaced with the service IP and the port on the lower side of the packet forwarding control module.

7. A system for performing video balance by using the platform cascade video balance method according to any one of claims 1 to 6, comprising a signaling control module, a packet forwarding control module and a physical isolation device, wherein the intranet is in communication connection with the signaling control module and the packet forwarding control module through the physical isolation device respectively, and the signaling control module and the packet forwarding control module are in communication connection with the extranet through the physical isolation device respectively.

8. The system of claim 7, wherein the signaling control module is disposed within the physical isolation device.

9. The system of claim 7, wherein the packet forwarding control module is disposed within the physical isolation device.

10. The system of claim 7, wherein when the signaling control module and the packet forwarding control module are both disposed in the physical isolation devices and the number of the physical isolation devices is greater than or equal to 2, the signaling control module is disposed in at least one of the physical isolation devices.

Technical Field

The invention relates to the technical field of video on demand. In particular to a method and a system for balancing platform cascade video.

Background

Cascading (cascade) refers to the mapping relation among a plurality of objects in computer science, and establishes the cascading relation among data to improve the management efficiency. The cascade connection among the video platforms realizes the interconnection and intercommunication among different platforms and realizes the effective video resource integration. In the current platform cascade video-on-demand, signaling and video stream forwarding are completely completed by one gatekeeper, and when the number of the jukeboxes on the upper side (intranet) is large (for example, thousands of cameras are required to be requested at the same time), the gatekeeper becomes a network bottleneck (for example, the bandwidth of a network card, a CPU and the like are insufficient), and the demand for requesting and viewing of more jukeboxes cannot be met.

Disclosure of Invention

Therefore, the technical problem to be solved by the present invention is to provide a platform cascade video balancing method and system, which solve the problem that the gatekeeper cannot meet the demand of more jukeboxes for viewing when there are more jukeboxes on the upper side by separating signaling confirmation and video stream forwarding.

In order to solve the technical problems, the invention provides the following technical scheme:

a platform cascade video balancing method comprises the following steps:

1) the signaling control module analyzes the signaling data from the internal network, judges whether a signaling request in the signaling data is legal or not, modifies the legal signaling request and sends the modified legal signaling request to the external network, and sends a packet forwarding message which is generated according to the modified signaling request and contains a packet forwarding strategy to the packet forwarding control module;

2) the outer network sends a response to the signaling control module after receiving the legal signaling request, and then sends the media stream specified in the signaling request to the packet forwarding control module according to the signaling request;

3) after receiving the response sent by the external network, the signaling control module sends a response corresponding to the legal signaling request to the internal network;

4) and the packet forwarding control module analyzes the packet forwarding message and forwards the media stream sent by the external network to the internal network through the physical isolation device according to a packet forwarding strategy in the packet forwarding message.

In the platform cascade video balancing method, in step 1), the packet forwarding strategy at least includes an IP of the packet forwarding control module for receiving the media stream, a port of the packet forwarding control module for receiving the media stream, an IP of the packet forwarding control module for sending the media stream, an IP of the intranet for receiving the media stream, and a port of the intranet for receiving the media stream.

In the platform cascade video balancing method, in the step 1), the signaling control module modifies the legal signaling request into the modification of the IP and the port of the extranet and the intranet in the legal signaling request.

According to the platform cascade video balancing method, the outer network and the inner network are provided with mapped addresses and ports on the physical isolation device.

In the method for balancing the platform cascade video, in step 1), after the signaling control module receives the signaling data from the intranet, a packet forwarding message formed according to the signaling data is sent to the corresponding physical isolation device according to the weight and the health state of the packet forwarding control module.

In the platform cascade video balancing method, in the step 1), the signaling control module modifies the legal signaling request in a way of replacing the stream receiving IP and the port in the legal signaling request with the service IP and the port on the lower side of the packet forwarding control module.

A system for carrying out video balance by utilizing the platform cascade video balance method comprises a signaling control module, a packet forwarding control module and a physical isolation device, wherein an internal network is respectively in communication connection with the signaling control module and the packet forwarding control module through the physical isolation device, and the signaling control module and the packet forwarding control module are respectively in communication connection with an external network through the physical isolation device.

In the system, the signaling control module is arranged in the physical isolation device.

In the system, the packet forwarding control module is arranged in the physical isolation device.

In the system, when the signaling control module and the packet forwarding control module are both arranged in the physical isolation devices and the number of the physical isolation devices is more than or equal to 2, the signaling control module is arranged in at least one physical isolation device.

The technical scheme of the invention achieves the following beneficial technical effects:

1. the invention transmits the signaling control and the video stream packet on different physical isolation devices, thereby eliminating the network bottleneck.

2. In the invention, different weights can be distributed to the physical isolation device used as the packet forwarding control module according to the hardware processing capacity, and the higher the weight is, the greater the distribution opportunity is.

3. In the invention, the signaling control module detects the online health state of the selected packet forwarding control module, and if the selected packet forwarding control module is abnormal, the signaling control module skips selecting other packet forwarding control modules.

4. In the invention, the signaling control module is an active commander, the packet forwarding control module is a passive commander, and the passive commander is responsible for receiving commands sent by the commander, such as: opening a video channel, destroying a video channel, and the like.

Drawings

FIG. 1 is a schematic diagram of the operation of video balancing by a platform cascade video balancing method according to the present invention;

FIG. 2 is a schematic diagram of a video balancing operation performed by a platform cascade video balancing method when multiple signaling control modules are provided in the present invention;

fig. 3 is a flowchart of a video balancing operation performed by the platform cascade video balancing method according to the present invention.

Detailed Description

Example 1

As shown in fig. 1, the system for performing video balancing by using a platform cascade video balancing method in the present invention includes a signaling control module, a packet forwarding control module, and a physical isolation device, wherein an intranet is in communication connection with the signaling control module and the packet forwarding control module through the physical isolation device, and the signaling control module and the packet forwarding control module are in communication connection with an extranet through the physical isolation device. In this embodiment, the system adopts a single-control multi-forwarding mode, that is, one signaling control module performs signaling request processing, and three packet forwarding control modules perform packet forwarding.

The network gate provided with the signaling control module is a commander, the optical gate provided with the packet forwarding control module is a passive person, and the passive person is responsible for receiving commands sent by the commander.

Example 2

As shown in fig. 2, the difference between the system for performing video balance by using the platform cascade video balance method in this embodiment and the system for performing video balance by using the platform cascade video balance method in embodiment 1 is: each network gate is at least provided with a signaling control module and a packet forwarding control module, one network gate is selected as a master control network gate, namely a director, and the other network gates are controlled network gates, namely passive. When the signaling control module in the master gatekeeper fails to work continuously due to a fault, the signaling control module in one of the controlled gatekeepers is activated to become a director.

When the system in the embodiment 1 and the embodiment 2 processes a request of an intranet to access an extranet, the platform cascade video balance is realized through the following steps:

1) the signaling control module analyzes the signaling data from the internal network, judges whether a signaling request in the signaling data is legal or not, modifies the legal signaling request and sends the modified legal signaling request to the external network, and sends a packet forwarding message which is generated according to the modified signaling request and contains a packet forwarding strategy to the packet forwarding control module; the signaling control module modifies the legal signaling request into the modification of the IP and the port of the outer network and the inner network in the legal signaling request, wherein the signaling control module modifies the legal signaling request in a way of replacing the flow receiving IP and the port in the legal signaling request with the service IP and the port on the lower side of the packet forwarding control module; after the signaling control module receives signaling data from an intranet, a packet forwarding message formed according to the signaling data is sent to a corresponding gateway according to the weight and the health state of the packet forwarding control module, wherein the health state of the packet forwarding control module comprises whether the packet forwarding control module is in a normal working state or not, namely when the signaling control module is connected with a TCP (transmission control protocol) scheduling service of the packet forwarding control module, if the packet forwarding control module is not connected with the TCP scheduling service of the packet forwarding control module, the packet forwarding control module is considered to be offline and abnormal, and when the packet forwarding control module is determined to be abnormal, the signaling control module can select other normally working packet forwarding control modules to perform packet forwarding service processing;

2) the outer network sends a response to the signaling control module after receiving the legal signaling request, and then sends the media stream specified in the signaling request to the packet forwarding control module according to the signaling request;

3) after receiving the response sent by the external network, the signaling control module sends a response corresponding to the legal signaling request to the internal network;

4) and the packet forwarding control module analyzes the packet forwarding message and forwards the media stream sent by the external network to the internal network through the physical isolation device according to a packet forwarding strategy in the packet forwarding message.

The security information network is used as a superior video platform, the private video network is used as a subordinate video platform, the security information network is an internal network, and the private video network is an external network. When people broadcast videos in the private video network through the security information network, the security information network sends a signaling request to the private video network, and then the private video network responds to the signaling request.

Platform cascade video-on-demand (including preview, review and live broadcast) based on GB28181 requires a lower video platform to register with a higher video platform, then the higher video platform sends a signaling request to the lower video platform, and the lower video platform responds. Since the upper-level video platform and the lower-level video platform may be located in networks with different security levels, if the two platforms are connected through a route or a common switch, there is a potential safety hazard, and in order to eliminate the potential safety hazard, people connect the two platforms through a gatekeeper.

The safety problem is solved after the network gate is added, but the signaling processing and the video stream forwarding are completely finished by one network gate, when more jukeboxes are arranged on the upper-level video platform, the network gate becomes a network bottleneck, and the requirements of more jukeboxes for checking the jukeboxes cannot be met if the conditions of insufficient network card bandwidth, CPU and the like occur.

In the invention, the situation of insufficient network card bandwidth, CPU and the like is solved by adopting the modes of centralized processing of signaling requests and forwarding and shunting processing of video data streams, namely, the signaling processing is put in one gatekeeper for processing, and then the video data streams are forwarded by other gatekeepers, so that the bandwidth of a single gatekeeper and the occupation proportion of the CPU and the like are reduced, and the system can keep quick response.

In the system, after the signaling control module receives a request for requesting signaling from a superior video platform, the signaling control module selects one of the packet forwarding control modules to forward the video data stream packet according to the weight and the health state of the packet forwarding control module. The method is characterized in that a signaling control module replaces a flow receiving IP and a port in a signaling request with a service IP and a port of a packet forwarding control module selected for forwarding a video data flow packet, then sends the modified signaling request to a lower-level video platform, and simultaneously sends a packet forwarding strategy to the packet forwarding control module selected for forwarding the video data flow packet, the lower-level video platform accesses the service IP and the port of the packet forwarding control module selected for forwarding the video data flow packet according to the received signaling request, and the packet forwarding control module selected for forwarding the video data flow packet analyzes the packet forwarding strategy and a video data stream sent by the lower-level video platform, and simultaneously forwards a legal video data stream to the upper-level video platform. In accessing a lower level video platform through an upper level video platform, a video jukebox may consider the direct access to be the lower level video platform, and the lower level video platform may also consider the direct delivery of a video data stream to the upper level video platform.

As shown in fig. 3, an upper video platform (IP is 13.0.0.1, SIP port is 5060) sends an INVITE signaling (IP port for receiving stream is 13.0.0.122000) to a signaling control module (service IP is 13.0.0.2, SIP port is 5060), the signaling control module sends the INVITE signaling (IP port for receiving stream is 12.0.0.350000) to a lower video platform, the lower video platform sends a 200OK response (IP port for sending stream is 12.0.0.132000), and the signaling control module sends the 200OK response (IP port for sending stream is 13.0.0.332000) to the upper video platform after receiving response information sent by the lower video platform. And meanwhile, the signaling control module sends a packet forwarding strategy to the packet forwarding control module, and the packet forwarding control module sends the received media stream from the lower-level video platform to the upper-level video platform according to the packet forwarding strategy. Wherein. The packet forwarding strategy at least comprises an IP of the packet forwarding control module for receiving the media fluid, a port of the packet forwarding control module for receiving the media fluid, an IP of the packet forwarding control module for sending the media fluid, an IP of a superior video platform for receiving the media fluid and a port of the superior video platform for receiving the media fluid.

In the invention, the signaling processing and the media stream forwarding are carried out separately, so that the problems that the signaling response processing and the media stream forwarding line are crowded and slow, and particularly, the packet forwarding control modules arranged in different physical isolation devices are controlled by the signaling control module, so that the problem that the on-demand broadcasting quantity of a superior video platform side is large and a single gatekeeper becomes a short board for transmitting the media stream can be solved.

It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications are possible which remain within the scope of the appended claims.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:实现原生多声道音频数据输出方法、装置及智能电视

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类