CN109753387A - The double hot standby method and system of rail traffic multimedia system - Google Patents

The double hot standby method and system of rail traffic multimedia system Download PDF

Info

Publication number
CN109753387A
CN109753387A CN201810068213.6A CN201810068213A CN109753387A CN 109753387 A CN109753387 A CN 109753387A CN 201810068213 A CN201810068213 A CN 201810068213A CN 109753387 A CN109753387 A CN 109753387A
Authority
CN
China
Prior art keywords
host
standby
server
heartbeat packet
rail traffic
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
CN201810068213.6A
Other languages
Chinese (zh)
Other versions
CN109753387B (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.)
BYD Co Ltd
Original Assignee
BYD Co Ltd
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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201810068213.6A priority Critical patent/CN109753387B/en
Publication of CN109753387A publication Critical patent/CN109753387A/en
Application granted granted Critical
Publication of CN109753387B publication Critical patent/CN109753387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Hardware Redundancy (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention discloses the double hot standby method and system of a kind of rail traffic multimedia system, wherein method includes: configuration first server and second server, and a specified wherein server is host, and another is standby host;The host and the standby host receive data from external segment simultaneously, make described in the host and the data of standby host are consistent.This method receives data from external segment simultaneously by the host and the standby host, it is consistent the host and the data of the standby host, it is big to solve the problems, such as that the data synchronous working in the Dual-Computer Hot-Standby System of rail traffic multimedia system is measured, the host being capable of fast switch over business when breaking down, the overall stability for improving the Dual-Computer Hot-Standby System of rail traffic multimedia system, substantially reduces fail-over time.

Description

The double hot standby method and system of rail traffic multimedia system
Technical field
The present invention relates to network communication technology field more particularly to a kind of two-node cluster hot backup sides of rail traffic multimedia system Method and system.
Background technique
Inventors have found that existing two-node cluster hot backup scheme needs two-server, one is host, and another is standby host, Every server by utilizing local disc storage service data, software is responsible for the business datum of real-time synchronization two-server, by leading Machine, once host breaks down, automatically switches service application to client service and by business datum real-time synchronization to standby host Continue to protect service application to run without interruption as far as possible client service to standby host.
Due in existing technical solution, the data of host by network real-time synchronization to standby host, when data volume is excessive, The workload that need to be synchronized is very big.Also, when host failure, standby host adapter tube data, also school is carried out to huge data It tests, this is a very long process, causes fail-over time long, is had a great impact to the application of client.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the first purpose of this invention is to propose a kind of double hot standby method of rail traffic multimedia system, The data for receiving external segment simultaneously by the host and the standby host, protect the host and the data of the standby host always Hold it is consistent, solve the problems, such as the data synchronous working in the two-node cluster hot backup scheme of rail traffic multimedia system measure it is big, it is described Host when breaking down can fast switch over business, improve the whole steady of the Dual-Computer Hot-Standby System of rail traffic multimedia system It is qualitative, substantially reduce fail-over time.
The second object of the present invention is to propose a kind of Dual-Computer Hot-Standby System of rail traffic multimedia system.
Third object of the present invention is to propose a kind of computer program product.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of dual-locomotive heat of rail traffic multimedia system Preparation Method, comprising:
First server and second server are configured, a specified wherein server is host, and another is standby host;
The host and the standby host receive data from external segment simultaneously, make described in the host and the data of standby host keep one It causes.
Optionally, as a kind of possible implementation of first aspect embodiment, first server and second service are configured Device, specifies the first server or the second server is host or standby host, comprising:
The operating mode for configuring the first server and the second server specifies the first service according to operating mode Device or the second server are the host or the standby host;
Virtual ip address is configured, the host provides service by client of the virtual ip address into local network segment.
Optionally, as a kind of possible implementation of first aspect embodiment, the first server and described is configured The operating mode of second server, specifies the first server according to operating mode or the second server is the host Or the standby host, comprising:
If the numerical value of the operating mode of the first server or the second server is configured to 1, the first server Or the second server is host;
If the numerical value of the operating mode of the first server or the second server is configured to 0, the first server Or the second server is standby host.
Optionally, as a kind of possible implementation of first aspect embodiment, first server and second service are configured Device, specifies the first server or the second server is host or standby host, further includes:
The host periodically sends heartbeat packet to the standby host, and the standby host receives heartbeat packet, if the standby host is continuously more A heart beat cycle does not receive heartbeat packet, then determines the hostdown, and the host and the standby host carry out active-standby switch, institute State the host that virtual ip address is switched to after active-standby switch.
Optionally, as a kind of possible implementation of first aspect embodiment, the continuous multiple heart beat cycles of the standby host Heartbeat packet is not received, then determines that the hostdown includes:
The heartbeat packet count value of each heart beat cycle, the standby host adds one;
If the standby host receives the heartbeat packet of the host, by the heartbeat packet count value zero setting;
If the heartbeat packet count value is more than first threshold, the hostdown is determined.
Optionally, as a kind of possible implementation of first aspect embodiment, further includes:
If the host receives multiple heartbeat packets, the hostdown is determined, the mian engine changeover is standby host and cancels institute State virtual ip address.
Optionally, as a kind of possible implementation of first aspect embodiment, further includes:
The host and the standby host receive active-standby switch information, and carry out active-standby switch, the void according to active-standby switch information Quasi- IP address is switched to the host after active-standby switch.
Optionally, as a kind of possible implementation of first aspect embodiment, the host it is synchronous with the standby host from External segment receives data, keeps the data of host and standby host always consistent, comprising:
The same multicast group is added in the host and the standby host, and the host and the standby host receive the number that multicast source is sent According to being consistent the host and the data of the standby host.
The double hot standby method of the rail traffic multimedia system of the embodiment of the present invention, by configuring first server and Two servers, specifying the first server or the second server is host or standby host, and the host and described standby Machine is synchronous to receive data from external segment, keeps the data of the host and the standby host always consistent.In the present embodiment, lead to It is synchronous with the standby host from external segment reception data to cross the host, solves the two-node cluster hot backup of rail traffic multimedia system Data synchronous working in system measures larger problem, when host breaks down can fast switch over business, improve track friendship The overall stability of the Dual-Computer Hot-Standby System of logical multimedia system, substantially reduces fail-over time.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of dual-locomotive heat of rail traffic multimedia system Standby system, comprising:
First server and second server;Wherein, the first server and the second server include:
Configuration module, for configuring first server or second server, specifying a server is host, and another is standby Machine;
Synchronous receiving module, the host or the standby host pass through synchronous receiving module and receive data from external segment, make described The data of host and the standby host are consistent.
Optionally, as a kind of possible implementation of second aspect embodiment, the configuration module includes:
Operating mode configuration unit, for configuring the operating mode of the first server or the second server, according to work Operation mode specifies the first server or the second server is the host or the standby host;
Virtual IP address configuration unit, for configuring virtual ip address, the host passes through visitor of the virtual ip address into local network segment Family end provides service.
Optionally, as a kind of possible implementation of second aspect embodiment, the operating mode configuration unit is specific For:
If the numerical value of the operating mode of the first server or the second server is configured to 1, the first server Or the second server is host;
If the numerical value of the operating mode of the first server or the second server is configured to 0, the first server Or the second server is standby host.
Optionally, as a kind of possible implementation of second aspect embodiment, further includes:
Sending module, the host periodically send heartbeat packet to the standby host by the sending module;
First receiving module, the standby host receive heartbeat packet by the first receiving module, if continuously multiple heartbeats are all for the standby host Phase does not receive heartbeat packet, then determines the hostdown, and the host and the standby host carry out active-standby switch, the virtual IP address Address is switched to the host after active-standby switch.
Optionally, as a kind of possible implementation of second aspect embodiment, first receiving module is specifically used for:
The heartbeat packet count value of each heart beat cycle, the standby host adds one;
If the standby host receives the heartbeat packet of the host, by the heartbeat packet count value zero setting;
If the heartbeat packet count value is more than first threshold, the hostdown is determined.
Optionally, as a kind of possible implementation of second aspect embodiment, further includes:
Second receiving module, the host receives heartbeat packet by the second receiving module, if the host receives multiple heartbeats Packet, then determine the hostdown, and the mian engine changeover is standby host and cancels the virtual ip address.
Optionally, as a kind of possible implementation of second aspect embodiment, further includes:
Third receiving module, the host or the standby host receive active-standby switch information, and root by the third receiving module Active-standby switch is carried out according to active-standby switch information, the virtual ip address is switched to the host after active-standby switch.
Optionally, as a kind of possible implementation of second aspect embodiment, the synchronous receiving module is specifically used for:
The same multicast group is added in the host and the standby host, and the host and the standby host receive the number that multicast source is sent According to being consistent the host and the data of the standby host.
The Dual-Computer Hot-Standby System of the rail traffic multimedia system of the embodiment of the present invention, by configuring first server and Two servers, specifying the first server or the second server is host or standby host, and the host and described standby Machine is synchronous to receive data from external segment, keeps the data of the host and the standby host always consistent.In the present embodiment, lead to It is synchronous with the standby host from external segment reception data to cross the host, solves the two-node cluster hot backup of rail traffic multimedia system Data synchronous working in system measures larger problem, when the host breaks down can fast switch over business, improve rail The overall stability of the Dual-Computer Hot-Standby System of road traffic multimedia system, substantially reduces fail-over time.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of computer program product, when the calculating The rail traffic multimedia system as described in first aspect embodiment is realized when instruction in machine program product is executed as processor Double hot standby method.
To achieve the goals above, fourth aspect present invention embodiment proposes a kind of computer-readable storage of non-transitory Medium is stored thereon with computer program, and the track as described in first aspect embodiment is realized when which is executed by processor The double hot standby method of traffic multimedia system.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of the double hot standby method of rail traffic multimedia system provided in an embodiment of the present invention;
Fig. 2 is a kind of Dual-Computer Hot-Standby System working principle signal of rail traffic multimedia system provided in an embodiment of the present invention Figure;
Fig. 3 is a kind of structural schematic diagram of the Dual-Computer Hot-Standby System of rail traffic multimedia system provided in an embodiment of the present invention;
Fig. 4 is the structural representation of the Dual-Computer Hot-Standby System of another rail traffic multimedia system provided in an embodiment of the present invention Figure;
Fig. 5 is a kind of structural schematic diagram of the Dual-Computer Hot-Standby System of rail traffic multimedia system provided in an embodiment of the present invention;
Fig. 6 is the structural representation of the Dual-Computer Hot-Standby System of another rail traffic multimedia system provided in an embodiment of the present invention Figure;
Fig. 7 is a kind of structural schematic diagram of the Dual-Computer Hot-Standby System of rail traffic multimedia system provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the double hot standby method and system of the rail traffic multimedia system of the embodiment of the present invention are described.
Fig. 1 is a kind of process signal of double hot standby method of rail traffic multimedia system provided in an embodiment of the present invention Figure.
Step 101, first server and second server are configured, a specified wherein server is host, and another is Standby host.
The double hot standby method of the rail traffic multimedia system of the embodiment of the present invention can be used for the stabilization to network service Property and the more demanding occasion or terminal user of continuity are to the lower occasion of the degrees of tolerance of service disruption, for example, track Traffic multimedia system, rail traffic drive-control system, car multimedia system, car automatic driving control system and enterprise's thing The business service system, etc. of industry unit.
In this step, by manual configuration first server and second server, making a server job is host, The work of another server is standby host, wherein host or standby host are not a certain fixed servers, according to first server or Second server, which configures, determines host or standby host, if the server is host, provides service to the client of this network segment;If should Server is standby host, then does not provide service to the client of this network segment.
Step 102, host and standby host receive data from external segment simultaneously, are consistent the data of host and standby host.
In the two-node cluster hot backup scheme of existing rail traffic multimedia system, the data of external segment are received by host, The data of host and standby host are by network real-time synchronization, and when data volume is excessive, the workload that need to be synchronized is very big.Also, work as host It breaks down, standby host will also verify huge data, this causes fail-over time very long, right in adapter tube data The application of client has a great impact.
In the present embodiment, host and standby host are in working condition, while receiving the data of external segment, host and standby host Data it is always consistent, it is no longer necessary to the data of two-server are synchronized.
As it can be seen that receiving the data of external segment simultaneously by active and standby two-shipper in the present embodiment, solving existing rail traffic Data synchronous working in the two-node cluster hot backup scheme of multimedia system measures larger problem, can quickly cut when host breaks down Business is changed, compared to the two-node cluster hot backup scheme of existing rail traffic multimedia system, improves rail traffic multimedia system The overall stability of two-node cluster hot backup, substantially reduces fail-over time.
In order to illustrate more clearly of above-described embodiment, below with reference to the two-shipper of rail traffic multimedia system shown in Fig. 2 Hot-backup system is illustrated, including host and standby host.
Wherein, client can be Broadcast Control (LCD) display or light-emitting diode display, and the data sent and received can be pre- for weather Report or ad data.Internal network segment refer to host, standby host and groups of clients at local area network, external segment is can be with internal network segment Wide area network in the Rail Transit System communicated other than other local area networks or Rail Transit System, for example, local area network can For the local area network of clock system composition or the local area network of train dispatching system composition.Internal network segment need to be by Rail Transit System Control centre communicated with external segment.
Specifically, the operating mode for configuring first server and second server, specifies first service according to operating mode Device or second server are host or standby host;Virtual ip address is configured, host passes through visitor of the virtual ip address into local network segment Family end provides service.
In the present embodiment, after being configured to the operating mode of first server and second server, according to Working mould Formula specifies first server or second server is host or standby host.In order to make first server and second server and other nets Network equipment is distinguished and is communicated, and host and standby host are intended to configure the IP address of first server and second server.Host is also Virtual ip address is configured, host provides service by client of the virtual IP address into local network segment.Standby host configures in order to prevent There is virtual IP address, standby host needs to cancel virtual IP address.
By taking linux operating system as an example, host configures the order of virtual IP address: ifconfig enp2s0:1 10.4.20.209 netmask 255.255.255.0 up;The order of standby host cancellation virtual IP address: ifconfig enp2s0:1 The configuration of the virtual IP address of down, windows operating system and embedded OS and the order cancelled will not enumerate.
In the normal situation of host, client accesses host, when host breaks down, virtual IP address by virtual ip address Address is switched to standby host.Client access is still virtual ip address, so client can only be found during switching There is of short duration communication disruption, by an of short duration time, so that it may restore service.
Specifically, if the numerical value of the operating mode of first server or second server is configured to 1, first server or Second server is host;If the numerical value of the operating mode of first server or second server is configured to 0, first server Or second server is standby host.
In the present embodiment, host or the unfixed first server or second server of standby host, according to the first clothes The numerical value given host and standby host of the operating mode of business device or second server, can quickly establish the operating mode of two-shipper and to visitor Family end provides service, and is easy to carry out function transplanting for different operating system.Alternatively, it is also possible to be not provided with hot standby two-shipper Operating mode initial value, allow the Mechanism of Conflict Among of system voluntarily to coordinate the operating mode of two-shipper, convenient for the arrangement of system.
After determining host and standby host, host periodically sends heartbeat packet to standby host, and standby host receives heartbeat packet.Such as Fig. 3 Shown, standby host receives heartbeat packet and is judged according to heartbeat packet Host Status.
Specifically, host periodically sends heartbeat packet to standby host, standby host receives heartbeat packet, if the continuous multiple hearts of standby host Hop cycle does not receive heartbeat packet, then determines hostdown, and host and standby host carry out active-standby switch, and virtual ip address is switched to master Host after standby switching.
In the present embodiment, host is based on udp protocol and periodically sends heartbeat packet to standby host, relative to based on Transmission Control Protocol Heartbeat packet is sent, it is convenient and efficient.Standby host does not send heartbeat packet to host, and standby host monitors the heartbeat packet of host and to heartbeat packet meter Number.When continuously multiple heart beat cycles do not receive heartbeat packet to standby host, if heartbeat packet count value is greater than the first threshold of setting, just Think that host breaks down, is ready for active-standby switch, meanwhile, the host of superior System Reports this system breaks down.Its In, active-standby switch refers to that the numerical value of the operating mode by the corresponding first server of host or second server is configured to 0, and will The numerical value of the operating mode of the corresponding first server of standby host or second server is configured to 1, i.e. host before active-standby switch is Standby host after active-standby switch, the standby host before active-standby switch are the host after active-standby switch.Standby host after active-standby switch need to cancel void Quasi- IP avoids conflicting with the host generation after active-standby switch, and stops providing service to client;Standby host after active-standby switch needs Virtual IP address is configured, and provides service to client by virtual IP address.
The heart beat cycle that host sends heartbeat packet depends primarily on round-trip delay (RTT) time and the active service of network The time of device hardware device business processing, wherein round-trip delay indicates to receive to come to transmitting terminal since transmitting terminal sends data Confirmation (receiving end soon sends confirmation after receiving data) from receiving end, the time undergone in total.Currently, general networking The RTT time, the operating rate of hardware was all very high at 1 millisecond or so, and general business can be completed in several ms.Therefore, this Period suggests being arranged between 60 milliseconds to 1000 milliseconds, and when system is implemented, specific data adjustable is determined.
The first threshold that heartbeat packet counts, is influenced, such as packet loss by many factors such as hardware environment and network communication qualities The size of rate, the packet loss of local area network is smaller at present, first threshold can value between 3 to 10, specifically can be in rail traffic It debugs and determines when the Dual-Computer Hot-Standby System arrangement of multimedia system.
Specifically, each heart beat cycle, the heartbeat packet count value of standby host adds one;If standby host receives the heartbeat of host Packet, then by heartbeat packet count value zero setting;If heartbeat packet count value is excessive, hostdown is determined.
In the present embodiment, the heartbeat packet count value of each heart beat cycle, standby host adds one;When standby host receives the heartbeat of host Bao Shi, then heartbeat packet count value zero setting.When not receiving heartbeat packet in standby host certain time, since heartbeat packet count value is every A heart beat cycle adds one, if heartbeat packet count value is more than first threshold, is considered as host and breaks down.
If host receives multiple heartbeat packets, hostdown is determined, mian engine changeover is standby host and cancels virtual ip address.
Illustrate that another server is also when host receives heartbeat packet since standby host does not send heartbeat packet to host Host, host count the heartbeat packet received, if the heartbeat packet count value that host receives is greater than the second threshold of setting When value, then hostdown is determined, mian engine changeover is standby host, i.e. the operating mode numerical value of the host is configured to 0, is stopped to client Service is provided, and cancels virtual IP address.
The second threshold that heartbeat packet counts, is influenced, such as packet loss by many factors such as hardware environment and network communication qualities The size of rate, the packet loss of local area network is smaller at present, second threshold can value between 3 to 10, can specifically be handed in track Debugging determines when the Dual-Computer Hot-Standby System arrangement of logical multimedia system.
Wherein, the numerical value of first threshold and second threshold is answered identical, otherwise may result in dual systems operational failure, For example, two-server may continually switching working mode, normally cannot provide service to client.
Specifically, host and standby host receive active-standby switch information, and carry out active-standby switch according to active-standby switch information, virtually IP address is switched to the host after active-standby switch.
By taking the Dual-Computer Hot-Standby System of rail traffic multimedia track traffic multimedia system as an example, master is sent when head end operation Standby handover information, host and standby host monitor active-standby switch information, and host and standby host carry out active-standby switch.It is standby after active-standby switch Machine need to cancel virtual IP address, avoid conflicting with the host generation after active-standby switch, and stop providing service to client;Active-standby switch Standby host afterwards need to configure virtual IP address, and provide service to client by virtual IP address.
Specifically, the same multicast group is added in host and standby host, host and standby host receive the data that multicast source is sent, make The data of host and standby host are consistent.
In the present embodiment, data are separately sent to host and standby host by way of multicast by multicast source, and multicast source only needs A data are sent, are replicated and be sent to host and standby by the router or interchanger in network close to standby host and host Data-transmission efficiency can be improved in this way and save the bandwidth resources of network for machine.
For example, the client request weather forecast information in the Dual-Computer Hot-Standby System of rail traffic multimedia system, first Client sends solicited message to host by virtual ip address;Then, host sends request letter to outer net by control centre Breath;Then, weather forecast information is sent to host and standby host by control centre in a manner of multicast;Finally, host is pre- by weather Breath of notifying is sent to client by way of broadcast.Wherein, when control centre receives the solicited message of host transmission, default Host and standby host have sent solicited message, at this point, host and standby host joined the same multicast group.
The double hot standby method of the rail traffic multimedia system of the embodiment of the present invention, by configuring first server and Two servers, specify first server or second server is host or standby host, and host and standby host are simultaneously from external segment Data are received, the data of host and standby host are consistent.In the present embodiment, connect by the way that host is synchronous with standby host from external segment Data are received, solve the problems, such as that the data synchronous working in the Dual-Computer Hot-Standby System of rail traffic multimedia system measures larger, master Machine when breaking down can fast switch over business, improve the monolithic stability of the Dual-Computer Hot-Standby System of rail traffic multimedia system Property, substantially reduce fail-over time.
In order to realize above-described embodiment, the present invention also proposes a kind of Dual-Computer Hot-Standby System of rail traffic multimedia system.
As shown in figure 3, the Dual-Computer Hot-Standby System of the rail traffic multimedia system includes: first server, second service Device, configuration module 410 and synchronous receiving module 420.
Wherein, first server or second is specified for configuring first server or second server in configuration module 410 Server is host or standby host.
Synchronous receiving module 420, host or standby host pass through synchronous receiving module 420 and receive data from external segment, make to lead The data of machine and standby host are always consistent.
On the basis of Fig. 3, Fig. 4 is the dual-locomotive heat of another rail traffic multimedia system provided in an embodiment of the present invention The structural schematic diagram of standby system.
As shown in figure 4, configuration module 410 includes: operating mode configuration unit 411, virtual IP address configuration unit 412.
Wherein, operating mode configuration unit 411, for configuring the operating mode of first server or second server, root First server is specified according to operating mode or second server is host or standby host;
Virtual IP address configuration unit 412, for configuring virtual ip address, host passes through client of the virtual ip address into local network segment Offer service is provided.
As a kind of possible implementation of the present embodiment, operating mode configuration unit 521 is specifically used for:
If the numerical value of the operating mode of first server or second server is configured to 1, first server or second server For host;
If the numerical value of the operating mode of first server or second server is configured to 0, first server or second server For standby host.
On the basis of Fig. 3, Fig. 5 is a kind of two-node cluster hot backup of rail traffic multimedia system provided in an embodiment of the present invention The structural schematic diagram of system.
As shown in figure 5, a kind of Dual-Computer Hot-Standby System of rail traffic multimedia system provided in an embodiment of the present invention is also wrapped It includes: sending module 510, the first receiving module 520.
As a kind of possible implementation of the present embodiment, further includes:
Sending module 510, host periodically send heartbeat packet to standby host by sending module 510;
First receiving module 520, standby host receive heartbeat packet by the first receiving module 520, if the continuous multiple heart beat cycles of standby host Heartbeat packet is not received, then determines hostdown, host and standby host carry out active-standby switch, and virtual ip address is switched to active-standby switch Host afterwards.
As a kind of possible implementation of the present embodiment, the first receiving module 520 is specifically used for:
Each heart beat cycle, the heartbeat packet of standby host, which counts, adds one;
If standby host receives the heartbeat packet of host, heartbeat packet is counted into zero setting;
If heartbeat packet count value is more than first threshold, hostdown is determined.
On the basis of Fig. 3, Fig. 6 is a kind of two-node cluster hot backup of rail traffic multimedia system provided in an embodiment of the present invention System further include: the second receiving module 610.
Second receiving module 610, host receives heartbeat packet by the second receiving module 610, if host receives multiple hearts Packet is jumped, then determines hostdown, mian engine changeover is standby host and cancels virtual ip address.
On the basis of Fig. 3, Fig. 7 is the dual-locomotive heat of another rail traffic multimedia system provided in an embodiment of the present invention The structural schematic diagram of standby system.
As shown in fig. 7, the Dual-Computer Hot-Standby System of another kind rail traffic multimedia system provided in an embodiment of the present invention is also It include: third receiving module 710.
As a kind of possible implementation of the present embodiment, configuration module 410 is also used to:
Third receiving module 710, host or standby host receive active-standby switch information by third receiving module 710, and according to active and standby Handover information carries out active-standby switch, and virtual ip address is switched to the host after active-standby switch.
As a kind of possible implementation of the present embodiment, synchronous receiving module 420 is specifically used for:
The same multicast group is added in host and standby host, and host and standby host receive the data that multicast source is sent, and makes host and standby host Data are consistent.
The Dual-Computer Hot-Standby System of the rail traffic multimedia system of the embodiment of the present invention, by configuring first server and Two servers, specify first server or second server is host or standby host, and host and standby host are simultaneously from external segment Data are received, the data of host and standby host are consistent.In the present embodiment, connect by the way that host is synchronous with standby host from external segment Data are received, solve the problems, such as that the data synchronous working in the Dual-Computer Hot-Standby System of rail traffic multimedia system measures larger, master Machine when breaking down can fast switch over business, improve the monolithic stability of the Dual-Computer Hot-Standby System of rail traffic multimedia system Property, substantially reduce fail-over time.
In order to realize above-described embodiment, the present invention also proposes a kind of computer program product, when in computer program product Instruction the double hot standby method of the rail traffic multimedia system such as previous embodiment is realized when being executed by processor.
In order to realize above-described embodiment, the present invention also proposes a kind of non-transitorycomputer readable storage medium, deposits thereon Computer program is contained, the two-shipper of the rail traffic multimedia system such as previous embodiment is realized when which is executed by processor Hot spare method.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random-access memory (ram), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that can on it the paper of print routine or other suitable be situated between Matter, because can then be edited, be interpreted or when necessary with other for example by carrying out optical scanner to paper or other media Suitable method is handled electronically to obtain program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries Suddenly be that relevant hardware can be instructed to complete by program, program can store in a kind of computer readable storage medium In, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.If integrated module with The form of software function module is realized and when sold or used as an independent product, also can store computer-readable at one It takes in storage medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.

Claims (18)

1. a kind of double hot standby method of rail traffic multimedia system characterized by comprising
First server and second server are configured, a specified wherein server is host, and another is standby host;
The host and the standby host receive data from external segment simultaneously, make described in the host and the data of standby host keep one It causes.
2. the method according to claim 1, wherein configuration first server and second server, are specified described First server or the second server are host or standby host, comprising:
The operating mode for configuring the first server and the second server specifies the first service according to operating mode Device or the second server are the host or the standby host;
Virtual ip address is configured, the host provides service by client of the virtual ip address into local network segment.
3. according to the method described in claim 2, it is characterized in that, configuring the first server and the second server Operating mode specifies the first server or the second server for the host or the standby host according to operating mode, Include:
If the numerical value of the operating mode of the first server or the second server is configured to 1, the first server Or the second server is host;
If the numerical value of the operating mode of the first server or the second server is configured to 0, the first server Or the second server is standby host.
4. according to the method described in claim 2, it is characterized by further comprising:
The host periodically sends heartbeat packet to the standby host, and the standby host receives heartbeat packet, if the standby host is continuously more A heart beat cycle does not receive heartbeat packet, then determines the hostdown, and the host and the standby host carry out active-standby switch, institute State the host that virtual ip address is switched to after active-standby switch.
5. according to the method described in claim 4, it is characterized in that, the standby host continuously multiple heart beat cycles do not receive heartbeat Packet, then determine that the hostdown includes:
The heartbeat packet count value of each heart beat cycle, the standby host adds one;
If the standby host receives the heartbeat packet of the host, by the heartbeat packet count value zero setting;
If the heartbeat packet count value is more than first threshold, the hostdown is determined.
6. according to the method described in claim 2, it is characterized by further comprising:
If the host receives multiple heartbeat packets, the hostdown is determined, the mian engine changeover is standby host and cancels institute State virtual ip address.
7. according to the method described in claim 2, it is characterized by further comprising:
The host and the standby host receive active-standby switch information, and carry out active-standby switch, the void according to active-standby switch information Quasi- IP address is switched to the host after active-standby switch.
8. the method according to claim 1, wherein the host and the standby host are received from external segment simultaneously Data are consistent the data of host and standby host, comprising:
The same multicast group is added in the host and the standby host, and the host and the standby host receive the number that multicast source is sent According to being consistent the host and the data of the standby host.
9. a kind of Dual-Computer Hot-Standby System of rail traffic multimedia system characterized by comprising
First server and second server;Wherein, the first server and the second server include:
Configuration module, for configuring the first server or the second server, specifying a server is host, another Platform is standby host;
Synchronous receiving module, the host or the standby host receive data from external segment by the synchronous receiving module, make The data of the host and the standby host are consistent.
10. the Dual-Computer Hot-Standby System of rail traffic multimedia system according to claim 9, which is characterized in that described to match Setting module includes:
Operating mode configuration unit, for configuring the operating mode of the first server or the second server, according to work Operation mode specifies the first server or the second server is the host or the standby host;
Virtual IP address configuration unit, for configuring virtual ip address, the host passes through visitor of the virtual ip address into local network segment Family end provides service.
11. the Dual-Computer Hot-Standby System of rail traffic multimedia system according to claim 10, which is characterized in that the work Operation mode configuration unit is specifically used for:
If the numerical value of the operating mode of the first server or the second server is configured to 1, the first server Or the second server is host;
If the numerical value of the operating mode of the first server or the second server is configured to 0, the first server Or the second server is standby host.
12. the Dual-Computer Hot-Standby System of rail traffic multimedia system according to claim 10, which is characterized in that also wrap It includes:
Sending module, the host periodically send heartbeat packet to the standby host by the sending module;
First receiving module, the standby host receive heartbeat packet by the first receiving module, if continuously multiple heartbeats are all for the standby host Phase does not receive heartbeat packet, then determines the hostdown, and the host and the standby host carry out active-standby switch, the virtual IP address Address is switched to the host after active-standby switch.
13. the Dual-Computer Hot-Standby System of rail traffic multimedia system according to claim 12, which is characterized in that described One receiving module is specifically used for:
The heartbeat packet count value of each heart beat cycle, the standby host adds one;
If the standby host receives the heartbeat packet of the host, by the heartbeat packet count value zero setting;
If the heartbeat packet count value is more than first threshold, the hostdown is determined.
14. the Dual-Computer Hot-Standby System of rail traffic multimedia system according to claim 10, which is characterized in that also wrap It includes:
Second receiving module, the host receives heartbeat packet by the second receiving module, if the host receives multiple heartbeats Packet, then determine the hostdown, and the mian engine changeover is standby host and cancels the virtual ip address.
15. the Dual-Computer Hot-Standby System of rail traffic multimedia system according to claim 10, which is characterized in that also wrap It includes:
Third receiving module, the host or the standby host receive active-standby switch information by third receiving module, and according to master Standby handover information carries out active-standby switch, and the virtual ip address is switched to the host after active-standby switch.
16. the Dual-Computer Hot-Standby System of rail traffic multimedia system according to claim 9, which is characterized in that described same Step receiving module is specifically used for:
The same multicast group is added in the host and the standby host, and the host and the standby host receive the number that multicast source is sent According to being consistent the host and the data of the standby host.
17. a kind of computer program product, which is characterized in that when the instruction in the computer program product is executed by processor The double hot standby method of Shi Shixian rail traffic multimedia system for example described in any one of claims 1-8.
18. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the program The double hot standby method such as rail traffic multimedia system described in any one of claims 1-8 is realized when being executed by processor.
CN201810068213.6A 2018-01-24 2018-01-24 Dual-computer hot standby method and system of rail transit multimedia system Active CN109753387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810068213.6A CN109753387B (en) 2018-01-24 2018-01-24 Dual-computer hot standby method and system of rail transit multimedia system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810068213.6A CN109753387B (en) 2018-01-24 2018-01-24 Dual-computer hot standby method and system of rail transit multimedia system

Publications (2)

Publication Number Publication Date
CN109753387A true CN109753387A (en) 2019-05-14
CN109753387B CN109753387B (en) 2019-12-20

Family

ID=66401761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810068213.6A Active CN109753387B (en) 2018-01-24 2018-01-24 Dual-computer hot standby method and system of rail transit multimedia system

Country Status (1)

Country Link
CN (1) CN109753387B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784354A (en) * 2019-10-30 2020-02-11 北京大米未来科技有限公司 Data processing method, device, system and readable storage medium
CN111083174A (en) * 2019-12-31 2020-04-28 北京力控华康科技有限公司 Firewall dual-computer hot standby system, standby firewall and state processing method and device
CN111277596A (en) * 2020-01-20 2020-06-12 广东电网有限责任公司电力调度控制中心 Power grid regulation and control safety zone data transmission system, method and equipment
CN112822039A (en) * 2020-12-31 2021-05-18 英赛克科技(北京)有限公司 Method for switching master/standby modes of dual-computer hot standby system
CN113625540A (en) * 2021-07-19 2021-11-09 交控科技股份有限公司 Dual-computer hot standby control method and device and dual-computer hot standby system
CN114124669A (en) * 2021-11-02 2022-03-01 卡斯柯信号有限公司 Method and system for interconnecting CTC and existing vehicle system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040034807A1 (en) * 2002-08-14 2004-02-19 Gnp Computers, Inc. Roving servers in a clustered telecommunication distributed computer system
US20040153709A1 (en) * 2002-07-03 2004-08-05 Burton-Krahn Noel Morgen Method and apparatus for providing transparent fault tolerance within an application server environment
CN101076992A (en) * 2004-08-13 2007-11-21 塞特里克斯系统公司 A method and systems for securing remote access to private networks
CN102684929A (en) * 2012-06-06 2012-09-19 广东威创视讯科技股份有限公司 Dual-computer hot redundancy back-up method and dual-computer hot redundancy back-up system
CN202551065U (en) * 2011-12-26 2012-11-21 煤炭科学研究总院 Data double-computer hot-standby system
CN102868560A (en) * 2012-09-28 2013-01-09 南京恩瑞特实业有限公司 System and method for realizing hot standby of servers
CN103077242A (en) * 2013-01-11 2013-05-01 北京佳讯飞鸿电气股份有限公司 Method for hot standby of dual database servers
CN103744809A (en) * 2013-12-23 2014-04-23 天泽信息产业股份有限公司 Method for dual-computer hot-standby of vehicle information management system on basis of VRRP
CN104679604A (en) * 2015-02-12 2015-06-03 大唐移动通信设备有限公司 Method and device for switching between master node and standby node
CN106953761A (en) * 2017-03-29 2017-07-14 杭州云纪网络科技有限公司 The method of server Disaster Preparedness System and processing message based on Disaster Preparedness System
CN106982259A (en) * 2017-04-19 2017-07-25 聚好看科技股份有限公司 The failure solution of server cluster
CN107255918A (en) * 2017-06-19 2017-10-17 北京航天发射技术研究所 A kind of remote control computer hot backup redundancy control method for automatically switching

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040153709A1 (en) * 2002-07-03 2004-08-05 Burton-Krahn Noel Morgen Method and apparatus for providing transparent fault tolerance within an application server environment
US20040034807A1 (en) * 2002-08-14 2004-02-19 Gnp Computers, Inc. Roving servers in a clustered telecommunication distributed computer system
CN101076992A (en) * 2004-08-13 2007-11-21 塞特里克斯系统公司 A method and systems for securing remote access to private networks
CN202551065U (en) * 2011-12-26 2012-11-21 煤炭科学研究总院 Data double-computer hot-standby system
CN102684929A (en) * 2012-06-06 2012-09-19 广东威创视讯科技股份有限公司 Dual-computer hot redundancy back-up method and dual-computer hot redundancy back-up system
CN102868560A (en) * 2012-09-28 2013-01-09 南京恩瑞特实业有限公司 System and method for realizing hot standby of servers
CN103077242A (en) * 2013-01-11 2013-05-01 北京佳讯飞鸿电气股份有限公司 Method for hot standby of dual database servers
CN103744809A (en) * 2013-12-23 2014-04-23 天泽信息产业股份有限公司 Method for dual-computer hot-standby of vehicle information management system on basis of VRRP
CN104679604A (en) * 2015-02-12 2015-06-03 大唐移动通信设备有限公司 Method and device for switching between master node and standby node
CN106953761A (en) * 2017-03-29 2017-07-14 杭州云纪网络科技有限公司 The method of server Disaster Preparedness System and processing message based on Disaster Preparedness System
CN106982259A (en) * 2017-04-19 2017-07-25 聚好看科技股份有限公司 The failure solution of server cluster
CN107255918A (en) * 2017-06-19 2017-10-17 北京航天发射技术研究所 A kind of remote control computer hot backup redundancy control method for automatically switching

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784354A (en) * 2019-10-30 2020-02-11 北京大米未来科技有限公司 Data processing method, device, system and readable storage medium
CN111083174A (en) * 2019-12-31 2020-04-28 北京力控华康科技有限公司 Firewall dual-computer hot standby system, standby firewall and state processing method and device
CN111083174B (en) * 2019-12-31 2022-03-29 北京力控华康科技有限公司 Firewall dual-computer hot standby system, standby firewall and state processing method and device
CN111277596A (en) * 2020-01-20 2020-06-12 广东电网有限责任公司电力调度控制中心 Power grid regulation and control safety zone data transmission system, method and equipment
CN112822039A (en) * 2020-12-31 2021-05-18 英赛克科技(北京)有限公司 Method for switching master/standby modes of dual-computer hot standby system
CN112822039B (en) * 2020-12-31 2023-05-23 英赛克科技(北京)有限公司 Main and standby mode switching method for dual-machine hot standby system
CN113625540A (en) * 2021-07-19 2021-11-09 交控科技股份有限公司 Dual-computer hot standby control method and device and dual-computer hot standby system
CN114124669A (en) * 2021-11-02 2022-03-01 卡斯柯信号有限公司 Method and system for interconnecting CTC and existing vehicle system

Also Published As

Publication number Publication date
CN109753387B (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN109753387A (en) The double hot standby method and system of rail traffic multimedia system
CN108306777B (en) SDN controller-based virtual gateway active/standby switching method and device
US10659292B2 (en) Arbitration method, apparatus, and system used in active-active data centers
US7991016B2 (en) High availability clock synchronization and distribution for mobile backhaul networks
US20040267959A1 (en) Storage system with link selection control
CN109194547A (en) Message transmitting method, device, local device and readable storage medium storing program for executing
CN112953803B (en) Airborne redundant network data transmission method
CN101834687A (en) Method, system and device for switching main and spare light access networks
EP2866378A1 (en) Apparatus and method for protecting and switching packet transport network
US9264298B2 (en) Technique for bundling in link aggregation
US9288075B2 (en) Method and system for auto-configuration, and network node
CN105516292A (en) Hot standby method of cloud platform of intelligent substation
CN105281951B (en) Double primary apparatus conflict detection methods and the network equipment in VSU systems
CN109960634A (en) A kind of method for monitoring application program, apparatus and system
CN105637817B (en) Control equipment, system and transmission channel control method in software defined network
US11316712B2 (en) Canopen-based data transmission gateway changeover method, system and apparatus thereof
CN109088818A (en) A kind of method and device of equipment linkage switching
CA2715472A1 (en) Path protection by sharing continuity check messages
CN107968747A (en) A kind of path adjustment management method and device, communication system
JP5106706B1 (en) Network system
CN101945036A (en) Judging method for failure of main router of virtual route redundancy protocol and router
US10164823B2 (en) Protection method and system for multi-domain network, and node
EP2858302A1 (en) Connectivity check method of service stream link, related apparatus and system
CN109445862A (en) Network interface card redundant drive method under Windows system based on MUX
CN109245911A (en) A kind of implementation method that BRAS is hot standby, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant