CN104301741B - A kind of data broadcast system and method - Google Patents

A kind of data broadcast system and method Download PDF

Info

Publication number
CN104301741B
CN104301741B CN201410504982.8A CN201410504982A CN104301741B CN 104301741 B CN104301741 B CN 104301741B CN 201410504982 A CN201410504982 A CN 201410504982A CN 104301741 B CN104301741 B CN 104301741B
Authority
CN
China
Prior art keywords
request
server
data
live
live streaming
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410504982.8A
Other languages
Chinese (zh)
Other versions
CN104301741A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201410504982.8A priority Critical patent/CN104301741B/en
Publication of CN104301741A publication Critical patent/CN104301741A/en
Application granted granted Critical
Publication of CN104301741B publication Critical patent/CN104301741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2183Cache memory
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23106Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2402Monitoring of the downstream path of the transmission network, e.g. bandwidth available
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2407Monitoring of transmitted content, e.g. distribution time, number of downloads

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of data broadcast system and method, to solve the problems, such as that existing live broadcast system easily causes network congestion or even paralysis.The system includes:Live data source server and cache server;Wherein, using the live data source server as root node, tree topology is formed as child node using the cache server.The source data that the system is broadcast live using live data source server storage, live data source server only distributes the source data of request live streaming to the first order cache server, so as to which the congestion and paralysis of live data source server will not be caused due to concurrently accessing multinode, under the tree topology, cache server is after data broadcast request is received, it can be by being classified upward level cache server request data source successively, so as to avoid cache servers at different levels the problem of congestion is with paralysing was caused due to accessing multinode, the source data of request live streaming is quickly provided, improve the live streaming quality of source data.

Description

A kind of data broadcast system and method
Technical field
The present invention relates to data live broadcast technology, more particularly to a kind of data broadcast system and a kind of data live streaming side Method.
Background technology
User can watch live content, such as video, live broadcast in both illustration and text by player, webpage etc. by network.It is existing Data broadcast system generally use simply replicate and active push pattern, will with live TV stream all the way data-pushing to whole Each Internet data center's (Internet Data Center, IDC) node of a data broadcast system and its connection Each physical machine (user terminal).
Therefore, when large-scale live program of the live streaming i.e. distribution with many concurrent users request or in distribution it is very much Road differently concurrent live data content when, can all cause entire data Living Network crowded to capacity or even cause live streaming Source data is paralysed due to being connected by too many network node.
Invention content
The embodiment of the present invention is existing to solve the technical problem to be solved is that a kind of data broadcast system of offer and method Live broadcast system easily causes the problem of network congestion or even paralysis.
To solve the above-mentioned problems, the invention discloses a kind of data broadcast system, including:Live data source server and Cache server;Wherein, using the live data source server as root node, tree is formed by child node of the cache server Type topological structure;The cache server includes:At least two first order being directly connected to the live data source server Cache server, at least two second level cache servers that each first order cache server respectively connects, and so on, often At least two N grades of cache servers that a N-1 grades of cache servers respectively connect, wherein N >=2 and N are positive integer;Then institute Live data source server is stated, for storing the source data of live streaming, and request live streaming is sent to the first order cache server Source data;The cache server, the data broadcast request for being sent according to terminal determine the source data of request live streaming;When Detection locally there are during the source data of the request live streaming, obtains the source data for asking live streaming from local in real time;Work as detection The local source data there is no the request live streaming, and when the cache server is first order cache server, in real time from institute State the source data that live streaming is asked described in live data source server;When the local source number there is no the request live streaming of detection According to, and the cache server for the second level in N grade arbitrarily level-one cache server when, in real time from directly connecting The source data of the request live streaming is obtained in upper level caching server;And the source data Real-time Feedback by the request live streaming To the terminal be broadcast live it is described request live streaming source data.
Optionally, the live data source server passes through wide area network or Ethernet with each first order cache server It is directly connected to;It is interconnected between each first order cache server by Ethernet;With identical upper level caching server Caching servers at the same level is interconnected by Ethernet;Cache server is connected with its upper level caching server by wide area network It connects.
Optionally, the cache server is additionally operable to inquire in other caching servers at the same level with the presence or absence of the request The source data of live streaming, wherein, other described caching servers at the same level with the cache server there is identical upper level to cache Server;When in other caching servers at the same level there are it is described request live streaming source data when, from it is described other peer caching clothes The source data of the request live streaming is obtained in business device in real time;When there is no the request live streamings in other caching servers at the same level During source data, trigger described in being obtained in real time from the upper level caching server or live data source server directly connected Ask the source data of live streaming.
Optionally, the cache server is additionally operable to receive the live streaming stopping request that the terminal is sent, and according to described Live streaming stops the source data that request stops obtaining the request live streaming.
Optionally, the cache server is additionally operable to determine the source of the request live streaming from the data broadcast request The establishment moment of data;Determine the establishment moment and the time interval at current time;When the time interval is more than preset Every, and the cache server be the first order cache server when, described in the live data source server ask live streaming Source data;When the time interval is more than preset interval, and the cache server is the second level to arbitrary level-one in N grades During cache server, request is sent step by step by cache servers at different levels connected to it with the institute from live data source server State the source data of request live streaming;When the time interval is not more than preset interval, detection trigger is locally asked with the presence or absence of described Seek the source data of live streaming.
The invention also discloses a kind of data live broadcasting method, applied to using the live data source server as root node, Using the cache server as in the live broadcast system with tree topology that child node is formed, the cache server packet It includes:At least two first order cache servers being directly connected to the live data source, each first order cache server are each From at least two second level cache servers of connection, and so on, each N-1 grades of cache servers respectively connect at least Two N grades of cache servers, wherein N >=2 and N are positive integer;The method includes:Cache server receives terminal and sends Data broadcast request, and according to the data broadcast request determine request live streaming source data;The cache server detection The local source data with the presence or absence of the request live streaming;It is described slow during the source data being broadcast live when detection is local there are the request Server is deposited in real time from the local source data for obtaining the request live streaming;When the local source number there is no the request live streaming of detection According to, and the cache server be the first order cache server when, the first order cache server is in real time from the live streaming number According to the source data that live streaming is asked described in source server;The source data for asking live streaming is not present, and described when detection is local Cache server is the second level to during arbitrary level-one cache server, the cache server is in real time from directly in N grades The source data of the request live streaming is obtained in the upper level caching server of connection;The request is broadcast live the cache server Source data Real-time Feedback to the terminal so that the source data of the terminal live streaming request live streaming.
Optionally, it after the local source data there is no the request live streaming of detection, further includes:The cache server is looked into It askes with the presence or absence of the source data of the request live streaming in other caching servers at the same level, wherein, other described buffer services at the same level Device has identical upper level caching server with the cache server;When exist in other caching servers at the same level it is described please When seeking the source data of live streaming, the cache server obtains the request live streaming in real time from other described caching servers at the same level Source data;When the source data that the request live streaming is not present in other caching servers at the same level, the cache server is held Row obtains the request live streaming in real time from the upper level caching server or live data source server directly connected The step of source data.
Optionally, it further includes:The cache server receives the live streaming that the terminal is sent and stops request, and according to described Live streaming stops the source data that request stops obtaining the request live streaming.
Optionally, it before the local source data with the presence or absence of the request live streaming of the cache server detection, further includes: The cache server determines the establishment moment of the source data of the request live streaming from the data broadcast request;It determines described Establishment moment and the time interval at current time;The time interval is compared, and with preset interval according to comparison result The step of determining to obtain the source data of request live streaming.
Optionally, the time interval with preset interval is compared, and determines to obtain request directly according to comparison result The step of source data broadcast, including:When the time interval is more than preset interval, and the cache server is cached for the first order During server, the first order cache server asks the source data of live streaming described in the live data source server;When The time interval is more than preset interval, and the cache server is the second level to arbitrary level-one cache server in N grades When, the cache server sends request by cache servers at different levels connected to it with from live data source server step by step Described in ask live streaming source data;When the time interval is not more than preset interval, the cache server performs detection Local the step of whether there is the source data that the request is broadcast live.
Compared with prior art, the embodiment of the present invention includes advantages below:
Using live data source server as root node, formed as child node using cache servers at different levels opened up with tree-shaped respectively The data broadcast system of structure is flutterred, using the source data of live data source server storage live streaming, live data source server is only Distribute the source data of request live streaming to the first order cache server, so as to be caused due to concurrently accessing multinode The congestion and paralysis of live data source server, under the tree topology, cache server receive data live streaming please After asking, can by being classified upward level cache server request data source successively, so as to avoid cache servers at different levels by In accessed multinode and cause congestion and paralysis the problem of, quickly provide request live streaming source data, improve source data Quality is broadcast live.
Description of the drawings
Fig. 1 is a kind of structure diagram of data broadcast system embodiment of the present invention;
Fig. 2 is a kind of data live broadcasting method embodiment step flow chart of the present invention;
Fig. 3 is a kind of data live broadcasting method alternative embodiment flow chart of steps of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, it is below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is described in further detail.
One of the core concepts in the embodiments of the present invention is to provide a kind of data broadcast system and methods, existing to solve Live broadcast system easily causes the problem of network congestion or even paralysis.Using live data source server as root node, respectively at different levels slow It deposits server and forms the data broadcast system with tree topology for child node, stored using live data source server straight The source data broadcast, live data source server only distribute the source data of request live streaming to the first order cache server, so as to The congestion and paralysis of live data source server will not be caused due to concurrently accessing multinode, in the tree topology Under, cache server, can be by being classified successively to upper level caching server number of request after data broadcast request is received According to source, the problem of congestion is with paralysing was caused due to accessing multinode so as to avoid cache servers at different levels, was quickly carried For the source data of request live streaming, the live streaming quality of source data is improved.
Embodiment one
With reference to Fig. 1, a kind of structure diagram of data broadcast system embodiment of the present invention is shown, can specifically include such as Lower module:
Data broadcast system includes:Live data source server 101 and cache server 102.The data broadcast system can To carry out the distribution of the data contents such as video, live streaming based on TCP/IP networks.
The data broadcast system is root node with the live data source server 101, is with the cache server 102 Child node forms tree topology, and multistage child node is included in the tree topology.So as in the data broadcast system The distribution link of live content forms tree structure, using live data source server as tree root, in the computer room of data source Cache server as trunk, the cache server in the computer room of user forms 2 grades and with upper strata as branch with this Secondary live content distributing structure.
Therefore, the cache server 102 includes:At least two be directly connected to the live data source server 101 A first order cache server, at least two second level cache servers that each first order cache server respectively connects, with This analogizes, and at least two N grades of cache servers that each N-1 grades of cache servers respectively connect, wherein N >=2 and N is just Integer.
In the embodiment of the present invention, live streaming refers to making and issuing as the generation of event, development process synchronize at the scene Information has the information network published method for the process that two-way circulates.It is talk-show straight that its form can be divided into live broadcast, studio It broadcasts, word and picture live broadcast, video and audio live broadcast or the live streaming etc. that information source is provided by TV (third party).Also, live broadcast system has Standby mass memory, searches the functions such as convenient.
Wherein, live data source server 101, for storing the source data of live streaming, and to the first order buffer service Device sends the source data of request live streaming.Specifically, in data broadcast system, produced and generated directly as the generation of event can synchronize The source data broadcast, such as the live video data of generation current event, then by the source data of the live streaming, there are live data sources In server, the request of first order cache server is actively issued or given by live data source server by corresponding source data The cache server is fed back, is played out further feeding back to user.
In the embodiment of the present invention, cache server is divided to different levels, therefore cache clothes according to tree topology Being engaged in device can be at the same level or parent server acquisition request video source data in request data.That is, cache server 102, is used The source data of request live streaming is determined in the data broadcast request sent according to terminal;Ask what is be broadcast live there are described when detection is local During source data, in real time from the local source data for obtaining the request live streaming;When the local source there is no the request live streaming of detection Data, and the cache server be the first order cache server when, in real time described in the live data source server please Seek the source data of live streaming;When the local source data there is no the request live streaming of detection, and the cache server is the second level To in N grades during arbitrary level-one cache server, in real time from the upper level caching server directly connected described in acquisition Ask the source data of live streaming;It is and the source data Real-time Feedback of the request live streaming is straight the request is broadcast live to the terminal The source data broadcast.
Based on above-mentioned data broadcast system, data live broadcasting method is discussed, as shown in Fig. 2, specifically comprising the following steps:
Step 202, cache server receives the data broadcast request that terminal is sent, and is obtained from the data broadcast request The source data that request is taken to be broadcast live.
It takes the live video on the current network as an example and is described, which can be that the third parties such as TV data source provides Or webcast Room generation, user can watch the live streaming of the video using terminal devices such as computer, mobile phones. At this point, terminal device can send a request to the data broadcast system being broadcast live to the video, it is slow in data broadcast system The data broadcast request can be received by depositing server.
Wherein, using the cache server there are multi-layer in the data broadcast system of tree topology, according to preset Rule determines the cache server to communicate with the terminal device of user, such as is determined according to closest principle, according to slow The loading condition of server is deposited, the caching with terminal equipment in communication is determined according to above-mentioned at least one rule such as the priority of user Server.
The cache server can receive the data broadcast request of terminal device transmission, which is used for please It asks and specified source data is broadcast live, therefore the source data of request live streaming can be determined according to the data broadcast request, such as from Data Identification (such as title, number) information of the metadata of request live streaming is obtained in data broadcast request, to determine currently please It asks and which video data is broadcast live.
Step 204, the local source data with the presence or absence of the request live streaming of the cache server detection.
Before the data broadcast request for receiving the terminal device, may just there be other equipment to request the source sometimes Data, at this time just without the re-request source data, therefore cache server will be detected and is locally broadcast live with the presence or absence of the request Source data.
Step 206, the cache server is in real time from the local source data for obtaining the request live streaming.
During the source data being broadcast live when detection is local there are the request, the cache server is in real time from described in local obtain Ask the source data of live streaming.
Step 208, detect whether the cache server is first order cache server.
When the local source data there is no the request live streaming of detection, since first order cache server and other grades cache The mode that server obtains source data has differences, therefore to detect whether the cache server is first order cache server.
Step 210, the first order cache server asks live streaming described in the live data source server in real time Source data.
When the local source data there is no the request live streaming of detection, and the cache server is first order buffer service During device, the first order cache server asks the source data of live streaming described in the live data source server in real time, i.e., First order cache server can be directly to the source data of live source data server request live streaming.
Live source data server can be provided only to first order cache server in the data broadcast system of the present embodiment The source data of live streaming, so as to efficiently reduce the equipment in live source data server access quantity, it is ensured that live broadcast system it is steady It is qualitative.The terminal device of situations such as certain live source data server can also be according to load access certain customers is with direct for it The source data of live streaming is provided, can be set according to specific requirements, the embodiment of the present invention is not construed as limiting this.
Step 212, described in the cache server is obtained from the upper level caching server directly connected in real time Ask the source data of live streaming.
When the local source data there is no the request live streaming of detection, and the cache server is the second level to N grades In arbitrary level-one cache server when, the cache server is obtained from the upper level caching server directly connected in real time Take the source data of the request live streaming.
The data broadcast system of the embodiment of the present invention uses tree topology, there are 1~N grades of cache servers, the The source data that level cache server can directly be broadcast live to the request of live source data server, and it is other in addition to the first order Grade (second level to arbitrary level-one in N grades) cache server can then be asked to be broadcast live to its upper level caching server in real time Source data.So as to disperse the terminal device quantity of each cache server access, more good data service is provided for terminal device.
Step 214, the cache server gives the source data Real-time Feedback of the request live streaming to the terminal, so that eventually The source data of the end live streaming request live streaming.
Cache server is obtaining request live streaming from local, upper level caching server or live source data server After source data, the equipment such as player in terminal can be allow to the source data by the source data Real-time Feedback to terminal It is broadcast live, so as to which user can watch live content in real time.
In conclusion using live data source server as root node, formed respectively using cache servers at different levels as child node Data broadcast system with tree topology, using the source data of live data source server storage live streaming, live data Source server only distributes the source data of request live streaming to the first order cache server, thus will not be excessive due to concurrently accessing Node and the congestion and paralysis for causing live data source server, under the tree topology, cache server is receiving It, can be by being classified upward level cache server request data source successively, so as to avoid at different levels slow after data broadcast request It deposits server and caused the problem of congestion is with paralysing due to accessing multinode, the source data that request is broadcast live quickly is provided, is carried The live streaming quality of high source data.
Embodiment two
On the basis of above-described embodiment, the present embodiment is discussed further data broadcast system and its live broadcasting method.
In the data broadcast system of the tree topology, the live data source server 101 and each first order Cache server is directly connected to by wide area network or Ethernet;Mutually it is connected by Ethernet between each first order cache server It connects;It is interconnected with identical upper level caching server caching servers at the same level by Ethernet;Cache server and its Upper level caching server is connected by wide area network.
Wherein, since the data broadcast system for the user of different geographical provides direct broadcast function, cache server can To be distributed in each computer room of different geographical, therefore can be configured with identical upper level caching server peer with computer room Cache server is interconnected by Ethernet, and the server with the different computer rooms of level-one need not be then directly connected to.
In cache server system i.e. shown in FIG. 1:
Multicast data source server 101 is directly connected to each first order cache server by wide area network or Ethernet;
Interconnected between each first order cache server by Ethernet, between each second level cache server by with Too net interconnects, and similarly, is interconnected between each N grades of cache servers by Ethernet;
First order cache server is connected with the second level cache server that it is directly connected to by wide area network;Similarly, N-1 grades of cache servers are connected with the N grades of cache servers that it is directly connected to by wide area network.
So as to lead between live source data server and first order cache server and cache server at different levels Wide area network/Ethernet (public network/LAN) connection is crossed, wherein the caching servers at the same level with different upper level caching servers Between can be not connected to.So as to based on different network connection types, it may be determined that ask to that delay during the source data of live streaming It deposits server and sends request.
Wherein, due to being connected between the caching servers at the same level with identical upper level caching server by wide area network, Data transmission bauds between the two is relatively fast, therefore cache server, is additionally operable to inquire in other caching servers at the same level With the presence or absence of the source data of the request live streaming, wherein, other described caching servers at the same level have with the cache server Identical upper level caching server;When in other caching servers at the same level there are it is described request live streaming source data when, from institute State the source data for obtaining the request live streaming in other caching servers at the same level in real time;When not deposited in other caching servers at the same level In the source data of the request live streaming, trigger from the upper level caching server directly connected or the service of live data source The source data of the request live streaming is obtained in device in real time.
Sometimes when watching live video, possible current live not yet solves just to stop viewing user, i.e., when terminal stops The source data of the live streaming is asked, in order to reduce the burden of server, cache server is additionally operable to receive the straight of the terminal transmission Stopping request being broadcast, and stops asking to stop obtaining the source data for asking live streaming according to described be broadcast live.
In the embodiment of the present invention, other than the live data source server for being located at root node, positioned at child node (other machines Room node) cache server only cache new data content (in such as 2 hours) in a period of time, but also user is supported to obtain simultaneously Take the live content apart from the more long pervious data (before such as 72 hours) of current time.
I.e. cache server only caches the source data being broadcast live in a period of time, and live source data server can be with The metadata that storage time is relatively broadcast live before long, therefore it is setting that live source data server buffer, which can be configured, away from current time It is spaced the source data being broadcast live in A, cache server caching is the source data that is broadcast live in preset interval B away from current time.Wherein, if Surely interval A is the video data of maximum duration section live streaming that can be cached in live broadcast system, such as within 72 hours or a star Within phase etc., the source data user that is broadcast live within the time period can be watched by the functions request of setting out such as reviewing.
Therefore, cache server is additionally operable to determine the source data of the request live streaming from the data broadcast request Establishment moment;Determine the establishment moment and the time interval at current time;When the time interval is more than preset interval, and institute When stating cache server as first order cache server, the source number of live streaming is asked described in the live data source server According to;When the time interval is more than preset interval, and the cache server is the second level to arbitrary level cache clothes in N grades During business device, request is sent step by step by cache servers at different levels connected to it to be asked described in live data source server The source data of live streaming;When the time interval is not more than preset interval, detection trigger is locally broadcast live with the presence or absence of the request Source data.
Based on above-mentioned data broadcast system, data live broadcasting method is discussed further, steps flow chart is as shown in Figure 3.
Step 302, terminal sends live data and asks to cache server.
Step 304, cache server can ask to determine the live source data of request caching, and determine according to live data The establishment moment of the source data of the request live streaming.
Step 306, the establishment moment and the time interval at current time are determined.
Step 308, detect whether the time interval is more than preset interval.
User can watch live content by player, webpage etc., such as open live page triggering and send live streaming number According to request, in addition, user is when watching programme televised live, direct viewing programme televised live sometimes, and work(are waited using reviewing sometimes The data content being broadcast live more for the previous period can be watched, can the triggerings such as wide then corresponding function send live data please It asks, therefore the establishment moment of the source data of request live streaming is usually carried in live data request.
Due to only caching the source data being broadcast live in the short period in cache server, and user can request that and review at most The source data needs being broadcast live before time are obtained from live data source server, therefore before the live source data is asked, Also to obtain the establishment moment of the source data.
Then establishment moment and the time interval at current time are determined, determines that the source data whether may be used according to the time interval It can be stored in cache server, that is, detect whether the time interval is more than preset interval, i.e., it is pre- to be only capable of storage for cache server Put the source data being broadcast live in interval.
If so, i.e. described time interval is more than preset interval, then step 314 is performed;If it is not, i.e. described time interval is more than Preset interval performs step 310.
Step 310, the local source data with the presence or absence of request live streaming of cache server detection.
Wherein, if so, the i.e. local source data that there is request live streaming, then perform step 316;If it is not, i.e. local be not present The source data of live streaming is asked, then performs 312.
Step 312, cache server, which is detected with its caching servers at the same level with identical upper level caching server, is The no source data that there is request live streaming.
If so, i.e. caching servers at the same level has the source data of request live streaming, then step 316 is performed;It is if it is not, i.e. at the same level slow Source data of the server there is no request live streaming is deposited, then performs 314.
Step 314, detect whether the cache server is first order cache server.
Wherein, terminal can determine the cache server of access according to principles such as closest, priority, therefore terminal connects The cache server entered may be N grades of cache servers, it is also possible to first order cache server, and first order buffer service Device and other cache servers are there are certain difference in the source data of request live streaming, therefore are determining that it is local, other are same When not caching the source data in grade cache server, it is necessary to detect whether the cache server is first order buffer service Device.
If so, i.e. cache server is first order cache server, then step 318 is performed;If it is not, cache server is not First order cache server, then perform step 316.
Step 316, the source data of request live streaming is obtained from cache server.
If the cache server locally has the source data of request live streaming, which may be that other-end has requested that , then at this time without being asked to other data sources, you can from the local source data for obtaining request live streaming.The embodiment of the present invention for When same cache server receives two identical data broadcast requests, one only can be generated to upper level caching server Data synchronized links only can ask the primary source data to upper level caching server, subsequently directly feed back the source data to The terminal of live streaming is asked, so as to effectively reduce the flow attack to upper level caching server.
If the cache server is locally there is no the source data of request live streaming, and there are institutes in other caching servers at the same level The source data of request live streaming is stated, wherein, other described caching servers at the same level have identical upper one with the cache server Grade cache server, then the cache server can be by the Ethernet that the two connects from other described caching servers at the same level The source data of the request live streaming is obtained in real time.Therefore, same live content only has portion and is distributed to being mutually same as above In the caching servers at the same level of level cache server, so as to reduce the required inter-network flow of synchrodata and concurrent request Number.
If the source data of the request live streaming is not present in local and other caching servers at the same level, and the caching clothes Business device is the second level to during arbitrary level-one cache server, which can pass through the wide area for connecting the two in N grades Net obtains the source data of the request live streaming from the upper level caching server directly connected in real time.
Also, the source data of request live streaming is obtained from upper level caching server, wherein, the upper level buffer service Device can perform the detecting step of above-mentioned steps 310 to 314, determine to obtain from cache server or live data source server The source data of live streaming is asked, it certainly can be with if being previously detected the time interval of source data of request live streaming and being more than preset interval Level cache server sends request directly up, until the source data that request live streaming is obtained from live data source server is Only.
Step 318, the source data of live streaming is asked described in the live data source server.
When terminal is broadcast live source data to cache server request, if without the source in cache server at different levels Data can then be reported and be made requests on until to live data source server step by step, with the wide area network or ether by connecting the two Net asks the source data of live streaming described in the live data source server.
The embodiment of the present invention can be just triggered in the live streaming when cache server receives the data broadcast request of user The distribution flow of appearance, so as to reduce due to actively distribute data and caused by bandwidth resources waste.
Step 320, the source data Real-time Feedback of the request live streaming is broadcast live to the terminal with the request is broadcast live Source data.
Step 322, the cache server receives the live streaming that the terminal is sent and stops asking.
Step 324, stop the source data of the request stopping acquisition request live streaming according to the live streaming.
After the source data for getting request live streaming, which can be fed back to terminal, so as to which terminal can be right The source data plays out so that user watches live content, such as net cast, live broadcast in both illustration and text.
Since live streaming is typically what is generated with event, when user asks live source data, caching clothes Business device will obtain the source data of request live streaming and be fed back to the terminal of request in real time, so as to which terminal can watch accordingly Live content.
Meanwhile if user stops live streaming, request can be sent, the source data is broadcast live to the cache server of connection, the caching Server is after the live streaming stopping request that the terminal is sent is received, it is possible to stop providing source data for the terminal, if at this time The source data, which is broadcast live, in request in also other terminals will then continue to obtain, if all terminals all stopped live streaming, can stop Only obtain the source data of request live streaming.Thus in the data broadcast request that user terminal is no longer received on cache server, The distribution that system will no longer carry out data reduces unnecessary data and synchronizes.
Also, the embodiment of the present invention is excessive as the live streaming user of areal, leads to more buffer services of same computer room Device (caching servers at the same level i.e. with identical upper level caching server) while when servicing identical live content, these are slow It deposits between server and nearby to data are obtained on adjacent peer cache server, will not at this time be needed to across public affairs by multicast inquiry The source data of request live streaming is obtained in net to upper level caching server, so as to by Intranet quick copy source data, reduce and use The delay of pending datas is waited at family, and reduces the burden of upper level caching server.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group It closes, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to According to the embodiment of the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented Necessary to example.
Each embodiment in this specification is described by the way of progressive, the highlights of each of the examples are with The difference of other embodiment, just to refer each other for identical similar part between each embodiment.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments Capable instruction generation is used to implement in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes The device for the function of specifying.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory generates packet The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that Series of operation steps are performed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction offer performed on computer or other programmable terminal equipments is used to implement in one flow of flow chart or multiple flows And/or specified in one box of block diagram or multiple boxes function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, those skilled in the art once know base This creative concept can then make these embodiments other change and modification.So appended claims are intended to be construed to Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements are not only wrapped Those elements are included, but also including other elements that are not explicitly listed or are further included as this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, it is wanted by what sentence "including a ..." limited Element, it is not excluded that also there are other identical elements in the process including the element, method, article or terminal device.
Above to a kind of data broadcast system provided by the present invention and a kind of data live broadcasting method, detailed Jie has been carried out It continues, specific case used herein is expounded the principle of the present invention and embodiment, and the explanation of above example is only It is the method and its core concept for being used to help understand the present invention;Meanwhile for those of ordinary skill in the art, according to this hair Bright thought, there will be changes in specific embodiments and applications, in conclusion the content of the present specification should not manage It solves as limitation of the present invention.

Claims (8)

1. a kind of data broadcast system, which is characterized in that including:Live data source server and cache server;
Wherein, using the live data source server as root node, tree topology is formed as child node using the cache server Structure;
The cache server includes:At least two first order buffer services being directly connected to the live data source server Device, at least two second level cache servers that each first order cache server respectively connects, and so on, each N-1 At least two N grades of cache servers that grade cache server respectively connects, wherein N >=2 and N are positive integer;
The then live data source server for storing the source data of live streaming, and is sent to the first order cache server Ask the source data of live streaming;The source data of the storage live streaming includes:The source data of all live streamings in configurable storage duration;
The cache server, the data broadcast request for being sent according to terminal determine the source data of request live streaming;Work as detection During the source data that local is broadcast live there are the request, the source data for asking live streaming is obtained from local in real time;When detection is local There is no the source data of the request live streaming, and when the cache server is first order cache server, in real time from described straight The source data of live streaming is asked described in multicast data source server;When the local source data there is no the request live streaming of detection, and The cache server for the second level in N grade arbitrarily level-one cache server when, in real time from upper one directly connected The source data of the request live streaming is obtained in grade cache server;And by the source data Real-time Feedback of the request live streaming to institute Terminal is stated so that the source data of the request live streaming is broadcast live;
The cache server is additionally operable to inquire in other caching servers at the same level with the presence or absence of the source number of the request live streaming According to, wherein, other described caching servers at the same level have identical upper level caching server with the cache server;When it There are during the source data of the request live streaming in his caching servers at the same level, obtained in real time from other described caching servers at the same level Take the source data of the request live streaming;When the source data that the request live streaming is not present in other caching servers at the same level, touch Hair obtains the request live streaming in real time from the upper level caching server or live data source server directly connected Source data.
2. system according to claim 1, it is characterised in that:
The live data source server is directly connected to each first order cache server by wide area network or Ethernet;Respectively It is interconnected between first order cache server by Ethernet;With identical upper level caching server peer buffer service Device is interconnected by Ethernet;Cache server is connect with its upper level caching server by wide area network.
3. system according to claim 1, it is characterised in that:
The cache server is additionally operable to receive the live streaming stopping request that the terminal is sent, and please according to the live streaming stopping Seek the source data for stopping obtaining the request live streaming.
4. system according to claim 1, which is characterized in that
The cache server, when being additionally operable to determine the establishment of the source data of the request live streaming from the data broadcast request It carves;Determine the establishment moment and the time interval at current time;When the time interval is more than preset interval, and the caching When server is first order cache server, the source data of live streaming is asked described in the live data source server;Work as institute Time interval is stated more than preset interval, and the cache server for the second level in N grade arbitrarily level-one cache server when, Request is sent step by step by cache servers at different levels connected to it to ask live streaming described in live data source server Source data;When the time interval is not more than preset interval, detection trigger is locally with the presence or absence of the source number of the request live streaming According to.
5. a kind of data live broadcasting method, which is characterized in that applied to using live data source server as root node, with buffer service In the live broadcast system with tree topology that device is formed for child node, the cache server includes:With the live streaming number At least two first order cache servers being directly connected to according to source, each first order cache server respectively connect at least two Second level cache server, and so on, at least two N grades of caching clothes that each N-1 grades of cache servers respectively connect Business device, wherein N >=2 and N are positive integer;
The method includes:
Cache server receives the data broadcast request that terminal is sent, and determines request live streaming according to the data broadcast request Source data;
The local source data with the presence or absence of the request live streaming of the cache server detection;
During the source data being broadcast live when detection is local there are the request, the cache server obtains the request from local in real time The source data of live streaming;
When the local source data there is no the request live streaming of detection, and the cache server is first order cache server When, the first order cache server asks the source data of live streaming described in the live data source server in real time;It is described Live data source server is used to store the source data of all live streamings in configurable storage duration;
When the local source data there is no the request live streaming of detection, and the cache server is the second level in N grade During meaning level cache server, the cache server obtains institute from the upper level caching server directly connected in real time State the source data of request live streaming;
The cache server gives the source data Real-time Feedback of the request live streaming to the terminal, please so that terminal live streaming is described Seek the source data of live streaming;
After the local source data there is no the request live streaming of detection, further include:
The cache server is inquired with the presence or absence of the source data of the request live streaming in other caching servers at the same level, wherein, Other described caching servers at the same level have identical upper level caching server with the cache server;
When in other caching servers at the same level there are it is described request live streaming source data when, the cache server from it is described other The source data of the request live streaming is obtained in caching servers at the same level in real time;
When the source data that the request live streaming is not present in other caching servers at the same level, the cache server perform from The source data of the request live streaming is obtained in its upper level caching server or live data source server for being directly connected in real time The step of.
6. it according to the method described in claim 5, it is characterized in that, further includes:
The cache server receives the live streaming that the terminal is sent and stops request, and stop request according to the live streaming and stop obtaining Take the source data of the request live streaming.
7. according to the method described in claim 5, it is characterized in that, cache server detection is local to whether there is described ask Before the source data for asking live streaming, further include:
The cache server determines the establishment moment of the source data of the request live streaming from the data broadcast request;
Determine the establishment moment and the time interval at current time;
The time interval with preset interval is compared, and determines that the source data of live streaming is asked in acquisition according to comparison result Step.
8. the method according to the description of claim 7 is characterized in that the time interval is compared with preset interval, and The step of determining to obtain the source data of request live streaming according to comparison result, including:
When the time interval is more than preset interval, and the cache server is first order cache server, described first Grade cache server asks the source data of live streaming described in the live data source server;
When the time interval is more than preset interval, and the cache server is the second level to arbitrary level cache in N grades During server, the cache server sends request by cache servers at different levels connected to it with from live data source step by step The source data of live streaming is asked described in server;
When the time interval is not more than preset interval, it is local with the presence or absence of the request that the cache server performs detection The step of source data of live streaming.
CN201410504982.8A 2014-09-26 2014-09-26 A kind of data broadcast system and method Active CN104301741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410504982.8A CN104301741B (en) 2014-09-26 2014-09-26 A kind of data broadcast system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410504982.8A CN104301741B (en) 2014-09-26 2014-09-26 A kind of data broadcast system and method

Publications (2)

Publication Number Publication Date
CN104301741A CN104301741A (en) 2015-01-21
CN104301741B true CN104301741B (en) 2018-06-22

Family

ID=52321274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410504982.8A Active CN104301741B (en) 2014-09-26 2014-09-26 A kind of data broadcast system and method

Country Status (1)

Country Link
CN (1) CN104301741B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210779A (en) * 2016-08-15 2016-12-07 暴风集团股份有限公司 Optimize the method and system of internet video live broadcasting data hierarchy transmission

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210751B (en) * 2016-08-15 2019-07-19 暴风集团股份有限公司 The method and system of internet video live broadcasting data hierarchy transmission
CN106488263A (en) * 2016-10-24 2017-03-08 北京小米移动软件有限公司 Push the method and device of live broadcast stream media data
CN106454443A (en) * 2016-11-07 2017-02-22 厦门浩渺网络科技有限公司 Intelligent traffic distribution method for live broadcast application and live broadcast system using same
CN107483976A (en) * 2017-09-26 2017-12-15 武汉斗鱼网络科技有限公司 Live management-control method, device and electronic equipment
CN108024123A (en) * 2017-11-08 2018-05-11 北京密境和风科技有限公司 A kind of live video processing method, device, terminal device and server
CN111131402B (en) * 2018-03-22 2022-06-03 贵州白山云科技股份有限公司 Method, device, equipment and medium for configuring shared cache server group
CN108600778B (en) * 2018-05-07 2020-11-03 广州酷狗计算机科技有限公司 Media stream transmitting method, device, system, server, terminal and storage medium
CN109274762B (en) * 2018-10-22 2021-10-29 杭州领智云画科技有限公司 CDN refreshing method and system
CN111447465A (en) * 2018-12-29 2020-07-24 北京奇虎科技有限公司 Business flow state visualization processing method and device and computing equipment
CN111669610B (en) * 2020-05-27 2022-08-05 北京奇艺世纪科技有限公司 Live video transmission method, system, device, server, electronic equipment and storage medium
CN112584186B (en) * 2020-11-30 2023-02-21 微梦创科网络科技(中国)有限公司 Live broadcast method and system based on establishment of E-commerce live broadcast shopping cart service

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1340939A (en) * 2000-09-01 2002-03-20 北京锐信通达多媒体通信科技有限公司 System and method for implementing network karaoke on broadband platform
US6760765B1 (en) * 1999-11-09 2004-07-06 Matsushita Electric Industrial Co., Ltd. Cluster server apparatus
CN101123528A (en) * 2007-07-23 2008-02-13 中兴通讯股份有限公司 Stream media system and creation method for Internet network TV
CN101232388A (en) * 2007-01-26 2008-07-30 中兴通讯股份有限公司 Method for distributing control stream medium data on edge stream medium server
DE102008028591A1 (en) * 2008-06-18 2010-01-07 Siemens Aktiengesellschaft Method for uninterruptible video stream communication from server computer to client computer, involves executing application program transmitted from computer to client computer, and utilizing offered service by client computer
CN102231749A (en) * 2011-08-12 2011-11-02 乐视网信息技术(北京)股份有限公司 System and method for transmitting live stream by utilizing content delivery network (CDN)
CN103139656A (en) * 2011-12-01 2013-06-05 苏州达联信息科技有限公司 Method of managing cluster type dynamic network distribution trees of video live broadcast distribution network
CN103731753A (en) * 2012-10-12 2014-04-16 上海聚力传媒技术有限公司 Personal live video stream routing system and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6760765B1 (en) * 1999-11-09 2004-07-06 Matsushita Electric Industrial Co., Ltd. Cluster server apparatus
CN1340939A (en) * 2000-09-01 2002-03-20 北京锐信通达多媒体通信科技有限公司 System and method for implementing network karaoke on broadband platform
CN101232388A (en) * 2007-01-26 2008-07-30 中兴通讯股份有限公司 Method for distributing control stream medium data on edge stream medium server
CN101123528A (en) * 2007-07-23 2008-02-13 中兴通讯股份有限公司 Stream media system and creation method for Internet network TV
DE102008028591A1 (en) * 2008-06-18 2010-01-07 Siemens Aktiengesellschaft Method for uninterruptible video stream communication from server computer to client computer, involves executing application program transmitted from computer to client computer, and utilizing offered service by client computer
CN102231749A (en) * 2011-08-12 2011-11-02 乐视网信息技术(北京)股份有限公司 System and method for transmitting live stream by utilizing content delivery network (CDN)
CN103139656A (en) * 2011-12-01 2013-06-05 苏州达联信息科技有限公司 Method of managing cluster type dynamic network distribution trees of video live broadcast distribution network
CN103731753A (en) * 2012-10-12 2014-04-16 上海聚力传媒技术有限公司 Personal live video stream routing system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210779A (en) * 2016-08-15 2016-12-07 暴风集团股份有限公司 Optimize the method and system of internet video live broadcasting data hierarchy transmission
CN106210779B (en) * 2016-08-15 2019-04-26 暴风集团股份有限公司 Optimize the method and system of internet video live broadcasting data hierarchy transmission

Also Published As

Publication number Publication date
CN104301741A (en) 2015-01-21

Similar Documents

Publication Publication Date Title
CN104301741B (en) A kind of data broadcast system and method
EP3595268B1 (en) Streaming media resource distribution method, system, edge node and central dispatching system
JP6698755B2 (en) Streaming segmented content
US20210084111A1 (en) Content Distribution Network Supporting Popularity-Based Caching
EP3706424B1 (en) Video live broadcast method and apparatus
EP2719142B1 (en) Locating and retrieving segmented content
CN107835437B (en) Dispatching method based on more cache servers and device
US8812718B2 (en) System and method of streaming data over a distributed infrastructure
US20090259710A1 (en) Content distribution
CN101141459A (en) Method of implementing data transmission or stream media transmission using combination of HTTP and P2P
CN104581366A (en) Internet television broadcasting method and server
CN106789956B (en) A kind of P2P order method and system based on HLS
CN108259521A (en) Hot point resource sharing method and device
CN108574666B (en) Data stream scheduling method, device and system
JP2018506772A (en) Network address resolution
US11490155B2 (en) Management of devices in ad hoc rendering networks
CN115706741A (en) Method and device for returning slice file
CN110019359A (en) A kind of method, apparatus and system for preventing caching from puncturing
CN110196842A (en) File memory method, management method, device, server and storage medium
WO2014117508A1 (en) Content delivery network and content management method in content delivery network
WO2016165596A1 (en) Multimedia file control method and system
RU2465638C1 (en) Method of distributing multimedia information by peer-to-peer decentralised network deployment and decentralised network for realising said method
KR101205999B1 (en) Method and Apparatus Managing Contents for Video Streaming Service
CN108270845A (en) A kind of P2P VOD systems and method based on RTSP
WO2017197808A1 (en) Video processing method, apparatus, and system

Legal Events

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