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