CN102739453B - Main/standby switching method, equipment and system - Google Patents

Main/standby switching method, equipment and system Download PDF

Info

Publication number
CN102739453B
CN102739453B CN201210227485.9A CN201210227485A CN102739453B CN 102739453 B CN102739453 B CN 102739453B CN 201210227485 A CN201210227485 A CN 201210227485A CN 102739453 B CN102739453 B CN 102739453B
Authority
CN
China
Prior art keywords
server
domain name
standby
modify instruction
active
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.)
Expired - Fee Related
Application number
CN201210227485.9A
Other languages
Chinese (zh)
Other versions
CN102739453A (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
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

Abstract

The present invention relates to network communication field, disclose a kind of main/standby switching method, equipment and system, wherein, in described main/standby switching method, preset active-standby switch condition, when the state corresponding with described active-standby switch condition at described primary server meets described active-standby switch condition, or during described primary server fail, namely by revising the corresponding relation of domain name and the IP address stored in domain name server (DNS) Server accordingly, after making the request of CSCF sending domain name analysis, obtain the IP address of former standby server, impel the server-assignment route that CSCF is corresponding to amended IP address, thus realize the switching of active/standby server, because described active-standby switch condition is arranged according to different application conditions, make the main/standby switching method disclosed in this programme can be applicable to different application scenarioss, improve the flexibility of active/standby link switchover.

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, in resource-sharing, message interchange etc., plays an important role, therefore also day by day improves the reliability requirement of communication system.In order to improve the validity of communication system, active/standby link switchover technology can be adopted.
The Organization Chart of active-standby switch 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 being wherein in master state is primary server A S-1, and the AS being in stand-by state is standby server AS-2.When carrying out network service, CSCF (CSCF, Call Session Control Function) to name server (DNS Server, Domain Name System Server) sending domain name analysis request DNS query, to obtain the net association (IP of described primary server, Internet Protocol) address, and send call request INVITE information to primary server, realize described CSCF by route assignment to described primary server, to set up data transmission link.In data transmission procedure, described CSCF continues to send SIP OPTION to described primary server and calls out heartbeat message, within a period of time, repeatedly send described INVITE information and all ask failure, or described SIP OPTION information is when can not receive response always, then think described primary server fail, domain name server DNS Server can by the IP address transfer of standby server to CSCF, and then perform the switching of main/slave link, set up new data transmission link by described standby server.
But, inventor finds in the research process of the application, current active/standby link switchover technology, can only stop, when namely breaking down in primary server heartbeat, just can carry out the switching of main/slave link, but under the application scenarios of more complicated, when the load as primary server is higher, the switching of main/slave link cannot be performed, that is, existing active/standby link switchover technology cannot 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, have in existing active/standby link switchover technology to solve, could can only to switch when primary server fail, thus the problem of complicated application scenarios can not be adapted to, specific embodiments is as follows:
The invention discloses a kind of main/standby switching method, specifically comprise following two steps:
Detect the operating state of primary server, to judge whether to meet the active-standby switch condition preset; Described active-standby switch condition comprises: carry out switching when meeting the load preset, switch by setting-up time or primary server fail time switch in one;
When needs carry out active-standby switch, produce modify instruction, and described modify instruction is transferred to name server, to make domain name server according to described modify instruction, the domain name stored in corresponding amendment domain name server and the corresponding relation of IP address, realize active-standby switch.
The described modify instruction produced comprises the first modify instruction or the second modify instruction, described first modify instruction is for improving the priority of the IP address of the standby server corresponding with domain name, and described second modify instruction is for deleting the IP address of the primary server corresponding with domain name.
The method producing modify instruction comprises two kinds of implementations, and in the first implementation, primary server operationally, detects the operating state of self;
Described primary server according to described operating state judge to learn self meet described active-standby switch condition time, produce described modify instruction;
In the second implementation, independent detection device detects the operating state of primary server;
Described independent detection device, when detecting described primary server fail, produces described modify instruction.
In addition, the invention also discloses a kind of main/standby switching method, comprising:
Receive modify instruction, and according to described modify instruction, the corresponding relation of the domain name that corresponding amendment stores and IP address, to realize active-standby switch.
Accordingly, the invention also discloses a kind of server, described server comprises:
Judge module, for detecting the operating state of primary server, and according to described operating state, judges whether described primary server meets the active-standby switch condition preset;
Server instruction generation module, for when described primary server meets described active-standby switch condition, produce modify instruction, and described modify instruction is transferred to name server, to make domain name server according to described modify instruction, the domain name stored in corresponding amendment domain name server and the corresponding relation of IP address, realize active-standby switch.
Meanwhile, the invention also discloses a kind of independent detection device, comprising:
State detection module, for detecting the operating state of coupled primary server;
Command generation module, for when described primary server fail being detected, produce modify instruction, and described modify instruction is transferred to name server, to make domain name server according to described modify instruction, the domain name stored in corresponding amendment domain name server and the corresponding relation of IP address, realize active-standby switch.
In addition, the invention also discloses a kind of name server, comprising:
Amendment unit, for receiving modify instruction, and according to described modify instruction, the corresponding relation of the domain name that corresponding amendment stores and IP address, to realize active-standby switch.
Meanwhile, the invention also discloses a kind of active-standby switch system, comprising:
Be in the primary server of master state, described primary server comprises judge module and server command generation module, described judge module is for detecting the operating state of primary server, and judge whether described primary server meets the active-standby switch condition preset according to described operating state, described server instruction generation module is used for when meeting described active-standby switch condition, produce modify instruction, and described modify instruction is transferred to name server;
Be in the standby server of stand-by state;
Name server, comprises amendment unit, and for receiving modify instruction, and according to described modify instruction, the corresponding relation of the domain name that corresponding amendment stores and IP address, to realize active-standby switch.
In addition, described active-standby switch system can also comprise:
Independent detection device, described independent detection device comprises: state detection module and command generation module, described state detection module is for detecting the operating state of coupled primary server, described command generation module is used for when described primary server fail, produce modify instruction, and described modify instruction is transferred to name server, to make domain name server according to described modify instruction, the domain name stored in corresponding amendment domain name server and the corresponding relation of IP address, realize active-standby switch.
By main/standby switching method disclosed in such scheme, preset active-standby switch condition, when the state corresponding with described active-standby switch condition at described primary server meets described active-standby switch condition, namely by revising the corresponding relation of domain name and the IP address stored in name server accordingly, after making the request of CSCF sending domain name analysis, obtain the IP address of former standby server, impel the server-assignment route that CSCF is corresponding to amended IP address, thus realize the switching of active/standby server, because described active-standby switch condition is arranged according to different application conditions, make the main/standby switching method disclosed in this programme can be applicable to different application scenarioss, improve the flexibility of active/standby link switchover.
Especially, according to main/standby switching method disclosed in the present application, meet described active-standby switch condition at described primary server, or when breaking down, then can produce modify instruction in real time, complete the switching of main/slave link, compared in the scheme of prior art, need all to ask failure in repeatedly INVITE information, or when SIP OPTION information can not receive response always, just carry out the mode of active-standby switch, improve the real-time of active-standby switch and the continuity of transfer of data.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the actual Organization Chart realizing active-standby switch;
Fig. 2 is a kind of main/standby switching method workflow schematic diagram disclosed in the embodiment of the present invention;
The structural representation of Fig. 3 a kind of server disclosed in the embodiment of the present invention;
The structural representation of Fig. 4 a kind of independent detection device disclosed in the embodiment of the present invention;
The structural representation of Fig. 5 a kind of active-standby switch system disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The invention discloses a kind of main/standby switching method, have in existing active/standby link switchover technology to solve, could can only to switch when primary server fail, thus the problem of complicated application scenarios can not be adapted to, its workflow schematic diagram as shown in Figure 2, comprising:
Step S1, detect the operating state of primary server, to judge whether to meet the active-standby switch condition preset; In prior art, only at primary server fail, namely when heartbeat stops, just can carry out the switching of main/slave link, in order to adapt to more complicated application scenarios, make active-standby switch more flexible, in this programme, pre-set active-standby switch condition, and judge whether described primary server meets described default active-standby switch condition.Wherein, described active-standby switch condition is following one: carry out when meeting the load preset switching, switching by the time of setting, or switch under other situations, such as, switch when described active-standby switch condition is and meets the load preset, then need to be the CPU of server in advance, or other component settings load value, when described primary server meets this load, then the load that described primary server assumes is higher is described, should active-standby switch be carried out; When described active-standby switch condition be by setting time switch time, the time of described primary server work is when meeting the time of described setting, then illustrating that described primary server has worked the long period, in order to improve the useful life of primary server, should active-standby switch be carried out.But be not limited to above-mentioned active-standby switch condition, under different application demands, other active-standby switch condition can be set, simultaneously, in order to realize the switching between primary application server and application server for subsequent use, need to judge whether primary server meets the active-standby switch condition preset.
Step S2, when needs carry out active-standby switch, produce modify instruction, and described modify instruction is transferred to domain name server (DNS) Server, to make domain name server DNS Server according to described modify instruction, the domain name stored in corresponding amendment domain name server DNS Server and the corresponding relation of IP address, realize active-standby switch.
By main/standby switching method disclosed in such scheme, when needs carry out active-standby switch, namely by revising the corresponding relation of domain name and the IP address stored in name server accordingly, to make CSCF after the request of domain name server DNS Server sending domain name analysis, obtain the IP address of former standby server, impel the server-assignment route that CSCF is corresponding to amended IP address, thus realize the switching of active/standby server, because described active-standby switch condition is arranged according to different application conditions, make the main/standby switching method disclosed in this programme can be applicable to different application scenarioss, improve the flexibility of active/standby link switchover.
In step s 2, described modify instruction comprises: the first modify instruction or the second modify instruction, described first modify instruction is for improving the priority of the IP address of the standby server corresponding with domain name, and described second modify instruction is for deleting the IP address of the primary server corresponding with domain name.Under normal operating conditions, in domain name server DNS Server, generally store the priority that domain name, the IP address corresponding with domain name and described IP address are corresponding, the IP address of described primary server is in higher priority, the IP address of described standby server is in lower priority, when described CSCF is to described DNS Server sending domain name analysis request, can obtain and be in higher priority, the i.e. IP address of primary server, and by route assignment to described primary server.When needs carry out active-standby switch, described first modify instruction is for improving the priority of described standby server IP address, thus after making the request of described CSCF sending domain name analysis, obtain the IP address of described active service, and by route assignment to described standby server, to realize the switching of main/slave link.In addition, described second modify instruction for deleting the IP address of the primary server corresponding with domain name, thus after making the request of described CSCF sending domain name analysis, can only obtain the IP address of described active service, and by route assignment to described standby server, to realize the switching of main/slave link.
Such as, setting primary server is AS-1, and standby server is AS-2, its IP address is respectively 10.125.12.30 and 10.125.23.30, before not performing active-standby switch, the IP address of AS-1 has higher priority, and the two common domain name is as.example.com.When CSCF CSCF will access as.example.com, need to domain name server (DNS) Server sending domain name analysis request DNS query, domain name server can return to CSCF the IP address being in higher priority, that is, domain name server can by the IP address of AS-1,10.125.12.30 be sent to CSCF, described CSCF can according to the IP address received, send call request INVITE information to described primary server A S-1, and set up the data transmission link between described primary server A S-1.
When needs carry out active-standby switch, then produce modify instruction, and described modify instruction is transferred to domain name server (DNS) Server, domain name server DNS Server, according to described modify instruction, revises the corresponding relation of domain name and the IP address stored in domain name server DNS Server accordingly.Described modify instruction is: the first modify instruction improving the priority of the standby server IP address corresponding with domain name, or, delete the second modify instruction of the IP address of the primary server corresponding with domain name.When described modify instruction is the first modify instruction, then the priority of the IP address of standby server AS-2 can improve by domain name server, to make its priority higher than the IP address of described AS-1.When described modify instruction is the second modify instruction, then delete the IP address of the described AS-1 stored in domain name server.By described first modify instruction that receives or described second modify instruction, described CSCF is after domain name server sending domain name analysis request DNS query, the IP address 10.125.23.30 of described standby server AS-2 can be got, described CSCF can according to the IP address received, call request INVITE information is sent to described standby server AS-2, and the data transmission link set up between described standby server AS-2, thus realize active-standby switch.
Wherein, need the situation of carrying out active-standby switch at least to comprise two kinds of situations, a kind of situation is that the operating state of primary server meets described default active-standby switch condition; Another kind of situation is that primary server does not meet described active-standby switch condition, but during described primary server fail, also needs to carry out active-standby switch.Such as, set described primary server and carry out active-standby switch after the time of satisfied setting, when the operating time of described primary server meets the time of setting, or the operating time does not meet the time of setting, but described primary server there occurs fault, all described modify instruction will be produced, to realize active-standby switch under both of these case.
Therefore, in step s 2, the method producing modify instruction specifically comprises two kinds, wherein,
Method one: primary server operationally, detects the operating state of self;
Described primary server according to described operating state judge to learn self meet described active-standby switch condition time, produce described modify instruction;
Method two: independent detection device detects the operating state of primary server;
Described independent detection device, when detecting described primary server fail, produces modify instruction.
Wherein, described primary server operationally, if when judging self to meet described active-standby switch condition, described modify instruction can be produced, to realize follow-up active-standby switch.But described primary server likely breaks down, thus cannot judge self whether to meet described active-standby switch condition, then by described independent detection device when described primary server fail being detected, described modify instruction can be produced.
Wherein, described independent detection device is for running and maintenance, and operation and the part in maintenance (O & M, operation and maintenance) system, independent of described primary server, for the state of monitoring server.
Especially, if judge self whether to meet described active-standby switch condition by described primary server always, and produce described modify instruction, the burden of described primary server can be increased the weight of, in this case, described independent detection device then can be selected to detect the described primary server state corresponding with switching condition, and produce revision directive.In this case, described independent detection device can detect the operating state of described primary server, and when judging that described primary server meets described active-standby switch condition, produces described modify instruction.
Main/standby switching method disclosed in this programme, preset active-standby switch condition, and when needs carry out active-standby switch, by producing modify instruction, and described modify instruction is transferred in domain name server DNS Server, with the corresponding relation of the domain name stored in corresponding modify domain name server DNS Server and IP address, make described CSCF by route assignment to described standby server, thus realize active-standby switch, because described active-standby switch condition is arranged according to different application conditions, make the main/standby switching method disclosed in this programme can be applicable to different application scenarioss, improve the flexibility of active/standby link switchover.
Especially, according to main/standby switching method disclosed in the present application, meet described active-standby switch condition at described primary server, or when breaking down, then can produce modify instruction in real time, complete the switching of main/slave link, compared in the scheme of prior art, need all to ask failure in repeatedly INVITE information, or when SIP OPTION information can not receive response always, just carry out the mode of active-standby switch, improve the real-time of active-standby switch and the continuity of transfer of data.
In addition, this programme also discloses a kind of main/standby switching method, mainly for domain name server (DNS) Server, comprising:
Receive modify instruction, and according to described modify instruction, the corresponding relation of the domain name that corresponding amendment stores and IP address, to realize active-standby switch.
In domain name server DNS Server, receive modify instruction, and according to described modify instruction, revise the domain name of described storage and the corresponding relation of IP address, can make described CSCF after the request of sending domain name analysis, obtain in domain name server DNS Server, the IP address of the standby server of storage, realizes active-standby switch.
In addition, this programme also discloses a kind of server, and its structural representation as shown in Figure 3, comprising: judge module 11 and server command generation module 12, wherein,
Described judge module 11 for detecting the operating state of primary server, and according to described operating state, judges whether described primary server meets the active-standby switch condition preset.Under different application scenarioss, different active-standby switch conditions can be set, carry out switching when described active-standby switch condition comprises the load meeting and preset, switch by setting-up time in one, but to be not limited thereto;
Described server instruction generation module 12, for when described primary server meets described active-standby switch condition, produce modify instruction, and described modify instruction is transferred to name server, to make domain name server DNS Server according to described modify instruction, the domain name stored in corresponding amendment domain name service DNSServer device and the corresponding relation of IP address, realize active-standby switch.
In addition, structural representation shown in Figure 4, this programme also discloses a kind of independent detection device, and described independent detection device comprises: state detection module 21 and command generation module 22, wherein,
Described state detection module 21, for detecting the operating state of coupled primary server;
Described command generation module 22, for when described primary server fail, produce modify instruction, and transfer to name server, to make domain name server according to described modify instruction, the domain name stored in corresponding amendment domain name server and the corresponding relation of IP address, realize active-standby switch.
Especially, described command generation module 22, the operating state of the described primary server that also can detect according to described state detection module 21, judge whether described primary server meets the active-standby switch condition preset, and when described primary server meets described active-standby switch condition, produce described modify instruction, realize active-standby switch.
In addition, this programme also discloses a kind of domain name server (DNS) Server, comprising: amendment unit, described amendment unit is for receiving modify instruction, and according to described modify instruction, the corresponding relation of the domain name that corresponding amendment stores and IP address, to realize active-standby switch.
In addition, this programme also discloses a kind of active-standby switch system, structural representation shown in Figure 5, and described active-standby switch condition comprises: the primary server 1 being in master state, the standby server 2 being in stand-by state and name server 3, wherein,
Described primary server 1 at least comprises judge module 11 and server command generation module 12, described judge module 11 is for detecting the operating state of primary server, and judge whether described primary server meets the active-standby switch condition preset according to described operating state, described server instruction generation module 12 is for when meeting described active-standby switch condition, produce modify instruction, and described modify instruction is transferred to name server 3;
Domain name server 3 at least comprises amendment unit, and described amendment unit is for receiving modify instruction, and according to described modify instruction, the corresponding relation of the domain name that corresponding amendment stores and IP address, to realize active-standby switch.
In addition, in order to also can active-standby switch be realized when described primary server 1 breaks down, described active-standby switch system also comprises: independent detection device 4, wherein, described independent detection device 4 at least comprises sentences state detection module 21 and command generation module 22, described state detection module 21 is for detecting the operating state of coupled primary server, described command generation module 22 is for when described primary server fail, produce modify instruction, and described modify instruction is transferred to name server 3, to make domain name server 3 according to described modify instruction, the domain name stored in corresponding amendment domain name server and the corresponding relation of IP address, realize active-standby switch.
By active-standby switch system disclosed in such scheme, when the state corresponding with described active-standby switch condition at described primary server meets described active-standby switch condition, or during described primary server fail, namely by revising the corresponding relation of domain name and the IP address stored in domain name server (DNS) Server accordingly, after making the request of CSCF sending domain name analysis, obtain the IP address of former standby server, impel the server-assignment route that CSCF is corresponding to amended IP address, thus realize active-standby switch, because described active-standby switch condition is arranged according to different application conditions, make the main/standby switching method disclosed in this programme can be applicable to different application scenarioss, improve the flexibility of active/standby link switchover.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. a main/standby switching method, is characterized in that, comprising:
Detect the operating state of primary server, to judge whether to meet the active-standby switch condition preset, wherein, the operating state of described primary server is the operating time of primary server, and described active-standby switch condition is switch by the time of setting;
When needs carry out active-standby switch, produce modify instruction, and described modify instruction is transferred to name server, to make domain name server according to described modify instruction, the domain name stored in corresponding amendment domain name server and the corresponding relation of IP address, to make CSCF CSCF after the request of domain name server DNS Server sending domain name analysis, obtain the IP address of standby server, realize active-standby switch.
2. method according to claim 1, is characterized in that, described modify instruction comprises:
First modify instruction or the second modify instruction, described first modify instruction is for improving the priority of the IP address of the standby server corresponding with domain name, and described second modify instruction is for deleting the IP address of the primary server corresponding with domain name.
3. method according to claim 1, is characterized in that, the method producing modify instruction comprises:
Primary server operationally, detects the operating state of self;
Described primary server according to described operating state judge to learn self meet described active-standby switch condition time, produce described modify instruction.
4. method according to claim 1, is characterized in that, the method producing modify instruction comprises:
Independent detection device detects the operating state of primary server;
Described independent detection device, when detecting described primary server fail, produces described modify instruction.
5. a main/standby switching method, is characterized in that, comprising:
Receive modify instruction, and according to described modify instruction, the corresponding relation of the domain name that corresponding amendment stores and IP address, to make CSCF CSCF after the request of domain name server DNS Server sending domain name analysis, obtain the IP address of standby server, realize active-standby switch, produce when the operating time of described modify instruction primary server for CSCF detects meets the time of setting.
6. a server, is characterized in that, comprising:
Judge module, for detecting the operating state of primary server, and according to described operating state, judge whether described primary server meets the active-standby switch condition preset, wherein, the operating state of described primary server is the operating time of primary server, and described active-standby switch condition is switch by the time of setting;
Server instruction generation module, for when described primary server meets described active-standby switch condition, produce modify instruction, and described modify instruction is transferred to name server, to make domain name server according to described modify instruction, the domain name stored in corresponding amendment domain name server and the corresponding relation of IP address, to make CSCF CSCF after the request of domain name server DNS Server sending domain name analysis, obtain the IP address of standby server, realize active-standby switch.
7. an independent detection device, is characterized in that, comprising:
Whether state detection module, meeting the time of setting, detecting the operating state of coupled primary server for the operating time by judging primary server;
Command generation module, for when described primary server fail being detected, produce modify instruction, and described modify instruction is transferred to name server, to make domain name server according to described modify instruction, the domain name stored in corresponding amendment domain name server and the corresponding relation of IP address, to make CSCF CSCF after the request of domain name server DNS Server sending domain name analysis, obtain the IP address of standby server, realize active-standby switch.
8. a name server, is characterized in that, comprising:
Amendment unit, for receiving modify instruction, and according to described modify instruction, the corresponding relation of the domain name that corresponding amendment stores and IP address, to make CSCF CSCF after the request of domain name server DNS Server sending domain name analysis, obtain the IP address of standby server, realize active-standby switch, produce when the operating time of described modify instruction primary server for CSCF detects meets the time of setting.
9. an active-standby switch system, is characterized in that, comprising:
Be in the primary server of master state, described primary server comprises judge module and server command generation module, described judge module is used for the operating state of the primary server of time detecting of the operating time whether satisfied setting by judging primary server, and judge whether described primary server meets the active-standby switch condition preset according to described operating state, described server instruction generation module is used for when meeting described active-standby switch condition, produce modify instruction, and described modify instruction is transferred to name server;
Be in the standby server of stand-by state;
Name server, comprise amendment unit, for receiving modify instruction, and according to described modify instruction, the corresponding relation of the domain name that corresponding amendment stores and IP address, to make CSCF CSCF after the request of domain name server DNS Server sending domain name analysis, obtain the IP address of standby server, to realize active-standby switch.
10. system according to claim 9, is characterized in that, described active-standby switch system also comprises:
Independent detection device, described independent detection device comprises: state detection module and command generation module, described state detection module is for detecting the operating state of coupled primary server, described command generation module is used for when described primary server fail, produce modify instruction, and described modify instruction is transferred to name server, to make domain name server according to described modify instruction, the domain name stored in corresponding amendment domain name server and the corresponding relation of IP address, realize active-standby switch.
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 CN102739453A (en) 2012-10-17
CN102739453B true 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)

Families Citing this family (14)

* 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
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
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
CN108933842B (en) * 2017-05-24 2021-11-30 贵州白山云科技股份有限公司 Method and device for realizing DNS dynamic IP service
CN110391928B (en) * 2018-04-20 2022-01-18 华为技术有限公司 Communication method and device for executing main/standby switching by using electronic switch
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
CN111082903B (en) * 2018-10-22 2021-04-30 大唐移动通信设备有限公司 Method and device for switching main server and standby server
CN109257229B (en) * 2018-10-25 2021-08-06 网宿科技股份有限公司 Main/standby switching method and device
CN110768848B (en) * 2019-10-31 2022-07-01 杭州迪普科技股份有限公司 Method and device for switching main server and standby server
CN111200667B (en) * 2019-12-18 2021-08-10 网宿科技股份有限公司 Domain name resolution method, authoritative domain name server and local domain name server

Citations (5)

* 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
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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104471A (en) * 2009-12-21 2011-06-22 中兴通讯股份有限公司 Condition-based main/standby switching method and device in redundancy backup system

Patent Citations (5)

* 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
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
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

Also Published As

Publication number Publication date
CN102739453A (en) 2012-10-17

Similar Documents

Publication Publication Date Title
CN102739453B (en) Main/standby switching method, equipment and system
US9141491B2 (en) Highly available server system based on cloud computing
CN102137017B (en) Working method and device used for virtual network unit
CN102882704B (en) Link protection method in the soft reboot escalation process of a kind of ISSU and equipment
CN105721318A (en) Method and device for discovering network topology in software defined network SDN (Software Defined Network)
CN103139018B (en) Network card status monitoring under a kind of modulation integral system and TCP communication method
CN105138422A (en) Control method and electronic device
CN103036719A (en) Cross-regional service disaster method and device based on main cluster servers
CN104158707A (en) Method and device of detecting and processing brain split in cluster
CN103944974A (en) Method for processing protocol messages, method for processing faults of controllers and related device
CN102870374B (en) Load-sharing method and apparatus, and veneer,
CN110768840A (en) Control method, device, equipment and storage medium of communication equipment
CN109254876A (en) The management method and device of database in cloud computing system
CN103139033A (en) Primary device redundancy switching method of single main communication control bus
CN106789475A (en) Household electric appliance control method and device
CN101262479B (en) A network file share method, server and network file share system
CN104898435A (en) Home service system, home service system failure handling method, home appliance, and home service system server
CN107528747B (en) Method and device for diagnosing communication state of master station and slave station and computer readable storage medium
CN102891767B (en) A kind of link protection method, network element and system
CN111865632A (en) Switching method of distributed data storage cluster and switching instruction sending method and device
CN105354332A (en) Method and system for implementing mutual standby of database and middleware based on BCP (Batch Communications Program)
CN106534262A (en) Network information system fault switching method
CN105550065A (en) Database server communication management method and device
CN103051484A (en) Method and system for processing session service and session border controller
CN102801542A (en) Communication-gateway-based communication redundancy fault-tolerant 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
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