CN103441940A - Method and device for switching network device from stand-by state to main state and network device - Google Patents

Method and device for switching network device from stand-by state to main state and network device Download PDF

Info

Publication number
CN103441940A
CN103441940A CN2013103860132A CN201310386013A CN103441940A CN 103441940 A CN103441940 A CN 103441940A CN 2013103860132 A CN2013103860132 A CN 2013103860132A CN 201310386013 A CN201310386013 A CN 201310386013A CN 103441940 A CN103441940 A CN 103441940A
Authority
CN
China
Prior art keywords
state
layer network
layer
message
network appliance
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
CN2013103860132A
Other languages
Chinese (zh)
Other versions
CN103441940B (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.)
Shenzhen Shangge Intellectual Property Service Co ltd
Tongding Interconnection Information 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 CN201310386013.2A priority Critical patent/CN103441940B/en
Publication of CN103441940A publication Critical patent/CN103441940A/en
Application granted granted Critical
Publication of CN103441940B publication Critical patent/CN103441940B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention provides a method and device for switching a network device from a stand-by state to a main state and the network device. The method and device are applied to a network comprising a three-layer network and a two-layer ring network. A first three-layer network device and a second three-layer network device of the three-layer network are connected with a two-layer network device in the two-layer ring network, and a three-layer protection protocol is operated. The first three-layer network device is in the main state, and the second three-layer network device is in the stand-by state. The method comprises the steps that after a TC message is received, the second three-layer network device is switched from the stand-by state to a stand-by-to-main delay state, and if a heartbeat message of the three-layer protection protocol is not received within a first set time period, the second three-layer network device is switched from the stand-by-to-main delay state to the main state. Through the scheme, the second three-layer network in the stand-by state can be prevented from being switched to the main state mistakenly.

Description

The network equipment is changing method, device and the network equipment to major state by standby state
Technical field
The present invention relates to communication technical field, espespecially a kind of network equipment is changing method, device and the network equipment to major state by standby state.
Background technology
Along with the development of Internet technology and popularizing of network application, Internet user's quantity is staged and increases, and metropolitan area network (Metropolitan Area Network, MAN) arises at the historic moment, MAN is generally tree-shaped or circulus, and double layer network and three-layer network are separately.Be illustrated in figure 1 the schematic diagram of ring-type MAN, the Egress node that the network equipment 10,11 is MAN, for three-layer network appliance, the network equipment 10 and 11 deploy three-layer protection agreements, Virtual Router Redundacy Protocol (Virtual Router Redundancy Protocol for example, VRRP), Protocol Independent Multicast (Protocol Independent Multicast, PIM) etc.; Two layers of looped network access network device 10,11; two layers of looped network are comprised of node 12-17; node 12-17 is two-layer network device; dispose Multiple Spanning Tree Protocol (Multiple Spanning Tree Protocol in two layers of looped network; the broken ring agreement such as MSTP); the heartbeat message of the three-layer protection such as VRRP, PIM agreement can pass through in two layers of looped network, and the network equipment 10 is main state, and the network equipment 11 is standby state.
Double layer network becomes ring and disposes the MSTP protection, can play a very good protection.In two layers of looped network, during single link failure, the heartbeat message of the three-layer protection agreement that the network equipment 10 sends can arrive the network equipment 11, master/slave switchover that needn't trigger network equipment; While in two layers of looped network, the two point fault occurring; the heartbeat message of the three-layer protection agreement that the network equipment 10 sends can't arrive the network equipment 11; the network equipment 11 switches to major state from standby state; at this moment the situation that just there will be two master network device, the flow of the part of nodes in two layers of looped network can forward from the network equipment 11.When the user is higher to the service reliability convergent requirement, the three-layer network consultation is disposed bi-directional session and is detected (Bidirectional Forwarding Detection, BFD), thereby can carry out fast detecting when the two point fault occurring.
It is not the requirement that single link failure all in two layers of looped network can meet the client.As shown in Figure 2; suppose; node 12 is root bridge; node 13 is backup root bridge; port blocked is on the interface of node 16 connected nodes 17, and after fault 1 occurs, port blocked is decontroled; the heartbeat message of the three-layer protection agreement of the network equipment 10 and BFD message still have link to reach in theory, but in fact probably cause the network equipment 11 to switch to major state from standby state mistake.
At present can be by avoiding the generation of this mistake switching the detection time of adjusting BFD in the network equipment, be set to empirical value the detection time of BFD, not perception of BFD while guaranteeing two layers of looped network single link failure, and the perception of two point fault energy.Be set to empirical value the detection time of BFD, often also unreliable.If arrange the detection time of BFD too short, the risk of the network equipment of standby state mistake switching in the time of will having single link failure; If arrange the detection time of BFD longly, while the network equipment failure of two point fault or major state occurring in two layers of looped network, the time of the network equipment of standby state switching will be elongated, and affects user's experience.
Summary of the invention
The embodiment of the present invention provides a kind of network equipment by changing method, device and the network equipment to major state for state, the problem of switching in order to the network equipment mistake that reduces standby state.
First aspect; provide a kind of network equipment by the changing method to major state for state; be applied to comprise in the networking of three-layer network and two layers of looped network; the first three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; the second three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; described the first three-layer network appliance is in major state; described the second three-layer network appliance is in standby state, and described method comprises:
After receiving change in topology TC message, described the second three-layer network appliance is switched to the standby main time delay state that rises by standby state;
If do not receive the heartbeat message of described three-layer protection agreement in the first setting-up time, described the second three-layer network appliance is switched to major state by the main time delay state of standby liter.
In conjunction with first aspect, in the first, in possible implementation, described three-layer protection agreement comprises Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
The possible implementation in conjunction with the first of first aspect or first aspect, at the second, in possible implementation, the edge port that described TC message is described two layers of looped network sends; Perhaps
Described TC message is that port blocked sends; Perhaps
Described TC message is to be sent by the port that disconnects the DOWN state and become normal UP state.
Possible implementation or the possible implementation of the second of first aspect in conjunction with the first of first aspect, first aspect, at the third in possible implementation, after described the second three-layer network appliance is switched to the main time delay state of standby liter by standby state, also comprise:
If receive the heartbeat message of described three-layer protection agreement or two-way converting detects BFD in the second setting-up time testing result is the UP state, will described the second three-layer network appliance by standby, rise main time delay state and switch to for state.
Second aspect; provide a kind of network equipment by the changing method to major state for state; be applied to comprise in the networking of three-layer network and two layers of looped network; the first three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; the second three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; described the first three-layer network appliance is in major state; described the second three-layer network appliance is in standby state, and described method comprises:
The testing result that detects BFD at two-way converting causes described the second three-layer network appliance by after switching to major state for state for disconnecting the DOWN state, and while receiving change in topology TC message, the operation of described the second three-layer network appliance in major state carried out in time delay;
If do not receive the heartbeat message of described three-layer protection agreement in the 3rd setting-up time, carry out the operation of described the second three-layer network appliance in major state.
In conjunction with second aspect, in the first, in possible implementation, described three-layer protection agreement comprises Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
The possible implementation in conjunction with the first of second aspect or second aspect, at the second, in possible implementation mode, the edge port that described TC message is described two layers of looped network sends; Perhaps
Described TC message is that port blocked sends; Perhaps
Described TC message is that the port that becomes normal UP state by the DOWN state sends.
Possible implementation or the possible implementation of the second of second aspect in conjunction with the first of second aspect, second aspect, at the third in possible implementation, time delay also comprises after carrying out the operation of described the second three-layer network appliance in major state:
If receive the heartbeat message of described three-layer protection agreement, described the second three-layer network appliance is switched to standby state by major state.
The third aspect; provide a kind of network equipment by the switching device shifter to major state for state; be applied to comprise in the networking of three-layer network and two layers of looped network; the first three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; the second three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; described the first three-layer network appliance is in major state; described the second three-layer network appliance is in standby state, and described device comprises:
Receiving element, for receiving change in topology TC message;
Switch unit, after at described receiving element, receiving described TC message, switch to the standby main time delay state that rises by described the second three-layer network appliance by standby state; And, if described receiving element does not receive the heartbeat message of described three-layer protection agreement in the first setting-up time, described the second three-layer network appliance is risen to main time delay state and switched to major state by standby.
In conjunction with the third aspect, in the first, in possible implementation, described three-layer protection agreement comprises Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
The possible implementation in conjunction with the first of the third aspect or the third aspect, at the second, in possible implementation, the edge port that described TC message is described two layers of looped network sends; Perhaps
Described TC message is that port blocked sends; Perhaps
Described TC message is to be sent by the port that disconnects the DOWN state and become normal UP state.
Possible implementation or the possible implementation of the second of the third aspect in conjunction with the first of the third aspect, the third aspect, at the third in possible implementation, described switch unit, also for:
After described the second three-layer network appliance is switched to the main time delay state of standby liter by standby state; if the testing result that described receiving element receives the heartbeat message of described three-layer protection agreement or two-way converting detects BFD in the second setting-up time is the UP state, described the second three-layer network appliance is switched to standby state by the main time delay state of standby liter.
Fourth aspect; provide a kind of network equipment by the switching device shifter to major state for state; be applied to comprise in the networking of three-layer network and two layers of looped network; the first three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; the second three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; described the first three-layer network appliance is in major state; described the second three-layer network appliance is in standby state, and described device comprises:
Receiving element, for receiving change in topology TC message;
Switch unit, for the testing result that detects BFD at two-way converting, for disconnecting the DOWN state, cause described the second three-layer network appliance by after switching to major state for state, when described receiving element receives described TC message, the operation of described the second three-layer network appliance in major state carried out in time delay; If described receiving element does not receive the heartbeat message of described three-layer protection agreement in the 3rd setting-up time, carry out the operation of described the second three-layer network appliance in major state.
In conjunction with fourth aspect, in the first, in possible implementation, described three-layer protection agreement comprises Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
The possible implementation in conjunction with the first of fourth aspect or fourth aspect, at the second, in possible implementation, the edge port that described TC message is described two layers of looped network sends; Perhaps
Described TC message is that port blocked sends; Perhaps
Described TC message is that the port that becomes normal UP state by the DOWN state sends.
Possible implementation or the possible implementation of the second of fourth aspect in conjunction with the first of fourth aspect, fourth aspect, at the third in possible implementation, described switch unit, also for:
After the operation of described the second three-layer network appliance in major state carried out in time delay, if described receiving element receives the heartbeat message of described three-layer protection agreement, described the second three-layer network appliance is switched to standby state by major state.
The 5th aspect; a kind of network equipment is provided; be applied to comprise in the networking of three-layer network and two layers of looped network; the first three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; the second three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; described the first three-layer network appliance is in major state; described the second three-layer network appliance is in standby state, and the described network equipment comprises:
Transceiver, for receiving change in topology TC message;
Processor, after at described transceiver, receiving described TC message, switch to the standby main time delay state that rises by described the second three-layer network appliance by standby state; If described transceiver does not receive the heartbeat message of described three-layer protection agreement in the first setting-up time, described the second three-layer network appliance is switched to major state by the main time delay state of standby liter.
In conjunction with the 5th aspect, in the first, in possible implementation, described three-layer protection agreement comprises Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
In conjunction with the possible implementation of the first of the 5th aspect or the 5th aspect, at the second, in possible implementation, the edge port that described TC message is described two layers of looped network sends; Perhaps
Described TC message is that port blocked sends; Perhaps
Described TC message is to be sent by the port that disconnects the DOWN state and become normal UP state.
Possible implementation or the possible implementation of the second of the 5th aspect in conjunction with the first of the 5th aspect, the 5th aspect, at the third in possible implementation, described processor, also for:
After described the second three-layer network appliance is switched to the main time delay state of standby liter by standby state; if the testing result that described transceiver receives the heartbeat message of described three-layer protection agreement or two-way converting detects BFD in the second setting-up time is the UP state, described the second three-layer network appliance is switched to standby state by the main time delay state of standby liter.
The 6th aspect; a kind of network equipment is provided; be applied to comprise in the networking of three-layer network and two layers of looped network; the first three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; the second three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; described the first three-layer network appliance is in major state; described the second three-layer network appliance is in standby state, and the described network equipment comprises:
Transceiver, for receiving change in topology TC message;
Processor, for the testing result that detects BFD at two-way converting, for disconnecting the DOWN state, cause described the second three-layer network appliance by after switching to major state for state, when described transceiver receives described TC message, the operation of described the second three-layer network appliance in major state carried out in time delay; If described transceiver does not receive the heartbeat message of described three-layer protection agreement in the 3rd setting-up time, carry out the operation of described the second three-layer network appliance in major state.
In conjunction with the 6th aspect, in the first, in possible implementation, described three-layer protection agreement comprises Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
In conjunction with the possible implementation of the first of the 6th aspect or the 6th aspect, at the second, in possible implementation, the edge port that described TC message is described two layers of looped network sends; Perhaps
Described TC message is that port blocked sends; Perhaps
Described TC message is that the port that becomes normal UP state by the DOWN state sends.
Possible implementation or the possible implementation of the second of the 6th aspect in conjunction with the first of the 6th aspect, the 6th aspect, at the third in possible implementation, described processor, also for:
After the operation of described the second three-layer network appliance in major state carried out in time delay, if described transceiver receives the heartbeat message of described three-layer protection agreement, described the second three-layer network appliance is switched to standby state by major state.
The network equipment provided according to first aspect by standby state to the changing method of major state, the network equipment that the third aspect provides by the network equipment provided to switching device shifter or the 5th aspect of major state for state; after receiving the TC message; at first the second three-layer network appliance is switched to the standby main time delay state that rises by standby state; if do not receive the heartbeat message of three-layer protection agreement in the first setting-up time; just the second three-layer network appliance can be switched to major state by the main time delay state of standby liter, and carry out the operation of the second three-layer network appliance in major state.Visible, the state of the second three-layer network appliance in standby state is not only switched according to the heartbeat message of three-layer protection agreement and the testing result of BFD, also need to consider the TC message, the TC message is to send when the state of two layers of ring-network topologies variation or port is the UP state by the DOWN state variation, send much shorter than the convergence time of two layers of looped network of time of TC message, therefore can determine whether the second three-layer network appliance to be switched to major state according to the TC message received, so just can avoid the second three-layer network appliance mistake of standby state to switch to major state.
The network equipment provided according to second aspect by standby state to the changing method of major state, the network equipment that fourth aspect provides by the network equipment provided to switching device shifter or the 6th aspect of major state for state, this scheme causes the second three-layer network appliance by after switching to major state for state in the testing result of BFD for disconnecting the DOWN state, while receiving the TC message, at first the operation of the second three-layer network appliance in major state carried out in time delay; If do not receive the heartbeat message of three-layer protection agreement in the 3rd setting-up time, just can carry out the operation of the second three-layer network appliance in major state.Visible; the state of the second three-layer network appliance is not only switched according to the heartbeat message of three-layer protection agreement and the testing result of BFD; also need to consider the TC message; the TC message is to send when the state of two layers of ring-network topologies variation or port is the UP state by the DOWN state variation; send much shorter than the convergence time of two layers of looped network of time of TC message; therefore can determine whether the second three-layer network appliance to be switched to major state according to the TC message received, so just can avoid the second three-layer network appliance mistake of standby state to switch to major state.
The accompanying drawing explanation
The structural representation that Fig. 1 is MAN of the prior art;
Fig. 2 is the structural representation while breaking down in MAN of the prior art;
Fig. 3 be in the embodiment of the present invention the first network equipment by standby state the flow chart to the changing method of major state;
Fig. 4 be in the embodiment of the present invention the second network equipment by standby state the flow chart to the changing method of major state;
Fig. 5 be in the embodiment of the present invention for the network equipment of VRRP by standby state the changing method schematic diagram to major state;
Fig. 6 be in the embodiment of the present invention for the network equipment of PIM by standby state the changing method schematic diagram to major state;
Fig. 7 be in the embodiment of the present invention the first network equipment by standby state the structural representation to the switching device shifter of major state;
Fig. 8 be in the embodiment of the present invention the second network equipment by standby state the structural representation to the switching device shifter of major state;
The structural representation that Fig. 9 is the first network equipment in the embodiment of the present invention;
The structural representation that Figure 10 is the second network equipment in the embodiment of the present invention.
Embodiment
Because causing the network equipment of standby state more slowly, two layers of looped network convergence rate miss the problem of switching for what exist in prior art, the inventor studies discovery, the reason that the mistake switching occurs is, in networking as shown in Figure 2, can cause the MSTP convergence after fault 1 occurs calculates, port blocked is decontroled and can be sent change in topology (Topology Change to the node of the whole network, TC) message, receive that the node of TC message can remove VLAN (Virtual Local Area Network, VLAN) medium access under is controlled (Medium Access Control, MAC) address.The MSTP convergence time is in the submicrosecond level; and BFD detection time of three-layer protection agreement is at Millisecond; when MSTP convergence calculating not yet completes; the three-layer protection agreement has triggered the network equipment 11 switching to major state by standby state because BFD detects as disconnecting (Down); because two layers of looped network are single link failure; after MSTP convergence, still exist link to reach, at this moment the network equipment 11 is exactly to switch by standby state to the switching of major state by mistake.
The network equipment 11 can trigger sequence of operations from standby state mistake switches to major state affects normal traffic forwarding, for example, for VRRP, can send immediately MAC table that address resolution protocol (Address Resolution Protocol, ARP) message and heartbeat message refresh two-layer network device, trigger routing update etc.; For PIM, can immediately flux of multicast be forwarded to double layer network if configured static multicast groups simultaneously, the user can receive the double flux of multicast in moment.If the root bridge of MSTP and backup root bridge are not the direct-connected nodes of the network equipment 10,11 12,13, when any link failure or MSTP priority are adjusted in two layers of looped network so, all can trigger this mistake switching.
In order to reduce the problem for the network equipment mistake switching of state; the embodiment of the present invention provides two kinds of network equipments by the changing method to major state for state; the method is applied to comprise in the networking of three-layer network and two layers of looped network; wherein; the first three-layer network appliance in three-layer network is connected with the two-layer network device in two layers of looped network respectively with the second three-layer network appliance, operation three-layer protection agreement between the first three-layer network appliance and the second three-layer network appliance.Suppose, the first three-layer network appliance is in major state, and the second three-layer network appliance is in standby state.
By standby state to the flow process of the changing method of major state as shown in Figure 3, the method comprises a kind of network equipment:
S30: after receiving the TC message, the second three-layer network appliance is switched to the standby main time delay state that rises by standby state.
Wherein, the TC message is the edge port transmission of two layers of looped network; Perhaps, the TC message is that port blocked sends, or the TC message is that the port that becomes the UP state by the DOWN state sends.
Usually, when the state of network topology change or port becomes the UP state by the DOWN state, by port blocked, send the TC message, or send the TC message by the port that the DOWN state becomes the UP state.The TC message is multicast message, after two layers of other interior node of looped network receive the TC message, can in two layers of looped network, forward.
And in embodiments of the present invention, the TC message is not only to transmit in two layers of looped network, the edge port of two layers of looped network, port blocked or also the clean culture of TC message can be sent to the second three-layer network appliance, the MAC Address of the interface that destination address is the second three-layer network appliance by the port that the DOWN state becomes the UP state.
Also can arrange to the first three-layer network appliance in major state and send the TC message, because there is not the problem of mistake switching in the first three-layer network appliance of major state, after the first three-layer network appliance receives the TC message, can be left intact.
When the second three-layer network appliance in standby state receives the TC message, directly the state of self is not switched to major state, but the state of self is switched to the standby main time delay state that rises, so just can more accurately determine whether to switch to major state.
S31: if do not receive the heartbeat message of three-layer protection agreement in the first setting-up time, the second three-layer network appliance is switched to major state by the main time delay state of standby liter.
The first three-layer network appliance meeting timing in major state is to the heartbeat message of the second three-layer network appliance generation three-layer protection agreement in standby state; if the second three-layer network appliance is not received this heartbeat message in the first setting-up time; the two point fault has appearred in explanation, at this moment needs the second three-layer network appliance in standby state has been switched to major state.To prepare against the time that rises main time delay be exactly the first setting-up time.
The first setting-up time can be set as required, for example is set as required 500ms, 600ms etc.; Also can set according to the transmission cycle of the heartbeat message of three-layer protection agreement; for example, the transmission cycle of VRRP heartbeat message is generally 1s, the first setting-up time can be set as to 1s or shorter; the transmission cycle of PIM heartbeat message is 3s, the first setting-up time can be set as to 3s or shorter.
For different three-layer protection agreements, the operation that the second three-layer network appliance is carried out when major state is also different: for VRRP, need regularly to send the VRRP heartbeat message, carry out the multicast forwarding switching, the switching of route priority, to send one or more in ARP detection etc. to the second three-layer network appliance in standby state; For PIM, need regularly to the second three-layer network appliance in standby state, to send PIM HELLO message, multicast forwarding switching etc.
This scheme is after receiving the TC message; at first the second three-layer network appliance is switched to the standby main time delay state that rises by standby state; if do not receive the heartbeat message of three-layer protection agreement in the first setting-up time; just the second three-layer network appliance can be switched to major state by the main time delay state of standby liter, and carry out the operation of the second three-layer network appliance in major state.
Visible, the state of the second three-layer network appliance in standby state is not only switched according to the heartbeat message of three-layer protection agreement and the testing result of BFD, also need to consider the TC message, the TC message is to send when the state of two layers of ring-network topologies variation or port is the UP state by the DOWN state variation, send much shorter than the convergence time of two layers of looped network of time of TC message, therefore can determine whether the second three-layer network appliance to be switched to major state according to the TC message received, so just can avoid the second three-layer network appliance mistake of standby state to switch to major state.
Optionally; the second three-layer network appliance is switched to for after rising main time delay state by standby state in above-mentioned S30; can also comprise: if receive the heartbeat message of three-layer protection agreement or two-way converting detects BFD in the second setting-up time testing result is the UP state, the second three-layer network appliance is risen to main time delay state and switched to standby state by standby.The second setting-up time can be set according to actual needs, for example is set as two times, three times of the BFD sense cycle etc.
After the second three-layer network appliance in standby state switches to the main time delay state of standby liter; if receive the heartbeat message of three-layer protection agreement or in the second setting-up time the testing result of BFD be the UP state; at this moment illustrate that what occur in two layers of looped network is single link failure; without the second three-layer network appliance in standby state, switched; can remove the standby main time delay state that rises, the second three-layer network appliance is switched to standby state by the main time delay state of standby liter.
The another kind of network equipment by standby state to the flow process of the changing method of major state as shown in Figure 4.The method is applied to comprise in the networking of three-layer network and two layers of looped network; wherein; the first three-layer network appliance of three-layer network is connected with the two-layer network device in two layers of looped network respectively with the second three-layer network appliance, operation three-layer protection agreement between the first three-layer network appliance and the second three-layer network appliance.Suppose that the first three-layer network appliance is in major state, the second three-layer network appliance is in standby state.The method comprises:
S40: the testing result at BFD is that after the DOWN state causes the second three-layer network appliance to switch to major state by standby state,, while receiving the TC message, time delay the 3rd setting-up time is carried out the operation of the second three-layer network appliance in major state.
Wherein, the TC message is that the edge port of two layers of looped network sends, or the TC message is that port blocked sends, or the TC message is to be sent by the port that disconnects the DOWN state and become the UP state.Also can arrange to the first three-layer network appliance in major state and send the TC message, because there is not the problem of mistake switching in the first three-layer network appliance of major state, the first three-layer network appliance is left intact after receiving the TC message.
The first three-layer network appliance and the second three-layer network appliance can regularly carry out the BFD detection, for the second three-layer network appliance, when the testing result of BFD is the DOWN state, illustrate in two layers of looped network and link failure occurs, need the second three-layer network appliance in standby state is switched to major state, if at this moment receive the TC message, can time delay carry out the operation of the second three-layer network appliance in major state, wait for that two layers of looped network MSTP convergence has been calculated when rear definite needs switch to major state to carry out again.
S41: if do not receive the heartbeat message of three-layer protection agreement in the 3rd setting-up time, carry out the operation of the second three-layer network appliance in major state.
If do not receive the heartbeat message of three-layer protection agreement in the 3rd setting-up time, illustrate and the two point fault at this moment occurred, need to carry out immediately the operation of the second three-layer network appliance in major state.So it is exactly the 3rd setting-up time that the time of the second three-layer network appliance in the operation of major state is carried out in time delay.
The 3rd setting-up time can be set as required, for example is set as required 550ms, 650ms etc.; The transmission cycle of heartbeat message that also can the three-layer protection agreement is set; for example, the transmission cycle of VRRP heartbeat message is generally 1s, the 3rd setting-up time can be set as to 1s; the transmission cycle of PIM heartbeat message is 3s, the 3rd setting-up time can be set as to 3s.
This scheme causes the second three-layer network appliance by after switching to major state for state in the testing result of BFD for disconnecting the DOWN state, and while receiving the TC message, at first the operation of the second three-layer network appliance in major state carried out in time delay; If do not receive the heartbeat message of three-layer protection agreement in the 3rd setting-up time, just can carry out the operation of the second three-layer network appliance in major state.
Visible; the state of the second three-layer network appliance is not only switched according to the heartbeat message of three-layer protection agreement and the testing result of BFD; also need to consider the TC message; the TC message is to send when the state of two layers of ring-network topologies variation or port is the UP state by the DOWN state variation; send much shorter than the convergence time of two layers of looped network of time of TC message; therefore can determine whether the second three-layer network appliance to be switched to major state according to the TC message received, so just can avoid the second three-layer network appliance mistake of standby state to switch to major state.
Optionally, the time delay in S40 also comprises after carrying out the operation of the second three-layer network appliance in major state: if receive the heartbeat message of three-layer protection agreement, the second three-layer network appliance is switched to standby state by major state.
After if the operation of the second three-layer network appliance in major state carried out in time delay; receive again the heartbeat message of three-layer protection agreement; illustrate and single link failure at this moment only occurred; the second three-layer network appliance without switching in standby state, switch to standby state by the second three-layer network appliance by major state.
Below take respectively the three-layer protection agreement as VRRP and PIM as example illustrates the above-mentioned network equipment by standby state by the standby changing method to major state.
Embodiment mono-
As shown in Figure 5, three-layer network appliance may in four kinds of states: major state, standby state, standbyly rise main time delay state and the operation of three-layer network appliance in major state carried out in time delay, for the three-layer network appliance of operation VRRP:
When standby state, receive the TC message, switch to the standby main time delay state that rises, even the testing result of BFD is the DOWN state subsequently, do not switch to major state yet; Be the UP state if receive subsequently heartbeat message or the testing result of BFD in the twice sense cycle of the VRRP of operation VRRP and the transmission of the three-layer network appliance in major state, remove the standby main time delay state that rises, three-layer network appliance is switched to standby state by the main time delay state of standby liter.If do not receive the TC message, and do not receive the heartbeat message of VRRP or the testing result of BFD is the DOWN state in the first setting-up time, directly three-layer network appliance is risen to main time delay state and switched to major state by standby.
Because the testing result of BFD is that the DOWN state is while causing three-layer network appliance to switch to major state by standby state, after receiving the TC message, the operation of three-layer network appliance in major state carried out in time delay, comprising: one or more in the heartbeat message of time delay transmission VRRP, multicast forwarding switching, the variation of route priority, the detection of transmission ARP etc.
In for the main time delay state of liter the time, do not receive the VRRP heartbeat message when three-layer network appliance in the first setting-up time, carry out the standby main operation that rises.When the operation of three-layer network appliance in major state carried out in time delay, do not receive the VRRP heartbeat message when three-layer network appliance in the second setting-up time, carry out immediately the operation of three-layer network appliance in major state.
Three-layer network appliance, when the main time delay state of standby liter or major state, if receive the TC message, does not process.
Wherein, for ensureing two layers of edge port in looped network, port blocked or can sending the TC message to operation VRRP and the three-layer network appliance in standby state by the port that the DOWN state becomes the UP state, VRRP need to dispose the ARP detection to be had directly from operation VRRP and the flow in the forwarding of the three-layer network appliance for state because of descending simultaneously, so just can guarantee on each node in two layers of looped network has the interface MAC to operation VRRP and the three-layer network appliance in standby state, thereby can guarantee the normal transmission of TC message.
Embodiment bis-
As shown in Figure 6, three-layer network appliance may in four kinds of states: major state, standby state, standbyly rise main time delay state and the operation of three-layer network appliance in major state carried out in time delay, for the three-layer network appliance of operation PIM:
When standby state, receive the TC message, switch to the standby main time delay state that rises, even the testing result of BFD is the DOWN state subsequently, do not switch to major state yet; Be the UP state if receive subsequently PIM HELLO message or the testing result of BFD in the twice sense cycle of operation PIM and the transmission of the three-layer network appliance in major state, remove the standby main time delay state that rises, three-layer network appliance is switched to standby state by the main time delay state of standby liter.If do not receive the TC message, and do not receive PIM HELLO message in the first setting-up time, directly three-layer network appliance is switched to major state by the main time delay state of standby liter; Perhaps do not receive the TC message, and the testing result of BFD is the DOWN state, directly three-layer network appliance risen to main time delay state and switched to major state by standby.
Because the testing result of BFD is that the DOWN state is while causing three-layer network appliance to switch to major state by standby state, after receiving the TC message, the operation of three-layer network appliance in major state carried out in time delay, comprising: time delay sends PIM HELLO message, multicast forwarding switching etc.
When three-layer network appliance rises main time delay state in standby, and do not receive PIM HELLO message in the first setting-up time, carry out three-layer network appliance for rising main operation; When the operation of three-layer network appliance in major state carried out in time delay, and do not receive PIM HELLO message when three-layer network appliance in the second setting-up time, carry out immediately the operation of described three-layer network appliance in major state.
In standby main time delay state or the major state of rising, if receive the TC message, do not process.
Two-layer network device in embodiment mono-and embodiment bis-and the configuration mode of three-layer network appliance are as follows:
(1) two-layer network device configuration
[HUAWEI-GigabitEthernet1/0/1]stp?edged-port?enable
[HUAWEI-GigabitEthernet1/0/1] stp edged-port linkage-vrrp-------edge port sends the TC message to operation VRRP and the three-layer network appliance in standby state
[HUAWEI-GigabitEthernet1/0/1] stp edged-port linkage-pim-------edge port sends the TC message to operation PIM and the three-layer network appliance in standby state
[HUAWEI] stp instance1linkage-vrrp mac[mac-address]-----------------enables the purpose mac address that the TC message sends to operation VRRP and the three-layer network appliance in standby state
[HUAWEI] stp instance1linkage-pim mac[mac-address]-----------------enables the purpose mac address that the TC message sends to operation PIM and the three-layer network appliance in standby state
(2) three-layer network appliance configuration
[HUAWEI]interface?gigabitethernet2/0/0.1
[HUAWEI-GigabitEthernet2/0/0.1]vrrp?vrid10virtual-ip10.1.1.3
[HUAWEI-GigabitEthernet2/0/0.1] vrrp vrid10linkage-tcn-bpdu------VRRP enables to process the TC message
[HUAWEI-GigabitEthernet2/0/0.1] pim linkage-tcn-bpdu------PIM enables to process the TC message.
Based on same inventive concept, for the first network equipment by standby state the changing method to major state, the embodiment of the present invention provides a kind of network equipment by the switching device shifter to major state for state, be applied to comprise in the networking of three-layer network and two layers of looped network, the first three-layer network appliance in three-layer network connects the two-layer network device in two layers of looped network, and operation three-layer protection agreement, the second three-layer network appliance in three-layer network connects the two-layer network device in two layers of looped network, and operation three-layer protection agreement, the first three-layer network appliance is in major state, the second three-layer network appliance is in standby state, the structure of this device as shown in Figure 7, comprise:
Receiving element 70, for receiving the TC message.
Switch unit 71, after at receiving element 70, receiving the TC message, switch to the standby main time delay state that rises by the second three-layer network appliance by standby state; And, if receiving element 70 does not receive the heartbeat message of three-layer protection agreement in the first setting-up time, the second three-layer network appliance is risen to main time delay state and switched to major state by standby.
This scheme is after receiving the TC message; at first the second three-layer network appliance is switched to the standby main time delay state that rises by standby state; if do not receive the heartbeat message of three-layer protection agreement in the first setting-up time; just the second three-layer network appliance can be switched to major state by the main time delay state of standby liter, and carry out the operation of the second three-layer network appliance in major state.
Visible, the state of the second three-layer network appliance in standby state is not only switched according to the heartbeat message of three-layer protection agreement and the testing result of BFD, also need to consider the TC message, the TC message is to send when the state of two layers of ring-network topologies variation or port is the UP state by the DOWN state variation, send much shorter than the convergence time of two layers of looped network of time of TC message, therefore can determine whether the second three-layer network appliance to be switched to major state according to the TC message received, so just can avoid the second three-layer network appliance mistake of standby state to switch to major state.
Concrete, above-mentioned three-layer protection agreement comprises VRRP and/or PIM.
Concrete, the edge port that above-mentioned TC message is two layers of looped network sends; Perhaps
Above-mentioned TC message is that port blocked sends; Perhaps
Above-mentioned TC message is that the port that becomes the UP state by the DOWN state sends.
Optionally, above-mentioned switch unit 71, also for:
After the second three-layer network appliance is switched to the main time delay state of standby liter by standby state; if receiving element receives the heartbeat message of three-layer protection agreement or in the second setting-up time the testing result of BFD be the UP state, the second three-layer network appliance is risen to main time delay state and is switched to standby state by standby.
Based on same inventive concept, for the second network equipment by standby state the changing method to major state, the embodiment of the present invention provides a kind of network equipment by the switching device shifter to major state for state, be applied to comprise in the networking of three-layer network and two layers of looped network, the first three-layer network appliance in three-layer network connects the two-layer network device in two layers of looped network, and operation three-layer protection agreement, the second three-layer network appliance in three-layer network connects the two-layer network device in two layers of looped network, and operation three-layer protection agreement, the first three-layer network appliance is in major state, the second three-layer network appliance is in standby state, the structure of this device as shown in Figure 8, comprise:
Receiving element 80, for receiving change in topology TC message.
Switch unit 81 is that after the DOWN state causes the second three-layer network appliance to switch to major state by standby state,, when receiving element 80 receives the TC message, the operation of the second three-layer network appliance in major state carried out in time delay for the testing result at BFD; If receiving element 80 does not receive the heartbeat message of three-layer protection agreement in the 3rd setting-up time, carry out the operation of the second three-layer network appliance in major state.
This scheme the party case causes the second three-layer network appliance by after switching to major state for state in the testing result of BFD for disconnecting the DOWN state, and while receiving the TC message, at first the operation of the second three-layer network appliance in major state carried out in time delay; If do not receive the heartbeat message of three-layer protection agreement in the 3rd setting-up time, just can carry out the operation of the second three-layer network appliance in major state.
Visible; the state of the second three-layer network appliance is not only switched according to the heartbeat message of three-layer protection agreement and the testing result of BFD; also need to consider the TC message; the TC message is to send when the state of two layers of ring-network topologies variation or port is the UP state by the DOWN state variation; send much shorter than the convergence time of two layers of looped network of time of TC message; therefore can determine whether the second three-layer network appliance to be switched to major state according to the TC message received, so just can avoid the second three-layer network appliance mistake of standby state to switch to major state.
Concrete, above-mentioned three-layer protection agreement comprises VRRP and/or PIM.
Concrete, the edge port that above-mentioned TC message is two layers of looped network sends; Perhaps
Above-mentioned TC message is that port blocked sends; Perhaps
Above-mentioned TC message is that the port that becomes the UP state by the DOWN state sends.
Optionally, above-mentioned switch unit 81, also for:
After the operation of the second three-layer network appliance in major state carried out in time delay, if receiving element 80 receives the heartbeat message of three-layer protection agreement, the second three-layer network appliance is switched to standby state by major state.
Based on same inventive concept, for the first network equipment by standby state the changing method to major state, the embodiment of the present invention provides a kind of network equipment, be applied to comprise in the networking of three-layer network and two layers of looped network, the first three-layer network appliance in three-layer network connects the two-layer network device in two layers of looped network, and operation three-layer protection agreement, the second three-layer network appliance in three-layer network connects the two-layer network device in two layers of looped network, and operation three-layer protection agreement, the first three-layer network appliance is in major state, the second three-layer network appliance is in standby state, the structure of this network equipment as shown in Figure 9, comprise:
Transceiver 90, for receiving the TC message.
Processor 91, after at transceiver 90, receiving the TC message, switch to the standby main time delay state that rises by the second three-layer network appliance by standby state; If transceiver 90 does not receive the heartbeat message of three-layer protection agreement in the first setting-up time, the second three-layer network appliance is switched to major state by the main time delay state of standby liter.
Between above-mentioned transceiver 90 and processor 91, by bus, be connected.
This scheme is after receiving the TC message; at first the second three-layer network appliance is switched to the standby main time delay state that rises by standby state; if do not receive the heartbeat message of three-layer protection agreement in the first setting-up time; just the second three-layer network appliance can be switched to major state by the main time delay state of standby liter, and carry out the operation of the second three-layer network appliance in major state.
Visible, the state of the second three-layer network appliance in standby state is not only switched according to the heartbeat message of three-layer protection agreement and the testing result of BFD, also need to consider the TC message, the TC message is to send when the state of two layers of ring-network topologies variation or port is the UP state by the DOWN state variation, send much shorter than the convergence time of two layers of looped network of time of TC message, therefore can determine whether the second three-layer network appliance to be switched to major state according to the TC message received, so just can avoid the second three-layer network appliance mistake of standby state to switch to major state.
Concrete, above-mentioned three-layer protection agreement comprises VRRP and/or PIM.
Concrete, the edge port that above-mentioned TC message is two layers of looped network sends; Perhaps
Above-mentioned TC message is that port blocked sends; Perhaps
Above-mentioned TC message is that the port that becomes the UP state by the DOWN state sends.
Optionally, above-mentioned processor 91, also for:
After the second three-layer network appliance is switched to the main time delay state of standby liter by standby state; if transceiver 90 receives the heartbeat message of three-layer protection agreement or in the second setting-up time the testing result of BFD be the UP state, the second three-layer network appliance is risen to main time delay state and is switched to standby state by standby.
Based on same inventive concept, for the second network equipment by standby state the changing method to major state, the embodiment of the present invention provides a kind of network equipment, be applied to comprise in the networking of three-layer network and two layers of looped network, the first three-layer network appliance in three-layer network connects the two-layer network device in two layers of looped network, and operation three-layer protection agreement, the second three-layer network appliance in three-layer network connects the two-layer network device in two layers of looped network, and operation three-layer protection agreement, the first three-layer network appliance is in major state, the second three-layer network appliance is in standby state, the structure of this network equipment as shown in figure 10, comprise:
Transceiver 100, for receiving change in topology TC message.
Processor 101 is that after the DOWN state causes the second three-layer network appliance to switch to major state by standby state,, when transceiver 100 receives the TC message, the operation of the second three-layer network appliance in major state carried out in time delay for the testing result at BFD; If transceiver 100 does not receive the heartbeat message of three-layer protection agreement in the 3rd setting-up time, carry out the operation of the second three-layer network appliance in major state.
Between above-mentioned transceiver 100 and processor 101, by bus, be connected.
This scheme the party case causes the second three-layer network appliance by after switching to major state for state in the testing result of BFD for disconnecting the DOWN state, and while receiving the TC message, at first the operation of the second three-layer network appliance in major state carried out in time delay; If do not receive the heartbeat message of three-layer protection agreement in the 3rd setting-up time, just can carry out the operation of the second three-layer network appliance in major state.
Visible; the state of the second three-layer network appliance is not only switched according to the heartbeat message of three-layer protection agreement and the testing result of BFD; also need to consider the TC message; the TC message is to send when the state of two layers of ring-network topologies variation or port is the UP state by the DOWN state variation; send much shorter than the convergence time of two layers of looped network of time of TC message; therefore can determine whether the second three-layer network appliance to be switched to major state according to the TC message received, so just can avoid the second three-layer network appliance mistake of standby state to switch to major state.
Concrete, above-mentioned three-layer protection agreement comprises VRRP and/or PIM.
Concrete, the edge port that above-mentioned TC message is two layers of looped network sends; Perhaps
Above-mentioned TC message is that port blocked sends; Perhaps
Above-mentioned TC message is that the port that becomes the UP state by the DOWN state sends.
Optionally, above-mentioned processor 101, also for:
After the operation of the second three-layer network appliance in major state carried out in time delay, if transceiver 100 receives the heartbeat message of three-layer protection agreement, the second three-layer network appliance is switched to standby state by major state.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect fully.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code one or more.
The present invention describes with reference to flow chart and/or the block diagram of method, equipment (system) and computer program according to the embodiment of the present invention.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computer or other programmable data processing device produce for realizing the device in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction be stored in this computer-readable memory produce the manufacture that comprises command device, this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded on computer or other programmable data processing device, make and carry out the sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out on computer or other programmable devices is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
Although described optional embodiment of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to be interpreted as all changes and the modification that comprise optional embodiment and fall into the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification and not break away from the spirit and scope of the embodiment of the present invention the embodiment of the present invention.Like this, if within these of the embodiment of the present invention are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention also is intended to comprise these changes and modification interior.

Claims (24)

1. a network equipment is by the changing method to major state for state; it is characterized in that; be applied to comprise in the networking of three-layer network and two layers of looped network; the first three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; the second three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; described the first three-layer network appliance is in major state; described the second three-layer network appliance is in standby state, and described method comprises:
After receiving change in topology TC message, described the second three-layer network appliance is switched to the standby main time delay state that rises by standby state;
If do not receive the heartbeat message of described three-layer protection agreement in the first setting-up time, described the second three-layer network appliance is switched to major state by the main time delay state of standby liter.
2. the method for claim 1, is characterized in that, described three-layer protection agreement comprises Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
3. method as claimed in claim 1 or 2, is characterized in that, the edge port that described TC message is described two layers of looped network sends; Perhaps
Described TC message is that port blocked sends; Perhaps
Described TC message is to be sent by the port that disconnects the DOWN state and become normal UP state.
4. described method as arbitrary as claim 1-3, is characterized in that, after described the second three-layer network appliance is switched to the main time delay state of standby liter by standby state, also comprises:
If receive the heartbeat message of described three-layer protection agreement or two-way converting detects BFD in the second setting-up time testing result is the UP state, will described the second three-layer network appliance by standby, rise main time delay state and switch to for state.
5. a network equipment is by the changing method to major state for state; it is characterized in that; be applied to comprise in the networking of three-layer network and two layers of looped network; the first three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; the second three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; described the first three-layer network appliance is in major state; described the second three-layer network appliance is in standby state, and described method comprises:
The testing result that detects BFD at two-way converting causes described the second three-layer network appliance by after switching to major state for state for disconnecting the DOWN state, and while receiving change in topology TC message, the operation of described the second three-layer network appliance in major state carried out in time delay;
If do not receive the heartbeat message of described three-layer protection agreement in the 3rd setting-up time, carry out the operation of described the second three-layer network appliance in major state.
6. method as claimed in claim 5, is characterized in that, described three-layer protection agreement comprises Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
7. method as described as claim 5 or 6, is characterized in that, the edge port that described TC message is described two layers of looped network sends; Perhaps
Described TC message is that port blocked sends; Perhaps
Described TC message is that the port that becomes normal UP state by the DOWN state sends.
8. described method as arbitrary as claim 5-7, is characterized in that, time delay also comprises after carrying out the operation of described the second three-layer network appliance in major state:
If receive the heartbeat message of described three-layer protection agreement, described the second three-layer network appliance is switched to standby state by major state.
9. a network equipment is by the switching device shifter to major state for state; it is characterized in that; be applied to comprise in the networking of three-layer network and two layers of looped network; the first three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; the second three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; described the first three-layer network appliance is in major state; described the second three-layer network appliance is in standby state, and described device comprises:
Receiving element, for receiving change in topology TC message;
Switch unit, after at described receiving element, receiving described TC message, switch to the standby main time delay state that rises by described the second three-layer network appliance by standby state; And, if described receiving element does not receive the heartbeat message of described three-layer protection agreement in the first setting-up time, described the second three-layer network appliance is risen to main time delay state and switched to major state by standby.
10. device as claimed in claim 9, is characterized in that, described three-layer protection agreement comprises Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
11. device as described as claim 9 or 10, is characterized in that, the edge port that described TC message is described two layers of looped network sends; Perhaps
Described TC message is that port blocked sends; Perhaps
Described TC message is to be sent by the port that disconnects the DOWN state and become normal UP state.
12. described device as arbitrary as claim 9-11, is characterized in that, described switch unit, also for:
After described the second three-layer network appliance is switched to the main time delay state of standby liter by standby state; if the testing result that described receiving element receives the heartbeat message of described three-layer protection agreement or two-way converting detects BFD in the second setting-up time is the UP state, described the second three-layer network appliance is switched to standby state by the main time delay state of standby liter.
13. a network equipment is by the switching device shifter to major state for state; it is characterized in that; be applied to comprise in the networking of three-layer network and two layers of looped network; the first three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; the second three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; described the first three-layer network appliance is in major state; described the second three-layer network appliance is in standby state, and described device comprises:
Receiving element, for receiving change in topology TC message;
Switch unit, for the testing result that detects BFD at two-way converting, for disconnecting the DOWN state, cause described the second three-layer network appliance by after switching to major state for state, when described receiving element receives described TC message, the operation of described the second three-layer network appliance in major state carried out in time delay; If described receiving element does not receive the heartbeat message of described three-layer protection agreement in the 3rd setting-up time, carry out the operation of described the second three-layer network appliance in major state.
14. device as claimed in claim 13, is characterized in that, described three-layer protection agreement comprises Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
15. device as described as claim 13 or 14, is characterized in that, the edge port that described TC message is described two layers of looped network sends; Perhaps
Described TC message is that port blocked sends; Perhaps
Described TC message is that the port that becomes normal UP state by the DOWN state sends.
16. described device as arbitrary as claim 13-14, is characterized in that, described switch unit, also for:
After the operation of described the second three-layer network appliance in major state carried out in time delay, if described receiving element receives the heartbeat message of described three-layer protection agreement, described the second three-layer network appliance is switched to standby state by major state.
A 17. network equipment; it is characterized in that; be applied to comprise in the networking of three-layer network and two layers of looped network; the first three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; the second three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; described the first three-layer network appliance is in major state; described the second three-layer network appliance is in standby state, and the described network equipment comprises:
Transceiver, for receiving change in topology TC message;
Processor, after at described transceiver, receiving described TC message, switch to the standby main time delay state that rises by described the second three-layer network appliance by standby state; If described transceiver does not receive the heartbeat message of described three-layer protection agreement in the first setting-up time, described the second three-layer network appliance is switched to major state by the main time delay state of standby liter.
18. the network equipment as claimed in claim 17, is characterized in that, described three-layer protection agreement comprises Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
19. the network equipment as described as claim 17 or 18, is characterized in that, the edge port that described TC message is described two layers of looped network sends; Perhaps
Described TC message is that port blocked sends; Perhaps
Described TC message is to be sent by the port that disconnects the DOWN state and become normal UP state.
20. the described network equipment as arbitrary as claim 17-19, is characterized in that, described processor, also for:
After described the second three-layer network appliance is switched to the main time delay state of standby liter by standby state; if the testing result that described transceiver receives the heartbeat message of described three-layer protection agreement or two-way converting detects BFD in the second setting-up time is the UP state, described the second three-layer network appliance is switched to standby state by the main time delay state of standby liter.
A 21. network equipment; it is characterized in that; be applied to comprise in the networking of three-layer network and two layers of looped network; the first three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; the second three-layer network appliance in described three-layer network connects two-layer network device and the operation three-layer protection agreement in described two layers of looped network; described the first three-layer network appliance is in major state; described the second three-layer network appliance is in standby state, and the described network equipment comprises:
Transceiver, for receiving change in topology TC message;
Processor, for the testing result that detects BFD at two-way converting, for disconnecting the DOWN state, cause described the second three-layer network appliance by after switching to major state for state, when described transceiver receives described TC message, the operation of described the second three-layer network appliance in major state carried out in time delay; If described transceiver does not receive the heartbeat message of described three-layer protection agreement in the 3rd setting-up time, carry out the operation of described the second three-layer network appliance in major state.
22. the network equipment as claimed in claim 21, is characterized in that, described three-layer protection agreement comprises Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
23. the network equipment as described as claim 21 or 22, is characterized in that, the edge port that described TC message is described two layers of looped network sends; Perhaps
Described TC message is that port blocked sends; Perhaps
Described TC message is that the port that becomes normal UP state by the DOWN state sends.
24. the described network equipment as arbitrary as claim 21-23, is characterized in that, described processor, also for:
After the operation of described the second three-layer network appliance in major state carried out in time delay, if described transceiver receives the heartbeat message of described three-layer protection agreement, described the second three-layer network appliance is switched to standby state by major state.
CN201310386013.2A 2013-08-29 2013-08-29 The network equipment is by the switching method, device and the network equipment for state to major state Active CN103441940B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310386013.2A CN103441940B (en) 2013-08-29 2013-08-29 The network equipment is by the switching method, device and the network equipment for state to major state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310386013.2A CN103441940B (en) 2013-08-29 2013-08-29 The network equipment is by the switching method, device and the network equipment for state to major state

Publications (2)

Publication Number Publication Date
CN103441940A true CN103441940A (en) 2013-12-11
CN103441940B CN103441940B (en) 2017-12-15

Family

ID=49695606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310386013.2A Active CN103441940B (en) 2013-08-29 2013-08-29 The network equipment is by the switching method, device and the network equipment for state to major state

Country Status (1)

Country Link
CN (1) CN103441940B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105162699A (en) * 2015-07-31 2015-12-16 广州供电局有限公司 Dynamic routing protocol optimizing method and system
CN108430039A (en) * 2017-01-20 2018-08-21 迈普通信技术股份有限公司 A kind of multicast optimization method, multicast equipment and system
CN110061912A (en) * 2018-01-19 2019-07-26 丛林网络公司 Arbitrate the ownership between the redundant control plane of dummy node
CN112751754A (en) * 2019-10-29 2021-05-04 华为技术有限公司 Method and equipment for selecting port switched to working state during dual-homing access
CN114745250A (en) * 2022-03-23 2022-07-12 新华三技术有限公司 Port management method and device
CN115189988A (en) * 2022-07-12 2022-10-14 广东电网有限责任公司 Communication networking system based on power distribution network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968260A (en) * 2005-11-17 2007-05-23 华为技术有限公司 Method for implementing virtual router redundancy protocol switching between primary/standby devices
CN101702681A (en) * 2009-11-26 2010-05-05 福建星网锐捷网络有限公司 Switching method and device of main/standby router in virtual route redundancy protocol
CN101945036A (en) * 2009-07-08 2011-01-12 中兴通讯股份有限公司 Judging method for failure of main router of virtual route redundancy protocol and router
US20110164494A1 (en) * 2010-01-07 2011-07-07 Samsung Electronics Co., Ltd. Method for operating a virtual router redundancy protocol router and communication system therefor
US20110242968A1 (en) * 2008-08-14 2011-10-06 Tellabs San Jose, Inc Method and Apparatus for Improving Network Communication Using BFD and VRRP Tracking System

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968260A (en) * 2005-11-17 2007-05-23 华为技术有限公司 Method for implementing virtual router redundancy protocol switching between primary/standby devices
US20110242968A1 (en) * 2008-08-14 2011-10-06 Tellabs San Jose, Inc Method and Apparatus for Improving Network Communication Using BFD and VRRP Tracking System
CN101945036A (en) * 2009-07-08 2011-01-12 中兴通讯股份有限公司 Judging method for failure of main router of virtual route redundancy protocol and router
CN101702681A (en) * 2009-11-26 2010-05-05 福建星网锐捷网络有限公司 Switching method and device of main/standby router in virtual route redundancy protocol
US20110164494A1 (en) * 2010-01-07 2011-07-07 Samsung Electronics Co., Ltd. Method for operating a virtual router redundancy protocol router and communication system therefor

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105162699A (en) * 2015-07-31 2015-12-16 广州供电局有限公司 Dynamic routing protocol optimizing method and system
CN105162699B (en) * 2015-07-31 2018-09-18 广州供电局有限公司 dynamic routing protocol optimization method and system
CN108430039A (en) * 2017-01-20 2018-08-21 迈普通信技术股份有限公司 A kind of multicast optimization method, multicast equipment and system
CN108430039B (en) * 2017-01-20 2021-12-14 迈普通信技术股份有限公司 Multicast optimization method, multicast equipment and system
CN110061912A (en) * 2018-01-19 2019-07-26 丛林网络公司 Arbitrate the ownership between the redundant control plane of dummy node
CN112751754A (en) * 2019-10-29 2021-05-04 华为技术有限公司 Method and equipment for selecting port switched to working state during dual-homing access
WO2021082820A1 (en) * 2019-10-29 2021-05-06 华为技术有限公司 Method and device for choosing to switch to port under working state during dual-homing access
US11882059B2 (en) 2019-10-29 2024-01-23 Huawei Technologies Co., Ltd. Method for selecting port to be switched to operating state in dual-homing access and device
CN114745250A (en) * 2022-03-23 2022-07-12 新华三技术有限公司 Port management method and device
CN114745250B (en) * 2022-03-23 2023-12-12 新华三技术有限公司 Port management method and device
CN115189988A (en) * 2022-07-12 2022-10-14 广东电网有限责任公司 Communication networking system based on power distribution network

Also Published As

Publication number Publication date
CN103441940B (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN100417094C (en) Network failure recovery method with redundancy port
EP2878105B1 (en) System and method using rsvp hello suppression for graceful restart capable neighbors
EP2553886B1 (en) Aggregating data traffic from access domains
CN103441940A (en) Method and device for switching network device from stand-by state to main state and network device
EP2883334B1 (en) Techniques for flooding optimization for link state protocols in a network topology
CN104426731B (en) The method and apparatus that a kind of spanning tree calculates
CN109889350A (en) A kind of method and device for toggle path in SDN network failure
EP3171555A1 (en) Fault detection method for virtual router redundancy protocol and router device
CN103067277B (en) Set up and control the method for passage, forwarding unit and control equipment
CN101170459A (en) Failure detection and link recovery method based on bidirectional forward link
CN103534982A (en) Method, equipment and network virtualization system for protecting business reliability
US9467332B2 (en) Node failure detection for distributed linear protection
CN103596652A (en) Network control method and device
US20140226525A1 (en) Safe Multicast Distribution with Predictable Topology Changes
KR20150051107A (en) Method for fast flow path setup and failure recovery
EP2775676B1 (en) Policy based routing method and device
CN102780615B (en) Link backup method and routing forwarding device
CN105207902A (en) Main-standby virtual gateway system and method based on SDN
CN101197733A (en) Automatic detection method and device for network connectivity
CN101483571B (en) RRPP configuring method, system and device
CN103227736A (en) Ethernet performance detection method, Ethernet performance detection system and ONT (Optical Network Terminal)
CN103607293A (en) Flow protection method and equipment thereof
EP3255838B1 (en) Method, switching device and network controller for protecting links in software-defined network (sdn)
CN105704022A (en) Path switching method and network nodes
JP5974911B2 (en) Communication system and network relay device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201028

Address after: No.8, Xiaoping Avenue, Badu Economic Development Zone, Zhenze Town, Wujiang District, Suzhou City, Jiangsu Province

Patentee after: TONGDING INTERCONNECTION INFORMATION Co.,Ltd.

Address before: 625, room 269, Connaught platinum Plaza, No. 518101, Qianjin Road, Xin'an street, Shenzhen, Guangdong, Baoan District

Patentee before: SHENZHEN SHANGGE INTELLECTUAL PROPERTY SERVICE Co.,Ltd.

Effective date of registration: 20201028

Address after: 625, room 269, Connaught platinum Plaza, No. 518101, Qianjin Road, Xin'an street, Shenzhen, Guangdong, Baoan District

Patentee after: SHENZHEN SHANGGE INTELLECTUAL PROPERTY SERVICE Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right