CN102739453A - Master-standby switching method, device and system - Google Patents

Master-standby switching method, device and system Download PDF

Info

Publication number
CN102739453A
CN102739453A CN2012102274859A CN201210227485A CN102739453A CN 102739453 A CN102739453 A CN 102739453A CN 2012102274859 A CN2012102274859 A CN 2012102274859A CN 201210227485 A CN201210227485 A CN 201210227485A CN 102739453 A CN102739453 A CN 102739453A
Authority
CN
China
Prior art keywords
server
modify instruction
active
domain name
standby
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
CN2012102274859A
Other languages
Chinese (zh)
Other versions
CN102739453B (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.)
Huawei Technologies Co Ltd
Huawei Software Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210227485.9A priority Critical patent/CN102739453B/en
Publication of CN102739453A publication Critical patent/CN102739453A/en
Application granted granted Critical
Publication of CN102739453B publication Critical patent/CN102739453B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the field of network communication and discloses a master-standby switching method, device and system. According to the master-standby switching method, master-standby switching conditions are preset; when an active server and a status corresponding to the master-standby switching conditions satisfy the master-standby switching conditions or when the active server has faults, a corresponding relationship of a domain name stored in a DNS (Domain Name Server) and an IP (Internet Protocol) address is modified, so as to acquire an IP address of the original standby service after a domain name resolution request is sent through a CSCF (Call Session Control Function), and routing is allocated to the server corresponding to a modified IP address through using the CSCF, and thus the switching for the master-standby servers is achieved; the master-standby switching conditions are set according to different application conditions, so that the master-standby switching method disclosed by the invention can be applicable to different application scenes, thereby improving the master-standby link switching flexibility.

Description

Main/standby switching method, equipment and system
Technical field
The present invention relates to network communication field, particularly relate to a kind of main/standby switching method, equipment and system.
Background technology
At present, network service plays an important role at aspects such as resource-sharing, message interchanges, and therefore the reliability requirement to communication system also improves day by day.In order to improve the validity of communication system, can adopt the active/standby link switchover technology.
Organization Chart referring to active and standby switching shown in Figure 1; The active/standby link switchover technology of the current network communications field; Pre-configured two application server (AS; Application Server), the AS that wherein is in main use state uses server A S-1 for main, and the AS that is in stand-by state is standby server AS-2.When carrying out network service; CSCF (CSCF; Call Session Control Function) sends domain name mapping request DNS query to name server (DNS Server, Domain Name System Server), to obtain the said main (IP of net association with server; Internet Protocol) address; And, realize that said CSCF uses server with route assignment to said leading, to set up data transmission link to leading information with server transmission call request INVITE.In data transmission procedure; Said CSCF continues to send SIP OPTION to said master with server and calls out heartbeat message; In a period of time, repeatedly send said INVITE information and all ask failure, or said SIP OPTION information can not receive when responding always; Think that then said master breaks down with server; Domain name server DNS Server can be with the IP address transfer of standby server to CSCF, and then carries out the switching of main/slave link, sets up new data transmission link by said standby server.
But the inventor finds in the application's research process, current active/standby link switchover technology; Can only stop with the server heartbeat main, when promptly breaking down, just can carry out the switching of main/slave link; But under the application scenarios of more complicated, when higher, can't carry out the switching of main/slave link with the load of server as main; That is to say that existing active/standby link switchover technology can't adapt to complicated application scenarios.
Summary of the invention
In view of this; The object of the present invention is to provide a kind of main/standby switching method, had in the existing active/standby link switchover technology, can only could switch when breaking down main with server to solve; Thereby can not adapt to the problem of complicated application scenarios, specific embodiments is following:
The invention discloses a kind of main/standby switching method, specifically comprise following two steps:
Detect main operating state, to judge whether to satisfy preset active and standby switching condition with server; Said active and standby switching condition comprises: switch when satisfying preset load, switch or main a kind of in switching when breaking down with server by setting-up time;
When needs carry out active and standby switching; Produce modify instruction, and said modify instruction is transferred to name server, so that the domain name server is according to said modify instruction; The domain name of storing in the corresponding modification domain name server and the corresponding relation of IP address are realized active and standby switching.
The said modify instruction that produces comprises first modify instruction or second modify instruction; Said first modify instruction is used to improve the priority of the IP address of the standby server corresponding with domain name, and said second modify instruction is used to delete the main IP address with server corresponding with domain name.
The method that produces modify instruction comprises two kinds of implementations, and in first kind of implementation, the master when moving, detects self working state with server;
Said main learning according to said operating state judgement with server produces said modify instruction when self satisfying said active and standby switching condition;
In second kind of implementation, the independent detection device detects main operating state with server;
Said independent detection device produces said modify instruction detecting said master when breaking down with server.
In addition, the invention also discloses a kind of main/standby switching method, comprising:
Receive modify instruction, and according to said modify instruction, the domain name of corresponding modification storage and the corresponding relation of IP address are to realize active and standby switching.
Accordingly, the invention also discloses a kind of server, said server comprises:
Judge module is used to detect main operating state with server, and according to said operating state, judges whether said master satisfies preset active and standby switching condition with server;
The server instruction generation module; Be used for when said master satisfies said active and standby switching condition with server; Produce modify instruction, and said modify instruction is transferred to name server, so that the domain name server is according to said modify instruction; The domain name of storing in the corresponding modification domain name server and the corresponding relation of IP address are realized active and standby switching.
Simultaneously, the invention also discloses a kind of independent detection device, comprising:
State detection module is used to detect coupled main operating state with server;
Command generation module; Be used for when detecting said master and break down with server; Produce modify instruction, and said modify instruction is transferred to name server, so that the domain name server is according to said modify instruction; The domain name of storing in the corresponding modification domain name server and the corresponding relation of IP address are realized active and standby switching.
In addition, the invention also discloses a kind of name server, comprising:
Revise the unit, be used to receive modify instruction, and according to said modify instruction, the domain name of corresponding modification storage and the corresponding relation of IP address are to realize active and standby switching.
Simultaneously, the invention also discloses a kind of active and standby switched system, comprising:
Be in the main main server of using with state; Said master comprises judge module and server command generation module with server; Said judge module is used to detect main operating state with server, and judges according to said operating state whether said master satisfies the active and standby switching condition of presetting with server, and said server instruction generation module is used for when satisfying said active and standby switching condition; Produce modify instruction, and said modify instruction is transferred to name server;
Be in the standby server of stand-by state;
Name server comprises the modification unit, is used to receive modify instruction, and according to said modify instruction, the domain name of corresponding modification storage and the corresponding relation of IP address are to realize active and standby switching.
In addition, said active and standby switched system can also comprise:
The independent detection device; Said independent detection device comprises: state detection module and command generation module; Said state detection module is used to detect coupled main operating state with server, and said command generation module is used for when said master breaks down with server, produces modify instruction; And said modify instruction transferred to name server; So that the domain name server is according to said modify instruction, the domain name of storing in the corresponding modification domain name server and the corresponding relation of IP address are realized active and standby switching.
Through the disclosed main/standby switching method of such scheme; Preset active and standby switching condition; Said main when satisfying said active and standby switching condition with server and the corresponding state of said active and standby switching condition, can be through the domain name of storing in the corresponding modification name server and the corresponding relation of IP address, so that after the CSCF transmission domain name mapping request; Obtain the IP address of former standby server; Impel CSCF to distribute route, thereby realize the switching of active/standby server, because said active and standby switching condition is to be provided with according to different application conditions to amended IP address corresponding server; Make the disclosed main/standby switching method of this programme can be applicable to different application scenes, improved the flexibility of active/standby link switchover.
Special, according to the disclosed main/standby switching method of the application, satisfy said active and standby switching condition with server said master; Or when breaking down, then can produce modify instruction in real time, accomplish the switching of main/slave link; In the scheme of prior art, need all ask failure in INVITE information repeatedly, or SIP OPTION information can not receive always when responding; Just carry out active and standby switching way, improved the real-time of active and standby switching and the continuity of transfer of data.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is for realizing the actual Organization Chart of active and standby switching;
Fig. 2 is the disclosed a kind of main/standby switching method workflow sketch map of the embodiment of the invention;
Fig. 3 is the structural representation of the disclosed a kind of server of the embodiment of the invention;
Fig. 4 is the structural representation of the disclosed a kind of independent detection device of the embodiment of the invention;
Fig. 5 is the structural representation of the disclosed a kind of active and standby switched system of the embodiment of the invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The invention discloses a kind of main/standby switching method; Had in the existing active/standby link switchover technology to solve, can only could be switched when breaking down, thereby can not be adapted to the problem of the application scenarios of complicacy main with server; Its workflow sketch map is as shown in Figure 2, comprising:
Step S1, the main operating state with server of detection are to judge whether to satisfy preset active and standby switching condition; In the prior art, only break down with server, when promptly heartbeat stops main; Just can carry out the switching of main/slave link; In order to adapt to complicated application scenarios, make active and standby switching more flexible, in this programme; Be provided with active and standby switching condition in advance, and judge whether said master satisfies said preset active and standby switching condition with server.Wherein, said active and standby switching condition is following a kind of: switch when satisfying preset load, switch by the time of setting, or switch under other situations; For example, when said active and standby switching condition is to switch when satisfying preset load, need be the CPU of server in advance then; Or load value of other component settings; When said master should load with server is satisfied, explain that then said master bears higher load with server, should carry out active and standby switching; When said active and standby switching condition when switching by the time of setting; When said master satisfies the time of said setting with the time of server work; Explain that then said master has worked the long period with server,, should carry out active and standby switching in order to improve main useful life with server.But be not limited to above-mentioned active and standby switching condition; Under different application requirements, other active and standby switching condition can be set, simultaneously; For the switching between the application server of realizing main usefulness and the subsequent use application server, need to judge mainly whether satisfy preset active and standby switching condition with server.
Step S2, when needs carry out active and standby switching; Produce modify instruction; And said modify instruction transferred to domain name server (DNS) Server; So that domain name server DNS Server is according to said modify instruction, the domain name of storing among the corresponding modification domain name server DNS Server and the corresponding relation of IP address are realized active and standby switching.
Through the disclosed main/standby switching method of such scheme; When needs carry out active and standby switching, can be through the domain name of storing in the corresponding modification name server and the corresponding relation of IP address, so that CSCF is after domain name server DNS Server sends the domain name mapping request; Obtain the IP address of former standby server; Impel CSCF to distribute route, thereby realize the switching of active/standby server, because said active and standby switching condition is to be provided with according to different application conditions to amended IP address corresponding server; Make the disclosed main/standby switching method of this programme can be applicable to different application scenes, improved the flexibility of active/standby link switchover.
In step S2; Said modify instruction comprises: first modify instruction or second modify instruction; Said first modify instruction is used to improve the priority of the IP address of the standby server corresponding with domain name, and said second modify instruction is used to delete the main IP address with server corresponding with domain name.Under normal operating condition; In domain name server DNS Server; Generally store domain name, with the corresponding priority in domain name corresponding IP address and said IP address, said main IP address with server is in higher priority, the IP address of said standby server is in lower priority; At said CSCF when said DNS Server sends the domain name mapping request; Can obtain and be in higher priority, promptly main IP address with server, and with route assignment extremely said master use server.When needs carry out active and standby switching; Said first modify instruction is used to improve the priority of said standby server IP address; Thereby after making said CSCF send the domain name mapping request; Obtain the IP address of said subsequent use service, and with route assignment to said standby server, to realize the switching of main/slave link.In addition; Said second modify instruction is used to delete the main IP address with server corresponding with domain name, thereby after making said CSCF send the domain name mapping request, can only obtain the IP address of said subsequent use service; And with route assignment to said standby server, to realize the switching of main/slave link.
For example, set the master and use server to be AS-1, standby server is AS-2; Its IP address is respectively 10.125.12.30 and 10.125.23.30; Before not carrying out active and standby switching, the IP address of AS-1 has higher priority, and the two common domain name is as.example.com.When CSCF CSCF will visit as.example.com; Need to send domain name mapping request DNS query to domain name server (DNS) Server; The domain name server can return the IP address that is in higher priority to CSCF, that is to say, the domain name server can be with the IP address of AS-1; 10.125.12.30 be sent to CSCF; Said CSCF can send call request INVITE information to said master with server A S-1 according to the IP address that receives, and foundation and said main with the data transmission link between the server A S-1.
When needs carry out active and standby switching; Then produce modify instruction; And said modify instruction transferred to domain name server (DNS) Server; Domain name server DNS Server is according to said modify instruction, the domain name of storing among the corresponding modification domain name server DNS Server and the corresponding relation of IP address.Said modify instruction is: improve first modify instruction of the priority of the standby server IP address corresponding with domain name, or, delete second modify instruction of the master corresponding with the IP address of server with domain name.When said modify instruction was first modify instruction, then the domain name server can improve the priority of the IP address of standby server AS-2, so that its priority is higher than the IP address of said AS-1.When said modify instruction is second modify instruction, then delete the IP address of the said AS-1 that stores in the domain name server.Through said first modify instruction or said second modify instruction that receives; Said CSCF is after sending domain name mapping request DNS query to the domain name server; Can get access to the IP address 10.125.23.30 of said standby server AS-2, said CSCF can send call request INVITE information to said standby server AS-2 according to the IP address that receives; And the data transmission link between foundation and the said standby server AS-2, thereby realize active and standby switching.
Wherein, the situation that need carry out active and standby switching comprises two kinds of situation at least, and a kind of situation is that main operating state with server satisfies said preset active and standby switching condition; Another kind of situation is, and is main with the said active and standby switching condition of server unmet, but said master also need carry out active and standby switching when breaking down with server.For example; Set said master and after satisfying the time of setting, carry out active and standby switching with server; When the said main operating time with server is satisfied the time of setting, perhaps time of operating time unmet setting, but fault has taken place with server in said master; All to produce said modify instruction under the both of these case, to realize active and standby switching.
Therefore, in step S2, the method that produces modify instruction specifically comprises two kinds, wherein,
Method one: the master when moving, detects self working state with server;
Said main learning according to said operating state judgement with server produces said modify instruction when self satisfying said active and standby switching condition;
Method two: the independent detection device detects main operating state with server;
Said independent detection device is detecting said master when breaking down with server, produces modify instruction.
Wherein, said main with server when moving, if judge when self satisfying said active and standby switching condition, can produce said modify instruction, to realize follow-up active and standby switching.But said main might break down with server, thus can't judge self whether to satisfy said active and standby switching condition, then can by said independent detection device when detecting said master and break down, produce said modify instruction with server.
Wherein, said independent detection device is for moving and maintenance, and the part in operation and maintenance (O&M, operation and maintenance) system is independent of said master and uses server, is used for the state of monitoring server.
Special; If judge self whether to satisfy said active and standby switching condition by said master with server always; And produce said modify instruction, can increase the weight of said master and use load of server, in this case; It is said main with server and the corresponding state of switching condition then can to select for use said independent detection device to detect, and the generation revision directive gets final product.In this case, said independent detection device can detect said main operating state with server, and when judging said master and satisfy said active and standby switching condition with server, produces said modify instruction.
The disclosed main/standby switching method of this programme preestablishes active and standby switching condition, and when needs carry out active and standby switching; Through producing modify instruction; And said modify instruction transferred among the domain name server DNS Server, with the domain name of storing among the modify domain name server DNS Server and the corresponding relation of IP address, make said CSCF with in route assignment to the said standby server; Thereby realize active and standby switching; Because said active and standby switching condition is to be provided with according to different application conditions, makes the disclosed main/standby switching method of this programme can be applicable to different application scenes, has improved the flexibility of active/standby link switchover.
Special, according to the disclosed main/standby switching method of the application, satisfy said active and standby switching condition with server said master; Or when breaking down, then can produce modify instruction in real time, accomplish the switching of main/slave link; In the scheme of prior art, need all ask failure in INVITE information repeatedly, or SIP OPTION information can not receive always when responding; Just carry out active and standby switching way, improved the real-time of active and standby switching and the continuity of transfer of data.
In addition, this programme also discloses a kind of main/standby switching method, is primarily aimed at domain name server (DNS) Server, comprising:
Receive modify instruction, and according to said modify instruction, the domain name of corresponding modification storage and the corresponding relation of IP address are to realize active and standby switching.
In domain name server DNS Server; Receive modify instruction, and, revise the domain name of said storage and the corresponding relation of IP address according to said modify instruction; Can make said CSCF after sending the domain name mapping request; Obtain among the domain name server DNS Server, active and standby switching is realized in the IP address of the standby server of storage.
In addition, this programme also discloses a kind of server, and its structural representation is as shown in Figure 3, comprising: judge module 11 and server command generation module 12, wherein,
Said judge module 11 is used to detect main operating state with server, and according to said operating state, judges whether said master satisfies preset active and standby switching condition with server.Under different application scenes, different active and standby switching conditions can be set, said active and standby switching condition comprises when satisfying preset load a kind of in switching, switching by setting-up time, but is not limited thereto;
Said server instruction generation module 12; Be used for when said master satisfies said active and standby switching condition with server; Produce modify instruction, and said modify instruction is transferred to name server, so that domain name server DNS Server is according to said modify instruction; The domain name of storing in the corresponding modification domain name service DNSServer device and the corresponding relation of IP address are realized active and standby switching.
In addition, referring to structural representation shown in Figure 4, this programme also discloses a kind of independent detection device, and said independent detection device comprises: state detection module 21 and command generation module 22, wherein,
Said state detection module 21 is used to detect coupled main operating state with server;
Said command generation module 22; Be used for when said master breaks down with server; Produce modify instruction, and transfer to name server, so that the domain name server is according to said modify instruction; The domain name of storing in the corresponding modification domain name server and the corresponding relation of IP address are realized active and standby switching.
Special; Said command generation module 22; Also can judge whether said master satisfies the active and standby switching condition of presetting with server according to said state detection module 21 detected said main operating states with server, and when said master satisfies said active and standby switching condition with server; Produce said modify instruction, realize active and standby switching.
In addition, this programme also discloses a kind of domain name server (DNS) Server, comprising: revise the unit; Said modification unit is used to receive modify instruction; And according to said modify instruction, the domain name of corresponding modification storage and the corresponding relation of IP address are to realize active and standby switching.
In addition, this programme also discloses a kind of active and standby switched system, and referring to structural representation shown in Figure 5, said active and standby switching condition comprises: be in main with the leading of state with server 1, the standby server 2 that is in stand-by state and name server 3, wherein,
Said master comprises judge module 11 and server command generation module 12 at least with server 1; Said judge module 11 is used to detect main operating state with server; And judge that according to said operating state whether said master satisfies preset active and standby switching condition with server; Said server instruction generation module 12 is used for when satisfying said active and standby switching condition, producing modify instruction, and said modify instruction being transferred to name server 3;
Domain name server 3 comprises the modification unit at least, and said modification unit is used to receive modify instruction, and according to said modify instruction, the domain name of corresponding modification storage and the corresponding relation of IP address are to realize active and standby switching.
In addition; In order when said master breaks down with server 1, also to realize active and standby switching, said active and standby switched system also comprises: independent detection device 4, wherein; Said independent detection device 4 comprises at least declares state detection module 21 and command generation module 22; Said state detection module 21 is used to detect coupled main operating state with server, and said command generation module 22 is used for when said master breaks down with server, produces modify instruction; And said modify instruction transferred to name server 3; So that domain name server 3 is according to said modify instruction, the domain name of storing in the corresponding modification domain name server and the corresponding relation of IP address are realized active and standby switching.
Through the disclosed active and standby switched system of such scheme; Said main when satisfying said active and standby switching condition with server and the corresponding state of said active and standby switching condition; Or said master is when breaking down with server, can be through the domain name of storing among the corresponding modification domain name server (DNS) Server and the corresponding relation of IP address, so that after CSCF sends the domain name mapping request; Obtain the IP address of former standby server; Impel CSCF to distribute route, thereby realize active and standby switching, because said active and standby switching condition is to be provided with according to different application conditions to amended IP address corresponding server; Make the disclosed main/standby switching method of this programme can be applicable to different application scenes, improved the flexibility of active/standby link switchover.
Those of ordinary skills can recognize, the unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions still are that software mode is carried out with hardware actually, depend on the application-specific and the design constraint of technical scheme.The professional and technical personnel can use distinct methods to realize described function to each certain applications, but this realization should not thought and exceeds scope of the present invention.
The those skilled in the art can be well understood to, for the convenience described with succinct, the concrete course of work of the system of foregoing description, device and unit can repeat no more at this with reference to the corresponding process among the preceding method embodiment.
In several embodiment that the application provided, should be understood that the system that is disclosed, apparatus and method can realize through other mode.For example, device embodiment described above only is schematically, for example; The division of said unit; Only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or assembly can combine or can be integrated into another system; Or some characteristics can ignore, or do not carry out.Another point, the coupling each other that shows or discuss or directly coupling or communication to connect can be through some interfaces, the INDIRECT COUPLING of device or unit or communication connect, and can be electrically, machinery or other form.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing unit, also can be that the independent physics in each unit exists, and also can be integrated in the unit two or more unit.
If said function realizes with the form of SFU software functional unit and during as independently production marketing or use, can be stored in the computer read/write memory medium.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words or the part of this technical scheme can be come out with the embodied of software product; This computer software product is stored in the storage medium; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out all or part of step of the said method of each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments among this paper.Therefore, the present invention will can not be restricted to these embodiment shown in this paper, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.

Claims (11)

1. a main/standby switching method is characterized in that, comprising:
Detect main operating state, to judge whether to satisfy preset active and standby switching condition with server;
When needs carry out active and standby switching; Produce modify instruction, and said modify instruction is transferred to name server, so that the domain name server is according to said modify instruction; The domain name of storing in the corresponding modification domain name server and the corresponding relation of IP address are realized active and standby switching.
2. method according to claim 1 is characterized in that, said active and standby switching condition comprises:
A kind of in switching when satisfying preset load, switching by the time of setting.
3. method according to claim 1 is characterized in that, said modify instruction comprises:
First modify instruction or second modify instruction, said first modify instruction are used to improve the priority of the IP address of the standby server corresponding with domain name, and said second modify instruction is used to delete the main IP address with server corresponding with domain name.
4. method according to claim 1 is characterized in that, the method that produces modify instruction comprises:
The master when moving, detects self working state with server;
Said main learning according to said operating state judgement with server produces said modify instruction when self satisfying said active and standby switching condition.
5. method according to claim 1 is characterized in that, the method that produces modify instruction comprises:
The independent detection device detects main operating state with server;
Said independent detection device produces said modify instruction detecting said master when breaking down with server.
6. a main/standby switching method is characterized in that, comprising:
Receive modify instruction, and according to said modify instruction, the domain name of corresponding modification storage and the corresponding relation of IP address are to realize active and standby switching.
7. a server is characterized in that, comprising:
Judge module is used to detect main operating state with server, and according to said operating state, judges whether said master satisfies preset active and standby switching condition with server;
The server instruction generation module; Be used for when said master satisfies said active and standby switching condition with server; Produce modify instruction, and said modify instruction is transferred to name server, so that the domain name server is according to said modify instruction; The domain name of storing in the corresponding modification domain name server and the corresponding relation of IP address are realized active and standby switching.
8. an independent detection device is characterized in that, comprising:
State detection module is used to detect coupled main operating state with server;
Command generation module; Be used for when detecting said master and break down with server; Produce modify instruction, and said modify instruction is transferred to name server, so that the domain name server is according to said modify instruction; The domain name of storing in the corresponding modification domain name server and the corresponding relation of IP address are realized active and standby switching.
9. a name server is characterized in that, comprising:
Revise the unit, be used to receive modify instruction, and according to said modify instruction, the domain name of corresponding modification storage and the corresponding relation of IP address are to realize active and standby switching.
10. an active and standby switched system is characterized in that, comprising:
Be in the main main server of using with state; Said master comprises judge module and server command generation module with server; Said judge module is used to detect main operating state with server, and judges according to said operating state whether said master satisfies the active and standby switching condition of presetting with server, and said server instruction generation module is used for when satisfying said active and standby switching condition; Produce modify instruction, and said modify instruction is transferred to name server;
Be in the standby server of stand-by state;
Name server comprises the modification unit, is used to receive modify instruction, and according to said modify instruction, the domain name of corresponding modification storage and the corresponding relation of IP address are to realize active and standby switching.
11. system according to claim 10 is characterized in that, said active and standby switched system also comprises:
The independent detection device; Said independent detection device comprises: state detection module and command generation module; Said state detection module is used to detect coupled main operating state with server, and said command generation module is used for when said master breaks down with server, produces modify instruction; And said modify instruction transferred to name server; So that the domain name server is according to said modify instruction, the domain name of storing in the corresponding modification domain name server and the corresponding relation of IP address are realized active and standby switching.
CN201210227485.9A 2012-07-03 2012-07-03 Main/standby switching method, equipment and system Expired - Fee Related CN102739453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210227485.9A CN102739453B (en) 2012-07-03 2012-07-03 Main/standby switching method, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210227485.9A CN102739453B (en) 2012-07-03 2012-07-03 Main/standby switching method, equipment and system

Publications (2)

Publication Number Publication Date
CN102739453A true CN102739453A (en) 2012-10-17
CN102739453B CN102739453B (en) 2015-07-29

Family

ID=46994283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210227485.9A Expired - Fee Related CN102739453B (en) 2012-07-03 2012-07-03 Main/standby switching method, equipment and system

Country Status (1)

Country Link
CN (1) CN102739453B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179136A (en) * 2013-04-22 2013-06-26 南京铱迅信息技术有限公司 Saturation distribution type denial-of-service attack method and saturation distribution type denial-of-service attack system in defense dynamic website
CN103677974A (en) * 2013-09-26 2014-03-26 北京工业大学 Robot middleware naming service self-stabilizing method
CN104317208A (en) * 2014-10-17 2015-01-28 安徽立卓智能电网科技有限公司 Method for user machine for automatically identifying switch between active director and standby director
CN106452926A (en) * 2016-12-12 2017-02-22 北京云端智度科技有限公司 Network flow load balancing method
CN106506281A (en) * 2016-11-24 2017-03-15 深圳市金溢科技股份有限公司 Vehicle toll communication test method, the network equipment and system
CN107204873A (en) * 2017-05-04 2017-09-26 网宿科技股份有限公司 A kind of method and relevant device for switching target domain name resolution server
CN108900572A (en) * 2018-05-31 2018-11-27 康键信息技术(深圳)有限公司 Primary database domain name method for handover control, computer equipment and storage medium
CN108933842A (en) * 2017-05-24 2018-12-04 贵州白山云科技有限公司 A kind of method and device for realizing DNS dynamic IP service
CN109254876A (en) * 2018-09-11 2019-01-22 郑州云海信息技术有限公司 The management method and device of database in cloud computing system
CN109257229A (en) * 2018-10-25 2019-01-22 网宿科技股份有限公司 A kind of main/standby switching method and device
CN110391928A (en) * 2018-04-20 2019-10-29 华为技术有限公司 A kind of communication means and equipment executing active-standby switch using electronic switch
CN110768848A (en) * 2019-10-31 2020-02-07 杭州迪普科技股份有限公司 Method and device for switching main server and standby server
CN111082903A (en) * 2018-10-22 2020-04-28 大唐移动通信设备有限公司 Method and device for switching main server and standby server
CN111200667A (en) * 2019-12-18 2020-05-26 网宿科技股份有限公司 Domain name resolution method, authoritative domain name server and local domain name server

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585402A (en) * 2003-08-19 2005-02-23 华为技术有限公司 Method for sharing load
CN101150439A (en) * 2007-09-25 2008-03-26 华为技术有限公司 A method, system and device for realizing master/slave switching
CN101902360A (en) * 2010-07-28 2010-12-01 中兴通讯股份有限公司 Method for synchronizing information between master equipment and standby equipment and server
CN102104471A (en) * 2009-12-21 2011-06-22 中兴通讯股份有限公司 Condition-based main/standby switching method and device in redundancy backup system
CN102265555A (en) * 2011-05-31 2011-11-30 华为技术有限公司 Conversion method between an main communicational equipment and a spare communicational equipment, the communicational equipments and a service request equipment
CN102265556A (en) * 2011-05-31 2011-11-30 华为技术有限公司 Conversion method between an main communicational equipment and a spare communicational equipment, the communicational equipments and a service request equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585402A (en) * 2003-08-19 2005-02-23 华为技术有限公司 Method for sharing load
CN101150439A (en) * 2007-09-25 2008-03-26 华为技术有限公司 A method, system and device for realizing master/slave switching
CN102104471A (en) * 2009-12-21 2011-06-22 中兴通讯股份有限公司 Condition-based main/standby switching method and device in redundancy backup system
CN101902360A (en) * 2010-07-28 2010-12-01 中兴通讯股份有限公司 Method for synchronizing information between master equipment and standby equipment and server
CN102265555A (en) * 2011-05-31 2011-11-30 华为技术有限公司 Conversion method between an main communicational equipment and a spare communicational equipment, the communicational equipments and a service request equipment
CN102265556A (en) * 2011-05-31 2011-11-30 华为技术有限公司 Conversion method between an main communicational equipment and a spare communicational equipment, the communicational equipments and a service request equipment

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179136B (en) * 2013-04-22 2016-01-20 南京铱迅信息技术股份有限公司 The method and system of saturated distributed denial of service attack in defence dynamic website
CN103179136A (en) * 2013-04-22 2013-06-26 南京铱迅信息技术有限公司 Saturation distribution type denial-of-service attack method and saturation distribution type denial-of-service attack system in defense dynamic website
CN103677974A (en) * 2013-09-26 2014-03-26 北京工业大学 Robot middleware naming service self-stabilizing method
CN104317208B (en) * 2014-10-17 2017-08-25 安徽立卓智能电网科技有限公司 A kind of method that subscriber computer automatic identification commands machine active-standby switch
CN104317208A (en) * 2014-10-17 2015-01-28 安徽立卓智能电网科技有限公司 Method for user machine for automatically identifying switch between active director and standby director
CN106506281A (en) * 2016-11-24 2017-03-15 深圳市金溢科技股份有限公司 Vehicle toll communication test method, the network equipment and system
CN106506281B (en) * 2016-11-24 2019-12-03 深圳市金溢科技股份有限公司 Vehicle toll communication test method, the network equipment and system
CN106452926A (en) * 2016-12-12 2017-02-22 北京云端智度科技有限公司 Network flow load balancing method
CN107204873B (en) * 2017-05-04 2020-07-10 网宿科技股份有限公司 Method for switching target domain name resolution server and related equipment
CN107204873A (en) * 2017-05-04 2017-09-26 网宿科技股份有限公司 A kind of method and relevant device for switching target domain name resolution server
CN108933842A (en) * 2017-05-24 2018-12-04 贵州白山云科技有限公司 A kind of method and device for realizing DNS dynamic IP service
CN110391928A (en) * 2018-04-20 2019-10-29 华为技术有限公司 A kind of communication means and equipment executing active-standby switch using electronic switch
CN110391928B (en) * 2018-04-20 2022-01-18 华为技术有限公司 Communication method and device for executing main/standby switching by using electronic switch
CN108900572A (en) * 2018-05-31 2018-11-27 康键信息技术(深圳)有限公司 Primary database domain name method for handover control, computer equipment and storage medium
CN108900572B (en) * 2018-05-31 2022-08-09 康键信息技术(深圳)有限公司 Main database domain name switching control method, computer equipment and storage medium
CN109254876A (en) * 2018-09-11 2019-01-22 郑州云海信息技术有限公司 The management method and device of database in cloud computing system
CN111082903A (en) * 2018-10-22 2020-04-28 大唐移动通信设备有限公司 Method and device for switching main server and standby server
CN109257229B (en) * 2018-10-25 2021-08-06 网宿科技股份有限公司 Main/standby switching method and device
CN109257229A (en) * 2018-10-25 2019-01-22 网宿科技股份有限公司 A kind of main/standby switching method and device
CN110768848A (en) * 2019-10-31 2020-02-07 杭州迪普科技股份有限公司 Method and device for switching main server and standby server
CN111200667A (en) * 2019-12-18 2020-05-26 网宿科技股份有限公司 Domain name resolution method, authoritative domain name server and local domain name server

Also Published As

Publication number Publication date
CN102739453B (en) 2015-07-29

Similar Documents

Publication Publication Date Title
CN102739453A (en) Master-standby switching method, device and system
CN202798798U (en) High availability system based on cloud computing technology
CN102346779B (en) Distributed file system and master control node backup method
CN106059791B (en) Link switching method of service in storage system and storage device
CN104243265A (en) Gateway control method, device and system based on virtual machine migration
CN102882704B (en) Link protection method in the soft reboot escalation process of a kind of ISSU and equipment
CN103166811A (en) Multi-active detection (MAD) detection method and device
CN102752093B (en) Based on the data processing method of distributed file system, equipment and system
CN103581225A (en) Distributed system node processing task method
CN101150439A (en) A method, system and device for realizing master/slave switching
CN104158707A (en) Method and device of detecting and processing brain split in cluster
CN104468521A (en) Online migration method, device and system
CN103458013A (en) Streaming media server cluster load balancing system and balancing method
CN110958151B (en) Keep-alive detection method, keep-alive detection device, node, storage medium and communication system
CN102437933A (en) Fault tolerance system and method of server
CN102870374B (en) Load-sharing method and apparatus, and veneer,
EP3993346A1 (en) Method and device for distributed data storage
CN106874142B (en) Real-time data fault-tolerant processing method and system
CN103067277A (en) Method of building control channel, forwarding point (FP) and controller
CN103152390A (en) Method and device and nodes and system for node configuration of distributed storage system
CN103546315A (en) System, method and equipment for backing up DHCP (dynamic host configuration protocol) server
CN105429799A (en) Server backup method and device
CN109254876A (en) The management method and device of database in cloud computing system
CN102591717A (en) Method, device and system for processing service information of access device and virtual device
CN103188098A (en) Method, system and device for disaster recovery switching

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150729

Termination date: 20170703