CN100589560C - Method and system for switching flow media server - Google Patents

Method and system for switching flow media server Download PDF

Info

Publication number
CN100589560C
CN100589560C CN200710111582A CN200710111582A CN100589560C CN 100589560 C CN100589560 C CN 100589560C CN 200710111582 A CN200710111582 A CN 200710111582A CN 200710111582 A CN200710111582 A CN 200710111582A CN 100589560 C CN100589560 C CN 100589560C
Authority
CN
China
Prior art keywords
media server
streaming media
top box
server
fault
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN200710111582A
Other languages
Chinese (zh)
Other versions
CN101072328A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN200710111582A priority Critical patent/CN100589560C/en
Publication of CN101072328A publication Critical patent/CN101072328A/en
Application granted granted Critical
Publication of CN100589560C publication Critical patent/CN100589560C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The method for switching stream media servers (SMS) includes following steps: S102, when determining the fault occurs at current SMS, set-top box reports information of fault to fault monitor server;S104, after receiving information of fault, the fault monitor server assigns valid SMS for the set-top box, and sends associated information of valid SMS to the set-top box: S106, based on associatedinformation of valid SMS, the set-top box builds connection with the valid SMS. In the invention, when abnormity occurs at SMS, the set-top box can switch to new SMS within short time so as not to cause stopping user's service.

Description

The method and system of switching flow media server
Technical field
The present invention relates to the communications field, relate more specifically to a kind of method and system of switching flow media server.
Background technology
During set-top box playing media in the IPTV system, need real-time from the streaming media server equipment of local side receiving media data.When streaming media server occurs when unusual, if do not take the error protection measure, the program that the user watches will be interrupted, and may can not watch program again before the server reparation, and this can bring very big negative effect to user experience.
When actual implementation IPTV system, generally all can be at the many covers of local side configuration streaming media server, to back up mutually.Therefore, if take suitable fail-over policy, can avoid the situation of above-mentioned service disruption to take place.
Summary of the invention
One or more problems in view of the above the invention provides a kind of method and system of switching flow media server.
Method according to switching flow media server of the present invention, may further comprise the steps: S102, judge under the situation that connected current streaming media server breaks down in set-top box,, and the current playing time point carried out record to malfunction monitoring server report fault message; S104, after the malfunction monitoring server receives fault message, for set-top box is distributed effective streaming media server, and the relevant information of effective streaming media server sent to set-top box, the malfunction monitoring server also carries out the orientation monitoring to current streaming media server, to judge current streaming media server whether fault has taken place really; And S106, set-top box connects with effective streaming media server according to the relevant information of effective streaming media server, and the media data after effective streaming media server receives current playing time point.
Wherein, set-top box judges that fault has taken place connected current streaming media server when one of following situation occurring: receive Trouble Report message from current streaming media server, and current streaming media server between heartbeat timeout, in special time, do not receive any media data.
Wherein, the fault detect server is the Streaming Media main control server of support standard RTSP agreement.The standard of following alternately RTSP signaling procedure between set-top box and current streaming media server and the effective streaming media server.
System according to switching flow media server of the present invention, comprise: failure judgment device, be positioned at the set-top box side, be used for judging under the situation that the current streaming media server that is connected with set-top box breaks down, report fault message to fault monitoring device, and the current playing time point is carried out record; Fault monitoring device, be used for after receiving fault message, for set-top box is distributed effective streaming media server, and the relevant information of effective streaming media server sent to set-top box, fault monitoring device also carries out the orientation monitoring to current streaming media server, to judge current streaming media server whether fault has taken place really; And the connection apparatus for establishing, be positioned at the set-top box side, be used between set-top box and effective streaming media server, connecting according to the relevant information of effective streaming media server, and the media data after effective streaming media server receives current playing time point.
Wherein, failure judgment device is judged as the current streaming media server that is connected with set-top box with one of following situation fault has taken place: the heartbeat timeout, the set-top box that receive between Trouble Report message, set-top box and the current streaming media server from current streaming media server are not received any media data in special time.
Wherein, failure detector is the Streaming Media main control server of support standard RTSP agreement.The standard of following alternately RTSP signaling procedure between set-top box and current streaming media server and the effective streaming media server.
By the present invention, can occur set-top box being switched to new server when unusual in very short time at streaming media server, thereby can not cause customer service to stop; In addition,, after streaming media server is reorientated, can begin continue to play, rather than from the beginning play or need the user to locate by hand from the point of interruption for request program; And the present invention can realize inferior arbitrarily fault recovery.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart according to the method for the switching flow media server of the embodiment of the invention;
Fig. 2 is the detailed process schematic diagram according to the method for the switching flow media server of the embodiment of the invention; And
Fig. 3 is the structured flowchart according to the system of the switching flow media server of the embodiment of the invention.
Embodiment
Below with reference to accompanying drawing, describe the specific embodiment of the present invention in detail.
With reference to figure 1, the method according to the switching flow media server of the embodiment of the invention is described.As shown in Figure 1, the method of this switching flow media server may further comprise the steps: S102, judge under the situation that connected current streaming media server breaks down in set-top box,, and the current playing time point carried out record to malfunction monitoring server report fault message; S104 after the malfunction monitoring server receives fault message, for set-top box is distributed effective streaming media server, and sends to set-top box with the relevant information of effective streaming media server; And S106, set-top box connects with effective streaming media server according to the relevant information of effective streaming media server, and the media data after effective streaming media server receives current playing time point.
Wherein, set-top box judges that fault has taken place connected current streaming media server when one of following situation occurring: receive Trouble Report message from current streaming media server, and current streaming media server between heartbeat timeout, in special time, do not receive any media data.
Wherein, in step S104, the malfunction monitoring server also carries out the orientation monitoring to current streaming media server, to judge current streaming media server whether fault has taken place really.
Wherein, the fault detect server is the Streaming Media main control server of support standard RTSP agreement.The standard of following alternately RTSP signaling procedure between set-top box and current streaming media server and the effective streaming media server.
With reference to figure 2, the detailed process according to the method for the switching flow media server of the embodiment of the invention is described.As shown in Figure 2, the method for this switching flow media server specifically may further comprise the steps:
S202 when set-top box starts media play, comes to connect with the malfunction monitoring server A by send DESCRIBE message to the malfunction monitoring server A.Wherein, the malfunction monitoring server can be designed as the Streaming Media main control server of support standard RTSP agreement.
S204, the malfunction monitoring server A dynamically is redirected a streaming media server B for set-top box, so that set-top box is obtained media data from server B.Wherein, the malfunction monitoring server A is sent RESPONSE message as the response to DESCRIBE message to set-top box.In the address information that the location field of RESPONSE message is carried streaming media server B, and the RTSP signaling procedure of the standard of following alternately of set-top box and streaming media server B (DESCRIBE-->SETUP-->PLAY).
S206, set-top box is established to control channel and the media channel of streaming media server B according to the address information of streaming media server B.
S208, the passage that streaming media server B sets up by set-top box sends media data to set-top box.
S210, when monitoring streaming media server B, set-top box takes place when unusual, if request program, then write down current play time, then to malfunction monitoring server A report abnormality, set-top box report fault adopts GET_PARAMETER message, can realize record to current play time by the information field of expanding this message.
S212, the response message RESPONSE of malfunction monitoring server A by GET_PARAMETER carry the streaming media server C that distributes to set-top box for information about.
S214, set-top box connects with streaming media server C for information about according to streaming media server C's.Co-current flow media server C sends PLAY message, carries the breakpoint time of the last time of record, requires streaming media server C to send media data from this time point, plays continuous effect to reach.Wherein, send the PLAY message of carrying the fixed time point and follow the standard that defines among the international agreement RFC2326.
S216, the media data of connection after set-top box sends current play time that streaming media server C sets up by set-top box.
Wherein, if streaming media server C also breaks down, then repeat to be similar to the step of step S210 to S216.
Wherein, in method shown in Figure 2, as follows to the expansion of GET_PARAMETER message:
STB-->Server
GET_PARAMETER?rtsp://192.168.1.74/broadcast.sdp?RTSP/1.0
x-ReportMSSError
CSeq:932
Server-->STB
RTSP/1.0302?Redirect
Server:MEDIASERVER?ID
CSeq:2
Location:rtsp://192.168.1.75/broadcast.sdp
Or:
SET_PARAMETER?rtsp://192.168.1.74/broadcast.sdp?RTSP/1.0
x-Info:CLOSE?reason=Can?not?redirect
Session:719885386
CSeq:10
Wherein, the GET_PARAMETER message header carries the address of the streaming media server that URL makes mistakes; The extended field of GET_PARAMETER " x-ReportMSSError " is a key message, represents that this message is the message of reporting streaming media server failure; The malfunction monitoring server A can select how to handle this message: can return a RESPONSE message, provide a new streaming media server address; Also can be by returning other signalings, the indication set-top box do other operations (such as, return a SET_PARAMETER message, require set-top box to finish to play, promptly no longer carry out fault recovery).
Wherein, under following any one situation, set-top box judges that fault has taken place streaming media server:
Set-top box is received the Trouble Report message that streaming media server is sent: this strategy is applicable to that the main control part active monitoring of streaming media server is to the unusual situation of medium sending module; The message definition that Streaming Media sends at this moment is:
SET_PARAMETER?rtsp://192.168.1.74/broadcast.sdp?RTSP/1.0
x-ReportMSSError
Session:719885386
CSeq:10
Wherein, extended field " x-ReportMSSError " expression server breaks down, and can not continue to provide service.
Heartbeat timeout between set-top box and the streaming media server, promptly set-top box is not received the response of server to heartbeat message within certain hour, thinks that then streaming media server has taken place unusually, starts recovery mechanism; Can be among the present invention with OPTIONS message as heartbeat message, set-top box is regularly sent this message to server.
All do not have to trigger in above-mentioned two conditions, but set-top box is not receiving under the situation of any Media Stream within a period of time that it is unusual to think that current Streaming Media occurs, and starts recovery mechanism.
With reference to figure 3, the system according to the switching flow media server of the embodiment of the invention is described.As shown in Figure 3, the system of this switching flow media server comprises:
Failure judgment device 302 is positioned at the set-top box side, is used for judging under the situation that the current streaming media server that is connected with set-top box breaks down, and to fault monitoring device report fault message, and the current playing time point is carried out record.Wherein, failure judgment device is judged the running status of streaming media server according to the reception situation of Media Stream and with the interaction message of streaming media server.Wherein, failure judgment device can also write down current play time, and carrying this time point information in the fault message of fault monitoring device report monitoring after streaming media server breaks down.
Fault monitoring device 304 is used for after receiving fault message, for set-top box is distributed effective streaming media server, and the relevant information of effective streaming media server is sent to set-top box.Wherein, this fault monitoring device also is responsible for the operating state of all streaming media servers of monitoring, and fault is made response; This device also can carry out the validity monitoring to the streaming media server of administering according to the definite plan arrangement.
Connect apparatus for establishing 306, be positioned at the set-top box side, be used between set-top box and effective streaming media server, connecting according to the relevant information of effective streaming media server, and the media data after effective streaming media server receives current playing time point.Wherein, after the connection apparatus for establishing is connected to effective streaming media server with set-top box, also the time point of record is passed to effective streaming media server, require effective streaming media server to continue to play from this time point; This process does not need the user to participate in.
In addition, fault monitoring device also can start the monitoring of the current streaming media server of reporting at set-top box after having distributed effective streaming media server for set-top box, to confirm fault.
Wherein, failure judgment device is judged as the current streaming media server that is connected with set-top box with one of following situation fault has taken place: the heartbeat timeout, the set-top box that receive between Trouble Report message, set-top box and the current streaming media server from current streaming media server are not received any media data in special time.
Wherein, failure detector is the Streaming Media main control server of support standard RTSP agreement.The standard of following alternately RTSP signaling procedure between set-top box and current streaming media server and the effective streaming media server.
By the present invention, can occur set-top box being switched to new server when unusual in very short time at streaming media server, thereby can not cause customer service to stop; In addition,, after streaming media server is reorientated, can begin continue to play, rather than from the beginning play or need the user to locate by hand from the point of interruption for request program; And the present invention can realize inferior arbitrarily fault recovery.
The above is embodiments of the invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within the claim scope of the present invention.

Claims (8)

1. the method for a switching flow media server is characterized in that, may further comprise the steps:
S102 judges under the situation that connected current streaming media server breaks down in set-top box, to malfunction monitoring server report fault message, and the current playing time point is carried out record;
S104, after described malfunction monitoring server receives described fault message, for described set-top box is distributed effective streaming media server, and the relevant information of described effective streaming media server sent to described set-top box, described malfunction monitoring server also carries out the orientation monitoring to described current streaming media server, to judge described current streaming media server whether fault has taken place really; And
S106, described set-top box connects according to relevant information and described effective streaming media server of described effective streaming media server, and the media data after described effective streaming media server receives described current playing time point.
2. the method for switching flow media server according to claim 1, it is characterized in that, described set-top box judges that fault has taken place connected described current streaming media server when one of following situation occurring: receive Trouble Report message from described current streaming media server, and described current streaming media server between heartbeat timeout, in special time, do not receive any media data.
3. according to the method for each described switching flow media server in the claim 1 to 2, it is characterized in that described fault detect server is the Streaming Media main control server of support standard RTSP agreement.
4. the method for switching flow media server according to claim 3 is characterized in that, the standard of following the alternately RTSP signaling procedure between described set-top box and described current streaming media server and the described effective streaming media server.
5. the system of a switching flow media server is characterized in that, comprising:
Failure judgment device is positioned at the set-top box side, is used for judging under the situation that the current streaming media server that is connected with described set-top box breaks down, and to fault monitoring device report fault message, and the current playing time point is carried out record;
Described fault monitoring device, be used for after receiving described fault message, for described set-top box is distributed effective streaming media server, and the relevant information of described effective streaming media server sent to described set-top box, described fault monitoring device also carries out the orientation monitoring to described current streaming media server, to judge described current streaming media server whether fault has taken place really; And
Connect apparatus for establishing, be positioned at described set-top box side, be used between described set-top box and described effective streaming media server, connecting according to the relevant information of described effective streaming media server, and the media data after described effective streaming media server receives described current playing time point.
6. the system of switching flow media server according to claim 6, it is characterized in that described failure judgment device is judged as the described current streaming media server that is connected with described set-top box with one of following situation fault has taken place: receive the heartbeat timeout between the Trouble Report message from described current streaming media server, described set-top box and the described current streaming media server, described set-top box is not received any media data in special time.
7. according to the system of each described switching flow media server in the claim 5 to 6, it is characterized in that described failure detector is the Streaming Media main control server of support standard RTSP agreement.
8. the system of switching flow media server according to claim 7 is characterized in that, the standard of following the alternately RTSP signaling procedure between described set-top box and described current streaming media server and the described effective streaming media server.
CN200710111582A 2007-06-19 2007-06-19 Method and system for switching flow media server Active CN100589560C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710111582A CN100589560C (en) 2007-06-19 2007-06-19 Method and system for switching flow media server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710111582A CN100589560C (en) 2007-06-19 2007-06-19 Method and system for switching flow media server

Publications (2)

Publication Number Publication Date
CN101072328A CN101072328A (en) 2007-11-14
CN100589560C true CN100589560C (en) 2010-02-10

Family

ID=38899291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710111582A Active CN100589560C (en) 2007-06-19 2007-06-19 Method and system for switching flow media server

Country Status (1)

Country Link
CN (1) CN100589560C (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754044B (en) * 2008-12-08 2011-08-31 深圳创维数字技术股份有限公司 Set top box analysis meter and system and method for remote analysis of set top box
CN101645292A (en) * 2009-05-21 2010-02-10 蒋菊生 Media intelligent broadcasting method
CN101909196B (en) 2009-06-05 2013-04-17 华为技术有限公司 Channel-switching handling method, system and related equipment
CN101883114A (en) * 2010-06-25 2010-11-10 中兴通讯股份有限公司 Method and system for providing media services
CN102469483B (en) * 2010-11-15 2014-12-24 中国移动通信集团山东有限公司 Method and system for processing service acceptance exception, and related devices
CN101984583B (en) * 2010-11-23 2015-06-10 中兴通讯股份有限公司 Method and system for positioning fault of abnormal broadcast of unicast programs
CN103053175B (en) * 2011-08-16 2015-12-16 华为技术有限公司 IPTV fault locating method, device and system
CN102857799B (en) * 2012-09-14 2015-08-26 乐视致新电子科技(天津)有限公司 Based on the method for diagnosing faults of Set Top Box
CN103152628B (en) * 2013-03-18 2016-08-03 东莞宇龙通信科技有限公司 Network player and break-point continuous playing method
CN103326897B (en) * 2013-06-08 2016-12-28 烽火通信科技股份有限公司 A kind of distributed computing environment versatile monitoring device and abatement detecting method
CN105898427B (en) * 2016-03-29 2019-07-26 天脉聚源(北京)传媒科技有限公司 A kind of method and apparatus that set-top box login positions extremely
CN105721223A (en) * 2016-03-30 2016-06-29 苏州美天网络科技有限公司 Network server system with backup service function
CN110867175B (en) * 2019-10-17 2022-06-14 北京雷石天地电子技术有限公司 KTV requesting system and method for connecting KTV set top box with server
CN114567818B (en) * 2020-11-27 2023-10-31 青岛海信宽带多媒体技术有限公司 IPTV unicast program playing optimization method and device and intelligent set top box
CN113596083B (en) * 2021-06-23 2022-06-17 广西东信易通科技有限公司 High-availability cloud communication call recovery method and system based on state tracking

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种高可靠分布计算系统的适应性故障侦测方法. 蔡京平,贾云得.北京理工大学学报,第26卷第1期. 2006
一种高可靠分布计算系统的适应性故障侦测方法. 蔡京平,贾云得.北京理工大学学报,第26卷第1期. 2006 *

Also Published As

Publication number Publication date
CN101072328A (en) 2007-11-14

Similar Documents

Publication Publication Date Title
CN100589560C (en) Method and system for switching flow media server
US7953883B2 (en) Failover mechanism for real-time packet streaming sessions
KR100617409B1 (en) System and method for detecting and correcting a defective transmission channel in an interactive information distribution system
JP5295353B2 (en) IPTV network having a D server controller, a VoD server controller, and a policy server implementing a diagnostic tool
US9106800B2 (en) System and method of monitoring video data packet delivery
CN103430508B (en) Streaming media service processing method and network device therefor
JP5684579B2 (en) System, method, and computer-readable medium for providing redundancy in a media distribution system
US20100027560A1 (en) System and method for service mitigation in a communication system
CN104902289B (en) A kind of design method and its system of RTMP flow medium live systems Hot Spare
US8677425B2 (en) Method and system for implementing interaction between set-top box (STB) and home gateway
CN101690136A (en) Real time protocol stream migration
US8811148B2 (en) System and method for service restoration in a media communication system
CN101431535B (en) Method for implementing relay channel
KR20080067351A (en) Method and system for initiating or recovering a media-on-demand session
RU2012112014A (en) METHOD, TELEVISION SERVICE SYSTEM CONTROL DEVICE IN IP PROTOCOL NETWORKS AND SERVICE IN IP PROTOCOL NETWORKS
CN103813182A (en) System and method for QOS (quality of service) monitoring of IPTV (internet protocol television) services
CN101778295B (en) Video monitor system and method for forward correcting thereof
CN101202705A (en) Method and router for increasing multicast reliability
JP5425389B2 (en) How to recover a video-on-demand session
CN101902403A (en) Method and device for enhancing reliability of multicast source
CA2787370C (en) System and method for oitf recovery
WO2010046722A1 (en) Systems and methods for reducing loss of service using protocol redirect functions
JP2007183714A (en) Content distribution system, relay server and relay management server
KR101144408B1 (en) Network access system and method having redundancy structure
KR102309786B1 (en) Set-Top Box for Measuring Program Outage and Method for Operating Same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant