CN103916226A - Redundant backup method based on embedded equipment - Google Patents

Redundant backup method based on embedded equipment Download PDF

Info

Publication number
CN103916226A
CN103916226A CN201210592438.4A CN201210592438A CN103916226A CN 103916226 A CN103916226 A CN 103916226A CN 201210592438 A CN201210592438 A CN 201210592438A CN 103916226 A CN103916226 A CN 103916226A
Authority
CN
China
Prior art keywords
equipment
stand
network
backup
main equipment
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.)
Pending
Application number
CN201210592438.4A
Other languages
Chinese (zh)
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.)
BEIJING DATANG GOHIGH SOFTWARE TECHNOLOGY Co Ltd
Original Assignee
BEIJING DATANG GOHIGH SOFTWARE TECHNOLOGY 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 BEIJING DATANG GOHIGH SOFTWARE TECHNOLOGY Co Ltd filed Critical BEIJING DATANG GOHIGH SOFTWARE TECHNOLOGY Co Ltd
Priority to CN201210592438.4A priority Critical patent/CN103916226A/en
Publication of CN103916226A publication Critical patent/CN103916226A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to a redundant backup method based on embedded equipment. The method includes the steps of 1) maintaining physical connection of both primary equipment and backup equipment to a network, and conducting data communication between the primary equipment and the backup equipment via a data transmission interface; 2) when the equipment starts, determining which one is the primary equipment and which one is the backup equipment, and taking one of the two as the primary equipment if both are normal; 3) when the primary equipment and the backup equipment are determined, cutting off the network connection of the backup equipment, leaving the backup equipment in a standby mode, and allowing only the primary equipment to be visited via the network at the time; 4) and when the equipment is detected in need of switching the primary equipment and the backup equipment, cutting off the network connection of the original primary equipment and allowing the network of the backup equipment to maintain connected. Compared with other schemes in need of additional hardware design to achieve redundant backup, the redundant backup method based on the embedded equipment is lower in cost; and compared with other schemes relying on programs to achieve redundant backup, the redundant backup method based on the embedded equipment is faster in switching between the primary equipment and the backup equipment, and the response speed of a system can be improved.

Description

Based on the method for embedded device redundancy backup
Technical field
The present invention has mainly set forth a kind of new redundancy backup method in embedded device, and this method can be switched rapidly master/slave device, thereby improves the response speed of system.
Background technology
In some field, very high to reliability of communication equipment requirement, so people remove to select the embedded device with main control card redundant backup function more.Mainly contain at present two large class redundancy backup methods:
One is access control equipment before two equipment, and two identical gateway devices are configured simultaneously, and its shortcoming is control appliance while ging wrong, and gateway device cannot use, and equipment purchase cost is higher.
Another kind method is to realize by software, and program is judged after active and standby card, and active and standby card is enabled respectively different programs, carries out redundancy backup.Shortcoming is in the time that equipment carries out active and standby switching, first exit current subprogram, restarts new thread, and this has just caused the handoff procedure time longer, affects the response time of equipment.
Summary of the invention
In view of this, the object of the invention is to propose a kind of adaptive redundancy backup method, in the time that main equipment and stand-by equipment switch, the program of redundancy backup module does not need to switch, and has so just improved system response time.
For achieving the above object, the technical solution used in the present invention is as follows:
When device start, the thread of monitor state is by reading the buffer status of main equipment and stand-by equipment, and undertaken after communication between devices by data transmission interface special between main equipment and stand-by equipment, judge main equipment and stand-by equipment (master/slave device is all given tacit consent to one of them for main equipment in normal situation), then the network that cuts off stand-by equipment connects, allow it in holding state, but the program of moving on stand-by equipment is identical with main equipment.At this moment can only have access to main equipment by network, at this moment can be configured main equipment by network interface, main equipment sends to stand-by equipment by the configuration information of receiving from network by ether interface special between main equipment and stand-by equipment, so just under the prerequisite of main equipment and stand-by equipment operation same program, has completed the work of configuration backup.
In the time that the thread of monitor state finds to carry out main equipment and stand-by equipment switching, only need the network that disconnects main equipment connect and make the network of stand-by equipment in connection status, so just complete main equipment and stand-by equipment and switched.
The present invention can bring following effect:
The present invention realizes the scheme of redundancy backup than other hardware designs of needs, cost is lower; Realize the scheme of redundancy backup by program compared with other, main equipment and stand-by equipment switch rapider, can improve the response speed of system.
Accompanying drawing explanation
Fig. 1 is device initialize process schematic diagram;
Fig. 2 is equipment schematic diagram connected to the network;
Fig. 3 is that equipment switches schematic diagram;
Fig. 4 is redundancy backup schematic diagram.
Embodiment
The present invention proposes a kind of adaptive redundancy backup method, and it comprises the following steps:
1) make main equipment and stand-by equipment all keep physical connection with network, between main equipment and stand-by equipment, carry out data communication by data transmission interface;
2) will first judge main equipment and stand-by equipment when device start, master/slave device is all given tacit consent to one of them for main equipment in normal situation;
3) judge after main equipment and stand-by equipment, the network that cuts off stand-by equipment connects, and allows it in holding state, at this moment can only have access to main equipment by network;
4) in the time detecting that equipment needs active and standby switching, the network that cuts off original main equipment connects, and makes the network of stand-by equipment keep connected state.
Described main equipment is all identical with MAC Address and the IP address of stand-by equipment.
In described step 2) in, judge main equipment and stand-by equipment by reading the buffer status of main equipment and stand-by equipment.
In described step 3) in, after the network connection of stand-by equipment is cut off, main equipment sends to stand-by equipment by the message of receiving from network by the data transmission interface between main equipment and stand-by equipment.
Describe in detail below in conjunction with accompanying drawing.
1. want first ruling main equipment and stand-by equipment when device start, the thread of monitor state is by reading the buffer status of main equipment and stand-by equipment, and undertaken, after communication between devices, judging main equipment and stand-by equipment by data transmission interface special between main equipment and stand-by equipment.The equipment that can define in the time that register is high level is normal, has abnormal when low level; Between main equipment and stand-by equipment, there is heartbeat communication, can send heartbeat signal to stand-by equipment every several seconds main equipments, stand-by equipment can be replied to main equipment after receiving signal, at this moment thinks that main equipment and stand-by equipment run well, if do not receive signal after exceeding certain hour, is considered as abnormal.Activestandby state need to comprehensively judge according to buffer status and heartbeat signal.
Main equipment stand-by equipment is all given tacit consent to one of them for main equipment in normal situation.Main equipment can only have one, another is necessary for stand-by equipment, main equipment and stand-by equipment carry out data communication by VLAN interface, stand-by equipment prepares to receive the configuration information of main equipment, and (what redundancy backup need to back up is exactly these configuration informations, such as user is by the IP address modification of equipment, stand-by equipment need to be known such configuration information, so that stand-by equipment can normally be accessed when active and standby switching).After judging main equipment and stand-by equipment, program continues operation (as shown in Figure 1).
In Fig. 2, main equipment and stand-by equipment all keep physical connection with network, and MAC Address is all identical with IP address.But only have one to keep enabled state.
2. judge after main equipment and stand-by equipment, the network that cuts off stand-by equipment connects, and allows it in holding state, at this moment can only have access to main equipment by network, as shown in Figure 4.Program designs like this: all configuration informations and service message be all from network interface, and in two equipment, synchronization can only have the equipment can be connected to the network.Because equipment can be received much message from network, some message is the message that needs backup, some is not need backup, such as: in the time browsing the WEB page, browser can send request information to equipment, the equipment of telling need to be browsed certain page, and equipment can be this page push to browser, and similar this information does not need backup.Therefore main equipment sends to stand-by equipment by the data transmission interface of device-specific the message of receiving from network is screened.This treatment mechanism has guaranteed that two equipment, the in the situation that of operation same program, can complete the backup of configuration service data to stand-by equipment.
3. in the time that monitoring thread detects that equipment needs active and standby switching, the network that cuts off original main equipment connects, and makes the network of stand-by equipment keep connected state.In Fig. 3, in the time that monitoring thread detects that equipment need to switch, only need to make one of them equipment connection network, and disconnect being connected of another equipment and network.Because original stand-by equipment is moving always, after switching, just can use immediately, need not carry out again active and standby program switching, so just reach the object of quick switching.

Claims (4)

1. the method based on embedded device redundancy backup, is characterized in that comprising the following steps:
1) make main equipment and stand-by equipment all keep physical connection with network, between main equipment and stand-by equipment, carry out data communication by data transmission interface;
2) will first judge main equipment and stand-by equipment when device start, master/slave device is all given tacit consent to one of them for main equipment in normal situation;
3) judge after main equipment and stand-by equipment, the network that cuts off stand-by equipment connects, and allows it in holding state, at this moment can only have access to main equipment by network;
4) in the time detecting that equipment needs active and standby switching, the network that cuts off original main equipment connects, and makes the network of stand-by equipment keep connected state.
2. the method based on embedded device redundancy backup as claimed in claim 1, is characterized in that:
Described main equipment is all identical with MAC Address and the IP address of stand-by equipment.
3. the method based on embedded device redundancy backup as claimed in claim 1, is characterized in that:
In described step 2) in, judge main equipment and stand-by equipment by reading the buffer status of main equipment and stand-by equipment.
4. the method based on embedded device redundancy backup as claimed in claim 1, is characterized in that:
In described step 3) in, after the network connection of stand-by equipment is cut off, main equipment sends to stand-by equipment by the message of receiving from network by the data transmission interface between main equipment and stand-by equipment.
CN201210592438.4A 2012-12-31 2012-12-31 Redundant backup method based on embedded equipment Pending CN103916226A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210592438.4A CN103916226A (en) 2012-12-31 2012-12-31 Redundant backup method based on embedded equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210592438.4A CN103916226A (en) 2012-12-31 2012-12-31 Redundant backup method based on embedded equipment

Publications (1)

Publication Number Publication Date
CN103916226A true CN103916226A (en) 2014-07-09

Family

ID=51041648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210592438.4A Pending CN103916226A (en) 2012-12-31 2012-12-31 Redundant backup method based on embedded equipment

Country Status (1)

Country Link
CN (1) CN103916226A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184834A (en) * 2014-09-11 2014-12-03 东莞宇龙通信科技有限公司 File transmission method and device and terminal
CN106027305A (en) * 2016-05-26 2016-10-12 浪潮(苏州)金融技术服务有限公司 Method for hot standby of dual servers using same IP based on ARM
CN106776155A (en) * 2016-12-08 2017-05-31 西安交大捷普网络科技有限公司 One kind application state connection synchronous method
CN107547301A (en) * 2017-06-21 2018-01-05 新华三信息安全技术有限公司 A kind of master/slave device switching method and device
CN110649995A (en) * 2019-09-02 2020-01-03 熊猫智慧水务有限公司 Intelligent double-path redundant communication networking system for water supply
CN111314136A (en) * 2020-02-18 2020-06-19 安科讯(福建)科技有限公司 Method and terminal for triggering LTE Femto gateway switching
CN112506457A (en) * 2020-12-03 2021-03-16 威创集团股份有限公司 Seamless realization method and system for LED spliced wall system, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060391A (en) * 2007-05-16 2007-10-24 华为技术有限公司 Master and spare server switching method and system and master server and spare server
CN101697494A (en) * 2009-10-30 2010-04-21 福建星网锐捷网络有限公司 Backup method, equipment and system
US20110271144A1 (en) * 2010-04-30 2011-11-03 Honeywell International Inc. Approach for data integrity in an embedded device environment
CN102684929A (en) * 2012-06-06 2012-09-19 广东威创视讯科技股份有限公司 Dual-computer hot redundancy back-up method and dual-computer hot redundancy back-up system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060391A (en) * 2007-05-16 2007-10-24 华为技术有限公司 Master and spare server switching method and system and master server and spare server
CN101697494A (en) * 2009-10-30 2010-04-21 福建星网锐捷网络有限公司 Backup method, equipment and system
US20110271144A1 (en) * 2010-04-30 2011-11-03 Honeywell International Inc. Approach for data integrity in an embedded device environment
CN102684929A (en) * 2012-06-06 2012-09-19 广东威创视讯科技股份有限公司 Dual-computer hot redundancy back-up method and dual-computer hot redundancy back-up system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184834A (en) * 2014-09-11 2014-12-03 东莞宇龙通信科技有限公司 File transmission method and device and terminal
CN106027305A (en) * 2016-05-26 2016-10-12 浪潮(苏州)金融技术服务有限公司 Method for hot standby of dual servers using same IP based on ARM
CN106776155A (en) * 2016-12-08 2017-05-31 西安交大捷普网络科技有限公司 One kind application state connection synchronous method
CN107547301A (en) * 2017-06-21 2018-01-05 新华三信息安全技术有限公司 A kind of master/slave device switching method and device
CN107547301B (en) * 2017-06-21 2021-07-30 新华三信息安全技术有限公司 Method and device for switching main and standby equipment
CN110649995A (en) * 2019-09-02 2020-01-03 熊猫智慧水务有限公司 Intelligent double-path redundant communication networking system for water supply
CN111314136A (en) * 2020-02-18 2020-06-19 安科讯(福建)科技有限公司 Method and terminal for triggering LTE Femto gateway switching
CN112506457A (en) * 2020-12-03 2021-03-16 威创集团股份有限公司 Seamless realization method and system for LED spliced wall system, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN103916226A (en) Redundant backup method based on embedded equipment
CN108847982B (en) Distributed storage cluster and node fault switching method and device thereof
CN106330475B (en) Method and device for managing main and standby nodes in communication system and high-availability cluster
CN107070731B (en) Master-slave arbitration method and system
CN105024798A (en) Method and device for time synchronization
US10355963B2 (en) Heartbeat period setting method, and terminal
CN105516252A (en) TCP (Transmission Control Protocol) connection switching method, apparatus and system
CN104901834A (en) Method and system for automatically switching between network servers
KR102131863B1 (en) Method of performing transition of operation mode for a routing processor
JP6007988B2 (en) Standby system apparatus, operational system apparatus, redundant configuration system, and load distribution method
CN103001822B (en) The processing method of Network Abnormal and device
US8775617B2 (en) Method for optimizing network performance after a temporary loss of connection
CN107104822B (en) Server disaster recovery processing method and device, storage medium and electronic equipment
CN102983997A (en) Method and device for migrating master services
CN104301145A (en) Network device and console configuration method for network device
CN104038355A (en) Communication device and main/standby switchover method thereof
CN107104830B (en) Multi-server switching method and system
CN106992889B (en) Multi-server switching method and system
CN104506364A (en) Master-slave switching method, main control card and network equipment
CN105163336A (en) Method and system for optimizing stability of wireless network
CN104243203A (en) Virtual machine transmission interface status switching method and system
CN106992890B (en) Multi-server switching method and system
CN105306256A (en) Hot-standby implementation method based on VxWorks equipment
CN104243200A (en) Control method for improving reliability of ATCA system and ATCA system
CN106332078B (en) dot1x user authentication system, method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140709

RJ01 Rejection of invention patent application after publication