CN104301741A - Data live broadcast system and method - Google Patents

Data live broadcast system and method Download PDF

Info

Publication number
CN104301741A
CN104301741A CN201410504982.8A CN201410504982A CN104301741A CN 104301741 A CN104301741 A CN 104301741A CN 201410504982 A CN201410504982 A CN 201410504982A CN 104301741 A CN104301741 A CN 104301741A
Authority
CN
China
Prior art keywords
live
data
caching server
server
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410504982.8A
Other languages
Chinese (zh)
Other versions
CN104301741B (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

Abstract

The invention provides a data live broadcast system and method which aim to solve the problem that an existing live broadcast system can cause network congestion and even network paralysis easily. The data live broadcast system comprises a live broadcast data source server and cache servers, wherein the live broadcast data source server is used as a root node, the cache servers are used as child nodes, and accordingly a tree topology structure is formed. According to the system, the live broadcast data source server is used for storing live broadcast source data, the live broadcast data source server only distributes source data which require to be subjected to live broadcast to the first level of cache servers, and thus the phenomenon that congestion and paralysis happen to the live broadcast data source server due to the fact that excessive nodes are accessed simultaneously can be avoided. Under the tree topology structure, after the cache servers receive data live broadcast requests, the cache servers can sequentially request data sources towards the previous level of cache servers in a classification mode, and therefore the problem that congestion and paralysis happen due to the fact that excessive nodes are connected into all the levels of cache servers is solved. The source data which require to be subjected to live broadcast can be provided quickly, and the live broadcast quality of the source data is improved.

Description

A kind of data live broadcast system and method
Technical field
The present invention relates to data direct seeding technique field, particularly relate to a kind of data live broadcast system and a kind of data live broadcasting method.
Background technology
User can watch live content by player, webpage etc. by network, as video, live broadcast in both illustration and text etc.Existing data live broadcast system usually adopts and simply copies and active push pattern, by each physical machine (user terminal) that the data-pushing of same road live TV stream is connected to each Internet data center (Internet Data Center, the IDC) node of whole data live broadcast system with it.
Therefore, when in live i.e. distribution, there is the large-scale programme televised live of a lot of concurrent user request, or when the live data content that a lot of road of distribution is differently concurrent, capital causes whole data Living Network crowded to capacity, even causes live source data to paralyse owing to being connected by too many network node.
Summary of the invention
Embodiment of the present invention technical problem to be solved is to provide a kind of data live broadcast system and method, to solve the problem that existing live broadcast system easily causes network congestion even to paralyse.
In order to solve the problem, the invention discloses a kind of data live broadcast system, comprising: live data source server and caching server; Wherein, with described live data source server for root node, with described caching server for child node is formed tree topology; Described caching server comprises: at least two first order caching servers be directly connected with described live data source server, at least two second level caching servers that each first order caching server connects separately, by that analogy, at least two N level caching servers that each N-1 level caching server connects separately, wherein N >=2 and N is positive integer; Then described live data source server, for storing live source data, and sends request live source data to described first order caching server; Described caching server, the live request of data for sending according to terminal is determined to ask live source data; When detect local there is described request live source data time, obtain the live source data of described request from this locality in real time; There is not the live source data of described request when detection is local, and when described caching server is first order caching server, described in described live data source server, ask live source data in real time; There is not the live source data of described request when detection is local, and when described caching server is any level cache server in the second level to N level, obtain the live source data of described request from its upper level caching server be directly connected in real time; And give described terminal with live described request live source data source data Real-time Feedback live for described request.
Optionally, described live data source server is directly connected by wide area network or Ethernet with described each first order caching server; Be connected to each other by Ethernet between each first order caching server; There is identical upper level caching server caching server at the same level be connected to each other by Ethernet; Caching server is connected by wide area network with its upper level caching server.
Optionally, described caching server, also for inquiring about in other caching servers at the same level whether there is the live source data of described request, wherein, other caching servers at the same level described have identical upper level caching server with described caching server; When there is the live source data of described request in other caching servers at the same level, the source data that Real-time Obtaining described request is live from other caching servers at the same level described; When there is not the live source data of described request in other caching servers at the same level, trigger from the source data live with Real-time Obtaining described request its upper level caching server be directly connected or live data source server.
Optionally, described caching server, also for receiving the live stopping request that described terminal sends, and asks to stop obtaining the live source data of described request according to described live stopping.
Optionally, described caching server, also for determining the establishment moment of the source data that described request is live from the live request of described data; Determine the time interval of described establishment moment and current time; When described interval greater than preset interval, and when described caching server is first order caching server, described in described live data source server, ask live source data; When described interval greater than preset interval, and described caching server is when being any level cache server in the second level to N level, send request to ask live source data from described in live data source server step by step by connected caching server at different levels; When the described time interval is not more than preset interval, whether detection trigger this locality exists the live source data of described request.
The invention also discloses a kind of data live broadcasting method, be applied to described live data source server as root node, what formed for child node with described caching server has in the live broadcast system of tree topology, described caching server comprises: at least two first order caching servers be directly connected with described live data source, at least two second level caching servers that each first order caching server connects separately, by that analogy, at least two N level caching servers that each N-1 level caching server connects separately, wherein N >=2 and N is positive integer; Described method comprises: the live request of data that caching server receiving terminal sends, and determines to ask live source data according to the live request of described data; Described caching server detects this locality and whether there is the live source data of described request; When detect local there is described request live source data time, described caching server obtains the live source data of described request in real time from this locality; There is not the live source data of described request when detection is local, and when described caching server is first order caching server, described first order caching server asks live source data in real time described in described live data source server; The live source data of described request is there is not when detection is local, and described caching server is when being any level cache server in the second level to N level, described caching server obtains the live source data of described request from its upper level caching server be directly connected in real time; Source data Real-time Feedback live for described request is given described terminal, with the source data making the live described request of terminal live by described caching server.
Optionally, after there is not the live source data of described request in detection this locality, also comprise: described caching server inquires about in other caching servers at the same level whether there is the live source data of described request, wherein, other caching servers at the same level described have identical upper level caching server with described caching server; When there is the live source data of described request in other caching servers at the same level, the described caching server source data that Real-time Obtaining described request is live from other caching servers at the same level described; When there is not the live source data of described request in other caching servers at the same level, described caching server performs the step from the source data live with Real-time Obtaining described request its upper level caching server be directly connected or live data source server.
Optionally, also comprise: described caching server receives the live stopping request that described terminal sends, and ask to stop obtaining the live source data of described request according to described live stopping.
Optionally, described caching server detection this locality also comprises: described caching server determines the establishment moment of the source data that described request is live from the live request of described data before whether there is the live source data of described request; Determine the time interval of described establishment moment and current time; The described time interval and preset interval are compared, and determines according to comparative result the step obtaining the live source data of request.
Optionally, the described time interval and preset interval are compared, and determine according to comparative result the step obtaining the live source data of request, comprise: when described interval greater than preset interval, and described caching server is when being first order caching server, described first order caching server asks live source data described in described live data source server; When described interval greater than preset interval, and described caching server is when being any level cache server in the second level to N level, described caching server sends request to ask live source data from described in live data source server step by step by connected caching server at different levels; When the described time interval is not more than preset interval, described caching server performs and detects the local step that whether there is the live source data of described request.
Compared with prior art, the embodiment of the present invention comprises following advantage:
With live data source server for root node, there is for child node is formed with caching server at different levels the data live broadcast system of tree topology respectively, live data source server is adopted to store live source data, live data source server is only to the source data that described first order caching server dispense request is live, thus can not multinode be accessed due to concurrent and cause blocking up and paralysing of live data source server, under this tree topology, caching server is after receiving the live request of data, can by classification successively upwards level cache server request data source, thus avoid caching server at different levels and cause the problem of blocking up and paralysing owing to accessing multinode, the source data that request is live is provided fast, improve the live quality of source data.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of a kind of data live broadcast system embodiment of the present invention;
Fig. 2 is a kind of data live broadcasting method embodiment flow chart of steps of the present invention;
Fig. 3 is a kind of data live broadcasting method embodiment flow chart of steps of the present invention.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
One of core idea of the embodiment of the present invention is, proposes a kind of data live broadcast system and method, to solve the problem that existing live broadcast system easily causes network congestion even to paralyse.With live data source server for root node, there is for child node is formed with caching server at different levels the data live broadcast system of tree topology respectively, live data source server is adopted to store live source data, live data source server is only to the source data that described first order caching server dispense request is live, thus can not multinode be accessed due to concurrent and cause blocking up and paralysing of live data source server, under this tree topology, caching server is after receiving the live request of data, can by classification successively upwards level cache server request data source, thus avoid caching server at different levels and cause the problem of blocking up and paralysing owing to accessing multinode, the source data that request is live is provided fast, improve the live quality of source data.
Embodiment one
With reference to Fig. 1, show the structured flowchart of a kind of data live broadcast system embodiment of the present invention, specifically can comprise as lower module:
Data live broadcast system comprises: live data source server 101 and caching server 102.This data live broadcast system can carry out the distribution, live of the data contents such as video based on TCP/IP network.
This data live broadcast system for root node, with described caching server 102 for child node is formed tree topology, and comprises multistage child node in this tree topology with described live data source server 101.Thus the distribution link of live content forms tree structure in this data live broadcast system, using live data source server as tree root, caching server in the machine room of data source is as trunk, caching server in the machine room of user, as branch, forms the live content distributing structure of 2 grades and above level with this.
Therefore, described caching server 102 comprises: at least two first order caching servers be directly connected with described live data source server 101, at least two second level caching servers that each first order caching server connects separately, by that analogy, at least two N level caching servers that each N-1 level caching server connects separately, wherein N >=2 and N is positive integer.
In the embodiment of the present invention, lively to refer at the scene along with the generation of event, development process synchronously make and release news, there is the information network published method of the process of two-way circulating.Its form can be divided into on-the-spot broadcasting, studio talk-show live, word picture is live, video and audio is live or provide the live etc. of information source by TV (third party).Further, live broadcast system has standby mass memory, searches the functions such as convenient.
Wherein, live data source server 101, for storing live source data, and sends request live source data to described first order caching server.Concrete, in data live broadcast system, along with the generation of event can synchronously produce and generate live source data, as generated the live video data etc. of current event, then this live source data is existed in live data source server, corresponding source data is fed back this caching server by the request initiatively being issued or give first order caching server by live data source server, plays feeding back to user further.
In the embodiment of the present invention, according to tree topology, caching server is divided different levels, therefore caching server can at the same level or parent server acquisition request video source data when request msg.That is, caching server 102, the live request of data for sending according to terminal is determined to ask live source data; When detect local there is described request live source data time, obtain the live source data of described request from this locality in real time; There is not the live source data of described request when detection is local, and when described caching server is first order caching server, described in described live data source server, ask live source data in real time; There is not the live source data of described request when detection is local, and when described caching server is any level cache server in the second level to N level, obtain the live source data of described request from its upper level caching server be directly connected in real time; And give described terminal with live described request live source data source data Real-time Feedback live for described request.
Based on above-mentioned data live broadcast system, discuss data live broadcasting method, as shown in Figure 2, specifically comprise the steps:
Step 202, the live request of data that caching server receiving terminal sends, and from the live request of described data, obtain the live source data of request.
Just discuss at live video for current network, this video can be that third party's data sources such as TV provide, and also can be that network direct broadcasting room generates, user uses the terminal equipment such as computer, mobile phone can watch the live of this video.Now, terminal equipment can send request and carry out live data live broadcast system to this video, and the caching server in data live broadcast system can receive the live request of these data.
Wherein, adopt the caching server that there is multi-layer in the data live broadcast system of tree topology, the caching server carrying out with the terminal equipment of user communicating is determined according to presetting rule, such as determine according to nearest principle, according to the loading condition of caching server, determine the caching server with terminal equipment in communication according to the above-mentioned at least one rule of the priority etc. of user.
This caching server can receive the live request of data that terminal equipment sends, the live request of these data is used for request and carries out live to assigned source data, therefore can determine to ask live source data according to the live request of these data, from the live request of data, such as obtain the information such as the Data Identification (as title, numbering) of the live metadata of request, to determine that current request is carried out live to which video data.
Step 204, described caching server detects this locality and whether there is the live source data of described request.
Sometimes before the live request of data receiving this terminal equipment, just may have this source data of other device request, now just without the need to again asking this source data, therefore caching server will detect this locality and whether there is the live source data of described request.
Step 206, described caching server obtains the live source data of described request in real time from this locality.
When detect local there is described request live source data time, described caching server obtains the live source data of described request in real time from this locality.
Whether step 208, detecting described caching server is first order caching server.
There is not the live source data of described request when detection is local, whether because the mode of first order caching server and other grade of caching server acquisition source data there are differences, therefore will detect this caching server is first order caching server.
Step 210, described first order caching server asks live source data in real time described in described live data source server.
The live source data of described request is there is not when detection is local, and described caching server is when being first order caching server, described first order caching server asks live source data in real time described in described live data source server, and namely first order caching server can directly to the live source data of live source data server requests.
In the data live broadcast system of the present embodiment, live source data server only can provide live source data to first order caching server, thus effectively reduces the equipment access quantity in live source data server, guarantees the stability of live broadcast system.According to the terminal equipment of the situation access certain customers such as load, certain live source data server also can think that it directly provides live source data, can set according to real needs, the embodiment of the present invention is not construed as limiting this.
Step 212, described caching server obtains the live source data of described request from its upper level caching server be directly connected in real time.
The live source data of described request is there is not when detection is local, and described caching server is when being any level cache server in the second level to N level, described caching server obtains the live source data of described request from its upper level caching server be directly connected in real time.
The data live broadcast system of the embodiment of the present invention adopts tree topology, there is 1st ~ N level caching server, first order caching server can directly to the live source data of live source data server requests, and other level (in the second level to the N level any one-level) caching server except the first order then can to the live source data of its upper level caching server request in real time.Thus the terminal equipment quantity of disperseing each caching server to access, for terminal equipment provides the data, services of more high-quality.
Step 214, source data Real-time Feedback live for described request is given described terminal, with the source data making the live described request of terminal live by described caching server.
Caching server after obtaining the live source data of request from this locality, upper level caching server or live source data server, can by this source data Real-time Feedback to terminal, make the equipment such as the player in terminal can carry out live to this source data, thus user can watch live content in real time.
In sum, with live data source server for root node, there is for child node is formed with caching server at different levels the data live broadcast system of tree topology respectively, live data source server is adopted to store live source data, live data source server is only to the source data that described first order caching server dispense request is live, thus can not multinode be accessed due to concurrent and cause blocking up and paralysing of live data source server, under this tree topology, caching server is after receiving the live request of data, can by classification successively upwards level cache server request data source, thus avoid caching server at different levels and cause the problem of blocking up and paralysing owing to accessing multinode, the source data that request is live is provided fast, improve the live quality of source data.
Embodiment two
On the basis of above-described embodiment, the present embodiment discusses data live broadcast system and live broadcasting method thereof further.
In the data live broadcast system of this tree topology, described live data source server 101 is directly connected by wide area network or Ethernet with described each first order caching server; Be connected to each other by Ethernet between each first order caching server; There is identical upper level caching server caching server at the same level be connected to each other by Ethernet; Caching server is connected by wide area network with its upper level caching server.
Wherein, the user being different geographical due to this data live broadcast system provides direct broadcast function, therefore caching server can be distributed in each machine room of different geographical, therefore can configure and there is the identical upper level caching server caching server with machine room at the same level be connected to each other by Ethernet, with the server of the different machine rooms of one-level then without the need to direct connection.
Namely in the caching server system shown in Fig. 1:
Multicast data source server 101 is directly connected by wide area network or Ethernet with described each first order caching server;
Be connected to each other by Ethernet between each first order caching server, be connected to each other by Ethernet between the caching server of each second level, in like manner, be connected to each other by Ethernet between each N level caching server;
First order caching server is connected by wide area network with the second level caching server that it is directly connected; In like manner, N-1 level caching server is connected by wide area network with the N level caching server that it is directly connected.
Thus, live source data server and first order caching server, and wide area network/Ethernet (public network/local area network (LAN)) can be passed through between caching server at different levels connect, can not connect between the caching server at the same level wherein with different upper level caching server.Thus based on different network connection types, can determine to send request to that caching server when asking live source data.
Wherein, due to there is identical upper level caching server caching server at the same level between connected by wide area network, data transmission bauds is between the two relatively very fast, therefore caching server, also for inquiring about in other caching servers at the same level whether there is the live source data of described request, wherein, other caching servers at the same level described have identical upper level caching server with described caching server; When there is the live source data of described request in other caching servers at the same level, the source data that Real-time Obtaining described request is live from other caching servers at the same level described; When there is not the live source data of described request in other caching servers at the same level, trigger from the source data live with Real-time Obtaining described request its upper level caching server be directly connected or live data source server.
Sometimes user is when watching live video, possible current live not yet solves and just stops viewing, namely when terminal stops this live source data of request, in order to reduce the burden of server, caching server, also for receiving the live stopping request that described terminal sends, and ask to stop obtaining the live source data of described request according to described live stopping.
In the embodiment of the present invention, except the live data source server being positioned at root node, the new data content (as 2 hours) of the caching server being positioned at child node (other machine room nodes) only buffer memory a period of time, but also support simultaneously user obtain distance current time more for a long time before the live content of data (before 72 hours).
Namely caching server only carries out buffer memory to source data live in a period of time, and live source data server can memory time metadata live comparatively for a long time, therefore can configure live source data server buffer memory apart from current time is source data live in setting interval A, and caching server buffer memory is source data live in preset interval B apart from current time.Wherein, setting interval A is can the live video data of the maximum duration section of buffer memory in live broadcast system, and such as, within 72 hours, or within the week etc., source data user live in section at this moment can watch by the function request of setting out such as reviewing.
Therefore, caching server, also for determining the establishment moment of the source data that described request is live from the live request of described data; Determine the time interval of described establishment moment and current time; When described interval greater than preset interval, and when described caching server is first order caching server, described in described live data source server, ask live source data; When described interval greater than preset interval, and described caching server is when being any level cache server in the second level to N level, send request to ask live source data from described in live data source server step by step by connected caching server at different levels; When the described time interval is not more than preset interval, whether detection trigger this locality exists the live source data of described request.
Based on above-mentioned data live broadcast system, discuss data live broadcasting method further, steps flow chart as shown in Figure 3.
Step 302, terminal sends live data request to caching server.
Step 304, caching server can determine the live source data of asking buffer memory according to live data request, and determines the establishment moment of the source data that described request is live.
Step 306, determines the time interval of described establishment moment and current time.
Whether step 308, detecting the described time interval is greater than preset interval.
User can by the viewing such as player, webpage live content, the live data request that sends is triggered as opened the live page etc., in addition, user is when watching programme televised live, direct viewing programme televised live sometimes, and adopt sometimes and the function such as to review data content more live is watched, wide then corresponding function etc. can trigger the live data request that sends, therefore in live data request, usually carry the establishment moment of the live source data of request.
Due to source data only live in the buffer memory short period in caching server, and user can ask the former live source data of time at most reviewed to need to obtain from live data source server, therefore, before these live source data of request, the establishment moment of this source data to also be obtained.
Then the time interval creating moment and current time is determined, determine whether this source data may be stored in caching server according to this time interval, whether be greater than preset interval, namely caching server only can store source data live in preset interval if namely detecting this time interval.
If so, namely described interval greater than preset interval, then perform step 314; If not, namely described interval greater than preset interval, namely perform step 310.
Step 310, caching server detects this locality and whether there is the live source data of request.
Wherein, if so, namely local exist the live source data of request, then perform step 316; If not, namely local do not exist the live source data of request, then perform 312.
Step 312, whether caching server detection exists with its caching server at the same level with identical upper level caching server is asked live source data.
If so, namely there is the live source data of request in caching server at the same level, then perform step 316; If not, namely there is not the live source data of request in caching server at the same level, then perform 314.
Whether step 314, detecting this caching server is first order caching server.
Wherein, terminal can determine according to principles such as nearest, priority the caching server that accesses, therefore the caching server of terminal access may be N level caching server, also may be first order caching server, and first order caching server and other caching servers are there is certain difference in the live source data of request, therefore whether, when determining do not have this source data of buffer memory in its this locality, other caching servers at the same level, just needing to detect this caching server is first order caching server.
If so, namely caching server is first order caching server, then perform step 318; If not, caching server is not first order caching server, then perform step 316.
Step 316, obtains the live source data of request from caching server.
If this caching server this locality exists the live source data of request, this source data may be that other-end is asked, then now without the need to other data source requests, can obtain the live source data of request from this locality.When the embodiment of the present invention receives the live request of two identical data for same caching server, the data syn-chronization that only can produce a upwards level cache server connects, namely only can upwards level cache server request once this source data, the terminal that follow-up this source data of direct feedback gives request live, thus effectively reduce the flow attack to upper level caching server.
If there is not the live source data of request in this caching server this locality, and in other caching servers at the same level, there is the live source data of described request, wherein, other caching servers at the same level described have identical upper level caching server with described caching server, then this caching server can by the Ethernet source data that Real-time Obtaining described request is live from other caching servers at the same level described of both connections.Therefore, same live content only has portion and is distributed in the caching server at the same level with identical upper level caching server, thus the inter-network flow reduced required for synchrodata and concurrent request number.
If all there is not the live source data of described request in this locality and other caching servers at the same level, and described caching server is when being any level cache server in the second level to N level, this caching server can obtain the live source data of described request from its upper level caching server be directly connected in real time by the wide area network both connecting.
And, the source data that this request is live is obtained from upper level caching server, wherein, this upper level caching server can perform the detecting step of above-mentioned steps 310 to 314, determine from caching server or live data source server, obtain the live source data of request, if certainly detect in advance the source data that request is live interval greater than preset interval; could send request directly to upper level caching server, until obtain the live source data of request from live data source server.
Step 318, asks live source data described in described live data source server.
When terminal is carried out live to caching server request to source data, if equal not this source data in caching server at different levels, then can report step by step until ask to live data source server, described in described live data source server, ask live source data with pass through both connections wide area network or Ethernet.
The embodiment of the present invention when caching server receives the live request of the data of user, just can trigger the distribution flow of this live content, thus reduce the bandwidth resources waste caused due to active distributing data.
Step 320, gives described terminal with live described request live source data source data Real-time Feedback live for described request.
Step 322, described caching server receives the live stopping request that described terminal sends.
Step 324, according to the described live source data stopping request stopping acquisition described request live.
After getting the live source data of request, this source data can be fed back to terminal, thus terminal can be play to this source data, makes user watch live content, as net cast, live broadcast in both illustration and text etc.
Due to live normally along with the generation of event generates, therefore when user asks live source data, caching server will obtain the live source data of request in real time and be fed back to the terminal of request, thus terminal can watch corresponding live content.
Simultaneously, if user stops live, this source data live can be sent request to the caching server connected, this caching server is after the live stopping request receiving the transmission of described terminal, just can stop as these terminal providing source data, if now also have other terminal in request this source data live, continue to obtain, if all terminals all stopped live, then can stop obtaining the live source data of this request.Thus during the live request of the data no longer receiving user side on caching server, system, by no longer carrying out the distribution of data, decreases unnecessary data syn-chronization.
And, the live user that the embodiment of the present invention works as areal is too much, when causing the multiple stage caching server of same machine room (namely having the caching server at the same level of identical upper level caching server) to serve identical live content simultaneously, multicast inquiry will be passed through between these caching servers, data are obtained nearby to adjacent peer caching server, now do not need across obtaining the live source data of request in public network to upper level caching server, thus by Intranet quick copy source data, reduce the delay of the pending datas such as user, and reduce the burden of upper level caching server.
It should be noted that, for embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the embodiment of the present invention is not by the restriction of described sequence of movement, because according to the embodiment of the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action might not be that the embodiment of the present invention is necessary.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Those skilled in the art should understand, the embodiment of the embodiment of the present invention can be provided as method, device or computer program.Therefore, the embodiment of the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the embodiment of the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The embodiment of the present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, terminal equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminal equipment to produce a machine, making the instruction performed by the processor of computer or other programmable data processing terminal equipment produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing terminal equipment, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal equipment, make to perform sequence of operations step to produce computer implemented process on computer or other programmable terminal equipment, thus the instruction performed on computer or other programmable terminal equipment is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although described the preferred embodiment of the embodiment of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of embodiment of the present invention scope.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the terminal equipment comprising described key element and also there is other identical element.
Above to a kind of data live broadcast system provided by the present invention and a kind of data live broadcasting method, be described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a data live broadcast system, is characterized in that, comprising: live data source server and caching server;
Wherein, with described live data source server for root node, with described caching server for child node is formed tree topology;
Described caching server comprises: at least two first order caching servers be directly connected with described live data source server, at least two second level caching servers that each first order caching server connects separately, by that analogy, at least two N level caching servers that each N-1 level caching server connects separately, wherein N >=2 and N is positive integer;
Then described live data source server, for storing live source data, and sends request live source data to described first order caching server;
Described caching server, the live request of data for sending according to terminal is determined to ask live source data; When detect local there is described request live source data time, obtain the live source data of described request from this locality in real time; There is not the live source data of described request when detection is local, and when described caching server is first order caching server, described in described live data source server, ask live source data in real time; There is not the live source data of described request when detection is local, and when described caching server is any level cache server in the second level to N level, obtain the live source data of described request from its upper level caching server be directly connected in real time; And give described terminal with live described request live source data source data Real-time Feedback live for described request.
2. system according to claim 1, is characterized in that:
Described live data source server is directly connected by wide area network or Ethernet with described each first order caching server; Be connected to each other by Ethernet between each first order caching server; There is identical upper level caching server caching server at the same level be connected to each other by Ethernet; Caching server is connected by wide area network with its upper level caching server.
3. system according to claim 1, is characterized in that:
Described caching server, also for inquiring about in other caching servers at the same level whether there is the live source data of described request, wherein, other caching servers at the same level described have identical upper level caching server with described caching server; When there is the live source data of described request in other caching servers at the same level, the source data that Real-time Obtaining described request is live from other caching servers at the same level described; When there is not the live source data of described request in other caching servers at the same level, trigger from the source data live with Real-time Obtaining described request its upper level caching server be directly connected or live data source server.
4. system according to claim 1, is characterized in that:
Described caching server, also for receiving the live stopping request that described terminal sends, and asks to stop obtaining the live source data of described request according to described live stopping.
5. system according to claim 1, is characterized in that,
Described caching server, also for determining the establishment moment of the source data that described request is live from the live request of described data; Determine the time interval of described establishment moment and current time; When described interval greater than preset interval, and when described caching server is first order caching server, described in described live data source server, ask live source data; When described interval greater than preset interval, and described caching server is when being any level cache server in the second level to N level, send request to ask live source data from described in live data source server step by step by connected caching server at different levels; When the described time interval is not more than preset interval, whether detection trigger this locality exists the live source data of described request.
6. a data live broadcasting method, it is characterized in that, be applied to described live data source server as root node, what formed for child node with described caching server has in the live broadcast system of tree topology, described caching server comprises: at least two first order caching servers be directly connected with described live data source, at least two second level caching servers that each first order caching server connects separately, by that analogy, at least two N level caching servers that each N-1 level caching server connects separately, wherein N >=2 and N is positive integer;
Described method comprises:
The live request of data that caching server receiving terminal sends, and determine to ask live source data according to the live request of described data;
Described caching server detects this locality and whether there is the live source data of described request;
When detect local there is described request live source data time, described caching server obtains the live source data of described request in real time from this locality;
There is not the live source data of described request when detection is local, and when described caching server is first order caching server, described first order caching server asks live source data in real time described in described live data source server;
The live source data of described request is there is not when detection is local, and described caching server is when being any level cache server in the second level to N level, described caching server obtains the live source data of described request from its upper level caching server be directly connected in real time;
Source data Real-time Feedback live for described request is given described terminal, with the source data making the live described request of terminal live by described caching server.
7. method according to claim 6, is characterized in that, detection this locality also comprises after there is not the live source data of described request:
Described caching server inquires about in other caching servers at the same level whether there is the live source data of described request, and wherein, other caching servers at the same level described have identical upper level caching server with described caching server;
When there is the live source data of described request in other caching servers at the same level, the described caching server source data that Real-time Obtaining described request is live from other caching servers at the same level described;
When there is not the live source data of described request in other caching servers at the same level, described caching server performs the step from the source data live with Real-time Obtaining described request its upper level caching server be directly connected or live data source server.
8. method according to claim 6, is characterized in that, also comprises:
Described caching server receives the live stopping request that described terminal sends, and asks to stop obtaining the live source data of described request according to described live stopping.
9. method according to claim 6, is characterized in that, described caching server detection this locality also comprises before whether there is the live source data of described request:
Described caching server determines the establishment moment of the source data that described request is live from the live request of described data;
Determine the time interval of described establishment moment and current time;
The described time interval and preset interval are compared, and determines according to comparative result the step obtaining the live source data of request.
10. method according to claim 9, is characterized in that, is compared in the described time interval and preset interval, and determines according to comparative result the step obtaining the live source data of request, comprising:
When described interval greater than preset interval, and when described caching server is first order caching server, described first order caching server asks live source data described in described live data source server;
When described interval greater than preset interval, and described caching server is when being any level cache server in the second level to N level, described caching server sends request to ask live source data from described in live data source server step by step by connected caching server at different levels;
When the described time interval is not more than preset interval, described caching server performs and detects the local step that whether there is the live source data of described request.
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 true CN104301741A (en) 2015-01-21
CN104301741B 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 (12)

* 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
CN106210751A (en) * 2016-08-15 2016-12-07 暴风集团股份有限公司 The method and system of internet video live broadcasting data hierarchy transmission
CN106454443A (en) * 2016-11-07 2017-02-22 厦门浩渺网络科技有限公司 Intelligent traffic distribution method for live broadcast application and live broadcast system using same
CN106488263A (en) * 2016-10-24 2017-03-08 北京小米移动软件有限公司 Push the method and device of live broadcast stream media data
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
CN108600778A (en) * 2018-05-07 2018-09-28 广州酷狗计算机科技有限公司 Media stream sending method and device
CN109274762A (en) * 2018-10-22 2019-01-25 杭州领智云画科技有限公司 CDN method for refreshing and system
CN110300132A (en) * 2018-03-22 2019-10-01 贵州白山云科技股份有限公司 Server data caching method, device and system
CN111447465A (en) * 2018-12-29 2020-07-24 北京奇虎科技有限公司 Business flow state visualization processing method and device and computing equipment
CN111669610A (en) * 2020-05-27 2020-09-15 北京奇艺世纪科技有限公司 Live video transmission method, system, device, server, electronic equipment and storage medium
CN112584186A (en) * 2020-11-30 2021-03-30 微梦创科网络科技(中国)有限公司 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 (16)

* 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
CN106210751A (en) * 2016-08-15 2016-12-07 暴风集团股份有限公司 The method and system of internet video live broadcasting data hierarchy transmission
CN106210751B (en) * 2016-08-15 2019-07-19 暴风集团股份有限公司 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
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
WO2019062050A1 (en) * 2017-09-26 2019-04-04 武汉斗鱼网络科技有限公司 Live broadcast control method, apparatus, and electronic device
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
CN110300132A (en) * 2018-03-22 2019-10-01 贵州白山云科技股份有限公司 Server data caching method, device and system
CN108600778A (en) * 2018-05-07 2018-09-28 广州酷狗计算机科技有限公司 Media stream sending method and device
CN109274762A (en) * 2018-10-22 2019-01-25 杭州领智云画科技有限公司 CDN method for refreshing and system
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
CN111669610A (en) * 2020-05-27 2020-09-15 北京奇艺世纪科技有限公司 Live video transmission method, system, device, server, electronic equipment and storage medium
CN112584186A (en) * 2020-11-30 2021-03-30 微梦创科网络科技(中国)有限公司 Live broadcast method and system based on establishment of E-commerce live broadcast shopping cart service

Also Published As

Publication number Publication date
CN104301741B (en) 2018-06-22

Similar Documents

Publication Publication Date Title
CN104301741A (en) Data live broadcast system and method
US11350139B2 (en) Video live broadcast method and apparatus
US20210368239A1 (en) Distributing method, system, edge node, and central scheduling system for streaming media resource
JP2020119497A (en) Live streaming segmentation method, apparatus and system
CN111355971B (en) Live streaming transmission method and device, CDN server and computer readable medium
CN103139241A (en) Off-line download system and method for network resource files
US8812718B2 (en) System and method of streaming data over a distributed infrastructure
WO2020155293A1 (en) Stream pushing method, system and server
CN104581366A (en) Internet television broadcasting method and server
US20170272498A1 (en) Streaming media file distribution method and system
CN108200444B (en) Video live broadcast method, device and system
US11494314B2 (en) Caching system for eventually consistent services
CN104735044A (en) Streaming media live broadcast method and system
CN104618738A (en) Method and device for playing programs of intelligent TV
CN109561137A (en) Establish method, apparatus, terminal device and the medium of P2P network
CN102938775A (en) Issuing method, system and client of video microblog
CN102802041B (en) Implement method for intelligent streaming media server supporting a plurality of real-time dynamic data sources
CN116158069A (en) Configurable access-based cache policy control
CN109510868A (en) A kind of method, apparatus that establishing P2P network, terminal device and storage medium
CN105656742A (en) Multi-looped network stream media multicast system and method based on MOST
CN103294683A (en) Automatic subtitle matching system and method for video file
WO2018086575A1 (en) Method and device for controlling media resource
CN104602047A (en) Share method of EPG (error pattern generator) data, server, terminal and system
WO2014117508A1 (en) Content delivery network and content management method in content delivery network
CN104580219A (en) Method and system for providing live broadcast streams

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