Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Referring to Fig. 1, the embodiment of the invention provides a kind of method of cable television VOD backup, comprising:
101: broadcast management server obtains the system status information and the user state information of broadcasting server, repeater system state information, and backup user state information;
102: monitoring server receives and the analytical system state information, judges according to system status information whether broadcasting server exists fault; If there is fault in broadcasting server, monitoring server sends switching command to broadcast management server;
103: broadcast management server receives switching command, according to the user state information of backup in broadcast management server, carries out active and standby broadcasting server and broadcasts professional translation and be sent completely and instruct to monitoring server;
104: monitoring server finishes receiving instruction, closes broadcasting server and broadcasts port, opens standby broadcasting server and broadcasts port.
The embodiment of the invention receives system status information and the user state information of DBS by broadcast management server, the user state information of backing up in realtime, and system status information is packaged into test pack sends, by monitoring server to the accepting state of test pack or monitoring server analysis result to test pack, judge whether current DBS exists fault, if fault, monitoring server sends switching command, carry out the professional translation of broadcast by broadcast management server, after broadcast translation business is finished, monitoring server is closed current DBS broadcast port and is opened standby DBS broadcast port simultaneously, thereby detection system fault all sidedly, finish the broadcast service backup in time, and then reduced system cost.
Embodiment 1
The centralized storage system of a cable television VOD comprises several DBS, standby DBS, monitoring server, broadcast management server and a switch device.Any one DBS breaks down, and system moves to the work that standby DBS takes over fault DBS with business, describes in detail with a specific embodiment below.
In the embodiment of the invention, the centralized storage system of supposing a cable television VOD comprises four DBS, a standby DBS, a monitoring server, a broadcast management server and two gigabit networking switches, wherein monitoring server and broadcast management server are in same zone, and physical interface and connected mode are as shown in Figure 2.
Referring to Fig. 3, the embodiment of the invention provides a kind of method of cable television VOD backup, specifically comprises:
301: the user sends the video request program request in client;
This client can be for having the TV set-top box of remote controller, the user sends the video request program request by remote controller, TV set-top box receiver, video order request, and this video request program request is modulated into radiofrequency signal by modulating equipment, report by cable TV network;
Wherein, the video request program request package contains IC (Integrate Circuit, integrated circuit) card number and request program ID (Identification, the ID of user's TV set-top box;
302: broadcast management server receiver, video order request, specify broadcast Destination MAC (the Media Access Control of DBS according to the different regional frequency of video request program request, medium access control) address, and will have the video request program request of broadcasting destination-mac address and be uploaded to first switch;
Wherein, first switch is used for finishing the communication between the server;
Broadcast management server is connected to first switch by twisted-pair feeder;
303: the first switches receive and have the video request program request of broadcasting destination-mac address, and exchange to each corresponding D BS according to broadcasting destination-mac address;
304: corresponding D BS receiver, video order request, extract the video frequency request program of local storage, be sent to second switch, system status information and the user state information with this DBS sends to first switch simultaneously, reports broadcast management server by first switch;
Second switch is as the broadcast of video frequency request program;
System status information comprises DBS system running state information and DBS internal fault information;
Operation condition of server information such as wherein, DBS system running state packets of information purse rope card can't be opened, video multiplex stream exceeds standard; DBS internal fault information can represent that this internal fault error code has reflected the DBS internal fault status with the internal fault error code, if error code is 0, then there is not fault in DBS inside; If be other numerical value, then there is fault in DBS inside, and the fault different according to different numeric representations, wherein internal fault comprise that the DBS disk array can't read, DBS disk low memory etc.;
User state information comprises and has the user video order request of broadcasting destination-mac address and according to the broadcast state information of this request DBS, comprise the time-code information of each video frequency program of broadcast, is used for playing programs and recovers;
Video frequency request program is stored in the DBS local hard drive array with TS (Transport Stream, transport stream) form; TS specifically comprises packet header, self adaptation district and bag data 3 parts, and each packet length is 188B, and its middle wrapping head length is 4B, and self adaptation district and bag data length are 184B.TS packet header is the identification division of TS, for example indicate the beginning of a TS with 0X47, TS packet header comprises other important informations relevant with current TS, PID (Proportion Integration Differentiation for example, proportion integration differentiation), continuity_counter, adaption_field_control information, particularly
PID represents the data content that current TS is carried, for example valid data, SI or PSI information;
Continuity_counter refers to the continuous counter value between the TS with same pid value;
Adaption_field_control represents that current TS carries the situation of adjusting field and pay(useful) load, and wherein pay(useful) load is totally 2, and first bit representation has or not the adjustment field, and second bit representation has or not pay(useful) load;
Wherein, Payload 184B is defined as:
struct?TestPacketStrcut_t
{
dbs_id?2?uimsbf
dbs_out_id 2?uimsbf
error_code?2?uimsbf
csc 1?uimsbf
sum 1?uimsbf
}
305: broadcast management server receives system status information and the user state information of each DBS, system status information with each DBS is packaged into test pack respectively, and test pack sent to first switch, the User Status state of real-time each DBS of local backup of broadcast management server simultaneously;
Wherein, the broadcast destination-mac address of broadcast management server nominative testing bag requires DBS to broadcast on the network interface card of appointment;
Test pack is to be supporting body with the Ethernet data bag, and the valid data district is the test packet of TS form, and test pack packages according to the Ethernet agreement, is distinguished with different MAC Address, comprises to broadcast destination-mac address and system status information; The test pack transmission frequency be 500 milliseconds once;
If DBS breaks down inside, for example disk array such as can't read at fault, and DBS reports broadcast management server, and broadcast management server is revised as the disk failure error code with this fault in the test pack that issues;
306: the first switch acceptance test bags exchange to each corresponding D BS port and return to each DBS respectively according to the broadcast destination-mac address of test pack;
307: corresponding D BS acceptance test bag, with the test pack information multiplexing and send to second switch;
In simulated television VOD, same frequency is supported a cover video frequency request program, and the embodiment of the invention is based on the TV VOD of numeral, and same frequency can be supported a plurality of video frequency request programs, and test pack is adopted multiplex technique, improves information utilization;
308: the second switches exchange to the policing port of appointment with test pack, and send to monitoring server by policing port;
Wherein, the policing port of second switch is 17 ports in the present embodiment, is responsible for all DBS of transmission and the test pack that has DBS, and monitoring server is connected the acceptance test bag by twisted-pair feeder with 17 ports of second switch;
309:, think that then this DBS breaks down if monitoring server can not receive the test pack that DBS sends in Preset Time; If monitoring server receives test pack, then analytical test bag content, for example the system running state information of DBS and the error message of DBS internal fault, detect DBS and broadcast whether there is fault, if detecting some DBS breaks down, then carry out 310, otherwise carry out 313;
Particularly, if monitoring server can not receive the test pack that some DBS send in 1s, or comprise fault message in the test pack of receiving, for example disk array fault message, memory failure information, system resource failure information etc. think that all this DBS breaks down;
310: monitoring server sends switching command to broadcast management server;
Particularly, monitoring server sends to broadcast management server by TCP (Transmission Control Protocol, transmission control protocol) with switching command;
311: broadcast management server receives switching command, finishes active and standby DBS and broadcasts professional translation, and be sent completely instruction to monitoring server;
Wherein, broadcast management server will be finished instruction by TCP and send to monitoring server;
Particularly, broadcast management server is by VBS (Vido Broadcast System, broadcast control supervisor) with the user state information of backup described in the step 305 in broadcast management server, for example the broadcast state information of user video order request and DBS is transmitted to standby DBS, is used for the recovery that program broadcasts; Realize that active and standby DBS broadcasts professional translation, this process is no more than 10 seconds;
312: monitoring server finishes receiving instruction, and logins second switch by the telnet agreement, and the switch ports themselves of closing fault DBS correspondence is opened the switch ports themselves of standby DBS correspondence simultaneously, returns step 304;
In the present embodiment, monitoring server is connected with 23 ports of second switch by the switch control line, carries out and closes or open switch ports themselves;
Switch received the request program video flowing that DBS broadcasts in 313: the second, and send on corresponding second switch ports themselves according to broadcasting destination-mac address, second switch exchanges in corresponding EQAM (EdgeQuadrature Amplitude Modulation, the quadrature amplitude modulation) modulator;
Wherein, the request program video flowing is according to the Ethernet agreement, with the broadcast that packages of Ether frame form, utilizes different MAC Address to be distinguished;
The 314:EQAM modulator receives program request program video stream, modulates, and network data is converted to radiofrequency signal, sends to client by cable TV network;
This client can be TV set-top box; In the present embodiment, by the EQAM modulator request program video flowing is modulated into radiofrequency signal;
315: broadcast items such as the client received RF signal is decoded, digital-to-analogue conversion.
The embodiment of the invention receives system status information and the user state information of DBS by broadcast management server, the user state information of backing up in realtime, and system status information is packaged into test pack sends, by monitoring server to the accepting state of test pack or monitoring server analysis result to test pack, judge whether current DBS exists fault, if fault, monitoring server sends switching command, carry out the professional translation of broadcast by broadcast management server, after broadcast translation business is finished, monitoring server is closed current DBS broadcast port and is opened standby DBS broadcast port simultaneously, thereby detection system fault all sidedly, finish the broadcast service backup in time, and then reduced system cost.
Embodiment 2
Referring to Fig. 4, the embodiment of the invention provides a kind of system of cable television VOD backup, specifically comprises:
Broadcast management server 401 is used to receive user's video request program request, the intended target MAC Address; Receive system status information and the user state information of DBS, the local backup user state information, and system status information is packaged into test pack; Receive the switching command that monitoring server sends, carry out active and standby DBS by VBS and broadcast professional translation, be sent completely instruction simultaneously;
First switch 402 is used to receive the user video order request, exchanges to corresponding D BS port according to the destination-mac address of broadcast management server 401 appointments; Receive system status information and user state information that DBS reports, exchange to the switch ports themselves of broadcast management device 401 correspondences; Receive the test pack that broadcast management device 401 sends, exchange to the switch ports themselves of each DBS correspondence according to MAC Address respectively;
Broadcasting server 403 is used to store popular TV programme; Receive the user video order request, extract the video frequency request program of local storage and send to second switch 404, system status information and the user state information with DBS sends to first switch 402 simultaneously; Receive the test pack of broadcast management device 401 packings, information multiplexing also sends to second switch 404;
Wherein, the user video order request includes the destination-mac address of broadcast management server 401 appointments; All TV programme are stored in the central memory in the system, and popular TV programme is from the artificial TV programme of selecting of central memory;
Second switch 404 is used to receive the demand TV program video flowing that broadcasting server 403 sends, and exchanges on the corresponding EQAM modulator according to destination-mac address; Receive the test pack that broadcasting server 403 sends, exchange to the policing port of appointment, the policing port by appointment sends to monitoring server 405;
Monitoring server 405 is used for receiving the test pack that second switch 404 specifies policing ports to send, and analytical test bag data are judged whether fault of DBS; If fault sends switching command to broadcast management server 401, login the corresponding port that broadcasts of second switch, 404 closing fault DBS then, open the corresponding port that broadcasts of standby DBS simultaneously;
Particularly, if monitoring server 405 can not receive the test pack that some DBS send in 1s, or comprise fault message in the test pack of receiving, for example disk array fault message, memory failure information, system resource failure information etc. think that then this DBS breaks down;
EQAM modulator 406 is used to receive program request television program video stream, network data is modulated to radiofrequency signal, and sends to client by cable TV network.
Further, broadcast management server 401 specifically comprises:
Receiving element 4011 is used to receive the switching command that user initial video request program request, system status information and user state information and monitoring server 405 send;
Backup units 4012 is used for the user state information that receiving element 4011 receives is carried out local backup;
Packaged unit 4013, the user is packaged into test pack with the system status information that receiving element 4011 receives;
Wherein test pack is the network packet of Ether frame form;
Switch unit 4014, be used for according to receiving element 4011 receive switching command, the user state information of backup units 4012 backups is transmitted to standby DBS, fault DBS broadcast business is moved to standby DBS;
Particularly, switch unit 4014 receives switching command by Transmission Control Protocol, by VBS the user state information that backup units 4012 backs up is transmitted to standby DBS, is used for the recovery that program broadcasts, and realizes that active and standby DBS broadcasts professional translation, and this process is no more than 10 seconds;
Transmitting element 4015 is used to send test pack that packaged unit 4013 is packaged into to first switch 402; When switch unit 4014 is finished switching, be sent completely instruction and give monitoring server 405.
Broadcasting server 403 specifically comprises:
Receiving element 4031 is used to receive the test pack that has the user video order request of broadcasting destination-mac address and broadcast management server 401 packings;
Memory cell 4032 is used to store popular TV programme;
Wherein, popular TV programme is from the artificial TV programme of selecting of central memory, and all TV programme are stored in the central memory in the system;
Transmitting element 4032 is used for the demand TV program of this locality storage is sent to second switch 404, and system status information and the user state information with DBS sends to first switch 402 simultaneously; The test pack of broadcast management server 401 packings is sent to second switch 404.
Monitoring server 405 specifically comprises:
Receiving element 4051 is used for receiving second switch 404 and specifies the instruction of finishing that test pack that policing ports send and broadcast management server 401 send;
Judging unit 4052, be used for analytical test bag data, judge according to the system status information in the test pack whether this DBS exists fault, if in 1s, can not receive the test pack that some DBS send, or comprise fault message in the test pack of receiving, then judge this DBS fault;
Transmitting element 4053 is used under the situation of DBS fault, sends switching command to broadcast management server 401;
Performance element 4054 is used under the situation of DBS fault, logins the corresponding port that broadcasts of second switch, 404 closing fault DBS, opens the corresponding port that broadcasts of standby DBS simultaneously.
The embodiment of the invention receives system status information and the user state information of DBS by broadcast management server, the user state information of backing up in realtime, and system status information is packaged into test pack sends, by monitoring server to the accepting state of test pack or monitoring server analysis result to test pack, judge whether current DBS exists fault, if fault, monitoring server sends switching command, carry out the professional translation of broadcast by broadcast management server, after broadcast translation business is finished, monitoring server is closed current DBS broadcast port and is opened standby DBS broadcast port simultaneously, thereby detection system fault all sidedly, finish the broadcast service backup in time, and then reduced system cost.
Embodiment 3
Referring to Fig. 5, the embodiment of the invention also provides a kind of broadcast management server, specifically comprises:
Receiving element 501 is used to receive the switching command that user initial video request program request, system status information and user state information and monitoring server send;
Backup units 502 is used for the user state information that receiving element 501 receives is carried out local backup;
Packaged unit 503, the user is packaged into test pack with the system status information that receiving element 501 receives;
Wherein test pack is the network packet of Ether frame form;
Switch unit 504, be used for according to receiving element 501 receive switching command, the user state information of backup units 502 backups is transmitted to standby DBS, fault DBS broadcast business is moved to standby DBS;
Particularly, switch unit 504 receives switching command by Transmission Control Protocol, by VBS the user state information that backup units 502 backs up is transmitted to standby DBS, is used for the recovery that program broadcasts, and realizes that active and standby DBS broadcasts professional translation, and this process is no more than 10 seconds;
Transmitting element 505 is used to send test pack that packaged unit 503 is packaged into to first switch; When switch unit 504 is finished switching, be sent completely instruction and give monitoring server.
The embodiment of the invention receives system status information and the user state information of DBS by broadcast management server, the user state information of backing up in realtime, and system status information is packaged into test pack sends, by monitoring server to the accepting state of test pack or monitoring server analysis result to test pack, judge whether current DBS exists fault, thereby the detection system fault is finished the broadcast service backup in time all sidedly, and then has reduced system cost.
Embodiment 4
Referring to Fig. 6, the embodiment of the invention also provides a kind of monitoring server, specifically comprises:
Receiving element 601 is used for receiving second switch and specifies the instruction of finishing that test pack that policing port sends and broadcast management server send;
Judging unit 602, be used for analytical test bag data, judge according to the system status information in the test pack whether this DBS exists fault, if in 1s, can not receive the test pack that some DBS send, or comprise fault message in the test pack of receiving, then judge this DBS fault;
Transmitting element 603 is used under the situation of DBS fault, sends switching command to broadcast management server;
Performance element 604 is used under the situation of DBS fault, logins the corresponding port that broadcasts of the second switch closing fault DBS, opens the corresponding port that broadcasts of standby DBS simultaneously.
The embodiment of the invention receives the test pack that broadcast management server sends by monitoring server, by to the accepting state of test pack or monitoring server analysis result to test pack, judge whether current DBS exists fault, if fault, monitoring server sends switching command, carry out the professional translation of broadcast by broadcast management server, after broadcast translation business is finished, monitoring server is closed current DBS broadcast port and is opened standby DBS broadcast port simultaneously, thereby detection system fault all sidedly, finish the broadcast service backup in time, and then reduced system cost.
All or part of content in the technical scheme that above embodiment provides can realize that its software program is stored in the storage medium that can read by software programming, storage medium for example: the hard disk in the computer, CD or floppy disk.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.