Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, fault-tolerant processing is adopted in the session of interrupting in the current VOD system, continue to provide service in the appreciable time, improved continuity, the availability of service the user.
Fig. 1 shows the redundancy fault-tolerant method flow diagram that the embodiment of the invention provides, and its detailed step is as follows:
In step S101, judge whether fault-tolerant end occurs unusually, be execution in step S103 then, otherwise execution in step S102;
In embodiments of the present invention, above-mentioned fault-tolerant end comprises control centre and video server.This fault-tolerant bringing out now comprises the undesired and fault-tolerant end collapse in to the client service process to the service request response of client unusually.
In step S102, client continues next step request or the service that obtains finishes mutual;
In step S103, when fault-tolerant end is responded when undesired, send session (RESETUP) solicited message of resetting to described fault-tolerant end;
In embodiments of the present invention, fault-tolerant end response is undesired comprises that the response form of fault-tolerant end is incorrect and overtime.When fault-tolerant end was control centre, the session replacement solicited message among the step S103 comprised session label information; When fault-tolerant end was video server, this session replacement solicited message also comprised resource information and service breakpoint information.
In step S104, receive fault-tolerant end echo message, beginning or continued access service conversation perhaps return step S102, judge.
As one embodiment of the present of invention, when current conversational services occurs undesiredly, current fault-tolerant when bringing out existing collapse, client also will send session replacement solicited message to fault-tolerant end, and the session that request is interrupted continues, and its step such as above-mentioned repeats no more.
In embodiments of the present invention, the preorder step redundant deployment as fault-tolerant processing comprises the following aspects:
1 control centre's redundant deployment
1.1 control centre provides the unified management of resource, main RSVP and the recovery of being responsible for flowing when serving, flow the overall situation and the partial equilibrium of service load, exactly user capture is directed to the protocol adaptation of appropriate streaming server and various flows server, be often referred to the RTSP access agent.
1.2 concentrating, control centre disposes.There are two kinds of dispositions methods in control centre, both can adopt clustered deploy(ment) (being to concentrate a kind of mode of disposing), also can adopt non-concentrating type to concentrate and dispose.Clustered deploy(ment) is organized a plurality of control centres in the mode of cluster, externally it is an integral body, is equivalent to have only a control centre, as long as also have a control centre to use in the cluster, this cluster is exactly effective; Non-concentrating type is concentrated and disposed is that a plurality of control centres spatially are deployed in together, has different reference address separately.
The identical point of two kinds of deployment is that a plurality of control centres are arranged, and they are in reciprocity status; The difference of two kinds of deployment is: clustered deploy(ment) externally shows as has only an IP address, but not concentrating type concentrates deployment to show as a plurality of IP address, and this moment, set-top box adopted many agency mechanisms to simulate the cluster visit.
1.3 resource and session management to control centre carry out the persistence design, make the collapse of any one control centre can not cause the confusion with resource management of losing of session information, any one control centre can know at any time that all the information of any one session comprises the resource situation that session is shared.
2. video server redundant deployment
2.1 the center video server can be used as the redundancy of edge video server, the modem at edge can exchange on metropolitan area network.
2.2 directly do redundancy in bigger video server inside, edge.
Video server must regularly be sent out the keep-alive bag to control centre, serves normally to prove oneself.Do not receive the keep-alive bag when control centre's a period of time, just think the video server collapse to start fault-tolerant processing.
3. client
In embodiments of the present invention, when fault-tolerant end was video server, clients corresponding should be control centre, and when fault-tolerant end was control centre, clients corresponding was a set-top box.
3.1 when control centre adopted non-concentrating type to concentrate deployment, client need adopt many agency mechanisms.The effect of many agency mechanisms is addresses that a plurality of non-concentrating types of shielding are concentrated the control centre that disposes, and performance is an address to client.When client when this address sends request, many agency mechanisms are chosen an available control centre automatically and are come response request in a plurality of control centres of shielding.When response was incorrect or overtime, many agency mechanisms also had fault-tolerant processing.
3.2 when control centre adopted clustered deploy(ment), client did not need to adopt many agency mechanisms, only needed common deployment to get final product, fault-tolerant processing will be finished by cluster.
3.3 client must know at any time service breakpoint and user session services sign (Identification, ID) so that when interrupting taking place, provide breakpoint information to front end.
As one embodiment of the present of invention, the control centre that Fig. 2 shows the embodiment of the invention to be provided adopts non-concentrating type to concentrate the fault-tolerant processing flow process of disposing, and this moment, fault-tolerant end was a control centre, and its detailed step is as follows:
In step S201, client set top box sends service request by many agency mechanisms to control centre;
In embodiments of the present invention, according to above-mentioned redundant deployment, when control centre adopted non-concentrating type to concentrate deployment, client set top box need adopt many agency mechanisms.Client set top box sends service request by many agency mechanisms available control centre of picked at random from concentrate a plurality of control centres that dispose to control centre.
In step S202, judge whether the response of control centre is normal, be execution in step S203 then, otherwise execution in step S204;
In step S203, client continues next step request or the service that obtains finishes mutual;
In step S204, in concentrating the remaining available control centre of deployment, choose a control centre;
In embodiments of the present invention, many agency mechanisms will respond incorrect or overtime control centre and be designated unavailablely, choose one in the available control centre of residue.Wherein, after experience a period of time, many agency mechanisms will be designated disabled control centre and be changed to upstate, no matter whether available, in order to avoid long-time idle.
In step S205, the available control centre that set-top box is chosen in according to above-mentioned steps S204 by many agency mechanisms sends session replacement solicited message;
In embodiments of the present invention, above-mentioned session replacement solicited message comprises session label information, when control centre gives the set-top box Resources allocation, the resource information of session can be write database, when reconnecting session, control centre can inquire the resource of distributing to this session according to session identification, does not need the user to carry resource information in the request of resetting, and does not also need to redistribute resource.
In step S206, the response at the controlled center of set-top box, beginning or continued access service conversation perhaps return step S202, judge.
In embodiments of the present invention, when control centre collapsed, video server did not interrupt to the plug-flow of set-top box, as long as set-top box sends session replacement request within a certain period of time, the service that video server provides just can not be interrupted; When set-top box does not send the request that session is reset at the appointed time, the service of video server just can be interrupted, and session information also can be lost, such session continuity of the service that guaranteed that the user receives of resetting.
As an alternative embodiment of the invention, the control centre that Fig. 3 shows the embodiment of the invention to be provided adopts the fault-tolerant processing flow process of clustered deploy(ment), and this moment, fault-tolerant end was a control centre, and its detailed step is as follows:
In step S301, client set top box sends service request to control centre;
In step S302, judge whether the response of control centre is normal, be execution in step S303 then, otherwise execution in step S304;
In step S303, client set top box continues next step request or the service that obtains finishes mutual;
In step S304, set-top box sends session replacement solicited message to control centre;
In embodiments of the present invention, this session replacement solicited message comprises session identification, and after control centre's collapse was arranged in control centre's deployment, other control centres were in upstate.When client set top box sends session replacement solicited message when control centre disposes, other control centre of control centre's deployment receives this session replacement solicited message, continues as client service.
In step S305, the response at the controlled center of set-top box, beginning or continued access service conversation perhaps return step S302, judge.
As one embodiment of the present of invention, when current conversational services occurs unusual, it is undesired that control centre responds current service, when collapse appears in certain control centre, set-top box will send session replacement solicited message to control centre, the session that request continue to be interrupted, its detailed step repeats no more as described in above-mentioned two embodiment.
As an alternative embodiment of the invention, Fig. 4 shows the fault-tolerant processing flow process of the video server that the embodiment of the invention provides, and this moment, fault-tolerant end was a video server, and its detailed step is as follows:
In step S401, control centre sends service request to video server;
In step S402, judge whether the response of video server is normal, be execution in step S403 then, otherwise execution in step S404;
In step S403, control centre continues next step request or the service that obtains finishes mutual;
In step S404, control centre chooses an available video server;
In step S405, control centre sends session replacement solicited message to available video server;
In embodiments of the present invention, when video server collapses, video server can interrupt to the plug-flow of set-top box, session replacement solicited message among the step S405 is removed and is comprised session label information, also need to comprise resource information and service breakpoint information, so that clear resource and the breakpoint that service is provided for client of video server.
In step S406, control centre obtains the response of video server, and beginning or continued access service conversation perhaps return step S402, judge.
As one embodiment of the present of invention, when current conversational services occur undesired, it is undesired that video server is responded current service, when collapse appears in certain video server, control centre sends session replacement solicited message to video server, the session that request continue to be interrupted, its detailed step repeats no more as described in the above-mentioned embodiment.
In embodiments of the present invention, the session when improper termination video server is collapsed is reset, and can utilize the service breakpoint to provide the continuous service that passes to the user.
Fig. 5 shows the structure of the redundancy fault-tolerant system that the embodiment of the invention provides, and for convenience of explanation, the part relevant with the embodiment of the invention only is shown.
Fault-tolerant end abnormal deciding means 11 judges whether fault-tolerant end occurs unusually, this fault-tolerant bringing out now comprises the undesired and appearance collapse in to the client service process to the service request response of client unusually, bring out now when unusual when fault-tolerant, information transmitting unit 12 sends session replacement solicited message to above-mentioned fault-tolerant end; When fault-tolerant end is that control centre and this control centre are when adopting non-concentrating type concentrate to dispose, the information transmitting unit of client set top box sends session replacement solicited message by many agency mechanisms to the available control centre that chooses, and session replacement this moment solicited message comprises session label information.Rectify often when fault-tolerant, client continues next step request or the service that obtains finishes mutual.
Fault-tolerant client information is responded receiving element 13 and is received fault-tolerant end echo message, beginning or continued access service conversation.
In embodiments of the present invention, Fig. 6 shows the structure of the redundancy fault-tolerant system that the embodiment of the invention provides, bring out now when unusual when fault-tolerant, and when fault-tolerant end is that the non-concentrating type of being deployed as of control centre and described control centre concentrate to be disposed or when fault-tolerant end is video server, this redundancy fault-tolerant system comprises that also fault-tolerant end reselects unit 21 and reselect an available control centre or video server, other structrual description such as above-mentioned, this repeats no more.
In embodiments of the present invention, reconnect by the session to improper termination, the user obtains enjoying continual service, has improved continuity, the availability of service.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.