CN105634779B - The operation processing method and device of master/slave device - Google Patents

The operation processing method and device of master/slave device Download PDF

Info

Publication number
CN105634779B
CN105634779B CN201410614104.1A CN201410614104A CN105634779B CN 105634779 B CN105634779 B CN 105634779B CN 201410614104 A CN201410614104 A CN 201410614104A CN 105634779 B CN105634779 B CN 105634779B
Authority
CN
China
Prior art keywords
equipment
host apparatus
stand
link
connectivity
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.)
Active
Application number
CN201410614104.1A
Other languages
Chinese (zh)
Other versions
CN105634779A (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.)
Nanjing ZTE New Software Co Ltd
Original Assignee
Nanjing ZTE New Software 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 Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
Priority to CN201410614104.1A priority Critical patent/CN105634779B/en
Priority to PCT/CN2015/073275 priority patent/WO2016070530A1/en
Publication of CN105634779A publication Critical patent/CN105634779A/en
Application granted granted Critical
Publication of CN105634779B publication Critical patent/CN105634779B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Hardware Redundancy (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of operation processing method of master/slave device and devices, wherein, the above method includes: after determining host apparatus and the first stand-by equipment lost contact, host apparatus detects the connectivity of link of the host apparatus and other equipment, the first stand-by equipment detects the connectivity of link of first stand-by equipment and other equipment simultaneously, wherein, the other equipment are the equipment in addition to host apparatus and stand-by equipment in the host apparatus and group system where first stand-by equipment;Host apparatus is handled the operation of host apparatus and/or the first stand-by equipment according to the testing result of connectivity of link and the first stand-by equipment is handled the operation of host apparatus and/or the first stand-by equipment according to the testing result of connectivity of link.By adopting the above technical scheme, it solves in the related technology due to not distinguishing node failure or link failure, and leads to the problem of reducing system stability, and then achieved the effect that enhance system stability.

Description

The operation processing method and device of master/slave device
Technical field
The present invention relates to the communications fields, in particular to the operation processing method and device of a kind of master/slave device.
Background technique
In group system, what is generally carried would generally be configured to the form of host apparatus and stand-by equipment.Wherein, primary Equipment mainly executes correlation function;And stand-by equipment exists as the backup of host apparatus.It is spare to set when host apparatus delay machine It is standby to upgrade to the related work that host apparatus takes over former host apparatus, not interrupting for business is maintained, and when stand-by equipment is delayed When machine, host apparatus can reselect out new stand-by equipment.Based on the above-mentioned technical proposal, host apparatus and spare red shellfish association With the stability of the system of enhancing.
In the prior art, keep-alive generally is carried out using heartbeat message between the host apparatus and stand-by equipment of group system.When When host apparatus and stand-by equipment node keep-alive are failed, node failure or link failure not can confirm that, and then cause to lead Developed with equipment and stand-by equipment according to the path of mistake, when the heartbeat message that can not receive opposite end more than certain time threshold value, then Think that exception has occurred in other side, and starts stand-by equipment and upgrade to host apparatus or reselect the operation of stand-by equipment.But It is that after the keep-alive link between host apparatus and stand-by equipment flash occurs and restores, system may be evolved into " double masters " (i.e. stand-by equipment can also be switched to host apparatus, but former host apparatus is still in operation).The relevant technologies currently on the market In cluster device occur it is double main after be typically all to restart to be restored by reforming system, but the steady of system can be reduced in this way It is qualitative, so that user experience is poor.
For in the related technology, after host apparatus and stand-by equipment lost contact, due to cannot distinguish between node failure or Link failure, and then stand-by equipment can be converted directly into host apparatus and cause two host apparatus and run in systems, reduce System stability, so that the problem of user experience difference, not yet puts forward effective solutions.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of operation processing method of master/slave device and devices.
According to an aspect of the invention, there is provided a kind of operation processing method of master/slave device, comprising: primary determining After equipment and the first stand-by equipment lost contact, the host apparatus detects the connectivity of link of the host apparatus and other equipment, together The first stand-by equipment of Shi Suoshu detects the connectivity of link of first stand-by equipment and other equipment, wherein the other equipment For in the group system where the host apparatus and first stand-by equipment, except the host apparatus and described first spare Equipment except equipment;The host apparatus is according to the testing result of the connectivity of link to the host apparatus and/or institute The operation for stating the first stand-by equipment is handled and first stand-by equipment is according to the testing result of the connectivity of link The operation of the host apparatus and/or first stand-by equipment is handled.
Preferably, the host apparatus is according to the testing result of the connectivity of link to the host apparatus and/or institute The operation for stating the first stand-by equipment is handled, comprising:, then will be described when it is connection that the host apparatus, which detects the link, First stand-by equipment is changed to the second stand-by equipment;It is when the host apparatus, which detects the link, not to be connected to, then pre- second The host apparatus is forbidden to run in section of fixing time.
Preferably, first stand-by equipment is according to the testing result of the connectivity of link to the host apparatus and institute The operation for stating the first stand-by equipment is handled, comprising: when it is connection that first stand-by equipment, which detects the link, is then sentenced Whether the host apparatus that breaks is currently running;The host apparatus not at runtime, using first stand-by equipment as master Use equipment.
Preferably, when the host apparatus is currently running, then forbid in third predetermined amount of time described first spare Equipment operation.
Preferably, judge whether the host apparatus is currently running by least one of mode: by described primary Third party outside equipment and first stand-by equipment informs;By first stand-by equipment in forwarding surface message transmission channel Specify information detection.
Preferably, first stand-by equipment is according to the testing result of the connectivity of link to the host apparatus and institute The operation for stating the first stand-by equipment is handled, comprising: when first stand-by equipment, which detects the link, not to be connected to, is then existed First stand-by equipment is forbidden to run in first predetermined amount of time.
Preferably, host apparatus and the first stand-by equipment lost contact are determined, comprising: when the host apparatus and/or described When one stand-by equipment does not receive keep alive Packet, the host apparatus and the first stand-by equipment lost contact are determined.
According to another aspect of the present invention, a kind of operation processing system of master/slave device is additionally provided, comprising: primary to set It is standby, for detecting the host apparatus and being connected to the link of other equipment after determining host apparatus and the first stand-by equipment lost contact Property, and the operation of the host apparatus and/or the first stand-by equipment is carried out according to the testing result of the connectivity of link Processing, wherein the other equipment are described to remove in the group system where the host apparatus and first stand-by equipment Equipment except host apparatus and first stand-by equipment;First stand-by equipment, for being detected in the host apparatus When the host apparatus and the connectivity of link of other equipment, detects first stand-by equipment and be connected to the link of other equipment Property, and the operation according to the testing result of the connectivity of link to the host apparatus and/or first stand-by equipment It is handled.
Preferably, the host apparatus is also used to when the host apparatus detects the link to be connected to, then will be described First stand-by equipment is changed to the second stand-by equipment;And when the host apparatus detects the link and is not connected to, then the The host apparatus is forbidden to run in two predetermined amount of time.
Preferably, first stand-by equipment is also used to when first stand-by equipment detects the link to be connected to, Then judge whether the host apparatus is currently running;The host apparatus not at runtime, first stand-by equipment is made For host apparatus.
Through the invention, using after host apparatus and stand-by equipment lost contact, host apparatus and stand-by equipment detect simultaneously Respectively with the connectivity of link of other equipment in group system, and then according to the testing result of the connectivity of link detected to master The technical solution handled with equipment and/or stand-by equipment is solved and is lost in the related technology in host apparatus and stand-by equipment After connection, due to cannot distinguish between node failure or link failure, and then stand-by equipment can be made being converted directly into host apparatus It is run in systems at two host apparatus, reduces system stability, so that the problem of user experience difference, and then reach System stability is enhanced, the effect of the user experience is improved degree.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the operation processing method of master/slave device according to an embodiment of the present invention;
Fig. 2 is the structural block diagram of group system according to the preferred embodiment of the invention;
Fig. 3 is the processing schematic detected after link connection situation according to the master/slave device of the preferred embodiment of the present invention;
Fig. 4 is the structural block diagram of the operation processing system of master/slave device according to an embodiment of the present invention;
Fig. 5 is another structural block diagram of the operation processing system of master/slave device according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
In the related technology, due to when host apparatus and stand-by equipment keep-alive failure when, not can confirm that be equipment fault or Link failure, and then cause host apparatus and stand-by equipment that may develop according to the path of mistake, i.e., stand-by equipment directly switches For host apparatus, leads to the presence of two host apparatus in systems, provide following technical scheme.
In order to solve the above-mentioned technical problem, a kind of operation processing method of master/slave device, Fig. 1 are provided in the present embodiment It is the flow chart of the operation processing method of master/slave device according to an embodiment of the present invention, as shown in Figure 1, the process includes following step It is rapid:
Step S102, after determining host apparatus and the first stand-by equipment lost contact, host apparatus detect the host apparatus with The connectivity of link of other equipment, while the first stand-by equipment detects first stand-by equipment and is connected to the link of other equipment Property, wherein above-mentioned other equipment are in above-mentioned host apparatus and group system where the first stand-by equipment, primary set except above-mentioned Equipment except standby and above-mentioned stand-by equipment;
Step S104, host apparatus are spare to host apparatus and/or first according to the testing result of above-mentioned connectivity of link The operation of equipment handled and above-mentioned first stand-by equipment according to the testing result of above-mentioned connectivity of link to above-mentioned primary The operation of equipment and/or above-mentioned first stand-by equipment is handled.
By above-mentioned each step, using after host apparatus and stand-by equipment lost contact, host apparatus and stand-by equipment are same When the respective connectivity of link with other equipment in group system of detection, and then according to the detection knot of the connectivity of link detected The technical solution that fruit handles host apparatus and/or stand-by equipment, after host apparatus and stand-by equipment lost contact, due to not Can distinguish is node failure or link failure, so stand-by equipment can be converted directly into host apparatus cause two it is primary Equipment is run in systems, reduces system stability, so that the problem of user experience difference, and then reached the system of enhancing Stability, the effect that the user experience is improved spends.
For the technical solution that step S104 is embodied, can be embodied from the following aspects in the embodiment of the present invention:
(1) above-mentioned host apparatus is according to the testing result of above-mentioned connectivity of link to above-mentioned host apparatus and/or above-mentioned The operation of one stand-by equipment is handled, comprising: when it is connection that above-mentioned host apparatus, which detects above-mentioned link, then by above-mentioned first Stand-by equipment is changed to the second stand-by equipment;When above-mentioned host apparatus, which detects above-mentioned link, not to be connected to, then in the second pre- timing Between forbid in section above-mentioned host apparatus to run.
(2) first stand-by equipments are according to the testing result of above-mentioned connectivity of link to above-mentioned host apparatus and above-mentioned first standby It is handled with the operation of equipment, comprising: when it is connection that above-mentioned first stand-by equipment, which detects above-mentioned link, then judge above-mentioned master Whether it is currently running with equipment;Above-mentioned host apparatus not at runtime, using above-mentioned first stand-by equipment as host apparatus, When above-mentioned host apparatus is currently running, then above-mentioned first stand-by equipment is forbidden to run in third predetermined amount of time.
(3) above-mentioned first stand-by equipment is according to the testing result of above-mentioned connectivity of link to above-mentioned host apparatus and above-mentioned The operation of one stand-by equipment is handled, comprising: when above-mentioned first stand-by equipment, which detects above-mentioned link, not to be connected to, then first Above-mentioned first stand-by equipment is forbidden to run in predetermined amount of time.
It should be noted that above-mentioned (1)-(3), i.e. host apparatus are according to connectivity of link to host apparatus and/or spare The operation of equipment handled and stand-by equipment according to connectivity of link to the operation of host apparatus and/or stand-by equipment into The process of row processing, can be in conjunction with judgement, the deterministic process of the deterministic process of host apparatus and stand-by equipment not contradiction, Two processes can coexist.
In fact, host apparatus side and stand-by equipment side are to detect chain simultaneously after host apparatus and stand-by equipment lost contact The connectivity on road, and when the connectivity of host apparatus detection link, when it is connection that above-mentioned host apparatus, which detects above-mentioned link, Then above-mentioned first stand-by equipment is changed to the second stand-by equipment by above-mentioned host apparatus, i.e. link is but primary there is no failure Equipment and stand-by equipment still lost contact are needed replacing and spare are set for second then illustrate above-mentioned first stand-by equipment there are failure It is standby;When above-mentioned host apparatus, which detects above-mentioned link, not to be connected to, then above-mentioned host apparatus is forbidden to transport in the second predetermined amount of time Row.
Stand-by equipment judges whether host apparatus is currently running can be there are many mode, and one in the embodiment of the present invention can Select in example, judge whether above-mentioned host apparatus is currently running by least one of mode: by above-mentioned host apparatus and Third party outside above-mentioned first stand-by equipment informs;By above-mentioned first stand-by equipment in the specified of forwarding surface message transmission channel Infomation detection.
Optionally, in step s 102, it can determine that host apparatus and the first stand-by equipment lose by executing following procedure Connection: when above-mentioned host apparatus and/or above-mentioned first stand-by equipment do not receive keep alive Packet, above-mentioned host apparatus and upper is determined State the first stand-by equipment lost contact.
In conclusion host apparatus and stand-by equipment calculate itself based on the connected state with other equipment in system The connectivity of link, wherein connectivity value TURE (T) illustrates that the link between host apparatus and stand-by equipment is connection, Or FALSE (F), illustrate that the link between host apparatus and stand-by equipment is not connected to.
Also, two-way keep-alive, two-way detection, to guarantee the both link ends same time are used between host apparatus and stand-by equipment The state change of interior perception keep-alive link.Either direction keep-alive failure, then determine host apparatus and stand-by equipment lost contact.
Above-mentioned technical proposal provided in an embodiment of the present invention: after host apparatus and stand-by equipment lost contact, master/slave device meter The connectivity of itself link is calculated, calculated result is likely to occur following 4 kinds of situations, as shown in following table one:
Table one
Main (T) Main (F)
Standby (T) TT FT
Standby (F) TF FF
Above-mentioned four kinds of situations are briefly described below:
A) TT, master/slave device detection of connectivity are all TURE (T);
Host apparatus selects new stand-by equipment;And whether stand-by equipment is in place by the 3rd side's mechanism detection host apparatus, Detection result host apparatus is currently running, and stand-by equipment suspends use within a preset period of time, and detection result does not have for host apparatus Have operation then stand-by equipment switch to host apparatus.
B) FT, host apparatus detection of connectivity are FALSE (F), and stand-by equipment detection of connectivity is TURE (T);
Main pause within a preset time uses;Stand-by equipment detects whether host apparatus is currently running by the 3rd side's mechanism, Detection result host apparatus is currently running then stand-by equipment pause and uses, and detection result host apparatus is not currently running then spare Equipment switchs to host apparatus.
C) TF, host apparatus detection of connectivity are TURE (T), and stand-by equipment detection of connectivity is FALSE (F);
Host apparatus selects new stand-by equipment;Stand-by equipment pause uses.
D) FF, active and standby detection of connectivity are all FALSE (F);
Host apparatus and stand-by equipment pause use.
Above-mentioned four kinds of situations can be summarized probably are as follows: no matter which side detection connectivity is in host apparatus and stand-by equipment FASLE (F), operation suspension within a predetermined period of time;No matter which side detection connectivity is in host apparatus and stand-by equipment TURE (T), host apparatus then select new stand-by equipment;Whether just stand-by equipment then passes through the 3rd side's mechanism detection host apparatus It is running, detection result master is currently running then stand-by equipment pause and uses, and in operation, then stand-by equipment does not turn detection result master For host apparatus.
In order to better understand the technical solution after above-mentioned host apparatus and stand-by equipment lost contact, below in conjunction with preferred implementation Example is illustrated, but does not limit the embodiment of the present invention:
Firstly, the group system to the preferred embodiment of the present invention is briefly described, as shown in Fig. 2, group system according to It is divided into several equipment.For the convenience of description, only describing 3 equipment in Fig. 2.Host apparatus and the two-way guarantor of stand-by equipment It is living, two-way detection.Other equipment carry out detection of connectivity in host apparatus and stand-by equipment and system.
Wherein, host apparatus and stand-by equipment and other equipment progress detection of connectivity, use in system are message based Testing mechanism can be used but be not limited to following scheme: communication link detection, such as TCP link, TIPC link etc., asynchronous message Keep-alive, since above scheme is that common technological means, the embodiment of the present invention repeat no more this in the related technology.
Fig. 3 is the processing schematic detected after link connection situation according to the master/slave device of the preferred embodiment of the present invention, such as Shown in Fig. 3, technical solution illustrated in Figure 3 can be summarized are as follows: heartbeat message is mutually sent out between host apparatus and stand-by equipment, it is primary to set Standby and stand-by equipment respectively receives and checks the message received.After detecting active and standby lost contact by keep alive Packet, detection of connectivity Oneself is restarted for FASLE (F) person;Detection of connectivity is TRUE (T) person, and new stand-by equipment is then selected if it is host apparatus, Then pass through whether the 3rd side's mechanism detection host apparatus is currently running if it is stand-by equipment, detection result host apparatus is being transported The pause of capable then stand-by equipment uses, and the non-host apparatus of detection result is not currently running, and stand-by equipment switchs to host apparatus.
It should be noted that whether " in place " in Fig. 3 can be understood as running, " suicide " be can be understood as predetermined It is not used in period.
In embodiments of the present invention, a kind of operation processing system of master/slave device is additionally provided, Fig. 4 is according to of the invention real The structural block diagram of the operation processing system of the master/slave device of example is applied, as shown in Figure 4, comprising:
Host apparatus 40, for detecting the host apparatus after determining 42 lost contact of host apparatus 40 and the first stand-by equipment 40 with the connectivity of link of other equipment 44, and according to the testing result of the connectivity of link to host apparatus 40 and/or The operation of first stand-by equipment 42 is handled, wherein other equipment 44 are 42 place of host apparatus 40 and the first stand-by equipment Group system in, the equipment in addition to host apparatus 40 and the first stand-by equipment 42;
First stand-by equipment 42, for detecting the connectivity of link of host apparatus 40 and other equipment 44 in host apparatus 40 When, the connectivity of link of the first stand-by equipment of detection 42 and other equipment 44, and the detection knot according to the connectivity of link Fruit handles the operation of host apparatus 40 and/or the first stand-by equipment 42.
It is primary using after host apparatus and stand-by equipment lost contact by the comprehensive function of equipment each in above system Equipment and stand-by equipment detect the respectively connectivity of link with other equipment in group system simultaneously, and then according to the chain detected The technical solution that the testing result of path connectedness handles host apparatus and/or stand-by equipment, in host apparatus and spare After equipment lost contact, due to cannot distinguish between node failure or link failure, and then stand-by equipment can be converted directly into it is primary Equipment causes two host apparatus and runs in systems, reduces system stability, so that the problem of user experience difference, into And reached and enhanced system stability, the effect that the user experience is improved spends.
Optionally, as shown in figure 5, host apparatus 40 is also used to when host apparatus 40 detects above-mentioned link to be connected to, then First stand-by equipment 42 is changed to the second stand-by equipment 46;And when above-mentioned host apparatus detects above-mentioned link and is not connected to, Above-mentioned host apparatus is then forbidden to run in the second predetermined amount of time;First stand-by equipment 42 is also used to when the first stand-by equipment 42 When detecting above-mentioned link to be connected to, then judge whether host apparatus 40 is currently running;Host apparatus 40 not at runtime, by One stand-by equipment 42 is used as host apparatus.
In conclusion the embodiment of the present invention has reached following technical effect: it is direct to solve stand-by equipment in the related technology Caused by switching the problem of " double masters ", the actual state of keep-alive link is correctly detected, and formulates the unified evolution road of system Diameter avoids equipment from individually developing, and to prevent the generation of above-mentioned double main phenomenons, improves the stability of system.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage Medium (such as read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk, CD) in, including some instructions are used so that a terminal device (can be mobile phone, computer, service Device or the network equipment etc.) execute method described in each embodiment of the present invention.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Object be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of operation processing method of master/slave device characterized by comprising
After determining host apparatus and the first stand-by equipment lost contact, the host apparatus detects the host apparatus and other equipment Connectivity of link, while first stand-by equipment detects the connectivity of link of first stand-by equipment and other equipment, wherein The other equipment are in the host apparatus and group system where first stand-by equipment, except the host apparatus and Equipment except first stand-by equipment;
The host apparatus spare sets the host apparatus and/or described first according to the testing result of the connectivity of link Standby operation is handled and first stand-by equipment primary is set according to the testing result of the connectivity of link to described The operation of standby and/or described first stand-by equipment is handled.
2. the method according to claim 1, wherein detection of the host apparatus according to the connectivity of link As a result the operation of the host apparatus and/or first stand-by equipment is handled, comprising:
When it is connection that the host apparatus, which detects the link, then first stand-by equipment is changed to second and spare set It is standby;
When the host apparatus, which detects the link, not to be connected to, then the host apparatus is forbidden to transport in the second predetermined amount of time Row.
3. the method according to claim 1, wherein first stand-by equipment is according to the connectivity of link Testing result handles the operation of the host apparatus and first stand-by equipment, comprising:
When it is connection that first stand-by equipment, which detects the link, then judge whether the host apparatus is currently running;
The host apparatus not at runtime, using first stand-by equipment as host apparatus.
4. according to the method described in claim 3, it is characterized in that,
When the host apparatus is currently running, then first stand-by equipment is forbidden to run in third predetermined amount of time.
5. according to the described in any item methods of claim 3 or 4, which is characterized in that judge institute by least one of mode State whether host apparatus is currently running:
It is informed by the third party outside the host apparatus and first stand-by equipment;
Specify information by first stand-by equipment in forwarding surface message transmission channel detects.
6. the method according to claim 1, wherein first stand-by equipment is according to the connectivity of link Testing result handles the operation of the host apparatus and first stand-by equipment, comprising:
When first stand-by equipment, which detects the link, not to be connected to, then forbid in the first predetermined amount of time described first standby It is run with equipment.
7. method according to any one of claims 1 to 4, which is characterized in that determine host apparatus and the first stand-by equipment Lost contact, comprising:
When the host apparatus and/or first stand-by equipment do not receive keep alive Packet, determine the host apparatus and The first stand-by equipment lost contact.
8. a kind of operation processing system of master/slave device characterized by comprising
Host apparatus, for detecting the host apparatus and other equipment after determining host apparatus and the first stand-by equipment lost contact Connectivity of link, and according to the testing result of the connectivity of link to the host apparatus and/or the first stand-by equipment Operation handled, wherein the other equipment are the host apparatus and the cluster system where first stand-by equipment Equipment in system, in addition to the host apparatus and first stand-by equipment;
First stand-by equipment, for detecting the connectivity of link of the host apparatus and other equipment in the host apparatus When, detect the connectivity of link of first stand-by equipment and other equipment, and the detection knot according to the connectivity of link Fruit handles the operation of the host apparatus and/or first stand-by equipment.
9. system according to claim 8, which is characterized in that the host apparatus is also used to detect when the host apparatus When the link is connection, then first stand-by equipment is changed to the second stand-by equipment;And when the host apparatus is examined When surveying the link and not being connected to, then the host apparatus is forbidden to run in the second predetermined amount of time.
10. system according to claim 8, which is characterized in that first stand-by equipment is also used to when described first is standby Detecting the link with equipment is when being connected to, then to judge whether the host apparatus is currently running;Do not exist in the host apparatus When operation, using first stand-by equipment as host apparatus.
CN201410614104.1A 2014-11-04 2014-11-04 The operation processing method and device of master/slave device Active CN105634779B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410614104.1A CN105634779B (en) 2014-11-04 2014-11-04 The operation processing method and device of master/slave device
PCT/CN2015/073275 WO2016070530A1 (en) 2014-11-04 2015-02-25 Method and system for processing operation of primary and standby device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410614104.1A CN105634779B (en) 2014-11-04 2014-11-04 The operation processing method and device of master/slave device

Publications (2)

Publication Number Publication Date
CN105634779A CN105634779A (en) 2016-06-01
CN105634779B true CN105634779B (en) 2019-09-03

Family

ID=55908461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410614104.1A Active CN105634779B (en) 2014-11-04 2014-11-04 The operation processing method and device of master/slave device

Country Status (2)

Country Link
CN (1) CN105634779B (en)
WO (1) WO2016070530A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019036892A1 (en) * 2017-08-22 2019-02-28 深圳瀚飞科技开发有限公司 Remote communication detection system and detection method for online monitoring platform
CN107688547B (en) * 2017-08-23 2020-06-16 苏州浪潮智能科技有限公司 Method and system for switching between main controller and standby controller
CN107579860A (en) * 2017-09-29 2018-01-12 新华三技术有限公司 Node electoral machinery and device
CN109728981A (en) * 2019-03-19 2019-05-07 江苏汇智达信息科技有限公司 A kind of cloud platform fault monitoring method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207408A (en) * 2006-12-22 2008-06-25 中兴通讯股份有限公司 Apparatus and method of synthesis fault detection for main-spare taking turns
CN101674199A (en) * 2009-09-22 2010-03-17 中兴通讯股份有限公司 Method for realizing switching during network fault and finders
CN101729290A (en) * 2009-11-04 2010-06-09 中兴通讯股份有限公司 Method and device for realizing business system protection
CN102480423A (en) * 2010-11-30 2012-05-30 中兴通讯股份有限公司 Method and system for protecting layer 2 tunneling protocol (L2TP) network
CN103560955A (en) * 2013-10-24 2014-02-05 华为技术有限公司 Method and device for switching between redundancy devices

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8094569B2 (en) * 2008-12-05 2012-01-10 Cisco Technology, Inc. Failover and failback of communication between a router and a network switch
US8244125B2 (en) * 2009-01-21 2012-08-14 Calix, Inc. Passive optical network protection switching
CN102742222B (en) * 2011-06-29 2015-05-13 华为技术有限公司 Method and apparatus for maintaining connectivity of transmission lines
US8675479B2 (en) * 2011-07-12 2014-03-18 Tellabs Operations, Inc. Methods and apparatus for improving network communication using ethernet switching protection
CN103931139B (en) * 2013-03-19 2017-02-15 华为技术有限公司 Method and device for redundancy protection, and device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207408A (en) * 2006-12-22 2008-06-25 中兴通讯股份有限公司 Apparatus and method of synthesis fault detection for main-spare taking turns
CN101674199A (en) * 2009-09-22 2010-03-17 中兴通讯股份有限公司 Method for realizing switching during network fault and finders
CN101729290A (en) * 2009-11-04 2010-06-09 中兴通讯股份有限公司 Method and device for realizing business system protection
CN102480423A (en) * 2010-11-30 2012-05-30 中兴通讯股份有限公司 Method and system for protecting layer 2 tunneling protocol (L2TP) network
CN103560955A (en) * 2013-10-24 2014-02-05 华为技术有限公司 Method and device for switching between redundancy devices

Also Published As

Publication number Publication date
CN105634779A (en) 2016-06-01
WO2016070530A1 (en) 2016-05-12

Similar Documents

Publication Publication Date Title
CN105933407B (en) method and system for realizing high availability of Redis cluster
CN105634779B (en) The operation processing method and device of master/slave device
US9071513B2 (en) Path switch-back method and apparatus in transport network
EP3142011A1 (en) Anomaly recovery method for virtual machine in distributed environment
CN102882704B (en) Link protection method in the soft reboot escalation process of a kind of ISSU and equipment
CN111385107B (en) Main/standby switching processing method and device for server
CN103684835A (en) Link fault reporting method and processing method, and transmission node and primary node
WO2016095344A1 (en) Link switching method and device, and line card
CN111142801B (en) Distributed storage system network sub-health detection method and device
CN102571458A (en) Switching method and device for tunnel protection sets
CN113535480A (en) Data disaster recovery system and method
CN105472418B (en) A kind of set-top-box system abnormality restoration methods and set-top box
CN105515970A (en) Method and device for transmitting message
CN104468221B (en) Server failure hot change-over method, device and system
CN106789139B (en) Multipoint fault processing method and device
CN102238036A (en) User session backup handover method and system
JP2013223077A (en) Chassis type switch
CN107453995B (en) Designated router election method, device, router and communication system
US9667567B2 (en) Relay device
US10491421B2 (en) Ring protection network module
CN105743704B (en) A kind of failure analysis methods and device of communication link
CN113765787B (en) Fault processing method and device
US20240195679A1 (en) Smart online link repair and job scheduling in machine learning supercomputers
KR100769764B1 (en) Method for switch management in communication system
CN101616440B (en) Multilevel double-machine system and switching method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20190717

Address after: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68

Applicant after: Nanjing Zhongxing Software Co., Ltd.

Address before: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Applicant before: ZTE Corporation

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant