CN103441870A - Intelligent real-time seamless switching two unit standby method - Google Patents

Intelligent real-time seamless switching two unit standby method Download PDF

Info

Publication number
CN103441870A
CN103441870A CN201310364185XA CN201310364185A CN103441870A CN 103441870 A CN103441870 A CN 103441870A CN 201310364185X A CN201310364185X A CN 201310364185XA CN 201310364185 A CN201310364185 A CN 201310364185A CN 103441870 A CN103441870 A CN 103441870A
Authority
CN
China
Prior art keywords
backup
state server
request
dual
server
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
CN201310364185XA
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.)
SUZHOU MAIKE NETWORK SAFETY TECHNOLOGY Co Ltd
Original Assignee
SUZHOU MAIKE NETWORK SAFETY 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 SUZHOU MAIKE NETWORK SAFETY TECHNOLOGY Co Ltd filed Critical SUZHOU MAIKE NETWORK SAFETY TECHNOLOGY Co Ltd
Priority to CN201310364185XA priority Critical patent/CN103441870A/en
Publication of CN103441870A publication Critical patent/CN103441870A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention discloses an intelligent real-time seamless switching two unit standby method. The method is based on a two unit standby system, wherein a major state server and a standby state server are registered through two unit standby protocols and then form the two unit standby system. The method particularly includes the following steps that (1) the standby state server sends a request for entering two unit standby and judges request reply information; (2) the standby state server determines whether standby connection is established or not according to the request reply information; (3) after the standby connection is established, the standby state server waits for receiving a heartbeat request, if the heartbeat request is received, the standby state server sends a heartbeat request reply, waits for standby operation, and backups data sent by the major state server, if the heartbeat request is not received, the standby state server is initiatively switched to the major state server through the two unit standby protocols. The method further includes the working process of the major state server. Intelligence and real-time performance of the system are guaranteed, network oscillation generated in the process of switching the major state server and the standby state server is avoided, and operation of network users can not be affected.

Description

The dual-host backup method of the real-time seamless switching of a kind of intelligence
Technical field
The present invention relates to a kind of dual-host backup method, be specifically related to the dual-host backup method of the real-time seamless switching of a kind of intelligence, belong to technical field of the computer network.
Background technology
Modern IT Technology thinks, in successful system, the importance of data and operation far surpasses hardware device itself, and safety and guarantee to data in a set of perfect system have high requirement.Adopt at present the cluster topology of dual-host backup, system has high reliability.Two-server can be used as an integral body and provides service to network, and monitoring each other each other, when a station server breaks down, the process of moving on it and service can automatically be taken over by another station server, guarantee that the network user's work is unaffected.Existing two-unit standby system generally has cold and hot two kinds of backup modes.Cold standby needs the service of arrestment, then manually backs up, and Hot Spare, without the service of arrestment, carries out data backup automatically.But, the no matter backup of above-mentioned which kind of mode, backup actions is all that to concentrate on a time period be that fault is carried out while producing, and all can't accomplish the seamless switching of the network equipment.Once be backed up, all can cause network oscillation, even can cause the suspension of short time, affect the work of network client.
Summary of the invention
Goal of the invention: the object of the invention is to for the deficiencies in the prior art, the dual-host backup method of the real-time seamless switching of a kind of intelligence is provided, intelligent and the real-time of assurance system, the network oscillation produced while avoiding active and standby part of switching, guarantee that the network user's work is unaffected.
Technical scheme: the dual-host backup method of the real-time seamless switching of a kind of intelligence of the present invention, based on by first server and second server, forming two-unit standby system after by the dual-host backup protocol registration, first server is registered as the major state server, second server is registered as standby state server, specifically carries out as follows:
C1, standby state server send and start to enter the dual-host backup request, and judgement request reply message;
C2, standby state server determine whether to set up backup according to the request reply message and connect;
After C3, backup connect foundation, standby state server is waited for and is received heartbeat request, if receive heartbeat request, send heartbeat request and answer, and the wait backup operation, the data that the major state server is sent are backed up; If do not receive heartbeat request, by the dual-host backup agreement, initiatively switch to the major state server.
Being further defined to of technical solution of the present invention, in step C2, answer if standby state server receives request, sets up backup and connect; If the request that do not receive is answered, continue transmission and start to enter the dual-host backup request.
Further, in step C3, standby state server waits for that the time that heartbeat request is answered is 2 ~ 3 seconds.
Further, the dual-host backup method of the real-time seamless switching of above-mentioned intelligence, also comprise the steps:
S1, major state server send and start to enter the dual-host backup request, and judgement request reply message;
S2, major state server determine whether to set up backup according to the request reply message and connect;
After S3, backup connect to be set up, the major state server sends heartbeat request, and, according to the answer of heartbeat request, carries out backup operation, and the data of needs backup are sent to standby state server.
Further, in step S2, if the major state server receives request, answer, set up backup and connect; If the request of not receiving is answered, continue to send to start to enter the dual-host backup request;
Further, in step S3, after the major state server sends heartbeat request, do not answer if receive the heartbeat of standby state server, finish this backup, disconnect backup and connect, be convenient to initiate new backup and connect, avoid because backup server produces the situation that extremely causes backup failure.
Further, the major state server waits for that the time that heartbeat is answered is 2 ~ 3 seconds after sending heartbeat request.
Further, it is characterized in that, the data of carrying out the backup operation backup in above-mentioned steps comprise: the reaching the standard grade and roll off the production line and the modification of configuration data of the establishment of session and destruction, authenticated user.
Beneficial effect: the dual-host backup method of the real-time seamless switching of a kind of intelligence provided by the invention, the information timesharing such as session, authenticated user, configuration information are backed up, rather than when fault produces centralized backup, thereby not only guaranteed the intelligent and real-time of system, the assurance system can be carried out automatic active and standby switching in real time, existing network is not produced to passive impact while more guaranteeing Backup Data, and realize seamless active and standby switching, guarantee that concussion and suspension phenomenon do not appear in network when master/slave switchover, guarantee that the network user's work is unaffected.
The accompanying drawing explanation
The method of work flow chart that Fig. 1 is major state server provided by the invention;
The method of work flow chart that Fig. 2 is standby state server provided by the invention.
Embodiment
Below technical solution of the present invention is elaborated, but protection scope of the present invention is not limited to described embodiment.
The invention provides the dual-host backup method of the real-time seamless switching of a kind of intelligence, form two-unit standby system by first server and second server after by the dual-host backup protocol registration, first server is registered as the major state server, and second server is registered as standby state server.When the major state server produces the critical data variation, need to set up backup with standby state server and be connected, the data of variation are backuped to standby state server.When major state server abnormal, standby state server starts automatically, and state switches to the major state server, guarantees that the network user's work is unaffected.The critical data that the present invention need to back up comprises the modification of reaching the standard grade and rolling off the production line of the establishment of session and destruction, authenticated user and configuration data.Below the inventive method is carried out to detailed narration.
The present invention includes the workflow of major state server, its flow chart as shown in Figure 1, specifically carries out in accordance with the following steps:
S1, major state server send and start to enter the dual-host backup request, and judgement request reply message.
S2, major state server determine whether to set up backup according to the request reply message and connect, if the major state server receives request, answer, and set up backup and connect; If the request of not receiving is answered, continue to send to start to enter the dual-host backup request.
After S3, backup connect to be set up, the major state server sends heartbeat request, and, according to the answer of heartbeat request, carries out backup operation, and the data of needs backup are sent to standby state server.The determination methods of whether carrying out backup operation is: after the major state server sends heartbeat request, in 2 ~ 3 seconds, if receive that heartbeat answers, carry out backup operation; Do not answer if receive the heartbeat of standby state server, finish this backup, disconnect backup and connect, be convenient to initiate new backup and connect, avoid because backup server produces the situation that extremely causes backup failure.
The data of above-mentioned execution backup operation backup comprise: the reaching the standard grade and roll off the production line and the modification of configuration data of the establishment of session and destruction, authenticated user.
The present invention also comprises the workflow of standby state server, and its flow chart as shown in Figure 2, specifically carries out in accordance with the following steps:
C1, standby state server send and start to enter the dual-host backup request, and judgement request reply message.
C2, standby state server determine whether to set up backup according to the request reply message and connect, if standby state server receives request, answer, and set up backup and connect; If the request that do not receive is answered, continue transmission and start to enter the dual-host backup request.
After C3, backup connect foundation, standby state server is waited for and is received heartbeat request, in 2 ~ 3 seconds, if receive heartbeat request, send heartbeat request and answer, and the wait backup operation, the data that the major state server is sent are backed up; If do not receive heartbeat request, by the dual-host backup agreement, initiatively switch to the major state server.
In the method for operation of the present embodiment, major state server and standby state server be two-way all can initiate to start to enter the dual-host backup request, all can set up and back up connection by answers, makes to have initiative for state server; The major state server, when data variation, carries out backup operation in real time, has guaranteed the intelligent and real-time of system; Simultaneously, when standby state server does not receive heartbeat request, automatically carry out the state switching, assurance system seamless switching, existing network is not produced to passive impact, during master/slave switchover, concussion and suspension phenomenon do not appear in network, guarantee that the network user's work is unaffected.
As mentioned above, although meaned and explained the present invention with reference to specific preferred embodiment, it shall not be construed as the restriction to the present invention self.Under the spirit and scope of the present invention prerequisite that does not break away from the claims definition, can make in the form and details various variations to it.

Claims (9)

1. the dual-host backup method of the real-time seamless switching of intelligence, based on by first server and second server, forming two-unit standby system after by the dual-host backup protocol registration, first server is registered as the major state server, second server is registered as standby state server, it is characterized in that, specifically carry out as follows:
C1, standby state server send and start to enter the dual-host backup request, and judgement request reply message;
C2, standby state server determine whether to set up backup according to the request reply message and connect;
After C3, backup connect foundation, standby state server is waited for and is received heartbeat request, if receive heartbeat request, send heartbeat request and answer, and the wait backup operation, the data that the major state server is sent are backed up; If do not receive heartbeat request, by the dual-host backup agreement, initiatively switch to the major state server.
2. the dual-host backup method of the real-time seamless switching of a kind of intelligence according to claim 1, is characterized in that, in step C2, if standby state server receives request, answers, and sets up backup and connect; If the request that do not receive is answered, continue transmission and start to enter the dual-host backup request.
3. the dual-host backup method of the real-time seamless switching of a kind of intelligence according to claim 1, is characterized in that, in step C3, standby state server waits for that the time that heartbeat request is answered is 2 ~ 3 seconds.
4. the dual-host backup method of the real-time seamless switching of a kind of intelligence according to claim 1, is characterized in that, also comprises the steps:
S1, major state server send and start to enter the dual-host backup request, and judgement request reply message;
S2, major state server determine whether to set up backup according to the request reply message and connect;
After S3, backup connect to be set up, the major state server sends heartbeat request, and, according to the answer of heartbeat request, carries out backup operation, and the data of needs backup are sent to standby state server.
5. the dual-host backup method of the real-time seamless switching of a kind of intelligence according to claim 4, is characterized in that, in step S2, if the major state server receives request, answers, and sets up backup and connect; If the request of not receiving is answered, continue to send to start to enter the dual-host backup request;
The dual-host backup method of the real-time seamless switching of a kind of intelligence according to claim 4, is characterized in that, in step S3, after the major state server sends heartbeat request, do not answer if receive the heartbeat of standby state server, finish this backup, disconnect backup and connect.
6. the dual-host backup method of the real-time seamless switching of a kind of intelligence according to claim 6, is characterized in that, the major state server waits for that the time that heartbeat is answered is 2 ~ 3 seconds after sending heartbeat request.
7. according to the dual-host backup method of the real-time seamless switching of the described a kind of intelligence of the arbitrary claim of claim 1-7, it is characterized in that, the data of carrying out the backup operation backup in above-mentioned steps comprise: the reaching the standard grade and roll off the production line and the modification of configuration data of the establishment of session and destruction, authenticated user.
8. the dual-host backup method of the real-time seamless switching of intelligence, based on by first server and second server, forming two-unit standby system after by the dual-host backup protocol registration, first server is registered as the major state server, second server is registered as standby state server, it is characterized in that, specifically carry out as follows:
S1, major state server send and start to enter the dual-host backup request, and judgement request reply message;
S2, major state server determine whether to set up backup according to the request reply message and connect;
After S3, backup connect to be set up, the major state server sends heartbeat request, and, according to the answer of heartbeat request, carries out backup operation, and the data of needs backup are sent to standby state server.
9. the dual-host backup method of the real-time seamless switching of a kind of intelligence according to claim 9, is characterized in that, also comprises the steps:
C1, standby state server send and start to enter the dual-host backup request, and judgement request reply message;
C2, standby state server determine whether to set up backup according to the request reply message and connect;
After C3, backup connect foundation, standby state server is waited for and is received heartbeat request, if receive heartbeat request, send heartbeat request and answer, and the wait backup operation, the data that the major state server is sent are backed up; If do not receive heartbeat request, by the dual-host backup agreement, initiatively switch to the major state server.
CN201310364185XA 2013-08-20 2013-08-20 Intelligent real-time seamless switching two unit standby method Pending CN103441870A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310364185XA CN103441870A (en) 2013-08-20 2013-08-20 Intelligent real-time seamless switching two unit standby method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310364185XA CN103441870A (en) 2013-08-20 2013-08-20 Intelligent real-time seamless switching two unit standby method

Publications (1)

Publication Number Publication Date
CN103441870A true CN103441870A (en) 2013-12-11

Family

ID=49695539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310364185XA Pending CN103441870A (en) 2013-08-20 2013-08-20 Intelligent real-time seamless switching two unit standby method

Country Status (1)

Country Link
CN (1) CN103441870A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110417584A (en) * 2019-07-10 2019-11-05 南京南瑞继保电气有限公司 A kind of two-shipper main/standby switching method based on multi-link election mechanism
CN111083521A (en) * 2019-12-27 2020-04-28 杭州当虹科技股份有限公司 RTMP release main/standby fast switching method
CN111162940A (en) * 2019-12-25 2020-05-15 京信通信系统(中国)有限公司 Rail transit communication network system based on pool technology
CN111371680A (en) * 2020-03-04 2020-07-03 深信服科技股份有限公司 Route management method, device, equipment and storage medium for dual-computer hot standby
CN112506457A (en) * 2020-12-03 2021-03-16 威创集团股份有限公司 Seamless realization method and system for LED spliced wall system, storage medium and electronic equipment
CN113157493A (en) * 2021-04-09 2021-07-23 广州广电运通智能科技有限公司 Backup method, device and system based on ticket checking system and computer equipment
CN114710332A (en) * 2022-03-23 2022-07-05 新华三技术有限公司 License anti-cloning method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777055A (en) * 2004-11-15 2006-05-24 中兴通讯股份有限公司 Communication device host-standby switching protocol processing software synchronizing method
US20080260119A1 (en) * 2007-04-20 2008-10-23 Rohini Marathe Systems, methods, and computer program products for providing service interaction and mediation in a communications network
CN101997727A (en) * 2010-12-16 2011-03-30 广州智光电气股份有限公司 Device for seamless switching of host and standby of communication management machine and method thereof
CN102769626A (en) * 2012-07-26 2012-11-07 北京神州绿盟信息安全科技股份有限公司 Method, device and system for session information synchronization
CN102833096A (en) * 2012-08-06 2012-12-19 杭州华三通信技术有限公司 Method and device for implementation of low-cost high-availability system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777055A (en) * 2004-11-15 2006-05-24 中兴通讯股份有限公司 Communication device host-standby switching protocol processing software synchronizing method
US20080260119A1 (en) * 2007-04-20 2008-10-23 Rohini Marathe Systems, methods, and computer program products for providing service interaction and mediation in a communications network
CN101997727A (en) * 2010-12-16 2011-03-30 广州智光电气股份有限公司 Device for seamless switching of host and standby of communication management machine and method thereof
CN102769626A (en) * 2012-07-26 2012-11-07 北京神州绿盟信息安全科技股份有限公司 Method, device and system for session information synchronization
CN102833096A (en) * 2012-08-06 2012-12-19 杭州华三通信技术有限公司 Method and device for implementation of low-cost high-availability system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110417584A (en) * 2019-07-10 2019-11-05 南京南瑞继保电气有限公司 A kind of two-shipper main/standby switching method based on multi-link election mechanism
CN111162940A (en) * 2019-12-25 2020-05-15 京信通信系统(中国)有限公司 Rail transit communication network system based on pool technology
CN111083521A (en) * 2019-12-27 2020-04-28 杭州当虹科技股份有限公司 RTMP release main/standby fast switching method
CN111371680A (en) * 2020-03-04 2020-07-03 深信服科技股份有限公司 Route management method, device, equipment and storage medium for dual-computer hot standby
CN111371680B (en) * 2020-03-04 2022-04-29 深信服科技股份有限公司 Route management method, device, equipment and storage medium for dual-computer hot standby
CN112506457A (en) * 2020-12-03 2021-03-16 威创集团股份有限公司 Seamless realization method and system for LED spliced wall system, storage medium and electronic equipment
CN113157493A (en) * 2021-04-09 2021-07-23 广州广电运通智能科技有限公司 Backup method, device and system based on ticket checking system and computer equipment
CN114710332A (en) * 2022-03-23 2022-07-05 新华三技术有限公司 License anti-cloning method and device
CN114710332B (en) * 2022-03-23 2023-09-15 新华三技术有限公司 License anti-cloning method and device

Similar Documents

Publication Publication Date Title
CN103441870A (en) Intelligent real-time seamless switching two unit standby method
CN103744809B (en) Vehicle information management system double hot standby method based on VRRP
CN101426306B (en) A disaster tolerance switching method, system and apparatus
CN105245531B (en) One kind goes offline detection method, device and server
RU2009134233A (en) METHOD AND DEVICE FOR RESTORING A CONNECTION IN A WIRELESS COMMUNICATION NETWORK
CN103929333A (en) Implementation method for SDN controller pool
WO2018233642A1 (en) Train network node, and train network node monitoring method based on canopen protocol
EP2809113A1 (en) Method, apparatus, and system for energy saving management in network management system
CN102769627B (en) Configuration file synchronizing method and device
CN110677282B (en) Hot backup method of distributed system and distributed system
CN109639512A (en) A kind of heat backup method of VTS multi-sensor information total system
US20170116094A1 (en) Fault handling methods in a home service system, and associated household appliances and servers
WO2016107438A1 (en) Automatic switching method and system
CN103118387B (en) A kind of thin AP redundancy connection control method of active-standby mode
CN101729559A (en) Method and system for realizing backup of DHCP server
CN107104822B (en) Server disaster recovery processing method and device, storage medium and electronic equipment
CN103812697B (en) The strange disaster recovery method and system of a kind of distributed communication network
CN102685163A (en) Method and system for protecting basic session in DSN (Distributed Service Network) VoIP (Voice over Internet Protocol) service system
CN111417217A (en) Dual-connection configuration method, device, base station and terminal
CN107708212A (en) The collocation method and device that chain rupture is held time
CN112394662A (en) Transformer substation monitoring system server role determination method and system
WO2016074570A1 (en) Security monitoring method and system
CN103916823A (en) Method and apparatus for creating mobile conference call
CN110446221B (en) Railway private network communication guarantee method and system
CN113438608B (en) Wireless intelligent interactive communication method and communication system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20131211