CN102421032A - Server switching method for set top box advertising machine - Google Patents

Server switching method for set top box advertising machine Download PDF

Info

Publication number
CN102421032A
CN102421032A CN2011103803906A CN201110380390A CN102421032A CN 102421032 A CN102421032 A CN 102421032A CN 2011103803906 A CN2011103803906 A CN 2011103803906A CN 201110380390 A CN201110380390 A CN 201110380390A CN 102421032 A CN102421032 A CN 102421032A
Authority
CN
China
Prior art keywords
server
management
heartbeat
work
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011103803906A
Other languages
Chinese (zh)
Other versions
CN102421032B (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.)
Sun Yat Sen University
Original Assignee
Sun Yat Sen University
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 Sun Yat Sen University filed Critical Sun Yat Sen University
Priority to CN 201110380390 priority Critical patent/CN102421032B/en
Publication of CN102421032A publication Critical patent/CN102421032A/en
Application granted granted Critical
Publication of CN102421032B publication Critical patent/CN102421032B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a server switching method for a set top box advertising machine. The method is based on a service side and management side separated management background mode, thus, a service background side can be uniformly managed by the management side; in addition, the technology in the method is free from heartbeats among servers, so that corresponding hardware expense and system memory expense are saved, and the background management is performed by means of a common IP (Internet Protocol) obtained through virtualization by the servers. According the scheme disclosed by the invention, the situation that all the serves are crashed due to memory faults is also eliminated at the same time, the real-time switching of a system is realized truly, the servers are not mutually influenced, and when one server is in fault, the other server can perform taking-over through switching favorably.

Description

A kind of server changing method that is used for the STB advertisement machine
Technical field
The present invention relates to the digital television techniques field, be specifically related to a kind of server changing method that is used for the STB advertisement machine.
Background technology
Along with the prosperity day by day of domestic commerce and consumer environment, want advertisement is also increasing, and digitlization, networking, informationalized multimedia advertising machine have also become a spotlight in advertisement media market.Along with the quickening of information transmission and popularizing of network, the advertisement machine of standalone version has been difficult to satisfy the demand that information is propagated.The standalone version advertisement machine will be changed CF card or the DVD CD that advertising film must be changed advertisement machine, not only causes a large amount of manpowers to waste but also be difficult to and fast multimedia messages on time, is accurately thrown in extremely required specific audience colony.The multimedia advertising machine of networking is then owing to leading technical advantage begins in advertisement putting markets, booming income field such as hotel, supermarket, building, to enjoy favor.The network equipment that uses, the user can realize the transmission of centralization control, predetermined management and content of multimedia through Ethernet.In the place that wiring infrastructure does not satisfy network connectivty, can select to use the WLAN function.When the TV function is integrated into advertisement applications, also can select to use the TV tuner, the audio-visual experience that collocation HDMI can bring high definition for the advertiser.Hot-swappable multi-functional SD card and CF card socket are very big convenient for the issue of dynamic advertising information has brought, and use the maximization that brings flexibility for digital advertisement.
The appearance of network advertising machine is that the revolutionary character of medium is improved; It utilizes various network resources to realize home-confined and control spreads all over the facility at the numerous terminal in the world; Greatly reduce the cost of labor of operation, improved efficient, complied with networked trend.
Along with generalization, liquid crystal and the plasm TV reasonable priceization of broadband network, no matter be that the multimedia channel of a new kenel network on-line can just can be set up with quite economic construction cost in medium-and-large-sized enterprise or advertising media commercial city.Yet,, often can't operate effectively, even lose the meaning of existence if everybody can find that a multimedia channel does not have good management platform.Therefore, can effectively manage, safeguard easily, abundant in content colorful enterprise or the needed multimedia channel of the merchant of advertising media of being only.Step way MT-N8.0; System sees through the Internet/Intranet network, manages the multimedia advertising machine broadcast point that all are distributed in the whole district/whole city/the whole province/whole nation concentratedly, and the broadcast of program or ad content can be managed concentratedly by the whole network; The up-to-date programme content of real-time update, and spot in real time.System takes the Design Pattern of the whole network centralized management; Cooperate each play end to adopt the dedicated multimedia playing controller; Have and install fast, safeguard easy characteristic; Can set up an effectively media play channel of management rapidly, no matter be internally to announce message or international communication or professional advertising media channel as enterprise, stepping way MT-N8.0 system all is enterprise or the best selection of the merchant of advertising media.
A kind of existing scheme that is used for switching between the server is two server Hot Spare handover schemes, and two-node cluster hot backup (HotStandby) is the high reliability application scheme that a kind of software and hardware combines.Dual-Computer Hot-Standby System is made up of the server and the control corresponding software of two platform independent, and two-server shows as single system in network, externally shows as an independently network IP, and controls and manage with the pattern of triangular web.This system carries out mirror image with the data and the running status (comprising hard disc data and internal storage data) of two-server; Can realize the Hot Spare between the two-server; And can accomplish seamless switching, thus reliable and stable service externally is provided, realize the high-availability solution of dual systems.The frame diagram of prior art scheme is as shown in Figure 1.
Dual-machine hot backup system is controlled by corresponding application software, and operating system and application program are installed on the system disk of two-server.Each station server distributes a fixed IP addresses, has specified an independent IP address as cluster IP (clusterIP) in addition, and this IP is the interface that dual systems externally provides service.
One of two-server becomes host node (Primary Server); Another becomes from node (StandbyServer); Host node and from keeping the heartbeat signal of Fixed Time Interval between the node; Realize periodically shaking hands between two peer systems through heartbeat signal, thereby the running status that can keep watch on the other side is carried out the fault detect of main frame and network.
Under system's normal condition, the host node occupying system resources also moves all services, for information system provides support, keeps watch on the ruuning situation of host node through heartbeat signal from node.In case host node breaks down (like hostdown; Network failure, software fault etc.), will take over the resource and the service of (TakeOver) host node from node; Continue the operation of support information, thereby guarantee that whole dual systems can continually move (Non-Stop).Host node can obtain resource and replacement again from node automatically after resuming operation.
Owing to use the memory mirror technology, when a station server generation memory failure, another station server also breaks down and unavailable in the prior art.In addition,, can cause loss of data if there is not the mirror image process to accomplish memory mirror completely, and service disruption, switch so can not realize real time data.
Summary of the invention
In order to overcome the defective that prior art exists, the invention provides a kind of server changing method that is used for the STB advertisement machine.This method is based on the management background mode that service end is separated with management end, after system start-up, starts heartbeat automatically and connects, and sends heartbeat signal, and signal comprises that background program operate as normal, backstage can't respond, the back-end data no initializtion; Through heartbeat signal, the STB end is known background work information;
Management end sends connection request, if the backstage starts successfully operate as normal; Service end keeps heartbeat to be connected with play end so, and heart time is 1minute, if three request failures; Think then to break down in the backstage and can't work that all play end get into local play mode; Failure cause can know in the information of returning that being 1 as if return value is backstage response failure, is failure of backstage initialization information or not completion if return value is 2;
Management end transmission successful request then return value is 0, and system gets into normal mode of operation;
Service end has two-server under the normal condition, and one is master server primary server, and one is from server secondary server; During normal mode of operation; Master server work if master server breaks down, switches to from server after then knowing through heartbeat heartbeat signal and carries out work; Between switching time play end get into local mode of operation, switch the laggard network mode of operation of going into; Also break down or other reasons of can not working from server if switch the back, then play end gets into local play mode and plays; After resuming work as if master server from the server duration of work, receiving the heartbeat signal of master server, initiatively switch to master server and carry out work, break off heartbeat connection from server, recover normal mode of operation.
Upwards a unified virtual IP address is provided in this method for management end; It is individual no matter how many background servers has; Unification invents an external IP, makes things convenient for management end to carry out the issue of content and the management of resource like this, all passes through the playlist and relevant control content that management end obtains issue for each subsequent use server; Scheme is carried out the heartbeat connection for the player of management downwards, connects the operating state of knowing server through heartbeat.
Technique scheme can be found out, because the present invention has following beneficial effect:
A kind of management background mode of separating with management end based on service end; Can pass through management end unified management service background end like this; And this technology does not have the heartbeat between the server; Saved relevant hardware expense and Installed System Memory expense, the common IP that fictionalizes through server carries out back-stage management.The present invention has also solved the situation of the Servers-all that memory failure caused collapse simultaneously, has really realized the real-time switching of system, is independent of each other between the server, and a station server breaks down, and another station server can well switch adapter.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the frame diagram of prior art among the present invention;
Fig. 2 is the design framework figure of server changing method among the present invention;
Fig. 3 is the system framework figure of server changing method among the present invention;
Fig. 4 is the workflow diagram of server changing method among the present invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making all other embodiment that obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention provides a kind of server changing method that is used for the STB advertisement machine, can use manpower and material resources sparingly and accurate advantage such as standard, below is elaborated respectively.
The objective of the invention is to solve the defective that exists in the prior art, a kind of server changing method that is used for the STB advertisement machine is provided.
The present invention proposes a kind of management background mode of separating with management end based on service end; Can pass through management end unified management service background end like this; And this technology does not have the heartbeat between the server; Saved relevant hardware expense and Installed System Memory expense, the common IP that fictionalizes through server carries out back-stage management.The situation that this programme has also solved the Servers-all that memory failure caused collapse has simultaneously really realized the real-time switching of system, is independent of each other between the server, and a station server breaks down, and another station server can well switch adapter.The main design framework of system is as shown in Figure 2.
Technical scheme of the present invention upwards provides a unified virtual IP address for management end; It is individual no matter how many background servers has, and unification invents an external IP, makes things convenient for management end to carry out the issue of content and the management of resource like this; All pass through the playlist and relevant control content that management end obtains issue for each subsequent use server; Scheme is carried out the heartbeat connection for the player of management downwards, connects the operating state of knowing server through heartbeat, and the frame diagram of switched system is illustrated in fig. 3 shown below.
Can find out very intuitively from Fig. 3; Do not have the heartbeat connection in this programme designs because between the server and use memory mirror technology of the prior art; So this programme design can well remedy the shortcoming of prior art scheme, realizes the seamless switching between the server.
The workflow of this scheme does, after system start-up, starts heartbeat automatically and connects, and sends heartbeat signal, and signal comprises that background program operate as normal, backstage can't respond, the back-end data no initializtion.Through heartbeat signal, the STB end is known background work information.
If sending the connection request backstage, management end starts successfully, operate as normal, and service end keeps heartbeat to be connected with play end so; Heart time is 1minute; If three request failures think then to break down in the backstage can't work that all play end get into local play mode.Failure cause can know in the information of returning that being 1 as if return value is backstage response failure, is failure of backstage initialization information or not completion if return value is 2.
Management end transmission successful request then return value is 0, and system gets into normal mode of operation.
Service end has two-server under the normal condition, and one is master server primary server, and one is from server secondary server; During normal mode of operation; Master server work if master server breaks down, switches to from server after then knowing through heartbeat heartbeat signal and carries out work; Between switching time play end get into local mode of operation, switch the laggard network mode of operation of going into.Also break down or other reasons of can not working from server if switch the back, then play end gets into local play mode and plays.Resuming work as if master server from the server duration of work; After receiving the heartbeat signal of master server; Initiatively switch to master server and carry out work, break off heartbeat connection, recover normal mode of operation from server; Therefore from the server duration of work otherwise stop detecting master server and whether recover operate as normal, programming flowchart is as shown in Figure 4:
PSI is primary server ip among the figure, and SSI is secondary server ip.
Server serverA and serverB constitute two main frames of hot backup system, and respectively as host node (Primary Server) with from node (Standby Server).Two main frames all move heartbeat, change the control program that program becomes Dual-Computer Hot-Standby System.
Through transmitting data and heartbeat signal, can carry out Stateful Inspection, guarantee the reliability and the service quality that connect.
Database server or disk array cabinet are special storage and shared devices, and two-server all reads and store data from this equipment when operation.This mode can improve data transmission efficiency effectively, improves the systematic function of two-node cluster hot backup server, and can guarantee the data sync between the two-server.
The scheme operation principle:
1, two-server is installed identical heartbeat program;
2, client is through switching the IIS service of IP access server;
3, carry out state-detection through heartbeat signal, comprise equipment running status, system mode, network state, IIS state;
4, in running, the IIS of two-server service all is in running status;
In case 5 host nodes break down, and will switch to IP from node rapidly, to client service are provided by standby host;
6, when the IIS content changes, manually upgrade at two-server respectively;
Need to prove, contents such as the information interaction between said apparatus and intrasystem each unit, implementation since with the inventive method embodiment based on same design, particular content can repeat no more referring to the narration among the inventive method embodiment here.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to accomplish through program; This program can be stored in the computer-readable recording medium; Storage medium can comprise: read-only memory (ROM; Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than to a kind of server changing method that is used for the STB advertisement machine that the embodiment of the invention provided; Carried out detailed introduction; Used concrete example among this paper principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.

Claims (2)

1. server changing method that is used for the STB advertisement machine; It is characterized in that; This method is based on the management background mode that service end is separated with management end; After system start-up, start heartbeat automatically and connect, send heartbeat signal, signal comprises that background program operate as normal, backstage can't respond, the back-end data no initializtion; Through heartbeat signal, the STB end is known background work information;
Management end sends connection request, if the backstage starts successfully operate as normal; Service end keeps heartbeat to be connected with play end so, and heart time is 1minute, if three request failures; Think then to break down in the backstage and can't work that all play end get into local play mode; Failure cause can know in the information of returning that being 1 as if return value is backstage response failure, is failure of backstage initialization information or not completion if return value is 2;
Management end transmission successful request then return value is 0, and system gets into normal mode of operation;
Service end has two-server under the normal condition, and one is master server primary server, and one is from server secondary server; During normal mode of operation; Master server work if master server breaks down, switches to from server after then knowing through heartbeat heartbeat signal and carries out work; Between switching time play end get into local mode of operation, switch the laggard network mode of operation of going into; Also break down or other reasons of can not working from server if switch the back, then play end gets into local play mode and plays; After resuming work as if master server from the server duration of work, receiving the heartbeat signal of master server, initiatively switch to master server and carry out work, break off heartbeat connection from server, recover normal mode of operation.
2. method according to claim 1; It is characterized in that; Upwards for management end provides a unified virtual IP address, it is individual no matter how many background servers has in this method, and unification invents an external IP; Make things convenient for management end to carry out the issue of content and the management of resource like this; All pass through the playlist and relevant control content that management end obtains issue for each subsequent use server, scheme is carried out the heartbeat connection for the player of management downwards, connects the operating state of knowing server through heartbeat.
CN 201110380390 2011-11-25 2011-11-25 Server switching method for set top box advertising machine Expired - Fee Related CN102421032B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110380390 CN102421032B (en) 2011-11-25 2011-11-25 Server switching method for set top box advertising machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110380390 CN102421032B (en) 2011-11-25 2011-11-25 Server switching method for set top box advertising machine

Publications (2)

Publication Number Publication Date
CN102421032A true CN102421032A (en) 2012-04-18
CN102421032B CN102421032B (en) 2013-07-24

Family

ID=45945233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110380390 Expired - Fee Related CN102421032B (en) 2011-11-25 2011-11-25 Server switching method for set top box advertising machine

Country Status (1)

Country Link
CN (1) CN102421032B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111093115A (en) * 2019-12-30 2020-05-01 广东南方新媒体股份有限公司 Master-slave server selection method and system based on APK

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090193071A1 (en) * 2008-01-30 2009-07-30 At&T Knowledge Ventures, L.P. Facilitating Deployment of New Application Services in a Next Generation Network
CN101572724A (en) * 2009-03-05 2009-11-04 国电南瑞科技股份有限公司 Software version management system
CN101605092A (en) * 2009-07-10 2009-12-16 浪潮电子信息产业股份有限公司 A kind of content-based SiteServer LBS
CN101631011A (en) * 2008-07-16 2010-01-20 中国科学院声学研究所 Hotspare method and system suitable for device for processing and forwarding IP media stream in real time
CN102098174A (en) * 2010-12-29 2011-06-15 广东电网公司电力科学研究院 Safety communication method and system for power grid monitoring system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090193071A1 (en) * 2008-01-30 2009-07-30 At&T Knowledge Ventures, L.P. Facilitating Deployment of New Application Services in a Next Generation Network
CN101631011A (en) * 2008-07-16 2010-01-20 中国科学院声学研究所 Hotspare method and system suitable for device for processing and forwarding IP media stream in real time
CN101572724A (en) * 2009-03-05 2009-11-04 国电南瑞科技股份有限公司 Software version management system
CN101605092A (en) * 2009-07-10 2009-12-16 浪潮电子信息产业股份有限公司 A kind of content-based SiteServer LBS
CN102098174A (en) * 2010-12-29 2011-06-15 广东电网公司电力科学研究院 Safety communication method and system for power grid monitoring system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111093115A (en) * 2019-12-30 2020-05-01 广东南方新媒体股份有限公司 Master-slave server selection method and system based on APK

Also Published As

Publication number Publication date
CN102421032B (en) 2013-07-24

Similar Documents

Publication Publication Date Title
US9973812B2 (en) Multi-screen interaction method and system
CN111464759B (en) Live broadcast directing method, device, storage medium and equipment
US20130238676A1 (en) Method, system, token conreoller and memory database for implementing distribute-type main memory database system
CN101001197A (en) Transmission method, system and correlated equipment of media flow
JP4661751B2 (en) Detachability control device, tree-type distribution system, node device detachment control method, detachability control program, and information processing program
CA2539749C (en) Technique for providing on a program channel composite programming content attributed to different sources
JP2011519511A (en) IPTV network having a D server controller, a VoD server controller, and a policy server implementing a diagnostic tool
CN101729909A (en) Streaming media business processing method, device and system
WO2017198144A1 (en) Disaster tolerance method for iptv system, and iptv disaster tolerance system
CN103945016A (en) DHCP server active-standby redundancy method and system
CN109274696A (en) Flow media playing method and device based on DASH agreement
CN108833552A (en) P2P content distribution system in promiscuous mode
CN105578248A (en) Fancy splicing playing method, device and system
CN102984558A (en) Set top box and method of playing frames in channel switching process of set top box
CN102833591B (en) The unbroken method of order program service and device in interactive Web TV system
JP2006033514A (en) Connection mode control apparatus, connection mode control method, and connection mode control program
CN102421032B (en) Server switching method for set top box advertising machine
CN109088830B (en) Port state synchronization method and device
JP2007166572A (en) Method, computing system, and computer readable medium for group reproduction applied on network
JP2012533959A (en) Effective host management protocol for multicast routers
CN101247246A (en) Distributed information processing system and information processing method
CN102523485B (en) Information distribution method and system
CN106658149A (en) Media play method and device
CN102045241A (en) Method, device and system for live broadcast of network TV (television)
CA2747313A1 (en) Method and apparatus for improved network switch multicast functionality

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130724