Plug flow system and method

文档序号:1448926 发布日期:2020-02-18 浏览:27次 中文

阅读说明:本技术 一种推流系统及方法 (Plug flow system and method ) 是由 张秉谦 于 2018-08-06 设计创作,主要内容包括:本申请提供一种推流系统,包括:边缘单元,用于获得中心路由管理单元提供的边缘单元对应的区域单元的信息,根据边缘单元对应的区域单元的信息,将推流数据发送给边缘单元对应的区域单元;区域单元,用于获得边缘单元发送的推流数据,并获得推流数据的目的信息,根据目的信息将所述推流数据发送给区域直播单元或所述中心单元;区域直播单元,用于存储区域直播单元对应区域的推流数据;中心单元,用于存储所接收到的推流数据;中心路由管理单元,用于向边缘单元提供边缘单元对应的区域单元的信息。通过该技术方案,实现减小中心单元负载压力大的技术效果。(The present application provides a plug flow system, comprising: the edge unit is used for obtaining the information of the area unit corresponding to the edge unit provided by the central routing management unit and sending the push flow data to the area unit corresponding to the edge unit according to the information of the area unit corresponding to the edge unit; the regional unit is used for obtaining the plug flow data sent by the edge unit, obtaining the target information of the plug flow data and sending the plug flow data to the regional live broadcast unit or the central unit according to the target information; the regional live broadcast unit is used for storing the stream pushing data of the region corresponding to the regional live broadcast unit; the central unit is used for storing the received plug flow data; and the central route management unit is used for providing the information of the area unit corresponding to the edge unit for the edge unit. Through this technical scheme, realize reducing the big technological effect of central unit load pressure.)

1. A plug flow system, comprising: the system comprises an edge unit, a regional live broadcast unit, a central unit and a central route management unit;

the edge unit is configured to obtain information of the area unit corresponding to the edge unit, which is provided by the central routing management unit, and send the push flow data to the area unit corresponding to the edge unit according to the information of the area unit corresponding to the edge unit;

the regional unit is used for obtaining the push stream data sent by the edge unit, obtaining the target information of the push stream data, and sending the push stream data to the regional live broadcast unit or the central unit according to the target information;

the regional live broadcast unit is used for storing the push stream data of the region corresponding to the regional live broadcast unit;

the central unit is used for storing the received plug flow data;

and the central routing management unit is used for providing the information of the area unit corresponding to the edge unit.

2. The system of claim 1, wherein the edge unit is further configured to request the central route management unit to provide the destination information corresponding to the edge unit.

3. The system according to claim 1 or 2, wherein the edge unit obtains a push flow request sent by a client, and the push flow request carries the push flow data.

4. The system according to claim 3, wherein the edge unit is further configured to request the central routing management unit to authenticate the push flow request, obtain an authentication result of the central routing management unit for the push flow request, and send the push flow data to the area unit corresponding to the edge unit if the authentication is passed;

and if the authentication is not passed, returning a message that the flow pushing is not allowed to be carried out to the client.

5. The system according to claim 1, wherein the regional live broadcast unit or the central unit is further configured to send description information for describing the push stream data and/or routing information of the push stream data to the central route management unit.

6. The system according to claim 1, further comprising an area route management unit, configured to store description information for describing the push flow data and/or routing information of the push flow data in an area corresponding to the area route management unit;

the regional live broadcast unit is further configured to send description information for describing the push stream data and/or routing information of the push stream data to the regional route management unit.

7. The system according to claim 3, wherein the central routing management unit is specifically configured to analyze a feature of the push flow request, determine, according to a correspondence between the feature of the push flow request and the regional live broadcast unit or the central unit, that destination information corresponding to the feature of the push flow request is information of the regional live broadcast unit or information of the central unit, and provide the destination information to the edge unit.

8. A plug flow method, comprising:

the method comprises the steps that an edge unit obtains a push flow request sent by a client, wherein the push flow request carries push flow data;

requesting a central routing management unit to provide information of an area unit corresponding to the edge unit and target information of the push stream data, wherein the target information is information of an area live broadcast unit or information of a central unit, the central routing management unit stores routing information of push stream data of a plurality of areas, the area live broadcast unit stores push stream data of an area corresponding to the area live broadcast unit, and the central unit stores the received push stream data;

obtaining the information of the area unit corresponding to the edge unit and the destination information of the push flow data, which are provided by the central routing management unit;

and sending the plug flow data and the target information to the area unit corresponding to the edge unit according to the information of the area unit corresponding to the edge unit.

9. The method of claim 8, further comprising:

requesting authentication of the flow pushing request to the central route management unit;

obtaining the authentication result of the central route management unit aiming at the flow pushing request;

and if the authentication is passed, sending the push stream data to the area unit corresponding to the edge unit.

10. The method of claim 9, further comprising: and if the authentication is not passed, returning a message that the flow pushing is not allowed to be carried out to the client.

Technical Field

The application relates to the field of computers, in particular to the field of live video, and specifically relates to a stream pushing system and a stream pushing method.

Background

The real-time message transmission protocol comprises various variants such as RTMP basic protocol, RTMPT/RTMPS/RTMPE and the like. RTMP is a network protocol designed for real-time data communication, and is mainly used for audio-video and data communication between a Flash/AIR platform and a streaming media/interaction server supporting the RTMP protocol. RTMP is the mainstream streaming media transmission protocol at present, is widely used in the field of live broadcast, and can be said that the protocol is adopted by most live broadcast products in the market.

In the existing live broadcast scene, live broadcast of entertainment, game, education, monitoring and instant communication and the like are realized, and the live broadcast architecture is pushed to a live broadcast center, so that the load pressure of the live broadcast center is very large.

Disclosure of Invention

The application also provides a stream pushing system and a stream pushing method, and aims to solve the technical problem that in the prior live broadcast technology, the load pressure of a live broadcast center is too large due to the fact that all streams are pushed to the live broadcast center.

The stream pushing system comprises an edge unit, a region live broadcast unit, a center unit and a center route management unit;

the edge unit is configured to obtain information of the area unit corresponding to the edge unit, which is provided by the central routing management unit, and send the push flow data to the area unit corresponding to the edge unit according to the information of the area unit corresponding to the edge unit;

the regional unit is used for obtaining the push stream data sent by the edge unit, obtaining the target information of the push stream data, and sending the push stream data to the regional live broadcast unit or the central unit according to the target information;

the regional live broadcast unit is used for storing the push stream data of the region corresponding to the regional live broadcast unit;

the central unit is used for storing the received plug flow data;

and the central routing management unit is used for providing the information of the area unit corresponding to the edge unit.

Optionally, the edge unit is further configured to request the central routing management unit to provide the destination information corresponding to the edge unit.

Optionally, the edge unit obtains a push flow request sent by a client, where the push flow request carries the push flow data.

Optionally, the edge unit is further configured to request the central routing management unit to authenticate the push flow request, obtain an authentication result of the central routing management unit for the push flow request, and send the push flow data to the area unit corresponding to the edge unit if the authentication is passed;

and if the authentication is not passed, returning a message that the flow pushing is not allowed to be carried out to the client.

Optionally, the regional live broadcasting unit or the central unit is further configured to send description information for describing the push stream data and/or routing information of the push stream data to the central routing management unit.

Optionally, the system further includes an area route management unit, configured to store description information for describing the push flow data and/or route information of the push flow data in an area corresponding to the area route management unit;

the regional live broadcast unit is further configured to send description information for describing the push stream data and/or routing information of the push stream data to the regional route management unit.

Optionally, the central routing management unit is specifically configured to analyze a feature of the push flow request, determine, according to a correspondence between the feature of the push flow request and the regional live broadcast unit or the central unit, that destination information corresponding to the feature of the push flow request is information of the regional live broadcast unit or information of the central unit, and provide the destination information to the edge unit.

The application also provides a plug flow method, which comprises the following steps:

the method comprises the steps that an edge unit obtains a push flow request sent by a client, wherein the push flow request carries push flow data;

requesting a central routing management unit to provide information of an area unit corresponding to the edge unit and target information of the push stream data, wherein the target information is information of an area live broadcast unit or information of a central unit, the central routing management unit stores routing information of push stream data of a plurality of areas, the area live broadcast unit stores push stream data of an area corresponding to the area live broadcast unit, and the central unit stores the received push stream data;

obtaining the information of the area unit corresponding to the edge unit and the destination information of the push flow data, which are provided by the central routing management unit;

and sending the plug flow data and the target information to the area unit corresponding to the edge unit according to the information of the area unit corresponding to the edge unit.

Optionally, the method further includes:

requesting authentication of the flow pushing request to the central route management unit;

obtaining the authentication result of the central route management unit aiming at the flow pushing request;

and if the authentication is passed, sending the push stream data to the area unit corresponding to the edge unit.

Optionally, the method further includes: and if the authentication is not passed, returning a message that the flow pushing is not allowed to be carried out to the client.

In the technical scheme of the application, an edge unit obtains information of an area unit corresponding to the edge unit, which is provided by a central routing management unit, and sends push stream data to the area unit corresponding to the edge unit according to the information of the area unit corresponding to the edge unit. And the regional unit acquires the push stream data sent by the edge unit, acquires the target information of the push stream data, and sends the push stream data to the regional live broadcast unit or the central unit according to the target information. And the regional live broadcast unit is used for storing the stream pushing data of the region corresponding to the regional live broadcast unit. And the central unit is used for storing the received plug flow data. And the central routing management unit is used for providing the information of the area unit corresponding to the edge unit for the edge unit. And through close cooperation among the units, the push stream data is sent to the regional live broadcast unit or the central unit. The processing pressure of the central unit is reduced compared to prior art systems which all send push flow data to the central unit.

Drawings

FIG. 1 is a schematic view of an embodiment of a plug flow system provided herein;

fig. 2 is a process flow diagram of an embodiment of a plug flow method provided in the present application.

Detailed Description

In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.

The present application provides a plug flow system, and fig. 1 is a schematic diagram of an embodiment of the plug flow system provided herein. The technical solution of the plug flow system provided by the present application is described below with reference to the schematic diagram shown in fig. 1.

In the embodiment shown in fig. 1, the plug flow system comprises: an edge unit 0101, an area unit 0102, an area live broadcast unit 0103, a center unit 0104, and a center route management unit 0105. The above units and the relationship between the units will be described in detail below.

The edge unit 0101 may be configured to obtain a push flow request sent by a client, where the push flow request carries the push flow data. The edge unit 0101 refers to a device, such as a server, for receiving the push stream data uploaded by the user side. The plug flow refers to the transmission of files such as audio and video files to other devices. The plug flow data refers to files such as audio and video recorded by a user. The plug flow request refers to a request sent to other equipment for receiving files such as audio and video. For example, when a user records an audio-video scene through a client such as a mobile phone, the user needs to transmit a recording file to each level of server responsible for processing the audio-video file in real time. At this point it is necessary to request its reception from the server.

The edge unit 0101 may be configured to request the central route management unit to provide information and destination information of an area unit corresponding to the edge unit. The area unit and the central route management unit may be devices such as servers and the like which realize respective corresponding functions. Accordingly, the central route management unit 0105 can be used to provide the edge unit with information of the area unit corresponding to the edge unit. The edge unit 0101 may also be configured to obtain the information of the area unit corresponding to the edge unit provided by the central routing management unit 0105, and send the push stream data to the area unit corresponding to the edge unit according to the information of the area unit corresponding to the edge unit. The central route management unit 105 may be a server or the like.

For example, after the edge unit 0101 obtains the address information of the area unit corresponding to the edge unit provided by the central routing management unit 0105, the edge unit 0101 may send the push stream data to the corresponding area unit according to the address information of the corresponding area unit. The area unit may be a server, and is configured to receive data pushed by the edge unit having a corresponding relationship with the area unit. The target information is information of the regional live broadcast unit or information of the central unit, namely a unit for finally receiving and processing the push stream data. The edge unit 0101 is further configured to obtain destination information provided by the central routing management unit 0105, and send the destination information to the area unit. The regional live broadcast unit and the central unit can be devices such as a server and the like which are responsible for live broadcast processing.

In this embodiment, the edge unit 0101 may also be configured to request the central routing management unit to authenticate the push flow request, obtain an authentication result of the central routing management unit for the push flow request, and send the push flow data to the area unit corresponding to the edge unit if the authentication is passed. Correspondingly, the central routing management unit 0105 is further configured to obtain an authentication request for the push flow request sent by the edge unit, authenticate the push flow request, and provide information of the area unit corresponding to the edge unit if the authentication is passed.

The authentication result for the push stream request is to identify whether the edge unit 0101 performing push stream has a push stream authority, and if the push stream authority is confirmed, the authentication is passed, and the push stream data is sent to the area unit corresponding to the edge unit. And if the authentication is not passed, returning a message that the flow pushing is not allowed to be carried out to the client.

The regional unit 0102 is configured to obtain the push stream data sent by the edge unit, obtain destination information of the push stream data, and send the push stream data to the regional live broadcast unit or the central unit according to the destination information, where the destination information is information of the regional live broadcast unit or information of the central unit. The region unit 0102 can be specifically used to obtain the destination information provided by the edge unit. The area unit 0102 may also be specifically configured to obtain the destination information provided by the central route management unit.

If the destination information is the information of the regional live broadcast unit, the regional unit 0102 is specifically configured to send the stream pushing data to the regional live broadcast unit 0103. The regional live broadcasting unit 0103 may be configured to store stream pushing data of a region corresponding to the regional live broadcasting unit.

If the destination information is information of the central unit, the area unit 0102 is specifically configured to send the push stream data to the central unit 0104. The central unit 0104 is configured to store the received push stream data. The central unit 0104 corresponds to push stream data of multiple areas, that is, when the destination information is information of the central unit, the central unit receives the push stream data sent by the area unit 0102.

In this embodiment, the regional live broadcasting unit 0103 or the central unit 0104 may further be configured to send description information for describing the stream pushing data and/or routing information of the stream pushing data to the central routing management unit. The system may further include an area route management unit 0106, configured to store description information for describing the push flow data and/or route information of the push flow data in an area corresponding to the area route management unit. The area route management unit may be a server or the like that implements a corresponding function.

The description information (i.e. the related information in fig. 1) for describing the push stream data may include a stream name (i.e. an identification name of the push stream data), a push stream start time, and the like. The route information of the push stream data refers to the processing unit through which the push stream data is transmitted or the link information shown in fig. 1, for example, from the client to the regional unit to the regional live unit or the central unit.

In the technical scheme of the application, an edge unit obtains information of an area unit corresponding to the edge unit, which is provided by a central routing management unit, and sends push stream data to the area unit corresponding to the edge unit according to the information of the area unit corresponding to the edge unit. And the regional unit acquires the push stream data sent by the edge unit, acquires the target information of the push stream data, and sends the push stream data to the regional live broadcast unit or the central unit according to the target information. And the regional live broadcast unit is used for storing the stream pushing data of the region corresponding to the regional live broadcast unit. And the central unit is used for storing the received plug flow data of the plurality of areas. And the central routing management unit is used for providing the information of the area unit corresponding to the edge unit for the edge unit. And through close cooperation among the units, the push stream data is sent to the regional live broadcast unit or the central unit. The processing pressure of the central unit is reduced compared to prior art systems which all send push flow data to the central unit.

The present application further provides a plug flow method, and fig. 2 is a processing flow chart of an embodiment of the plug flow method provided by the present application. The technical solution of the plug flow method provided by the present application is described below with reference to a processing flow chart shown in fig. 2.

In the embodiment shown in fig. 2, the plug flow method includes:

step S101, an edge unit obtains a push flow request sent by a client, wherein the push flow request carries push flow data. For this step, reference is made to the description of the edge unit 0101 and its function, which is not described herein again.

Step S102, requesting a central route management unit to provide information of an area unit corresponding to the edge unit and destination information of the push stream data, wherein the destination information is information of an area live broadcast unit or information of a central unit, the central route management unit stores route information of push stream data of a plurality of areas, the area live broadcast unit stores push stream data of an area corresponding to the area live broadcast unit, and the central unit stores the received push stream data. For this step, reference may be made to the description of the edge unit 0101 and its function, and the description of the central routing management unit 0105 and its function, which are not described herein again.

Step S103 obtains the information of the area unit corresponding to the edge unit and the destination information of the push flow data, which are provided by the central routing management unit. This step can be referred to the description of the central routing management unit 0105 and its functions, which are not described herein. For this step, reference may be made to the description of the edge unit 0101 and its function, and the description of the central routing management unit 0105 and its function, which are not described herein again.

And step S104, sending the plug flow data and the target information to the area unit corresponding to the edge unit according to the information of the area unit corresponding to the edge unit. For this step, reference may be made to the description of the edge unit 101 and its function, and the description of the region unit 0102 and its function, which are not repeated herein.

In this embodiment, the method further includes: step A), request the central route management unit to authenticate the flow pushing request. And step B), obtaining the authentication result of the central route management unit aiming at the flow pushing request. And step C), if the authentication is passed, sending the plug flow data to the area unit corresponding to the edge unit. And D), if the authentication is not passed, returning a message that the flow pushing is not allowed to be carried out to the client.

In the technical scheme, an edge unit obtains a push flow request sent by a client, requests a central route management unit to provide information of an area unit corresponding to the edge unit and destination information of push flow data, then obtains the information of the area unit corresponding to the edge unit and the destination information of the push flow data, and sends the push flow data and the destination information to the area unit corresponding to the edge unit according to the information of the area unit corresponding to the edge unit, thereby determining whether to finally push flow to an area live broadcast unit or a central processing unit.

Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.

In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.

Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.

As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:HLS协议下切换直播时移时间轴的方法及系统

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类