CN105847854A - Webcasting method and system - Google Patents
Webcasting method and system Download PDFInfo
- Publication number
- CN105847854A CN105847854A CN201610223989.1A CN201610223989A CN105847854A CN 105847854 A CN105847854 A CN 105847854A CN 201610223989 A CN201610223989 A CN 201610223989A CN 105847854 A CN105847854 A CN 105847854A
- Authority
- CN
- China
- Prior art keywords
- section
- live
- serial number
- stream
- server
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
- H04N21/2404—Monitoring of server processing errors or hardware failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23116—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving data replication, e.g. over plural servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention provides a webcasting method and a system. According to the invention, the method is performed in this way. Through a main segmenting server deployed at a CDN node and upon obtaining the webcasting requirement transmitted from the CDN node, the method executes the segmentation and distribution of live streaming and at the same time, synchronizes and deploys the sequence numbers of the segmentations into the sequence number storage base in the backup segmenting server deployed at the CDN node. When the backup segmenting server monitors an outage in the main segmenting server, the backup segmenting server executes the segmentation and distribution of live streaming based on the latest sequence numbers contained in its sequence number storage base. This function realizes the smooth switch between the main segmenting server and the backup segmenting server deployed at the same CDN node as well as the synchronization of sequence numbers between the two. As a result, a player is capable of obtaining segmentation of live streaming next after the current segmentation, therefore ensuring a smooth playing process.
Description
Technical field
The present embodiments relate to areas of information technology, particularly relate to a kind of live broadcasting method and system.
Background technology
Along with the development of internet technique, increasing people pays close attention to network direct broadcasting, particularly the many matchmakers of network
Body stream is live more concerned.By network signal, watch ball match, competitive sports, occasion and new online
Hear, allow user have wide and to have selected space freely.
Existing live broadcast system, cuts into slices to live TV stream generally by section server, and uses CDN
(Content Delivery Network, content distributing network) technology, is distributed to CDN by live TV stream section
Node, is provided direct broadcast service by the CDN node player to user side.Due to player and section server
Between be connectionless, it is therefore desirable to serial number carrys out the section of labelling live TV stream, and this serial number is progressively to pass
Increasing renewal, to facilitate player to obtain and to play new live TV stream section, such as player gets sequence
Number be the live TV stream section of N, then expectation obtains next live TV stream section of Serial No. N+1 further, if
If the serial number of accessed next live TV stream section is more than N+1, then player is thought the situation losing sheet,
The problem that there will be card during broadcasting.
Above-mentioned live broadcast system has the disadvantage that when cutting into slices server fail, it is impossible to by player
Next live TV stream section of the currently playing sequence number increments corresponding to live TV stream section is distributed to CDN joint
Point so that player cannot get the section of next live TV stream from CDN node, so, there will be during broadcasting
Card.
Summary of the invention
The embodiment of the present invention provides a kind of live broadcasting method and system, when cutting into slices server fail, to make
Obtain player and obtain next live TV stream section of the currently playing sequence number increments corresponding to live TV stream section,
Eliminate card when playing to pause problem.
First aspect, embodiments provides a kind of live broadcasting method, including:
Main section server is when the live request getting content distributing network (CDN) node-node transmission, right
Live TV stream is cut into slices, and obtains live TV stream section, and the section of described live TV stream is distributed to described CDN node;
The serial number of described main section server generation described live TV stream section, and described live TV stream is cut into slices
Sequence number synchronization is to the standby serial number thesaurus cut into slices in server;
When described standby section server monitoring is to described main section server fail, obtain described for cutting
The serial number of the described live TV stream section in the serial number thesaurus in sheet server, cuts according to described live TV stream
The serial number of sheet, cuts into slices to live TV stream, obtains new live TV stream section, is cut by described new live TV stream
Sheet is distributed to described CDN node;
Described standby section server generates the serial number of described new live TV stream section, and by described new live
The sequence number synchronization of stream section is to the serial number thesaurus in described main section server, wherein, described new
The serial number big 1 of the described live TV stream section that the serial number of live TV stream section generates than described main section server.
In such scheme, the sequence number synchronization that described live TV stream is cut into slices by described main section server is cut to standby
Serial number thesaurus in sheet server, it may include:
The serial number that described live TV stream is cut into slices is published to described main section server by described main section server
Serial number receives service processes;By the serial number of described main section server receive service processes by described directly
Broadcast the sequence number synchronization of stream to the standby serial number thesaurus cut into slices in server;
Accordingly, the sequence number synchronization that described new live TV stream is cut into slices by described standby section server is to described master
Serial number thesaurus in section server, it may include:
The serial number of described new live TV stream section is published to described standby section service by described standby section server
The serial number of device receives service processes;Service processes is received by institute by the serial number of described standby section server
State the sequence number synchronization of new live TV stream section to the serial number thesaurus in described main section server.
In such scheme, described method may also include that
After described main section server failure is repaired, standby section clothes described in described main section server monitoring
The ruuning situation of business device;
When described main section service monitoring to described standby section server fail, obtain described main section
The serial number of the described new live TV stream section in the serial number thesaurus in server, according to described new straight
Broadcast the serial number of stream section, live TV stream is cut into slices, obtain the live TV stream section updated, by described renewal
Live TV stream section be distributed to described CDN node;
Described main section server generates the serial number of the live TV stream section of described renewal, and by described renewal
The sequence number synchronization of live TV stream section is to the described standby serial number thesaurus cut into slices in server, wherein, described
The live TV stream section that the serial number of the live TV stream section updated than described standby section server generation is described new
Serial number big 1.
In such scheme, described main section server can be based on Virtual Router Redundacy Protocol, by described live
The sequence number synchronization of stream section is to the standby serial number thesaurus cut into slices in server;
Described standby section server can be based on described Virtual Router Redundacy Protocol, by described new live TV stream section
Sequence number synchronization to the serial number thesaurus in described main section server.
Second aspect, embodiments provides a kind of live broadcast system, including:
Content distributing network (CDN) node, and the main section server being deployed in described CDN node
With standby section server;
Described main section server includes:
Section module, for when getting the live request of described CDN node transmission, carrying out live TV stream
Section, obtains live TV stream section;The section of described live TV stream is distributed to described CDN node;
Serial number processing module, for generating the serial number of described live TV stream section;And described live TV stream is cut
The sequence number synchronization of sheet is to the standby serial number thesaurus cut into slices in server;
Described standby section server includes:
Active and standby monitoring switch, for being monitored described main section server;Cut monitoring described master
During sheet server fail, send active-standby switch notice to following serial number processing module;
Serial number processing module, for when getting described active-standby switch notice, obtains described standby section clothes
The serial number of the described live TV stream section in the serial number thesaurus in business device, and transmit to following section module;
Section module, for the serial number cut into slices according to described live TV stream, cuts into slices to live TV stream, obtains
New live TV stream section;Described new live TV stream section is distributed to described CDN node;
Serial number processing module, is additionally operable to generate the serial number of described new live TV stream section, and by described newly
The sequence number synchronization of live TV stream section to the serial number thesaurus in described main section server, wherein, institute
State the sequence that the serial number of new live TV stream section is cut into slices than the described live TV stream that described main section server generates
Number big 1.
In such scheme, the serial number processing module in described main section server can be specifically for:
The serial number that described live TV stream is cut into slices is published to described main section server serial number receive service into
Journey;Service processes is received by the sequence number synchronization of described live TV stream by the serial number of described main section server
Serial number thesaurus in standby section server;
Accordingly, the serial number processing module in described standby section server can be specifically for:
The serial number that the serial number of described new live TV stream section is published to described standby section server is received clothes
Business process;Receive service processes by the serial number of described standby section server to be cut into slices by described new live TV stream
Sequence number synchronization to the serial number thesaurus in described main section server.
In such scheme, described main section server may also include active and standby monitoring switch, for described
After main section server failure is repaired, monitor the ruuning situation of described standby section server;Monitoring
When stating standby section server fail, the serial number processing module in described main section server sends main
Standby switching notice;
Serial number processing module in described main section server, it may also be used for getting described active-standby switch
During notice, obtain the sequence that the described live TV stream in the serial number thesaurus in described main section server is cut into slices
Number, and the section module transmitted to described main section server;
Section module in described main section server, it may also be used for according to the sequence of described new live TV stream section
Row number, cut into slices to live TV stream, obtain the live TV stream section updated;The live TV stream of described renewal is cut into slices
It is distributed to described CDN node;
Serial number processing module in described main section server, it may also be used for generate the live TV stream of described renewal
The serial number of section, and the sequence number synchronization cut into slices by the live TV stream of described renewal is to described standby section server
In serial number thesaurus, wherein, the serial number of the live TV stream of described renewal section is than described standby section service
The serial number big 1 of the described new live TV stream section that device generates.
In such scheme, the serial number processing module in described main section server, can specifically for based on
Virtual Router Redundacy Protocol, the sequence in the sequence number synchronization that described live TV stream is cut into slices to standby section server
Number thesaurus;
Serial number processing module in described standby section server, can be specifically for superfluous based on described virtual flow-line
Remaining agreement, by the serial number in the sequence number synchronization of described new live TV stream section to described main section server
Thesaurus.
The live broadcasting method of embodiment of the present invention offer and system, by being deployed in main section service in CDN node
Device, when getting the live request of CDN node transmission, performs section and the distribution operation of live TV stream, and,
The sequence number synchronization cut into slices by described live TV stream is in the standby section server being deployed in described CDN node
Serial number thesaurus;When standby section server monitoring is to main section server fail, standby section service
Device, according to the up-to-date serial number in the serial number thesaurus of self, performs section and the distribution operation of live TV stream,
Achieve the main section server that is deployed in same CDN node to standby section server take over seamlessly and
Sequence number synchronization between the two so that it is corresponding that player can get currently playing live TV stream section
Next live TV stream section of sequence number increments, card when eliminating broadcasting pauses problem.
Accompanying drawing explanation
In order to be illustrated more clearly that the present invention, simple by the accompanying drawing used required in the present invention is done one below
Ground is introduced, it should be apparent that, the accompanying drawing in describing below is some embodiments of the present invention, for this area
From the point of view of those of ordinary skill, on the premise of not paying creative work, it is also possible to obtain according to these accompanying drawings
Obtain other accompanying drawing.
The flow chart of a kind of live broadcasting method that Fig. 1 provides for the embodiment of the present invention one;
The flow chart of a kind of live broadcasting method that Fig. 2 provides for the embodiment of the present invention two;
The structural representation of a kind of live broadcast system that Fig. 3 provides for the embodiment of the present invention three.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to the present invention
Technical scheme in embodiment is described in further detail, it is clear that described embodiment is the present invention one
Divide embodiment rather than whole embodiments.It is understood that specific embodiment described herein is only
For explaining the present invention, rather than limitation of the invention, based on the embodiment in the present invention, this area is common
The every other embodiment that technical staff is obtained under not making creative work premise, broadly falls into this
The scope of bright protection.It also should be noted that, for the ease of describing, accompanying drawing illustrate only and this
Bright relevant part rather than full content.
Embodiment one
Refer to Fig. 1, for the flow chart of a kind of live broadcasting method that the embodiment of the present invention one provides.The present invention implements
The method of example can be performed by the live broadcast system realized with hardware and/or software.This system includes: content is divided
Hairnet network (CDN) node, and the main section server that is deployed in described CDN node and standby section clothes
Business device.
The method includes:
110, main section server is when getting the live request of CDN node transmission, carries out live TV stream
Section, obtains live TV stream section, and the section of described live TV stream is distributed to described CDN node.
120, described main section server generates the serial number of described live TV stream section, and is cut by described live TV stream
The sequence number synchronization of sheet is to the standby serial number thesaurus cut into slices in server.
In operation 110, CDN node specifically transmits the live request of the player of user side.
Owing to being connectionless between player and section server, it is therefore desirable to it is straight that serial number carrys out labelling
Broadcasting stream section, this serial number is progressively to be incremented by renewal, and live broadcast system is to rely on serial number to carry out live flow
Section distribution, and, it is also convenient for the live TV stream section that player obtains and play sequence number is incremental.
130, when described standby section server monitoring is to described main section server fail, obtain described
The serial number of the described live TV stream section in serial number thesaurus in standby section server, according to described live
The serial number of stream section, cuts into slices to live TV stream, obtains the section of new live TV stream, by described new live
Stream section is distributed to described CDN node.
Wherein, can be specifically according to the up-to-date sequence in the serial number thesaurus in described standby section server
Row number (that is, maximum serial number), cut into slices to live TV stream, obtain new live TV stream section.
140, described standby section server generates the serial number of described new live TV stream section, and by described new
The sequence number synchronization of live TV stream section is to the serial number thesaurus in described main section server.
Wherein, the serial number of described new live TV stream section is described more live than what described main section server generated
The serial number big 1 of stream section.
Exemplarily, main section server is when getting the live request of CDN node transmission, to live TV stream
Cut into slices, obtain live TV stream section, generate corresponding serial number 1, the live TV stream of Serial No. 1 is cut into slices
It is distributed to described CDN node, and the serial number 1 cut into slices by described live TV stream is synchronized in standby section server
Serial number thesaurus.Get the live TV stream section of Serial No. 1 at player from CDN node, and broadcast
Put.Main section server proceeds section to live TV stream, obtains live TV stream section, generates corresponding sequence
Numbers 2, the live TV stream of Serial No. 2 is cut into slices and is distributed to described CDN node, and described live TV stream is cut into slices
Serial number 2 be synchronized to the serial number thesaurus in standby section server.Obtain from CDN node at player
Live TV stream to Serial No. 2 is cut into slices, and plays.So move in circles, until main section server pair
Live TV stream proceeds section, obtains live TV stream section, generates corresponding serial number N, by Serial No. N
Live TV stream section be distributed to described CDN node, and the serial number N cut into slices by described live TV stream is synchronized to standby
Serial number thesaurus in section server.Player gets the live TV stream of Serial No. N from CDN node
Section, and play.
Assume that the serial number N cut into slices by described live TV stream at main section server is synchronized in standby section server
Serial number thesaurus after, standby section server monitoring is to described main section server fail, now,
Standby section server obtains the described live TV stream section in the serial number thesaurus in described standby section server
Serial number, the serial number cut into slices according to described live TV stream, live TV stream is cut into slices, specifically according to described
Up-to-date serial number N (that is, maximum serial number) in serial number thesaurus in standby section server is right
Live TV stream is cut into slices, and obtains new live TV stream section, generates the serial number N+1 of described new live TV stream section,
The new live TV stream section of Serial No. N+1 is distributed to described CDN node, and by described new live TV stream
The serial number N+1 of section is synchronized to the serial number thesaurus in described main section server.Player is from CDN
Node gets the live TV stream section of Serial No. N+1, and plays.
The technical scheme of the present embodiment, is getting CDN by being deployed in main section server in CDN node
Node-node transmission live request time, perform live TV stream section and distribution operation, and, by described live TV stream
The sequence number synchronization of section is to the standby serial number storage cut into slices in server being deployed in described CDN node
Storehouse;When standby section server monitoring is to main section server fail, standby section server is according to self
Serial number thesaurus in up-to-date serial number, perform live TV stream section and distribution operation, it is achieved that portion
The administration's main section server in same CDN node takes over seamlessly and between the two to standby server of cutting into slices
Sequence number synchronization so that player can get the serial number corresponding to the section of currently playing live TV stream
Next live TV stream section being incremented by, card when eliminating broadcasting pauses problem.
In such scheme, the sequence number synchronization that described live TV stream is cut into slices by described main section server is cut to standby
Serial number thesaurus in sheet server, it may include:
The serial number that described live TV stream is cut into slices is published to described main section server by described main section server
Serial number receives service processes;By the serial number of described main section server receive service processes by described directly
Broadcast the sequence number synchronization of stream to the standby serial number thesaurus cut into slices in server;
Accordingly, the sequence number synchronization that described new live TV stream is cut into slices by described standby section server is to described master
Serial number thesaurus in section server, it may include:
The serial number of described new live TV stream section is published to described standby section service by described standby section server
The serial number of device receives service processes;Service processes is received by institute by the serial number of described standby section server
State the sequence number synchronization of new live TV stream section to the serial number thesaurus in described main section server.
In such scheme, described main section server can be based on Virtual Router Redundacy Protocol, by described live
The sequence number synchronization of stream section is to the standby serial number thesaurus cut into slices in server;
Described standby section server can be based on described Virtual Router Redundacy Protocol, by described new live TV stream section
Sequence number synchronization to the serial number thesaurus in described main section server.
Below Virtual Router Redundacy Protocol is simply introduced.
Virtual Router Redundacy Protocol (Virtual Router Redundancy Protocol, VRRP) is by LAN
Set of router (includes an i.e. active router of Master and several Backup i.e. backup router)
It is organized into a virtual router, referred to as one backup group.This virtual router has the IP of oneself
Address, it is assumed that (this IP address can be with the interface ground of certain router in backup group for 10.100.10.1
Location is identical, identical is then referred to as IP owner), the router in backup group also have oneself IP address (as
The IP address that IP address is 10.100.10.2, Backup of Master is 10.100.10.3).In LAN
Main section server (or standby section server) only just know that the IP address of this virtual router
10.100.10.1, be not aware that concrete Master router IP address 10.100.10.2 and
The IP address 10.100.10.3 of Backup router.The default route next hop address of oneself is arranged by they
IP address 10.100.10.1 for this virtual router.Then, the main section server in network is (or standby
Section server) just communicated with other network by this virtual router.If in backup group
Master router break down, Backup router will select a new Master by election strategy
Router, continuing the main section server in network (or standby section server) provides route service.
Thus the main section server (or standby section server) realized in network enters with external network incessantly
Row communication.
Embodiment two
Refer to Fig. 2, for the flow chart of a kind of live broadcasting method that the embodiment of the present invention two provides.The present embodiment exists
On the basis of above-described embodiment, it is provided that generate the serial number of new live TV stream section at standby section server,
And by after the serial number thesaurus in the sequence number synchronization of described new live TV stream section to main section server
Preferred version.
This method for optimizing includes:
210, after described main section server failure is repaired, for cutting described in described main section server monitoring
The ruuning situation of sheet server.
220, when described main section service monitoring to described standby section server fail, described master is obtained
The serial number of the described new live TV stream section in the serial number thesaurus in section server, according to described newly
Live TV stream section serial number, live TV stream is cut into slices, obtain update live TV stream section, by described
The live TV stream section updated is distributed to described CDN node.
Wherein, can be specifically according to the up-to-date sequence in the serial number thesaurus in described main section server
Row number (that is, maximum serial number), cut into slices to live TV stream, obtain the live TV stream section updated.
230, described main section server generate described renewal live TV stream section serial number, and by described more
The sequence number synchronization of new live TV stream section is to the described standby serial number thesaurus cut into slices in server.
Wherein, the serial number that the live TV stream of described renewal is cut into slices than described standby section server generation is described newly
Live TV stream section serial number big 1.
Connect above-mentioned example, at standby section server, the serial number N+1 of described new live TV stream section is synchronized to
Serial number thesaurus in described main section server.Player gets Serial No. N+1 from CDN node
Live TV stream section, and play.So move in circles, until standby section server live TV stream is continued into
Row section, obtains the section of new live TV stream, generates corresponding serial number N+m, straight by Serial No. N+m
Broadcast stream section and be distributed to described CDN node, and serial number N+m is synchronized to the sequence in main section server
Row thesaurus.Player gets the live TV stream section of Serial No. N+m from CDN node, and plays.
Assume that the serial number N+m cut into slices by described live TV stream at standby section server is synchronized to main section server
In serial number thesaurus after, main section server monitoring to described standby section server fail, this
Time, main section server obtains the serial number in the serial number thesaurus in described main section server, according to
Up-to-date serial number N+m (that is, maximum sequence in serial number thesaurus in described main section server
Number), live TV stream is cut into slices, obtains the live TV stream section updated, generate the live TV stream section of described renewal
Serial number N+m+1, the live TV stream of Serial No. N+m+1 is cut into slices and is distributed to described CDN node, and
Serial number N+m+1 is synchronized to the serial number thesaurus in described standby section server.Player is from CDN
Node gets the live TV stream section of Serial No. N+m+1, and plays.
The technical scheme of the present embodiment, monitors standby cutting further by the main section server after fault restoration
The ruuning situation of sheet server, when monitoring standby section server fail, main section server according to
Up-to-date serial number in the serial number thesaurus of self, performs section and the distribution operation of live TV stream, it is achieved
Standby section server the taking over seamlessly and both to main section server being deployed in same CDN node
Between sequence number synchronization so that player can get the sequence corresponding to the section of currently playing live TV stream
Row number next incremental live TV stream section, card when eliminating broadcasting pauses problem.
Embodiment three
Refer to Fig. 3, for the structural representation of a kind of live broadcast system that the embodiment of the present invention three provides.This system
Including CDN node (not shown), and the main section server that is deployed in described CDN node and standby
Section server.
Described main section server includes: section module (not shown) and serial number processing module.
Wherein, section module is for when getting the live request of described CDN node transmission, to live TV stream
Cut into slices, obtain live TV stream section;The section of described live TV stream is distributed to described CDN node;Serial number
Processing module is for generating the serial number of described live TV stream section;And the serial number that described live TV stream cut into slices with
Walk the serial number thesaurus in standby section server;
Described standby section server includes: active and standby monitoring switch, section module (not shown) and serial number
Processing module.
Wherein, active and standby monitoring switch is for being monitored described main section server;Described monitoring
During main section server fail, send active-standby switch notice to following serial number processing module;Serial number
Processing module, for when getting described active-standby switch notice, obtains the sequence in described standby section server
The serial number of the described live TV stream section in number thesaurus, and transmit to following section module;Section module is used
In the serial number cut into slices according to described live TV stream, live TV stream is cut into slices, obtain new live TV stream section;
Described new live TV stream section is distributed to described CDN node;It is described that serial number processing module is additionally operable to generation
The serial number of new live TV stream section, and the sequence number synchronization of described new live TV stream section is cut to described master
Serial number thesaurus in sheet server, wherein, the serial number of described new live TV stream section is cut than described master
The serial number big 1 of the described live TV stream section that sheet server generates.
In such scheme, the serial number processing module in described main section server can be specifically for:
The serial number that described live TV stream is cut into slices is published to described main section server serial number receive service into
Journey;Service processes is received by the sequence number synchronization of described live TV stream by the serial number of described main section server
Serial number thesaurus in standby section server;
Accordingly, the serial number processing module in described standby section server can be specifically for:
The serial number that the serial number of described new live TV stream section is published to described standby section server is received clothes
Business process;Receive service processes by the serial number of described standby section server to be cut into slices by described new live TV stream
Sequence number synchronization to the serial number thesaurus in described main section server.
In such scheme, described main section server may also include active and standby monitoring switch, for described
After main section server failure is repaired, monitor the ruuning situation of described standby section server;Monitoring
When stating standby section server fail, the serial number processing module in described main section server sends main
Standby switching notice;
Serial number processing module in described main section server, it may also be used for getting described active-standby switch
During notice, obtain the sequence that the described live TV stream in the serial number thesaurus in described main section server is cut into slices
Number, and the section module transmitted to described main section server;
Section module in described main section server, it may also be used for according to the sequence of described new live TV stream section
Row number, cut into slices to live TV stream, obtain the live TV stream section updated;The live TV stream of described renewal is cut into slices
It is distributed to described CDN node;
Serial number processing module in described main section server, it may also be used for generate the live TV stream of described renewal
The serial number of section, and the sequence number synchronization cut into slices by the live TV stream of described renewal is to described standby section server
In serial number thesaurus, wherein, the serial number of the live TV stream of described renewal section is than described standby section service
The serial number big 1 of the described new live TV stream section that device generates.
It should be noted that active and standby monitoring switch is that a service height realized based on VRRP agreement can
By scheme, in this programme, active and standby monitoring switch is deployed on main section server and standby section server, it
Effect be the ruuning situation of monitoring the two section server, i.e. standby section server is disposed by self
Active and standby monitoring switch main section server is monitored, main section server by self dispose master
Standby section server is monitored by standby monitoring switch.If there being a section server fail, main
Active-standby switch notice will be issued for monitoring switch, to carry out server switching of cutting into slices, be equivalent to will appear from event
The section server of barrier is rejected from live broadcast system, after section server failure is repaired, after this fault restoration
Section server in active and standby monitoring switch will to currently carry out section service section server supervise
Control.These work are all automatically performed, it is not necessary to artificial interference, need that manually does simply to repair fault
Section server.
In such scheme, the serial number processing module in described main section server, can specifically for based on
Virtual Router Redundacy Protocol, the sequence in the sequence number synchronization that described live TV stream is cut into slices to standby section server
Number thesaurus;
Serial number processing module in described standby section server, can be specifically for superfluous based on described virtual flow-line
Remaining agreement, by the serial number in the sequence number synchronization of described new live TV stream section to described main section server
Thesaurus.
Example is switched below in conjunction with the system introduction shown in Fig. 3 one.
All disposing active and standby monitoring switch in the most main section server and standby section server, the two is by virtual
Route redundancy protocol carries out equipment disaster tolerance labelling switching;
2., by the configuration of active and standby monitoring switch, it is main that the serial number processing module of the machine can clearly be known
Section server or standby section server;
The serial number of generation is published to the serial number of the machine by the serial number processing module in the most main section server
Receive service processes;
4. this process is by the serial number thesaurus in sequence number synchronization to standby section server;
5. assume that main section server breaks down suddenly;
6. the active and standby monitoring switch in standby section server sends active and standby cutting to the serial number processing module of the machine
Change notice;
7. the serial number processing module in standby section server is when getting described active-standby switch notice, obtains
The up-to-date serial number N in serial number thesaurus in described standby section server;And transmit to standby section clothes
Section module in business device;
8. the slice module tuber in standby section server is according to up-to-date serial number, cuts into slices live TV stream,
To new live TV stream section;Serial number processing module formation sequence N+1 in standby section server, concurrently
Cloth receives service processes to the serial number in the machine;
9. the serial number in standby section server receives service processes and serial number N+1 is synchronized to main section service
In device serial number thesaurus;
The most so far, active-standby switch completes.
The live broadcast system that the embodiment of the present invention provides can perform the live side that any embodiment of the present invention is provided
Method, possesses the corresponding functional module of execution method and beneficial effect.
Last it is noted that various embodiments above is merely to illustrate technical scheme, rather than to it
Limit;In embodiment preferred embodiment, not it is limited, for people in the art
For Yuan, the present invention can have various change and change.All made within spirit and principles of the present invention
Any modification, equivalent substitution and improvement etc., should be included within the scope of the present invention.
Claims (8)
1. a live broadcasting method, it is characterised in that including:
Main section server is when getting the live request of content distributing network CDN node transmission, to live
Stream is cut into slices, and obtains live TV stream section, and the section of described live TV stream is distributed to described CDN node;
The serial number of described main section server generation described live TV stream section, and described live TV stream is cut into slices
Sequence number synchronization is to the standby serial number thesaurus cut into slices in server;
When described standby section server monitoring is to described main section server fail, obtain described for cutting
The serial number of the described live TV stream section in the serial number thesaurus in sheet server, cuts according to described live TV stream
The serial number of sheet, cuts into slices to live TV stream, obtains new live TV stream section, is cut by described new live TV stream
Sheet is distributed to described CDN node;
Described standby section server generates the serial number of described new live TV stream section, and by described new live
The sequence number synchronization of stream section is to the serial number thesaurus in described main section server, wherein, described new
The serial number big 1 of the described live TV stream section that the serial number of live TV stream section generates than described main section server.
Method the most according to claim 1, it is characterised in that described main section server by described directly
Broadcast the sequence number synchronization of stream section to the serial number thesaurus in standby section server, including:
The serial number that described live TV stream is cut into slices is published to described main section server by described main section server
Serial number receives service processes;By the serial number of described main section server receive service processes by described directly
Broadcast the sequence number synchronization of stream to the standby serial number thesaurus cut into slices in server;
Accordingly, the sequence number synchronization that described new live TV stream is cut into slices by described standby section server is to described master
Serial number thesaurus in section server, including:
The serial number of described new live TV stream section is published to described standby section service by described standby section server
The serial number of device receives service processes;Service processes is received by institute by the serial number of described standby section server
State the sequence number synchronization of new live TV stream section to the serial number thesaurus in described main section server.
Method the most according to claim 1, it is characterised in that described method also includes:
After described main section server failure is repaired, standby section clothes described in described main section server monitoring
The ruuning situation of business device;
When described main section service monitoring to described standby section server fail, obtain described main section
The serial number of the described new live TV stream section in the serial number thesaurus in server, according to described new straight
Broadcast the serial number of stream section, live TV stream is cut into slices, obtain the live TV stream section updated, by described renewal
Live TV stream section be distributed to described CDN node;
Described main section server generates the serial number of the live TV stream section of described renewal, and by described renewal
The sequence number synchronization of live TV stream section is to the described standby serial number thesaurus cut into slices in server, wherein, described
The live TV stream section that the serial number of the live TV stream section updated than described standby section server generation is described new
Serial number big 1.
4. according to the arbitrary described method of claim 1-3, it is characterised in that:
Described main section server is based on Virtual Router Redundacy Protocol, and the serial number cut into slices by described live TV stream is same
Walk the serial number thesaurus in standby section server;
Described standby section server is based on described Virtual Router Redundacy Protocol, by described new live TV stream section
Sequence number synchronization is to the serial number thesaurus in described main section server.
5. a live broadcast system, it is characterised in that including:
Content distributing network CDN node, and the main section server being deployed in described CDN node and
Standby section server;
Described main section server includes:
Section module, for when getting the live request of described CDN node transmission, carrying out live TV stream
Section, obtains live TV stream section;The section of described live TV stream is distributed to described CDN node;
Serial number processing module, for generating the serial number of described live TV stream section;And described live TV stream is cut
The sequence number synchronization of sheet is to the standby serial number thesaurus cut into slices in server;
Described standby section server includes:
Active and standby monitoring switch, for being monitored described main section server;Cut monitoring described master
During sheet server fail, send active-standby switch notice to following serial number processing module;
Serial number processing module, for when getting described active-standby switch notice, obtains described standby section clothes
The serial number of the described live TV stream section in the serial number thesaurus in business device, and transmit to following section module;
Section module, for the serial number cut into slices according to described live TV stream, cuts into slices to live TV stream, obtains
New live TV stream section;Described new live TV stream section is distributed to described CDN node;
Serial number processing module, is additionally operable to generate the serial number of described new live TV stream section, and by described newly
The sequence number synchronization of live TV stream section to the serial number thesaurus in described main section server, wherein, institute
State the sequence that the serial number of new live TV stream section is cut into slices than the described live TV stream that described main section server generates
Number big 1.
System the most according to claim 5, it is characterised in that the sequence in described main section server
Number processing module specifically for:
The serial number that described live TV stream is cut into slices is published to described main section server serial number receive service into
Journey;Service processes is received by the sequence number synchronization of described live TV stream by the serial number of described main section server
Serial number thesaurus in standby section server;
Accordingly, the serial number processing module in described standby section server specifically for:
The serial number that the serial number of described new live TV stream section is published to described standby section server is received clothes
Business process;Receive service processes by the serial number of described standby section server to be cut into slices by described new live TV stream
Sequence number synchronization to the serial number thesaurus in described main section server.
System the most according to claim 5, it is characterised in that:
Described main section server also includes active and standby monitoring switch, at described main section server failure
After reparation, monitor the ruuning situation of described standby section server;Go out monitoring described standby section server
During existing fault, the serial number processing module in described main section server sends active-standby switch notice;
Serial number processing module in described main section server, be additionally operable to get described active-standby switch lead to
When knowing, obtain the serial number that the described live TV stream in the serial number thesaurus in described main section server is cut into slices,
And the section module transmitted to described main section server;
Section module in described main section server, is additionally operable to the sequence according to described new live TV stream section
Number, live TV stream is cut into slices, obtains the live TV stream section updated;The live TV stream of described renewal is cut into slices and divides
Send to described CDN node;
Serial number processing module in described main section server, the live TV stream being additionally operable to generate described renewal is cut
The serial number of sheet, and by the sequence number synchronization of the live TV stream section of described renewal to described standby section server
Serial number thesaurus, wherein, the serial number of the live TV stream of described renewal section is than described standby section server
The serial number big 1 of the described new live TV stream section generated.
8. according to the arbitrary described system of claim 5-7, it is characterised in that:
Serial number processing module in described main section server, specifically for based on Virtual Router Redundacy Protocol,
The sequence number synchronization cut into slices by described live TV stream is to the standby serial number thesaurus cut into slices in server;
Serial number processing module in described standby section server, specifically for based on described virtual route redundancy
Agreement, deposits the serial number in the sequence number synchronization of described new live TV stream section to described main section server
Bank.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610223989.1A CN105847854A (en) | 2016-04-12 | 2016-04-12 | Webcasting method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610223989.1A CN105847854A (en) | 2016-04-12 | 2016-04-12 | Webcasting method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105847854A true CN105847854A (en) | 2016-08-10 |
Family
ID=56598040
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610223989.1A Pending CN105847854A (en) | 2016-04-12 | 2016-04-12 | Webcasting method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105847854A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106850277A (en) * | 2017-01-13 | 2017-06-13 | 北京粉笔蓝天科技有限公司 | A kind of direct broadcast server changing method, system and client |
CN108156473A (en) * | 2017-12-28 | 2018-06-12 | 网宿科技股份有限公司 | A kind of method and system for obtaining live data |
CN109194720A (en) * | 2018-08-15 | 2019-01-11 | 京信通信系统(中国)有限公司 | Standby machine method of data synchronization, device and computer equipment |
CN109218745A (en) * | 2018-10-31 | 2019-01-15 | 网宿科技股份有限公司 | A kind of live broadcasting method, server, client and readable storage medium storing program for executing |
CN109218764A (en) * | 2017-07-07 | 2019-01-15 | 腾讯科技(深圳)有限公司 | A kind of method, server and the system of live data transmission |
CN109240709A (en) * | 2018-07-26 | 2019-01-18 | 北京运多多网络科技有限公司 | SDK cut-in method and device for live streaming |
CN109246443A (en) * | 2018-11-28 | 2019-01-18 | 湖南快乐阳光互动娱乐传媒有限公司 | Live stream slicing synchronization method and system |
WO2019105340A1 (en) * | 2017-11-30 | 2019-06-06 | 华为技术有限公司 | Video transmission method, apparatus, and system, and computer readable storage medium |
WO2020052017A1 (en) * | 2018-09-14 | 2020-03-19 | 网宿科技股份有限公司 | Data distribution system and method, and computer readable storage medium |
CN111479117A (en) * | 2020-04-03 | 2020-07-31 | 湖南快乐阳光互动娱乐传媒有限公司 | Live broadcast information source output method and device |
CN112911315A (en) * | 2019-11-19 | 2021-06-04 | 中兴通讯股份有限公司 | Live streaming recording method, network equipment and storage medium |
CN115134618A (en) * | 2022-06-17 | 2022-09-30 | 上海哔哩哔哩科技有限公司 | Live stream life cycle information processing method and device and computing equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080022340A1 (en) * | 2006-06-30 | 2008-01-24 | Nokia Corporation | Redundant stream alignment in ip datacasting over dvb-h |
CN102710966A (en) * | 2012-06-13 | 2012-10-03 | 百视通网络电视技术发展有限责任公司 | Video live broadcast method and system based on HTTP (Hyper Text Transport Protocol) |
CN103580906A (en) * | 2012-08-09 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Data backup method, system and server |
CN103986942A (en) * | 2014-06-05 | 2014-08-13 | 北京赛维安讯科技发展有限公司 | Data distribution system and method based on CDN (content distribution network) |
CN104135672A (en) * | 2014-08-13 | 2014-11-05 | 浪潮软件集团有限公司 | HLS-based method for realizing seamless disaster recovery of video on demand |
CN105338423A (en) * | 2015-10-27 | 2016-02-17 | 天津车之家科技有限公司 | Method and system for live broadcast of streaming media data |
CN105354109A (en) * | 2015-10-09 | 2016-02-24 | 浙江宇视科技有限公司 | Backup method and apparatus for video monitoring index data |
-
2016
- 2016-04-12 CN CN201610223989.1A patent/CN105847854A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080022340A1 (en) * | 2006-06-30 | 2008-01-24 | Nokia Corporation | Redundant stream alignment in ip datacasting over dvb-h |
CN102710966A (en) * | 2012-06-13 | 2012-10-03 | 百视通网络电视技术发展有限责任公司 | Video live broadcast method and system based on HTTP (Hyper Text Transport Protocol) |
CN103580906A (en) * | 2012-08-09 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Data backup method, system and server |
CN103986942A (en) * | 2014-06-05 | 2014-08-13 | 北京赛维安讯科技发展有限公司 | Data distribution system and method based on CDN (content distribution network) |
CN104135672A (en) * | 2014-08-13 | 2014-11-05 | 浪潮软件集团有限公司 | HLS-based method for realizing seamless disaster recovery of video on demand |
CN105354109A (en) * | 2015-10-09 | 2016-02-24 | 浙江宇视科技有限公司 | Backup method and apparatus for video monitoring index data |
CN105338423A (en) * | 2015-10-27 | 2016-02-17 | 天津车之家科技有限公司 | Method and system for live broadcast of streaming media data |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106850277A (en) * | 2017-01-13 | 2017-06-13 | 北京粉笔蓝天科技有限公司 | A kind of direct broadcast server changing method, system and client |
CN109218764A (en) * | 2017-07-07 | 2019-01-15 | 腾讯科技(深圳)有限公司 | A kind of method, server and the system of live data transmission |
CN109862377A (en) * | 2017-11-30 | 2019-06-07 | 华为技术有限公司 | Video transmission method, device, system and computer readable storage medium |
US11012724B2 (en) | 2017-11-30 | 2021-05-18 | Huawei Technologies Co., Ltd. | Video transmission method, apparatus, and system, and computer readable storage medium |
WO2019105340A1 (en) * | 2017-11-30 | 2019-06-06 | 华为技术有限公司 | Video transmission method, apparatus, and system, and computer readable storage medium |
CN108156473A (en) * | 2017-12-28 | 2018-06-12 | 网宿科技股份有限公司 | A kind of method and system for obtaining live data |
CN109240709A (en) * | 2018-07-26 | 2019-01-18 | 北京运多多网络科技有限公司 | SDK cut-in method and device for live streaming |
CN109194720A (en) * | 2018-08-15 | 2019-01-11 | 京信通信系统(中国)有限公司 | Standby machine method of data synchronization, device and computer equipment |
US11323527B2 (en) | 2018-09-14 | 2022-05-03 | Wangsu Science & Technology Co., Ltd. | Data distribution system, method and computer-readable storage medium |
WO2020052017A1 (en) * | 2018-09-14 | 2020-03-19 | 网宿科技股份有限公司 | Data distribution system and method, and computer readable storage medium |
CN109218745B (en) * | 2018-10-31 | 2021-07-23 | 网宿科技股份有限公司 | Live broadcast method, server, client and readable storage medium |
CN109218745A (en) * | 2018-10-31 | 2019-01-15 | 网宿科技股份有限公司 | A kind of live broadcasting method, server, client and readable storage medium storing program for executing |
CN109246443B (en) * | 2018-11-28 | 2021-03-23 | 湖南快乐阳光互动娱乐传媒有限公司 | Live stream slicing synchronization method and system |
CN109246443A (en) * | 2018-11-28 | 2019-01-18 | 湖南快乐阳光互动娱乐传媒有限公司 | Live stream slicing synchronization method and system |
CN112911315A (en) * | 2019-11-19 | 2021-06-04 | 中兴通讯股份有限公司 | Live streaming recording method, network equipment and storage medium |
CN111479117A (en) * | 2020-04-03 | 2020-07-31 | 湖南快乐阳光互动娱乐传媒有限公司 | Live broadcast information source output method and device |
CN111479117B (en) * | 2020-04-03 | 2022-01-28 | 湖南快乐阳光互动娱乐传媒有限公司 | Live broadcast information source output method and device |
CN115134618A (en) * | 2022-06-17 | 2022-09-30 | 上海哔哩哔哩科技有限公司 | Live stream life cycle information processing method and device and computing equipment |
CN115134618B (en) * | 2022-06-17 | 2024-03-12 | 上海哔哩哔哩科技有限公司 | Live stream life cycle information processing method and device and computing equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105847854A (en) | Webcasting method and system | |
CN102739775B (en) | The monitoring of internet of things data acquisition server cluster and management method | |
US7983196B2 (en) | Tree-type broadcast system, method of instructing mode switch, broadcast device, and broadcast process program | |
CN105872614A (en) | Live stream switching method and device | |
US6411967B1 (en) | Distributed processing system with replicated management information base | |
CN105162704B (en) | The method and device of multicast replication in Overlay network | |
CN106656589A (en) | Server dual hot backup system | |
CN109698757A (en) | Switch master/slave device, the method for restoring user data, server and the network equipment | |
US20090190474A1 (en) | Bandwidth-aware multicast load balancing on a multi-interface host | |
CN102142970A (en) | Method for constructing multicast tree in two-layer Ethernet and network node equipment | |
US7836210B2 (en) | Information distribution system, terminal apparatus used in such system, recording medium on which program is recorded, and loop connection avoidance method | |
CN102882989B (en) | A kind of method and apparatus of many NVR monitoring network allocation IP address | |
CN106612194A (en) | IPTV (Interact Protocol Television) disaster tolerance method, device and system and set-top box | |
CN107707519A (en) | A kind of flow-medium transmission method, device and system | |
CN110933448B (en) | Live list service system and method | |
CN106953926A (en) | A kind of method for routing and device | |
CN103716415A (en) | Resource perception adaption method with good expandability | |
CN103036716A (en) | Method and system for link switchover | |
CN104639615B (en) | Data processing method and device in a kind of controller cluster | |
CN100373866C (en) | Method of network fault recovery crossing over connections in multiple domains | |
CN106789291A (en) | A kind of cluster member control method and device | |
CN109495593A (en) | Address distribution method and system | |
CN105306356A (en) | Method for realizing master-slave switching of multicast routing on distributed system | |
CN103281384B (en) | A kind of management system and method for the message service cluster of non-stop layer node | |
CN104579945B (en) | A kind of redundancy protected method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160810 |
|
WD01 | Invention patent application deemed withdrawn after publication |