CN103560955A - Method and device for switching between redundancy devices - Google Patents

Method and device for switching between redundancy devices Download PDF

Info

Publication number
CN103560955A
CN103560955A CN201310507525.XA CN201310507525A CN103560955A CN 103560955 A CN103560955 A CN 103560955A CN 201310507525 A CN201310507525 A CN 201310507525A CN 103560955 A CN103560955 A CN 103560955A
Authority
CN
China
Prior art keywords
equipment
vrrp
link
main
vrrp link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310507525.XA
Other languages
Chinese (zh)
Other versions
CN103560955B (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 CN201310507525.XA priority Critical patent/CN103560955B/en
Publication of CN103560955A publication Critical patent/CN103560955A/en
Application granted granted Critical
Publication of CN103560955B publication Critical patent/CN103560955B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a method and device for switching between redundancy devices. The method for switching between the redundancy devices comprises the steps that a plurality of VRRP links are built between a first device and a second device at the same time, wherein the first device and the second device are redundant to each other; the first VRRP link is built through a heartbeat cable, the second VRRP link is built between the first device and the second device in the mode that a third device serves as a transfer device, and the main-standby state of the first device and the main-standby state of the second device in the first VRRP link and the second VRRP link are monitored; when one VRRP link has a fault, and both the first device and the second device on the fault link serve as main devices at the same time, the main-standby state of the first device and the main-standby state of the second device in another VRRP link without faults are judged, when one device in the two links is in the main device state, the main-standby state of the device in the fault link does not need to be changed, and when the device in the two links is not in the main device state, the device is switched to be a standby device. Due to the fact that the main-standby states of the devices in the fault link are switched, the double-main phenomenon that two main devices exist in the main-standby devices due to the fact that the VRRP link has the fault can be avoided.

Description

Redundance unit changing method and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of redundance unit changing method and device.
Background technology
VRRP(Virtual Router Redundancy Protocol, Virtual Router Redundacy Protocol) for thering is the agreement of local area network (LAN) (as: Ethernet) design of multicast or broadcast-capable.VRRP is organized into a virtual router by the set of router of local area network (LAN), is referred to as a backup group, and in backup group, the state of a router is main (MASTER), and the state of other routers is standby (BACKUP).This virtual router has the IP address of oneself, and the main frame in network just comes to communicate with other networks by this virtual router.If backup group internal state is main router, break down, other state in backup group will be taken over this failed router for the router of backup, and continuation provides route service to the main frame in network.
In prior art, can by this heartbeat, between router, transmit heartbeat message by heartbeat is set between router, to determine the activestandby state of router.
In addition, router, by the functional area being connected with outside network device separately, sends heartbeat message to outside network device, makes outside network device determine the main and standby relation between router according to the heartbeat message receiving.
In actual application, for example, when heartbeat message place link (: heartbeat mouth link or functional area link) breaks down, will cause cannot receiving the heartbeat message as the router transmission of main equipment as the router of stand-by equipment, therefore, stand-by equipment will switch to major state by stand-by state, is called main equipment.Visible, in link, occur the two main situations of VRRP that two equipment are all main equipments, and this situation need to be avoided occurring.
Summary of the invention
A kind of redundance unit changing method and device are provided in the embodiment of the present invention, have avoided in master/slave device because of link occurs fault, and occurred the two main phenomenon of two major state equipment.
In order to solve the problems of the technologies described above, the embodiment of the invention discloses following technical scheme:
First aspect, provides a kind of redundance unit changing method, comprising:
Monitor the activestandby state of the first equipment described in the first Virtual Router Redundacy Protocol VRRP Link State between the first equipment and the second equipment and the 2nd VRRP link and the second equipment, wherein, between described the first equipment and described the second equipment, by heartbeat, set up a described VRRP link, described the first equipment does transfer by the 3rd equipment and described the second equipment is set up described the 2nd VRRP link;
When a described VRRP link occurs fault, make in a described VRRP link, when described the first equipment and described the second equipment are main equipment, judge described the first equipment and the second equipment activestandby state in described the 2nd VRRP link respectively; If described the first equipment is main equipment in described the 2nd VRRP link,, on a described VRRP link, keeping described the first equipment is main equipment, and described the second equipment is switched to stand-by equipment; If described the second equipment is main equipment in described the 2nd VRRP link,, on a described VRRP link, keeping described the second equipment is main equipment, and described the first equipment is switched to stand-by equipment;
When described the 2nd VRRP link occurs fault, make in described the 2nd VRRP link, when described the first equipment and described the second equipment are main equipment, judge described the first equipment and the second equipment activestandby state in a described VRRP link respectively; If described the first equipment is main equipment in a described VRRP link,, on described the 2nd VRRP link, keeping described the first equipment is main equipment, and described the second equipment is switched to stand-by equipment; If described the second equipment is main equipment in a described VRRP link,, on described the 2nd VRRP link, keeping described the second equipment is main equipment, and described the first equipment is switched to stand-by equipment.
In conjunction with above-mentioned first aspect, in the possible implementation of the first, described the first equipment does transfer by the 3rd equipment and described the second equipment is set up described the 2nd VRRP link, comprising:
On described the first equipment and described the second equipment with on the link of described the 3rd equipment connection, create the 2nd VRRP LI(link interface) configuration respectively, on described the 3rd equipment, create the local circuit interconnection CCC of corresponding described the 2nd VRRP LI(link interface) configuration, by the VRRP message between the first equipment described in described CCC transparent transmission and described the second equipment.
In conjunction with above-mentioned first aspect, in the possible implementation of the second, described the first equipment does transfer by the 3rd equipment and described the second equipment is set up described the 2nd VRRP link, comprising:
Between described the first equipment and described the second equipment, configuration, through the channel of described the 3rd equipment, makes described the 3rd equipment by described channel, directly the VRRP message between the first equipment and described the second equipment described in transparent transmission.
In conjunction with above-mentioned first aspect, in the third possible implementation, described the first equipment does transfer by the 3rd equipment and described the second equipment is set up described the 2nd VRRP link, comprising:
Between described the first equipment and described the 3rd equipment, set up a VRRP sublink, between described the second equipment and described the 3rd equipment, set up the 2nd VRRP sublink, a described VRRP sublink is identical with the VRRP message priority in described the 2nd VRRP sublink.
Second aspect, provides a kind of redundance unit switching device shifter, comprising:
The first link arranges module, for set up a described VRRP link by heartbeat between the first equipment and the second equipment;
The second link arranges module, does transfer and described the second equipment is set up described the 2nd VRRP link for described the first equipment by the 3rd equipment;
Monitoring modular, for monitoring the activestandby state of the first equipment described in the first Virtual Router Redundacy Protocol VRRP Link State between the first equipment and the second equipment and the 2nd VRRP link and the second equipment;
Fisrt fault processing module, for working as a described VRRP link occurs fault, make in a described VRRP link, when described the first equipment and described the second equipment are main equipment, judge described the first equipment and the second equipment activestandby state in described the 2nd VRRP link respectively; If described the first equipment is main equipment in described the 2nd VRRP link,, on a described VRRP link, keeping described the first equipment is main equipment, and described the second equipment is switched to stand-by equipment; If described the second equipment is main equipment in described the 2nd VRRP link,, on a described VRRP link, keeping described the second equipment is main equipment, and described the first equipment is switched to stand-by equipment;
The second fault processing module, for working as described the 2nd VRRP link occurs fault, make in described the 2nd VRRP link, when described the first equipment and described the second equipment are main equipment, judge described the first equipment and the second equipment activestandby state in a described VRRP link respectively; If described the first equipment is main equipment in a described VRRP link,, on described the 2nd VRRP link, keeping described the first equipment is main equipment, and described the second equipment is switched to stand-by equipment; If described the second equipment is main equipment in a described VRRP link,, on described the 2nd VRRP link, keeping described the second equipment is main equipment, and described the first equipment is switched to stand-by equipment.
In conjunction with above-mentioned second aspect, in the possible implementation of the first, the set-up mode that described the second link arranges module is:
On described the first equipment and described the second equipment with on the link of described the 3rd equipment connection, create the 2nd VRRP LI(link interface) configuration respectively, on described the 3rd equipment, create the local circuit interconnection CCC of corresponding described the 2nd VRRP LI(link interface) configuration, by the VRRP message between the first equipment described in described CCC transparent transmission and described the second equipment.
In conjunction with above-mentioned second aspect, in the possible implementation of the second, the set-up mode that described the second link arranges module is:
Between described the first equipment and described the second equipment, configuration, through the channel of described the 3rd equipment, makes described the 3rd equipment by described channel, directly the VRRP message between the first equipment and described the second equipment described in transparent transmission.
In conjunction with above-mentioned second aspect, in the third possible implementation, the set-up mode that described the second link arranges module is:
Between described the first equipment and described the 3rd equipment, set up a VRRP sublink, between described the second equipment and described the 3rd equipment, set up the 2nd VRRP sublink, a described VRRP sublink is identical with the VRRP message priority in described the 2nd VRRP sublink.
In the embodiment of the present invention, each other between first equipment and the second equipment of redundancy, set up many VRRP links: by heartbeat, set up a described VRRP link simultaneously, and, described the first equipment does transfer by the 3rd equipment and described the second equipment is set up described the 2nd VRRP link, by monitoring the activestandby state of the first equipment described in a described VRRP link and described the 2nd VRRP link and the second equipment, when a VRRP link occurs fault, make at the first equipment described in this faulty link and the second equipment during simultaneously for main equipment, judge the activestandby state in the VRRP link that the first equipment and the second equipment do not break down at another respectively, if two be master status in link, in faulty link, do not need to change the activestandby state of this equipment, otherwise, this equipment is switched to stand-by equipment, by the activestandby state of the equipment in this faulty link is switched, thereby avoid in master/slave device because of VRRP link occurs fault, and there is the two main phenomenon of two main equipments.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of a redundance unit changing method embodiment provided by the invention;
Fig. 2 is link connection schematic diagram provided by the invention;
Fig. 3 is the connection diagram of a kind of the 2nd VRRP link provided by the invention;
Fig. 4 is the connection diagram of the second provided by the invention the 2nd VRRP link;
Fig. 5 is the connection diagram of the third the 2nd VRRP link provided by the invention;
Fig. 6 is a redundance unit switching device shifter example structure figure provided by the invention.
Embodiment
In order to make those skilled in the art person understand better the technical scheme in the embodiment of the present invention, and the above-mentioned purpose of the embodiment of the present invention, feature and advantage can be become apparent more, below in conjunction with accompanying drawing, technical scheme in the embodiment of the present invention is described in further detail.
Referring to Fig. 1, the flow process for a kind of redundance unit changing method embodiment provided by the invention, specifically can comprise:
S101, monitor the VRRP(Virtual Router Redundancy Protocol between the first equipment and the second equipment, Virtual Router Redundacy Protocol) activestandby state of the first equipment and the second equipment described in Link State and the 2nd VRRP link, wherein, between described the first equipment and described the second equipment, by heartbeat, set up a described VRRP link, described the first equipment does transfer by the 3rd equipment and described the second equipment is set up described the 2nd VRRP link.
As shown in Fig. 2 link connection schematic diagram, between the first equipment (SR1) and the second equipment (SR2), set up a VRRP link (as shown in VRRP1 in Fig. 2), this VRRP1 is configured by the heartbeat between SR1 and SR2, between SR1 and SR2, can send mutually, receive heartbeat message, by the transmission of this heartbeat message, make SR1 and SR2 can be informed in this VRRP1 activestandby state each other; Simultaneously, between SR1 and SR2, by the 3rd equipment (SR3), do transfer and set up an other link, i.e. the 2nd VRRP link (VRRP2), heartbeat message between SR1 and SR2 carries out transfer by SR3, by the transmission of this heartbeat message, make SR1 and SR2 can be informed in this VRRP2 activestandby state each other.
In the embodiment of the present invention, the combination of the dual VRRP link by a VRRP link and the 2nd VRRP link, the activestandby state that decision device is final.By a VRRP link and the 2nd VRRP link, can obtain SR1 and the SR2 activestandby state in every link, and the activestandby state in two links is monitored to SR1 and SR2 respectively.
S102, when a described VRRP link occurs fault, make in a described VRRP link, when described the first equipment and described the second equipment are main equipment, judge described the first equipment and the second equipment activestandby state in described the 2nd VRRP link respectively; If described the first equipment is main equipment in described the 2nd VRRP link,, on a described VRRP link, keeping described the first equipment is main equipment, and described the second equipment is switched to stand-by equipment; If described the second equipment is main equipment in described the 2nd VRRP link,, on a described VRRP link, keeping described the second equipment is main equipment, and described the first equipment is switched to stand-by equipment.
In this S102, when a VRRP link occurs fault, make in a VRRP link, when the first equipment and the second equipment are main equipment, need to continue judgement in the 2nd VRRP link not breaking down, the first equipment and the second equipment activestandby state separately.If the first equipment is main equipment in the 2nd VRRP link,, on a VRRP link, keeping the first equipment is main equipment, and the second equipment is switched to stand-by equipment; And if the second equipment is main equipment in the 2nd VRRP link,, on a VRRP link, keeping the second equipment is main equipment, and the first equipment is switched to stand-by equipment.Thereby, avoid occurring two main situations in the VRRP link breaking down.
S103, when described the 2nd VRRP link occurs fault, make in described the 2nd VRRP link, when described the first equipment and described the second equipment are main equipment, judge described the first equipment and the second equipment activestandby state in a described VRRP link respectively; If described the first equipment is main equipment in a described VRRP link,, on described the 2nd VRRP link, keeping described the first equipment is main equipment, and described the second equipment is switched to stand-by equipment; If described the second equipment is main equipment in a described VRRP link,, on described the 2nd VRRP link, keeping described the second equipment is main equipment, and described the first equipment is switched to stand-by equipment.
In this S103, when the 2nd VRRP link occurs fault, make in the 2nd VRRP link, when the first equipment and the second equipment are main equipment, need to continue judgement in the VRRP link not breaking down, the first equipment and the second equipment activestandby state separately.If the first equipment is main equipment in a VRRP link,, on the 2nd VRRP link, keeping the first equipment is main equipment, and the second equipment is switched to stand-by equipment; And if the second equipment is main equipment in a VRRP link,, on the 2nd VRRP link, keeping the second equipment is main equipment, and the first equipment is switched to stand-by equipment.Thereby, avoid occurring two main situations in the 2nd VRRP link breaking down.
In the embodiment of the present invention, each other between first equipment and the second equipment of redundancy, set up many VRRP links: by heartbeat, set up a described VRRP link simultaneously, and, described the first equipment does transfer by the 3rd equipment and described the second equipment is set up described the 2nd VRRP link, by monitoring the activestandby state of the first equipment described in a described VRRP link and described the 2nd VRRP link and the second equipment, when a VRRP link occurs fault, make at the first equipment described in this faulty link and the second equipment during simultaneously for main equipment, judge the activestandby state in the VRRP link that the first equipment and the second equipment do not break down at another respectively, if two be master status in link, in faulty link, do not need to change the activestandby state of this equipment, otherwise, this equipment is switched to stand-by equipment, by the activestandby state of the equipment in this faulty link is switched, thereby avoid in master/slave device because of VRRP link occurs fault, and there is the two main phenomenon of two main equipments.
It should be noted that, in specific implementation process, described the first equipment is done to transfer by the 3rd equipment and described the second equipment is set up described the 2nd VRRP link, can comprise following several implementation:
(1) on the link of described the first equipment and described the second equipment and described the 3rd equipment connection, create respectively the 2nd VRRP LI(link interface) configuration, on described the 3rd equipment, create the local CCC(Circuit Cross Connect of corresponding described the 2nd VRRP LI(link interface) configuration, local circuit interconnection), by the VRRP message between the first equipment described in described CCC transparent transmission and described the second equipment.
As shown in Figure 3, on the VRRP2 link being connected with SR3 with SR2 at SR1 respectively, create interface configuration, on SR3, create the local CCC of corresponding VRRP2 LI(link interface) configuration, by the message transmitting on CCC transparent transmission VRRP2 link.
(2) between described the first equipment and described the second equipment, configuration, through the channel of described the 3rd equipment, makes described the 3rd equipment by described channel, directly the VRRP message between the first equipment and described the second equipment described in transparent transmission.
As shown in Figure 4, between SR1 and SR2, configure specified path through the channel of SR3, for example: LDP(Label Distribution Protocol, label distribution protocol), TE(Traffic Engineering, traffic engineering) form such as, the configuration of the upper establishment of SR3 the corresponding interface, not perception VRRP2 message on SR3, directly by the message transmitting on this channel transmitting VRRP2 link.
(3) between described the first equipment and described the 3rd equipment, set up a VRRP sublink, between described the second equipment and described the 3rd equipment, set up the 2nd VRRP sublink, a described VRRP sublink is identical with the VRRP message priority in described the 2nd VRRP sublink.
As shown in Figure 5, SR3 supports the transmission of VRRP message priority, be between SR3 and SR1, SR2, to configure respectively a VRRP sublink (VRRP2-1) and the 2nd VRRP sublink (VRRP2-2), VRRP2-1 and VRRP2-2 configuration VRRP message priority transmit, the VRRP message priority that VRRP2-1 sends equals the priority of the VRRP message that VRRP2-2 receives, the VRRP message priority that VRRP2-2 sends equals the priority of the VRRP message that VRRP2-1 receives, thereby indirectly realizes the VRRP2 link of functional area.In this kind of situation, in VRRP2 link, the ID of the VRRP message that SR1 and SR2 send can be not identical.
In above-mentioned two kinds of implementations, SR3 is the message transmitting on transparent transmission VRRP2 link, that is: SR3 does not make any modification to the VRRP message receiving, and directly forwards.And in this kind of implementation, suppose that SR3 receives the VRRP message that SR1 sends, SR3 need to construct new VRRP message and be sent to SR2.And in the VRRP message re-constructing out at SR3, it is consistent that the heartbeat message carrying and SR3 receive heartbeat message entrained in the message that SR1 sends.
Under this kind of implementation, SR3 often receives a VRRP message in SR1 direction, just preserves current message priority, and to SR2 direction, sends the VRRP message of a same priority; SR3 often receives a VRRP message in SR2 direction, just preserves current priority, and to SR1 direction, sends the VRRP message of a same priority.
During concrete enforcement, suppose that SR1 is as main equipment, by SR3, to stand-by equipment SR2, send VRRP message, when SR3 perceives SR3 to the VRRP2-1 link occurs fault between SR1, SR3 will can not receive the VRRP message of SR1 transmission on VRRP2-1 link.On VRRP2-2 link, SR2 can not receive the VRRP message that SR3 sends within a certain period of time, and the overtime master status that becomes.The overtime time that becomes master status of SR2 may be long, and concrete time-out time is relevant with the transmission frequency of VRRP message.In this section of time-out time, the business on VRRP2-2 link may be affected, and for avoiding this impact, should reduce time-out time.Therefore, can by VRRP2-2 link, to SR2, send fast the VRRP message of a minimum heartbeat priority by SR3, thereby trigger SR2, in VRRP2-2 link, become fast master status.The VRRP2-1 of SR3 and VRRP2-2 state can not be simultaneously for standby or be main simultaneously, this situation is error situation, can affect the transmission of business datum in link, need to report corresponding alarm.
Below by form, description taken in conjunction VRRP1 and VRRP2 link, SR1 and SR2 carry out several situations of master/slave switchover.
The principle that table 1SR1 and SR2 carry out master/slave switchover
Figure BDA0000401368330000071
Figure BDA0000401368330000081
In the first situation of table 1, in the first link VRRP1, break down, in the first link VRRP1, occur that SR1 and SR2 are the situation of main equipment simultaneously, activestandby state in conjunction with SR1 and SR2 in the second link VRRP2, due in the second link VRRP2, SR1 is also master status, therefore, SR1 finally should be rendered as master status, and SR2 need to be switched to stand-by equipment state by the state in VRRP1 link.
In the second case of table 1, in the second link VRRP1, break down, in the second link VRRP1, occur that SR1 and SR2 are the situation of main equipment simultaneously, activestandby state in conjunction with SR1 and SR2 in the first link VRRP2, due in the first link VRRP2, SR1 is also master status, therefore, SR1 finally should be rendered as master status, and SR2 need to be switched to stand-by equipment state by the state in VRRP2 link.
In the third situation of table 1, SR1 is master status in the first link VRRP1 and the second link VRRP1, and SR2 is stand-by equipment state in the first link VRRP1 and the second link VRRP1, and this state is normal condition, without carrying out state switching.
Corresponding with redundance unit changing method embodiment provided by the invention, the present invention also provides a kind of redundance unit switching device shifter.
As shown in Figure 6, be the embodiment of a kind of redundance unit switching device shifter provided by the invention, this device specifically can comprise:
The first link arranges module 601, for set up a described VRRP link by heartbeat between the first equipment and the second equipment;
The second link arranges module 602, does transfer and described the second equipment is set up described the 2nd VRRP link for described the first equipment by the 3rd equipment;
Monitoring modular 603, for monitoring the activestandby state of the first equipment described in the first Virtual Router Redundacy Protocol VRRP Link State between the first equipment and the second equipment and the 2nd VRRP link and the second equipment;
Fisrt fault processing module 604, for working as a described VRRP link occurs fault, make in a described VRRP link, when described the first equipment and described the second equipment are main equipment, judge described the first equipment and the second equipment activestandby state in described the 2nd VRRP link respectively; If described the first equipment is main equipment in described the 2nd VRRP link,, on a described VRRP link, keeping described the first equipment is main equipment, and described the second equipment is switched to stand-by equipment; If described the second equipment is main equipment in described the 2nd VRRP link,, on a described VRRP link, keeping described the second equipment is main equipment, and described the first equipment is switched to stand-by equipment;
The second fault processing module 605, for working as described the 2nd VRRP link occurs fault, make in described the 2nd VRRP link, when described the first equipment and described the second equipment are main equipment, judge described the first equipment and the second equipment activestandby state in a described VRRP link respectively; If described the first equipment is main equipment in a described VRRP link,, on described the 2nd VRRP link, keeping described the first equipment is main equipment, and described the second equipment is switched to stand-by equipment; If described the second equipment is main equipment in a described VRRP link,, on described the 2nd VRRP link, keeping described the second equipment is main equipment, and described the first equipment is switched to stand-by equipment.
In said apparatus embodiment, the combination of the dual VRRP link by a VRRP link and the 2nd VRRP link, the activestandby state that decision device is final.By a VRRP link and the 2nd VRRP link, can obtain SR1 and the SR2 activestandby state in every link, and the activestandby state in two links is monitored to SR1 and SR2 respectively.When a VRRP link occurs fault, make in a VRRP link, when the first equipment and the second equipment are main equipment, need to continue judgement in the 2nd VRRP link not breaking down, the first equipment and the second equipment activestandby state separately.If the first equipment is main equipment in the 2nd VRRP link,, on a VRRP link, keeping the first equipment is main equipment, and the second equipment is switched to stand-by equipment; And if the second equipment is main equipment in the 2nd VRRP link,, on a VRRP link, keeping the second equipment is main equipment, and the first equipment is switched to stand-by equipment.Thereby, avoid occurring two main situations in the VRRP link breaking down.When the 2nd VRRP link occurs fault, make in the 2nd VRRP link, when the first equipment and the second equipment are main equipment, need to continue judgement in the VRRP link not breaking down, the first equipment and the second equipment activestandby state separately.If the first equipment is main equipment in a VRRP link,, on the 2nd VRRP link, keeping the first equipment is main equipment, and the second equipment is switched to stand-by equipment; And if the second equipment is main equipment in a VRRP link,, on the 2nd VRRP link, keeping the second equipment is main equipment, and the first equipment is switched to stand-by equipment.Thereby, avoid occurring two main situations in the 2nd VRRP link breaking down.
In the embodiment of the present invention, each other between first equipment and the second equipment of redundancy, set up many VRRP links: by heartbeat, set up a described VRRP link simultaneously, and, described the first equipment does transfer by the 3rd equipment and described the second equipment is set up described the 2nd VRRP link, by monitoring the activestandby state of the first equipment described in a described VRRP link and described the 2nd VRRP link and the second equipment, when a VRRP link occurs fault, make at the first equipment described in this faulty link and the second equipment during simultaneously for main equipment, judge the activestandby state in the VRRP link that the first equipment and the second equipment do not break down at another respectively, if two be master status in link, in faulty link, do not need to change the activestandby state of this equipment, otherwise, this equipment is switched to stand-by equipment, by the activestandby state of the equipment in this faulty link is switched, thereby avoid in master/slave device because of VRRP link occurs fault, and there is the two main phenomenon of two main equipments.
It should be noted that, the set-up mode that described the second link arranges module can comprise following several:
(1) on described the first equipment and described the second equipment with on the link of described the 3rd equipment connection, create the 2nd VRRP LI(link interface) configuration respectively, on described the 3rd equipment, create the local circuit interconnection CCC of corresponding described the 2nd VRRP LI(link interface) configuration, by the VRRP message between the first equipment described in described CCC transparent transmission and described the second equipment.
(2) between described the first equipment and described the second equipment, configuration, through the channel of described the 3rd equipment, makes described the 3rd equipment by described channel, directly the VRRP message between the first equipment and described the second equipment described in transparent transmission.
(3) between described the first equipment and described the 3rd equipment, set up a VRRP sublink, between described the second equipment and described the 3rd equipment, set up the 2nd VRRP sublink, a described VRRP sublink is identical with the VRRP message priority in described the 2nd VRRP sublink.
Those of ordinary skills can recognize, module and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, 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 module, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that disclosed system, apparatus and method can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described module, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of modules or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or module can be electrically, machinery or other form.
The described module as separating component explanation can or can not be also physically to separate, and the parts that show as module can be or can not be also physical modules, can be positioned at a place, or also can be distributed on a plurality of mixed-media network modules mixed-medias.Can select according to the actual needs some or all of module wherein to realize the object of the present embodiment scheme.
In addition, each functional module in each embodiment of the present invention can be integrated in a processing module, can be also that the independent physics of modules exists, also can two or more module integrations in a module.
If described function usings that the form of software function module realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words or the part of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by the described protection range with claim.

Claims (8)

1. a redundance unit changing method, is characterized in that, comprising:
Monitor the activestandby state of the first equipment described in the first Virtual Router Redundacy Protocol VRRP Link State between the first equipment and the second equipment and the 2nd VRRP link and the second equipment, wherein, between described the first equipment and described the second equipment, by heartbeat, set up a described VRRP link, described the first equipment does transfer by the 3rd equipment and described the second equipment is set up described the 2nd VRRP link;
When a described VRRP link occurs fault, make in a described VRRP link, when described the first equipment and described the second equipment are main equipment, judge described the first equipment and the second equipment activestandby state in described the 2nd VRRP link respectively; If described the first equipment is main equipment in described the 2nd VRRP link,, on a described VRRP link, keeping described the first equipment is main equipment, and described the second equipment is switched to stand-by equipment; If described the second equipment is main equipment in described the 2nd VRRP link,, on a described VRRP link, keeping described the second equipment is main equipment, and described the first equipment is switched to stand-by equipment;
When described the 2nd VRRP link occurs fault, make in described the 2nd VRRP link, when described the first equipment and described the second equipment are main equipment, judge described the first equipment and the second equipment activestandby state in a described VRRP link respectively; If described the first equipment is main equipment in a described VRRP link,, on described the 2nd VRRP link, keeping described the first equipment is main equipment, and described the second equipment is switched to stand-by equipment; If described the second equipment is main equipment in a described VRRP link,, on described the 2nd VRRP link, keeping described the second equipment is main equipment, and described the first equipment is switched to stand-by equipment.
2. method according to claim 1, is characterized in that, described the first equipment does transfer by the 3rd equipment and described the second equipment is set up described the 2nd VRRP link, comprising:
On described the first equipment and described the second equipment with on the link of described the 3rd equipment connection, create the 2nd VRRP LI(link interface) configuration respectively, on described the 3rd equipment, create the local circuit interconnection CCC of corresponding described the 2nd VRRP LI(link interface) configuration, by the VRRP message between the first equipment described in described CCC transparent transmission and described the second equipment.
3. method according to claim 1, is characterized in that, described the first equipment does transfer by the 3rd equipment and described the second equipment is set up described the 2nd VRRP link, comprising:
Between described the first equipment and described the second equipment, configuration, through the channel of described the 3rd equipment, makes described the 3rd equipment by described channel, directly the VRRP message between the first equipment and described the second equipment described in transparent transmission.
4. method according to claim 1, is characterized in that, described the first equipment does transfer by the 3rd equipment and described the second equipment is set up described the 2nd VRRP link, comprising:
Between described the first equipment and described the 3rd equipment, set up a VRRP sublink, between described the second equipment and described the 3rd equipment, set up the 2nd VRRP sublink, a described VRRP sublink is identical with the VRRP message priority in described the 2nd VRRP sublink.
5. a redundance unit switching device shifter, is characterized in that, comprising:
The first link arranges module, for set up a described VRRP link by heartbeat between the first equipment and the second equipment;
The second link arranges module, does transfer and described the second equipment is set up described the 2nd VRRP link for described the first equipment by the 3rd equipment;
Monitoring modular, for monitoring the activestandby state of the first equipment described in the first Virtual Router Redundacy Protocol VRRP Link State between the first equipment and the second equipment and the 2nd VRRP link and the second equipment;
Fisrt fault processing module, for working as a described VRRP link occurs fault, make in a described VRRP link, when described the first equipment and described the second equipment are main equipment, judge described the first equipment and the second equipment activestandby state in described the 2nd VRRP link respectively; If described the first equipment is main equipment in described the 2nd VRRP link,, on a described VRRP link, keeping described the first equipment is main equipment, and described the second equipment is switched to stand-by equipment; If described the second equipment is main equipment in described the 2nd VRRP link,, on a described VRRP link, keeping described the second equipment is main equipment, and described the first equipment is switched to stand-by equipment;
The second fault processing module, for working as described the 2nd VRRP link occurs fault, make in described the 2nd VRRP link, when described the first equipment and described the second equipment are main equipment, judge described the first equipment and the second equipment activestandby state in a described VRRP link respectively; If described the first equipment is main equipment in a described VRRP link,, on described the 2nd VRRP link, keeping described the first equipment is main equipment, and described the second equipment is switched to stand-by equipment; If described the second equipment is main equipment in a described VRRP link,, on described the 2nd VRRP link, keeping described the second equipment is main equipment, and described the first equipment is switched to stand-by equipment.
6. device according to claim 5, is characterized in that, the set-up mode that described the second link arranges module is:
On described the first equipment and described the second equipment with on the link of described the 3rd equipment connection, create the 2nd VRRP LI(link interface) configuration respectively, on described the 3rd equipment, create the local circuit interconnection CCC of corresponding described the 2nd VRRP LI(link interface) configuration, by the VRRP message between the first equipment described in described CCC transparent transmission and described the second equipment.
7. device according to claim 5, is characterized in that, the set-up mode that described the second link arranges module is:
Between described the first equipment and described the second equipment, configuration, through the channel of described the 3rd equipment, makes described the 3rd equipment by described channel, directly the VRRP message between the first equipment and described the second equipment described in transparent transmission.
8. device according to claim 5, is characterized in that, the set-up mode that described the second link arranges module is:
Between described the first equipment and described the 3rd equipment, set up a VRRP sublink, between described the second equipment and described the 3rd equipment, set up the 2nd VRRP sublink, a described VRRP sublink is identical with the VRRP message priority in described the 2nd VRRP sublink.
CN201310507525.XA 2013-10-24 2013-10-24 Redundance unit changing method and device Active CN103560955B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310507525.XA CN103560955B (en) 2013-10-24 2013-10-24 Redundance unit changing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310507525.XA CN103560955B (en) 2013-10-24 2013-10-24 Redundance unit changing method and device

Publications (2)

Publication Number Publication Date
CN103560955A true CN103560955A (en) 2014-02-05
CN103560955B CN103560955B (en) 2016-09-28

Family

ID=50015107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310507525.XA Active CN103560955B (en) 2013-10-24 2013-10-24 Redundance unit changing method and device

Country Status (1)

Country Link
CN (1) CN103560955B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270450A (en) * 2014-10-10 2015-01-07 浪潮集团有限公司 Double-controller multilink heartbeat monitoring method using UDP
CN104333470A (en) * 2014-11-14 2015-02-04 杭州华三通信技术有限公司 Fault handling method and device
CN105634779A (en) * 2014-11-04 2016-06-01 中兴通讯股份有限公司 Operation processing method and apparatus of primary and secondary devices
CN105634848A (en) * 2014-11-04 2016-06-01 中国移动通信集团四川有限公司 Virtual router monitoring method and apparatus
CN106100987A (en) * 2016-08-08 2016-11-09 杭州迪普科技有限公司 A kind of method and device of the secondary router of active router based on VRRP agreement switching
CN106533776A (en) * 2016-11-29 2017-03-22 迈普通信技术股份有限公司 VRRP (Virtual Router Redundancy Protocol) gateway, VRRP system and double-main detection and repair method
CN108429675A (en) * 2018-03-30 2018-08-21 新华三技术有限公司 VRRP linkage switching methods, device and electronic equipment
CN111614554A (en) * 2020-05-20 2020-09-01 中国联合网络通信集团有限公司 Route switching method, control device, multi-route network system and storage medium
CN111874001A (en) * 2020-06-09 2020-11-03 北京百度网讯科技有限公司 Safety control method for automatic driving automobile, electronic equipment and storage medium
CN112231153A (en) * 2020-09-30 2021-01-15 新华三信息安全技术有限公司 Equipment switching method and network equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657355B (en) * 2016-12-29 2020-10-16 北京华为数字技术有限公司 Cluster management method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020184387A1 (en) * 2001-05-31 2002-12-05 The Furukawa Electric Co., Ltd. Method for connecting between networks, virtual router, and system for connecting between networks by using this virtual router
CN101051951A (en) * 2006-05-29 2007-10-10 华为技术有限公司 Method and device for securing server connection reliability
CN101764744A (en) * 2009-11-24 2010-06-30 福建星网锐捷网络有限公司 VRRP (Virtual Router Redundancy Protocol) access method, device and system, as well as VRRP routing equipment
CN102724073A (en) * 2012-06-20 2012-10-10 华为技术有限公司 Method for network traffic recovery and routing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020184387A1 (en) * 2001-05-31 2002-12-05 The Furukawa Electric Co., Ltd. Method for connecting between networks, virtual router, and system for connecting between networks by using this virtual router
CN101051951A (en) * 2006-05-29 2007-10-10 华为技术有限公司 Method and device for securing server connection reliability
CN101764744A (en) * 2009-11-24 2010-06-30 福建星网锐捷网络有限公司 VRRP (Virtual Router Redundancy Protocol) access method, device and system, as well as VRRP routing equipment
CN102724073A (en) * 2012-06-20 2012-10-10 华为技术有限公司 Method for network traffic recovery and routing device

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270450A (en) * 2014-10-10 2015-01-07 浪潮集团有限公司 Double-controller multilink heartbeat monitoring method using UDP
CN105634779A (en) * 2014-11-04 2016-06-01 中兴通讯股份有限公司 Operation processing method and apparatus of primary and secondary devices
CN105634848A (en) * 2014-11-04 2016-06-01 中国移动通信集团四川有限公司 Virtual router monitoring method and apparatus
CN105634779B (en) * 2014-11-04 2019-09-03 南京中兴软件有限责任公司 The operation processing method and device of master/slave device
CN105634848B (en) * 2014-11-04 2019-06-28 中国移动通信集团四川有限公司 A kind of virtual router monitoring method and device
CN104333470A (en) * 2014-11-14 2015-02-04 杭州华三通信技术有限公司 Fault handling method and device
CN104333470B (en) * 2014-11-14 2017-10-24 新华三技术有限公司 Fault handling method and device
CN106100987B (en) * 2016-08-08 2019-06-07 杭州迪普科技股份有限公司 A kind of active router based on VRRP agreement switches the method and device of secondary router
CN106100987A (en) * 2016-08-08 2016-11-09 杭州迪普科技有限公司 A kind of method and device of the secondary router of active router based on VRRP agreement switching
CN106533776A (en) * 2016-11-29 2017-03-22 迈普通信技术股份有限公司 VRRP (Virtual Router Redundancy Protocol) gateway, VRRP system and double-main detection and repair method
CN106533776B (en) * 2016-11-29 2019-08-20 迈普通信技术股份有限公司 A kind of VRRP gateway, VRRP system and double main detections and restorative procedure
CN108429675A (en) * 2018-03-30 2018-08-21 新华三技术有限公司 VRRP linkage switching methods, device and electronic equipment
CN111614554A (en) * 2020-05-20 2020-09-01 中国联合网络通信集团有限公司 Route switching method, control device, multi-route network system and storage medium
CN111614554B (en) * 2020-05-20 2022-02-01 中国联合网络通信集团有限公司 Route switching method, control device, multi-route network system and storage medium
CN111874001A (en) * 2020-06-09 2020-11-03 北京百度网讯科技有限公司 Safety control method for automatic driving automobile, electronic equipment and storage medium
CN111874001B (en) * 2020-06-09 2022-03-25 北京百度网讯科技有限公司 Safety control method for automatic driving automobile, electronic equipment and storage medium
CN112231153A (en) * 2020-09-30 2021-01-15 新华三信息安全技术有限公司 Equipment switching method and network equipment
CN112231153B (en) * 2020-09-30 2023-03-31 新华三信息安全技术有限公司 Equipment switching method and network equipment

Also Published As

Publication number Publication date
CN103560955B (en) 2016-09-28

Similar Documents

Publication Publication Date Title
CN103560955A (en) Method and device for switching between redundancy devices
US8886831B2 (en) System and methodology for fast link failover based on remote upstream failures
US10797990B2 (en) Server redundant network paths
CN102546222B (en) Backup system and fault detection and processing method
US8830825B2 (en) Method and system for priority based (1:1)n ethernet protection
CN102014019B (en) Aggregated link switching method and device
CN103746841A (en) Failure recovery method and controller
CN102882704B (en) Link protection method in the soft reboot escalation process of a kind of ISSU and equipment
CN103095571A (en) Method and system achieving network redundancy and data flow seamless switching
CN101588304A (en) Implementation method of VRRP
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
CN103856357A (en) Stack system fault processing method and stack system
CN101056254B (en) An expansion method, system and device of network storage device
US20140219080A1 (en) Method and apparatus for interworking protection switching
US8477598B2 (en) Method and system for implementing network element-level redundancy
CN105634848B (en) A kind of virtual router monitoring method and device
CN102763087B (en) Method and system for realizing interconnection fault-tolerance between CPUs
CN101909006A (en) BFD (Bidirectional Forwarding Detection) message sending and receiving methods as well as device and communication system thereof
CN109981353B (en) Method and system for protecting adjacent station redundancy in frame type network communication equipment
CN102891767B (en) A kind of link protection method, network element and system
CN105515869A (en) Out-of-band management method and device for virtual switching unit
CN102857436B (en) Flow transmission method and flow transmission equipment based on IRF (intelligent resilient framework) network
CN109104319B (en) Data storage device and method
CN103684955A (en) Method, device and system for determining path where looped network breaks down
US20030133405A1 (en) Method and apparatus for healing of failures for chained boards with SDH interfaces

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
C14 Grant of patent or utility model
GR01 Patent grant