CN103441940B - The network equipment is by the switching method, device and the network equipment for state to major state - Google Patents

The network equipment is by the switching method, device and the network equipment for state to major state Download PDF

Info

Publication number
CN103441940B
CN103441940B CN201310386013.2A CN201310386013A CN103441940B CN 103441940 B CN103441940 B CN 103441940B CN 201310386013 A CN201310386013 A CN 201310386013A CN 103441940 B CN103441940 B CN 103441940B
Authority
CN
China
Prior art keywords
layer network
layer
state
layers
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.)
Active
Application number
CN201310386013.2A
Other languages
Chinese (zh)
Other versions
CN103441940A (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

Abstract

A kind of network equipment is by the switching method, device and the network equipment for state to major state; applied in the networking including three-layer network and two layers of looped network; the first three-layer network appliance and the second three-layer network appliance in the three-layer network connect the two-layer network device in two layers of looped network and operation three-layer protection agreement; first three-layer network appliance is in major state; second three-layer network appliance is in standby state, and this method includes:After receiving TC messages, second three-layer network appliance is switched into the standby main delay state of liter by standby state;If not receiving the heartbeat message of the three-layer protection agreement in the first setting time, second three-layer network appliance is main state by the main delay state switching of standby liter.The program can avoid the second three-layer network appliance mistake switching of standby state from being main state.

Description

The network equipment is by the switching method, device and the network equipment for state to major state
Technical field
The present invention relates to communication technical field, switching method, dress of espespecially a kind of network equipment by standby state to major state Put and the network equipment.
Background technology
With the popularization of development and the network application of Internet technology, the quantity of Internet user increases in staged, metropolitan area Net(Metropolitan Area Network, MAN)Arise at the historic moment, MAN is generally tree-shaped or cyclic structure, double layer network and Three-layer network separates.It is ring-type MAN schematic diagram as shown in Figure 1, the network equipment 10,11 is MAN Egress node, is three-layer network Network equipment, three-layer protection agreement, such as Virtual Router Redundacy Protocol are disposed on the network equipment 10 and 11(Virtual Router Redundancy Protocol, VRRP), Protocol Independent Multicast(Protocol Independent Multicast, PIM)Deng Deng;Two layers of looped network access network device 10,11, two layers of looped network are made up of node 12-17, and node 12-17 is two-layer network device, Multiple Spanning Tree Protocol is disposed in two layers of looped network(Multiple Spanning Tree Protocol, MSTP)Etc. broken ring agreement, The heartbeat message of the three-layer protection agreement such as VRRP, PIM can pass through in two layers of looped network, and the network equipment 10 is main state, network Equipment 11 is standby state.
Double layer network cyclization and deployment MSTP protections, can play a very good protection.When single-link in two layers of looped network During failure, the heartbeat message for the three-layer protection agreement that the network equipment 10 is sent can reach the network equipment 11, it is not necessary to trigger network The master/slave switchover of equipment;When occurring two point failure in two layers of looped network, the three-layer protection agreement of the transmission of the network equipment 10 Heartbeat message can not reach the network equipment 11, and the network equipment 11 is main state from standby state switching, and double major networks at this moment just occur The situation of network equipment, the flow of the part of nodes in two layers of looped network can forward from the network equipment 11.When user is reliable to business Property convergent requirement it is higher when, three-layer network consultation deployment bi-directional session detection(Bidirectional Forwarding Detection, BFD), so as to be used for quickly detecting when there is two point failure.
It is not the requirement that single link failure all in two layers of looped network can meet client.As illustrated in fig. 2, it is assumed that section Point 12 is root bridge, and node 13 is backup root bridge, and port blocked is on the interface of the connecting node 17 of node 16, after failure 1 occurs, resistance Fill in port to decontrol, the heartbeat message of the three-layer protection agreement of the network equipment 10 and BFD messages still have that link is reachable in theory, but real The network equipment 11 is very likely resulted on border to be main state from standby state mistake switching.
The generation of this switching by mistake can be avoided by adjusting the detection time of BFD in the network equipment at present, by BFD's Detection time is arranged to empirical value, and BFD is not perceived during ensureing two layers of looped network single link failure, and two point failure can perceive.Will BFD detection time is arranged to empirical value, often and unreliable.If BFD detection time setting is too short, there will be single-link The risk switched by mistake for the network equipment of state during failure;If BFD detection time sets long, the appearance pair in two layers of looped network The time switched during the network equipment failure of point failure or major state for the network equipment of state will be elongated, and influence the body of user Test.
The content of the invention
The embodiment of the present invention provides a kind of network equipment and set by the switching method, device and network of standby state to major state It is standby, to reduce the problem of network equipment of standby state switches by mistake.
First aspect, there is provided a kind of network equipment is by the switching method for state to major state, applied to including three-layer network In the networking of network and two layers of looped network, the first three-layer network appliance in the three-layer network connects two layers in two layers of looped network The network equipment and operation three-layer protection agreement, the second three-layer network appliance in the three-layer network connect two layers of looped network In two-layer network device and operation three-layer protection agreement, first three-layer network appliance be in major state, the described 2nd 3 Layer network device is in standby state, and methods described includes:
After receiving change in topology TC messages, second three-layer network appliance is switched into the standby main delay of liter by standby state State;
If not receiving the heartbeat message of the three-layer protection agreement in the first setting time, by second three-layer network Network equipment is main state by the main delay state switching of standby liter.
With reference in a first aspect, in the first possible implementation, it is superfluous that the three-layer protection agreement includes virtual flow-line Remaining agreement VRRP and/or Protocol Independent Multicast PIM.
With reference to the possible implementation of the first of first aspect or first aspect, in second of possible implementation In, the TC messages are that the edge port of two layers of looped network is sent;Or
The TC messages are that port blocked is sent;Or
The TC messages are that the port for being changed into normal UP states from disconnecting DOWN states is sent.
Second with reference to the first possible implementation or first aspect of first aspect, first aspect is possible Implementation, in the third possible implementation, standby rise is switched to lead by standby state second three-layer network appliance After delay state, in addition to:
If receive the heartbeat message of the three-layer protection agreement or two-way converting detects BFD in the second setting time Testing result be UP states, second three-layer network appliance is risen main delay state and is switched to standby state by standby.
Second aspect, there is provided a kind of network equipment is by the switching method for state to major state, applied to including three-layer network In the networking of network and two layers of looped network, the first three-layer network appliance in the three-layer network connects two layers in two layers of looped network The network equipment and operation three-layer protection agreement, the second three-layer network appliance in the three-layer network connect two layers of looped network In two-layer network device and operation three-layer protection agreement, first three-layer network appliance be in major state, the described 2nd 3 Layer network device is in standby state, and methods described includes:
Two-way converting detection BFD testing result for disconnection DOWN states cause second three-layer network appliance by After standby state switching is main state, when receiving change in topology TC messages, delay performs second three-layer network appliance and is in The operation of major state;
If not receiving the heartbeat message of the three-layer protection agreement in the 3rd setting time, described two or three layer is performed The network equipment is in the operation of major state.
With reference to second aspect, in the first possible implementation, it is superfluous that the three-layer protection agreement includes virtual flow-line Remaining agreement VRRP and/or Protocol Independent Multicast PIM.
With reference to the possible implementation of the first of second aspect or second aspect, in second of possible implementation In mode, the TC messages are that the edge port of two layers of looped network is sent;Or
The TC messages are that port blocked is sent;Or
The TC messages are that the port for being changed into normal UP states from DOWN states is sent.
Second with reference to the first possible implementation or second aspect of second aspect, second aspect is possible Implementation, in the third possible implementation, delay performs the behaviour that second three-layer network appliance is in major state After work, in addition to:
If receiving the heartbeat message of the three-layer protection agreement, second three-layer network appliance is cut by major state It is changed to standby state.
The third aspect, there is provided a kind of network equipment is by the switching device for state to major state, applied to including three-layer network In the networking of network and two layers of looped network, the first three-layer network appliance in the three-layer network connects two layers in two layers of looped network The network equipment and operation three-layer protection agreement, the second three-layer network appliance in the three-layer network connect two layers of looped network In two-layer network device and operation three-layer protection agreement, first three-layer network appliance be in major state, the described 2nd 3 Layer network device is in standby state, and described device includes:
Receiving unit, for receiving change in topology TC messages;
Switch unit, for after the receiving unit receives the TC messages, by second three-layer network appliance The standby main delay state of liter is switched to by standby state;And described in if the receiving unit does not receive in the first setting time The heartbeat message of three-layer protection agreement, second three-layer network appliance is main state by the main delay state switching of standby liter.
With reference to the third aspect, in the first possible implementation, it is superfluous that the three-layer protection agreement includes virtual flow-line Remaining agreement VRRP and/or Protocol Independent Multicast PIM.
With reference to the possible implementation of the first of the third aspect or the third aspect, in second of possible implementation In, the TC messages are that the edge port of two layers of looped network is sent;Or
The TC messages are that port blocked is sent;Or
The TC messages are that the port for being changed into normal UP states from disconnecting DOWN states is sent.
Second with reference to the first possible implementation or the third aspect of the third aspect, the third aspect is possible Implementation, in the third possible implementation, the switch unit, it is additionally operable to:
After second three-layer network appliance is switched into the standby main delay state of liter by standby state, if described receive list Member receives the heartbeat message of the three-layer protection agreement or two-way converting detects BFD detection knot in the second setting time Fruit is UP states, and second three-layer network appliance is switched into standby state by the standby main delay state of liter.
Fourth aspect, there is provided a kind of network equipment is by the switching device for state to major state, applied to including three-layer network In the networking of network and two layers of looped network, the first three-layer network appliance in the three-layer network connects two layers in two layers of looped network The network equipment and operation three-layer protection agreement, the second three-layer network appliance in the three-layer network connect two layers of looped network In two-layer network device and operation three-layer protection agreement, first three-layer network appliance be in major state, the described 2nd 3 Layer network device is in standby state, and described device includes:
Receiving unit, for receiving change in topology TC messages;
Switch unit, for causing described second in two-way converting detection BFD testing result to disconnect DOWN states After three-layer network appliance is main state by standby state switching, when the receiving unit receives the TC messages, delay performs institute State the operation that the second three-layer network appliance is in major state;If the receiving unit does not receive described in the 3rd setting time The heartbeat message of three-layer protection agreement, perform the operation that second three-layer network appliance is in major state.
With reference to fourth aspect, in the first possible implementation, it is superfluous that the three-layer protection agreement includes virtual flow-line Remaining agreement VRRP and/or Protocol Independent Multicast PIM.
With reference to the possible implementation of the first of fourth aspect or fourth aspect, in second of possible implementation In, the TC messages are that the edge port of two layers of looped network is sent;Or
The TC messages are that port blocked is sent;Or
The TC messages are that the port for being changed into normal UP states from DOWN states is sent.
Second with reference to the first possible implementation or fourth aspect of fourth aspect, fourth aspect is possible Implementation, in the third possible implementation, the switch unit, it is additionally operable to:
After delay execution second three-layer network appliance is in the operation of major state, if the receiving unit receives To the heartbeat message of the three-layer protection agreement, then second three-layer network appliance is switched into standby state by major state.
5th aspect, there is provided a kind of network equipment, applied in the networking including three-layer network and two layers of looped network, described three The first three-layer network appliance in layer network connects the two-layer network device in two layers of looped network and operation three-layer protection association Discuss, the second three-layer network appliance in the three-layer network connects the two-layer network device in two layers of looped network and operation three Layer protection agreement, first three-layer network appliance are in major state, and second three-layer network appliance is in standby state, described The network equipment includes:
Transceiver, for receiving change in topology TC messages;
Processor, for after the transceiver receives the TC messages, by second three-layer network appliance by standby State switches to the standby main delay state of liter;If the transceiver does not receive the three-layer protection agreement in the first setting time Heartbeat message, second three-layer network appliance is risen main delay state switching and is main state by standby.
With reference to the 5th aspect, in the first possible implementation, it is superfluous that the three-layer protection agreement includes virtual flow-line Remaining agreement VRRP and/or Protocol Independent Multicast PIM.
With reference to the 5th aspect or the first possible implementation of the 5th aspect, in second of possible implementation In, the TC messages are that the edge port of two layers of looped network is sent;Or
The TC messages are that port blocked is sent;Or
The TC messages are that the port for being changed into normal UP states from disconnecting DOWN states is sent.
Second with reference to the 5th aspect, the first possible implementation of the 5th aspect or the 5th aspect is possible Implementation, in the third possible implementation, the processor, it is additionally operable to:
After second three-layer network appliance is switched into the standby main delay state of liter by standby state, if the transceiver connects Receive the heartbeat message of the three-layer protection agreement or two-way converting detection BFD testing result is in the second setting time UP states, second three-layer network appliance is switched into standby state by the standby main delay state of liter.
6th aspect, there is provided a kind of network equipment, applied in the networking including three-layer network and two layers of looped network, described three The first three-layer network appliance in layer network connects the two-layer network device in two layers of looped network and operation three-layer protection association Discuss, the second three-layer network appliance in the three-layer network connects the two-layer network device in two layers of looped network and operation three Layer protection agreement, first three-layer network appliance are in major state, and second three-layer network appliance is in standby state, described The network equipment includes:
Transceiver, for receiving change in topology TC messages;
Processor, for causing the described 2nd 3 in two-way converting detection BFD testing result to disconnect DOWN states After layer network device is main state by standby state switching, when the transceiver receives the TC messages, delay performs described the Two three-layer network appliances are in the operation of major state;If the transceiver does not receive three layers of guarantor in the 3rd setting time The heartbeat message of agreement is protected, performs the operation that second three-layer network appliance is in major state.
With reference to the 6th aspect, in the first possible implementation, it is superfluous that the three-layer protection agreement includes virtual flow-line Remaining agreement VRRP and/or Protocol Independent Multicast PIM.
With reference to the 6th aspect or the first possible implementation of the 6th aspect, in second of possible implementation In, the TC messages are that the edge port of two layers of looped network is sent;Or
The TC messages are that port blocked is sent;Or
The TC messages are that the port for being changed into normal UP states from DOWN states is sent.
Second with reference to the 6th aspect, the first possible implementation of the 6th aspect or the 6th aspect is possible Implementation, in the third possible implementation, the processor, it is additionally operable to:
After delay execution second three-layer network appliance is in the operation of major state, if the transceiver receives The heartbeat message of the three-layer protection agreement, then second three-layer network appliance is switched into standby state by major state.
According to the network equipment that first aspect provides by the switching method of standby state to major state, the net of third aspect offer The network equipment that network equipment is provided by standby state to the switching device of major state or the 5th aspect, after TC messages are received, The second three-layer network appliance is switched into the standby main delay state of liter by standby state first, if not received in the first setting time The heartbeat message of three-layer protection agreement, the second three-layer network appliance can be just main state by the main delay state switching of standby liter, and Perform the operation that the second three-layer network appliance is in major state.It can be seen that the state of the second three-layer network appliance in standby state Not only switched over according to the testing result of the heartbeat message of three-layer protection agreement and BFD, it is also necessary to consider TC messages, TC reports Text is sent when it is UP states that the state of two layers of ring-network topology change or port is by DOWN state changes, sends TC messages Time much shorter than the convergence time of two layers of looped network, therefore can according to the TC messages received come determine the need for by The switching of second three-layer network appliance is main state, and can thus avoid the second three-layer network appliance of standby state from missing based on switching State.
According to the network equipment that second aspect provides by the switching method of standby state to major state, the net of fourth aspect offer The network equipment that network equipment is provided by standby state to the switching device of major state or the 6th aspect, detection of the program in BFD As a result after causing the second three-layer network appliance to be main state by standby state switching for disconnection DOWN states, TC messages are received When, delay first performs the operation that the second three-layer network appliance is in major state;If three are not received in the 3rd setting time The heartbeat message of layer protection agreement, can just perform the operation that the second three-layer network appliance is in major state.It can be seen that the second three-layer network The state of network equipment not only switches over according to the testing result of the heartbeat message of three-layer protection agreement and BFD, it is also necessary to examines Consider TC messages, TC messages are sent when it is UP states that the state of two layers of ring-network topology change or port is by DOWN state changes , send time much shorter than the convergence time of two layers of looped network of TC messages, therefore can according to the TC messages received come Determine the need for the second three-layer network appliance switching being main state, can thus avoid the second three-layer network of standby state Equipment is missed switching and is main state.
Brief description of the drawings
Fig. 1 is MAN of the prior art structural representation;
Fig. 2 is structural representation when being broken down in MAN of the prior art;
Flow charts of the Fig. 3 for the first network equipment in the embodiment of the present invention by standby state to the switching method of major state;
Flow charts of the Fig. 4 for second of network equipment in the embodiment of the present invention by standby state to the switching method of major state;
Fig. 5 is that the network equipment in the embodiment of the present invention for VRRP is illustrated by the switching method of standby state to major state Figure;
Fig. 6 is the network equipment that PIM is directed in the embodiment of the present invention by the switching method schematic diagram of standby state to major state;
Structural representations of the Fig. 7 for the first network equipment in the embodiment of the present invention by standby state to the switching device of major state Figure;
Structural representations of the Fig. 8 for second of network equipment in the embodiment of the present invention by standby state to the switching device of major state Figure;
Fig. 9 is the structural representation of the first network equipment in the embodiment of the present invention;
Figure 10 is the structural representation of second of network equipment in the embodiment of the present invention.
Embodiment
For switching present in prior art because two layers of looped network convergence rate cause the network equipment of standby state to miss more slowly The problem of, inventor, which studies, to be found, occurs to be the reason for switching by mistake, in networking as shown in Figure 2, meeting after failure 1 occurs MSTP convergences are triggered to calculate, port blocked, which is decontroled, to send change in topology to the node of the whole network(Topology Change, TC)Report Text, VLAN can be removed by receiving the node of TC messages(Virtual Local Area Network, VLAN)Under medium Access Control(Medium Access Control, MAC)Address.MSTP convergence times are in submicrosecond level, and three-layer protection agreement BFD detection times are in Millisecond, and when MSTP convergences, which calculate, not yet to be completed, three-layer protection agreement is detected as disconnecting due to BFD (Down)Switching of the network equipment 11 by standby state to major state has been triggered, because two layers of looped network are single link failure, There are still link is reachable after MSTP convergences, at this moment the network equipment 11 is exactly to miss switching by the switching of standby state to major state.
The network equipment 11 misses from standby state can trigger the normal flow forwarding of sequence of operations influence after switching is main state, For example, for VRRP, address resolution protocol can be sent immediately(Address Resolution Protocol, ARP)Message and the heart Jump message and refresh the MAC table of two-layer network device, triggering routing update etc.;For PIM, if being configured with static multicast groups simultaneously Flux of multicast can be forwarded to double layer network immediately, user can receive double flux of multicast in moment.If MSTP root bridge and Backup root bridge is not the direct-connected node 12,13 of the network equipment 10,11, then any link failure or MSTP in two layers of looped network When priority adjusts, this switching by mistake can be all triggered.
In order to reduce the problem of network equipment of standby state switches by mistake, the embodiment of the present invention provides two kinds of network equipments by standby To the switching method of major state, this method is applied to include in the networking of three-layer network and two layers of looped network state, wherein, three-layer network The first three-layer network appliance and the second three-layer network appliance in network are connected with the two-layer network device in two layers of looped network respectively, the Three-layer protection agreement is run between one three-layer network appliance and the second three-layer network appliance.It is assumed that at the first three-layer network appliance In major state, the second three-layer network appliance is in standby state.
A kind of network equipment is by the flow of standby state to the switching method of major state as shown in figure 3, this method includes:
S30:After receiving TC messages, the second three-layer network appliance is switched into the standby main delay state of liter by standby state.
Wherein, TC messages are that the edge port of two layers of looped network is sent;Or TC messages are that port blocked is sent, or Person, TC messages are that the port for being changed into UP states from DOWN states is sent.
Generally, when the state of network topology change or port is changed into UP states from DOWN states, sent out by port blocked Go out TC messages, or be changed into from DOWN states the ports of UP states and send TC messages.TC messages are multicast messages, in two layers of looped network Other nodes receive TC messages after, can be forwarded in two layers of looped network.
And in embodiments of the present invention, TC messages are not only to be transmitted in two layers of looped network, the edge port of two layers of looped network, Port blocked is changed into the ports of UP states from DOWN states and also TC message unicasts can be sent into the second three-layer network appliance, Destination address is the MAC Address of the interface of the second three-layer network appliance.
It can also set to the first three-layer network appliance in major state and send TC messages, due to the 1st of major state the The problem of switching by mistake is not present in layer network device, can be with without any processing after the first three-layer network appliance receives TC messages.
When the second three-layer network appliance in standby state receives TC messages, directly the state of itself is not switched It is main state, but the state of itself is switched into the standby main delay state of liter, thus can more accurately determines whether to need Switch and be main state.
S31:If not receiving the heartbeat message of three-layer protection agreement in the first setting time, the second three-layer network is set It is standby to be main state by the main delay state switching of standby liter.
The first three-layer network appliance in major state regularly can occur to the second three-layer network appliance in standby state The heartbeat message of three-layer protection agreement, if the second three-layer network appliance does not receive the heartbeat message in the first setting time, Illustrate two point failure occurred, at this moment need the second three-layer network appliance switching in standby state being main state.So The standby time for rising main delay is exactly the first setting time.
First setting time can be set as needed, such as be set as 500ms, 600ms etc. as needed;Can also According to the transmission cycle set of the heartbeat message of three-layer protection agreement, for example, the transmission cycle of VRRP heartbeat messages is generally 1s, First setting time can be set as to 1s or shorter, the transmission cycle of PIM heartbeat messages is 3s, can be by the first setting time It is set as 3s or shorter.
For different three-layer protection agreements, it is also different that the second three-layer network appliance is in the operation performed during major state:It is right In VRRP, it is necessary to which timing is to the second three-layer network appliance in standby state sends VRRP heartbeat messages, progress multicast forwarding is cut Change, routing priority switching, send ARP detection etc. in one or more;For PIM, it is necessary to timing to The second three-layer network appliance in standby state sends PIM HELLO messages, multicast forwarding switching etc..
Second three-layer network appliance is switched to the standby main delay of liter by the program by standby state first after TC messages are received State, just can be by the second three-layer network appliance if not receiving the heartbeat message of three-layer protection agreement in the first setting time It is main state by the main delay state switching of standby liter, and performs the operation that the second three-layer network appliance is in major state.
It can be seen that the state of the second three-layer network appliance in standby state is not only according to the heartbeat report of three-layer protection agreement Text and BFD testing result switch over, it is also necessary to consider TC messages, TC messages are in two layers of ring-network topology change or port State send when by DOWN state changes being UP states, the time for sending TC messages is shorter than the convergence time of two layers of looped network It is more, therefore can according to the TC messages received come determine the need for by the second three-layer network appliance switching be main state, It can thus avoid the second three-layer network appliance of standby state from missing switching to be main state.
Optionally, in above-mentioned S30 by the second three-layer network appliance by standby state switch to it is standby rise main delay state after, It can also include:If receive the heartbeat message of three-layer protection agreement or two-way converting detects BFD in the second setting time Testing result be UP states, the second three-layer network appliance is risen main delay state and is switched to standby state by standby.During the second setting Between can be set according to being actually needed, such as be set as two times of BFD detection cycles, three times etc..
After the second three-layer network appliance in standby state switches to standby liter main delay state, if receiving three-layer protection The heartbeat message of agreement or BFD testing result is UP states in the second setting time, at this moment illustrate to go out in two layers of looped network Existing is single link failure, without being switched over to the second three-layer network appliance in standby state, can release standby liter master and prolong When state, the second three-layer network appliance is risen main delay state and is switched to standby state by standby.
Another network equipment is as shown in Figure 4 by the flow of standby state to the switching method of major state.This method is applied to In networking including three-layer network and two layers of looped network, wherein, the first three-layer network appliance and the second three-layer network of three-layer network Equipment is connected with the two-layer network device in two layers of looped network respectively, between the first three-layer network appliance and the second three-layer network appliance Run three-layer protection agreement.It is assumed that the first three-layer network appliance is in major state, the second three-layer network appliance is in standby state.Should Method includes:
S40:It is main shape to cause the second three-layer network appliance to be switched by standby state for DOWN states in BFD testing result After state, when receiving TC messages, the 3rd setting time of delay performs the operation that the second three-layer network appliance is in major state.
Wherein, TC messages are that the edge port of two layers of looped network is sent, either TC messages be port blocked send or TC messages are that the port for being changed into UP states from disconnecting DOWN states is sent.It can also set to the one or three layer in major state The network equipment sends TC messages, because the problem of switching, the first three-layer network is not present in the first three-layer network appliance of major state by mistake It is without any processing after network equipment receives TC messages.
First three-layer network appliance and the second three-layer network appliance can regularly carry out BFD detections, for the second three-layer network For equipment, when BFD testing result is DOWN states, illustrate link failure occur in two layers of looped network, it is necessary to which standby shape will be in The second three-layer network appliance switching of state is main state, if at this moment receiving TC messages, can be delayed and perform the second three-layer network Equipment is in the operation of major state, waits two layers of looped network MSTP convergences to determine to need switching to hold again when being main state after the completion of calculating OK.
S41:If not receiving the heartbeat message of three-layer protection agreement in the 3rd setting time, the second three-layer network is performed Equipment is in the operation of major state.
If not receiving the heartbeat message of three-layer protection agreement in the 3rd setting time, illustrate two point event at this moment occur Barrier is, it is necessary to be immediately performed the operation that the second three-layer network appliance is in major state.So delay performs the second three-layer network appliance The time of operation in major state is exactly the 3rd setting time.
3rd setting time can be set as needed, such as be set as 550ms, 650ms etc. as needed;Can also The transmission cycle of the heartbeat message of three-layer protection agreement is set, for example, the transmission cycle of VRRP heartbeat messages is generally 1s, 3rd setting time can be set as to 1s, the transmission cycle of PIM heartbeat messages is 3s, can be set as the 3rd setting time 3s。
Testing result of the program in BFD causes the second three-layer network appliance to be switched by standby state to disconnect DOWN states After being main state, when receiving TC messages, delay first performs the operation that the second three-layer network appliance is in major state;If The heartbeat message of three-layer protection agreement is not received in three setting times, the second three-layer network appliance can be just performed and be in major state Operation.
It can be seen that the state of the second three-layer network appliance is not only according to the heartbeat message of three-layer protection agreement and BFD inspection Result is surveyed to switch over, it is also necessary to consider TC messages, TC messages be two layers of ring-network topologies change or port state by What DOWN state changes were sent when being UP states, time much shorter than the convergence time of two layers of looped network of TC messages are sent, because This can determine the need for the second three-layer network appliance switching being main state according to the TC messages received, thus may be used It is main state with avoiding the second three-layer network appliance of standby state from missing switching.
Optionally, the delay in S40 performs the second three-layer network appliance and is in after the operation of major state, in addition to:If The heartbeat message of three-layer protection agreement is received, then the second three-layer network appliance is switched into standby state by major state.
If delay performs the second three-layer network appliance and is in after the operation of major state, three-layer protection agreement is received again Heartbeat message, illustrate single link failure at this moment only occur, the second three-layer network appliance of standby state is in without switching, then Second three-layer network appliance is switched into standby state by major state.
Illustrate separately below so that three-layer protection agreement is VRRP and PIM as an example the above-mentioned network equipment by standby state by standby to leading The switching method of state.
Embodiment one
As shown in figure 5, four kinds of states that three-layer network appliance is likely to be at:Major state, standby state, the standby main delay state of liter The operation of major state is in delay execution three-layer network appliance, for the three-layer network appliance for running VRRP:
During in standby state, TC messages are received, switch to the standby main delay state of liter, even if then BFD testing result For DOWN states, also do not switch and be main state;If it is subsequently received operation VRRP and the three-layer network appliance in major state is sent out Testing result of the VRRP sent the heartbeat message or BFD in twice of detection cycle is UP states, then releases standby liter master and prolong When state, three-layer network appliance is risen main delay state and is switched to standby state by standby.If not receiving TC messages, and set first It is DOWN states not receive VRRP heartbeat message or BFD testing result in fixing time, then directly sets three-layer network It is standby to be main state by the main delay state switching of standby liter.
When BFD testing result, which is DOWN states, causes three-layer network appliance to be main state by standby state switching, connect After receiving TC messages, delay performs the operation that three-layer network appliance is in major state, including:Delay sends VRRP heartbeat report One or more in text, multicast forwarding switching, routing priority change, transmission ARP detection etc..
When three-layer network appliance is in the main delay state of standby liter, VRRP heartbeat reports are not received in the first setting time Text, then perform standby liter main operation.When three-layer network appliance, which is in delay execution three-layer network appliance, is in the operation of major state, Do not receive VRRP heartbeat messages in the second setting time, be immediately performed the operation that three-layer network appliance is in major state.
When three-layer network appliance is in the main delay state of standby liter or major state, if receiving TC messages, do not process.
Wherein, it is to ensure edge port, port blocked or the end for being changed into from DOWN states UP states in two layers of looped network Mouth can send TC messages to operation VRRP and in the three-layer network appliance for state, and VRRP need deployment address resolution protocol ARP detections have directly from running VRRP and being in the flow forwarded for the three-layer network appliance of state, thus because descending simultaneously It may insure there is to operation VRRP and is in the interface MAC of the three-layer network appliance of standby state on each node in two layers of looped network, So as to ensure the normal transmission of TC messages.
Embodiment two
As shown in fig. 6, four kinds of states that three-layer network appliance is likely to be at:Major state, standby state, the standby main delay state of liter The operation of major state is in delay execution three-layer network appliance, for the three-layer network appliance for running PIM:
During in standby state, TC messages are received, switch to the standby main delay state of liter, even if then BFD testing result For DOWN states, also do not switch and be main state;If it is subsequently received operation PIM and the three-layer network appliance in major state is sent Testing result in twice of detection cycle of PIM HELLO messages or BFD be UP states, then release and standby rise main delay shape State, three-layer network appliance is switched into standby state by the standby main delay state of liter.If TC messages are not received, and in the first setting PIM HELLO messages are not received in time, then directly three-layer network appliance are main state by the main delay state switching of standby liter; Or TC messages are not received, and BFD testing result is DOWN states, then three-layer network appliance directly is risen into main prolong by standby When state switching be main state.
When BFD testing result, which is DOWN states, causes three-layer network appliance to be main state by standby state switching, connect After receiving TC messages, delay performs the operation that three-layer network appliance is in major state, including:Delay transmission PIM HELLO messages, Multicast forwarding switching etc..
Main delay state is risen when three-layer network appliance is in standby, and does not receive PIM HELLO in the first setting time Message, perform the standby liter main operation of three-layer network appliance;Three-layer network appliance is performed in master when three-layer network appliance is in delay During the operation of state, and do not receive PIM HELLO messages in the second setting time, be immediately performed the three-layer network appliance Operation in major state.
Main delay state or major state are risen in standby, if receiving TC messages, is not processed.
Embodiment one and two-layer network device in embodiment two and the configuration mode of three-layer network appliance are as follows:
(1)Two-layer network device configures
[HUAWEI-GigabitEthernet1/0/1]stp edged-port enable
[HUAWEI-GigabitEthernet1/0/1] stp edged-port linkage-vrrp------- marginal ends Mouth is to operation VRRP and the three-layer network appliance in standby state sends TC messages
[HUAWEI-GigabitEthernet1/0/1] stp edged-port linkage-pim------- marginal ends Mouth is to operation PIM and the three-layer network appliance in standby state sends TC messages
--- --- --- --- --- -- makes [HUAWEI] stp instance1linkage-vrrp mac [mac-address] Energy TC messages are sent to the purpose mac addresses of operation VRRP and the three-layer network appliance in standby state
--- --- --- --- --- -- makes [HUAWEI] stp instance1linkage-pim mac [mac-address] Energy TC messages are sent to the purpose mac addresses of operation PIM and the three-layer network appliance in standby state
(2)Three-layer network appliance configures
[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 Enabled processing TC messages
The enabled processing of [HUAWEI-GigabitEthernet2/0/0.1] pim linkage-tcn-bpdu------PIM TC messages.
Based on same inventive concept, the switching method for the first network equipment by standby state to major state, the present invention Embodiment provides a kind of switching device of network equipment by standby state to major state, applied to including three-layer network and two layers of looped network Networking in, the first three-layer network appliance in three-layer network connects three layers of the two-layer network device in two layers of looped network and operation Agreement is protected, the second three-layer network appliance in three-layer network connects three layers of the two-layer network device in two layers of looped network and operation Agreement is protected, the first three-layer network appliance is in major state, and the second three-layer network appliance is in standby state, and the structure of the device is such as Shown in Fig. 7, including:
Receiving unit 70, for receiving TC messages.
Switch unit 71, for after receiving unit 70 receives TC messages, by the second three-layer network appliance by standby state Switch to the standby main delay state of liter;And if receiving unit 70 does not receive three-layer protection agreement in the first setting time Heartbeat message, the second three-layer network appliance is main state by the main delay state switching of standby liter.
Second three-layer network appliance is switched to the standby main delay of liter by the program by standby state first after TC messages are received State, just can be by the second three-layer network appliance if not receiving the heartbeat message of three-layer protection agreement in the first setting time It is main state by the main delay state switching of standby liter, and performs the operation that the second three-layer network appliance is in major state.
It can be seen that the state of the second three-layer network appliance in standby state is not only according to the heartbeat report of three-layer protection agreement Text and BFD testing result switch over, it is also necessary to consider TC messages, TC messages are in two layers of ring-network topology change or port State send when by DOWN state changes being UP states, the time for sending TC messages is shorter than the convergence time of two layers of looped network It is more, therefore can according to the TC messages received come determine the need for by the second three-layer network appliance switching be main state, It can thus avoid the second three-layer network appliance of standby state from missing switching to be main state.
Specifically, above-mentioned three-layer protection agreement includes VRRP and/or PIM.
Specifically, the edge port that above-mentioned TC messages are two layers of looped networks is sent;Or
Above-mentioned TC messages are that port blocked is sent;Or
Above-mentioned TC messages are that the port for being changed into UP states from DOWN states is sent.
Optionally, above-mentioned switch unit 71, is additionally operable to:
After the second three-layer network appliance is switched into the standby main delay state of liter by standby state, if receiving unit receives The heartbeat message of three-layer protection agreement or BFD testing result is UP states in the second setting time, by the second three-layer network Network equipment switches to standby state by the standby main delay state of liter.
Based on same inventive concept, the switching method for second of network equipment by standby state to major state, the present invention Embodiment provides a kind of switching device of network equipment by standby state to major state, applied to including three-layer network and two layers of looped network Networking in, the first three-layer network appliance in three-layer network connects three layers of the two-layer network device in two layers of looped network and operation Agreement is protected, the second three-layer network appliance in three-layer network connects three layers of the two-layer network device in two layers of looped network and operation Agreement is protected, the first three-layer network appliance is in major state, and the second three-layer network appliance is in standby state, and the structure of the device is such as Shown in Fig. 8, including:
Receiving unit 80, for receiving change in topology TC messages.
Switch unit 81, cause the second three-layer network appliance by standby shape for the testing result in BFD for DOWN states After state switching is main state, when receiving unit 80 receives TC messages, delay performs the second three-layer network appliance and is in major state Operation;If receiving unit 80 does not receive the heartbeat message of three-layer protection agreement in the 3rd setting time, the two or three is performed Layer network device is in the operation of major state.
Testing result of the program program in BFD causes the second three-layer network appliance by standby shape to disconnect DOWN states After state switching is main state, when receiving TC messages, delay first performs the operation that the second three-layer network appliance is in major state; If not receiving the heartbeat message of three-layer protection agreement in the 3rd setting time, it can just perform the second three-layer network appliance and be in The operation of major state.
It can be seen that the state of the second three-layer network appliance is not only according to the heartbeat message of three-layer protection agreement and BFD inspection Result is surveyed to switch over, it is also necessary to consider TC messages, TC messages be two layers of ring-network topologies change or port state by What DOWN state changes were sent when being UP states, time much shorter than the convergence time of two layers of looped network of TC messages are sent, because This can determine the need for the second three-layer network appliance switching being main state according to the TC messages received, thus may be used It is main state with avoiding the second three-layer network appliance of standby state from missing switching.
Specifically, above-mentioned three-layer protection agreement includes VRRP and/or PIM.
Specifically, the edge port that above-mentioned TC messages are two layers of looped networks is sent;Or
Above-mentioned TC messages are that port blocked is sent;Or
Above-mentioned TC messages are that the port for being changed into UP states from DOWN states is sent.
Optionally, above-mentioned switch unit 81, is additionally operable to:
After delay the second three-layer network appliance of execution is in the operation of major state, if receiving unit 80 receives three layers The heartbeat message of agreement is protected, then the second three-layer network appliance is switched into standby state by major state.
Based on same inventive concept, the switching method for the first network equipment by standby state to major state, the present invention Embodiment provides a kind of network equipment, applied in the networking including three-layer network and two layers of looped network, first in three-layer network Three-layer network appliance connects the two-layer network device in two layers of looped network and runs three-layer protection agreement, and second in three-layer network Three-layer network appliance connects the two-layer network device in two layers of looped network and operation three-layer protection agreement, the first three-layer network appliance In major state, the second three-layer network appliance is in standby state, the structure of the network equipment as shown in figure 9, including:
Transceiver 90, for receiving TC messages.
Processor 91, for after transceiver 90 receives TC messages, the second three-layer network appliance to be switched by standby state Main delay state is risen to be standby;, will if transceiver 90 does not receive the heartbeat message of three-layer protection agreement in the first setting time Second three-layer network appliance is main state by the main delay state switching of standby liter.
Connected between above-mentioned transceiver 90 and processor 91 by bus.
Second three-layer network appliance is switched to the standby main delay of liter by the program by standby state first after TC messages are received State, just can be by the second three-layer network appliance if not receiving the heartbeat message of three-layer protection agreement in the first setting time It is main state by the main delay state switching of standby liter, and performs the operation that the second three-layer network appliance is in major state.
It can be seen that the state of the second three-layer network appliance in standby state is not only according to the heartbeat report of three-layer protection agreement Text and BFD testing result switch over, it is also necessary to consider TC messages, TC messages are in two layers of ring-network topology change or port State send when by DOWN state changes being UP states, the time for sending TC messages is shorter than the convergence time of two layers of looped network It is more, therefore can according to the TC messages received come determine the need for by the second three-layer network appliance switching be main state, It can thus avoid the second three-layer network appliance of standby state from missing switching to be main state.
Specifically, above-mentioned three-layer protection agreement includes VRRP and/or PIM.
Specifically, the edge port that above-mentioned TC messages are two layers of looped networks is sent;Or
Above-mentioned TC messages are that port blocked is sent;Or
Above-mentioned TC messages are that the port for being changed into UP states from DOWN states is sent.
Optionally, above-mentioned processor 91, is additionally operable to:
After the second three-layer network appliance is switched into the standby main delay state of liter by standby state, if transceiver 90 receives three Layer protects the heartbeat message of agreement or BFD testing result is UP states in the second setting time, by the second three-layer network Equipment switches to standby state by the standby main delay state of liter.
Based on same inventive concept, the switching method for second of network equipment by standby state to major state, the present invention Embodiment provides a kind of network equipment, applied in the networking including three-layer network and two layers of looped network, first in three-layer network Three-layer network appliance connects the two-layer network device in two layers of looped network and runs three-layer protection agreement, and second in three-layer network Three-layer network appliance connects the two-layer network device in two layers of looped network and operation three-layer protection agreement, the first three-layer network appliance In major state, the second three-layer network appliance is in standby state, and the structure of the network equipment is as shown in Figure 10, including:
Transceiver 100, for receiving change in topology TC messages.
Processor 101, cause the second three-layer network appliance by standby state for the testing result in BFD for DOWN states After switching is main state, when transceiver 100 receives TC messages, delay performs the behaviour that the second three-layer network appliance is in major state Make;If transceiver 100 does not receive the heartbeat message of three-layer protection agreement in the 3rd setting time, the second three-layer network is performed Equipment is in the operation of major state.
Connected between above-mentioned transceiver 100 and processor 101 by bus.
Testing result of the program program in BFD causes the second three-layer network appliance by standby shape to disconnect DOWN states After state switching is main state, when receiving TC messages, delay first performs the operation that the second three-layer network appliance is in major state; If not receiving the heartbeat message of three-layer protection agreement in the 3rd setting time, it can just perform the second three-layer network appliance and be in The operation of major state.
It can be seen that the state of the second three-layer network appliance is not only according to the heartbeat message of three-layer protection agreement and BFD inspection Result is surveyed to switch over, it is also necessary to consider TC messages, TC messages be two layers of ring-network topologies change or port state by What DOWN state changes were sent when being UP states, time much shorter than the convergence time of two layers of looped network of TC messages are sent, because This can determine the need for the second three-layer network appliance switching being main state according to the TC messages received, thus may be used It is main state with avoiding the second three-layer network appliance of standby state from missing switching.
Specifically, above-mentioned three-layer protection agreement includes VRRP and/or PIM.
Specifically, the edge port that above-mentioned TC messages are two layers of looped networks is sent;Or
Above-mentioned TC messages are that port blocked is sent;Or
Above-mentioned TC messages are that the port for being changed into UP states from DOWN states is sent.
Optionally, above-mentioned processor 101, is additionally operable to:
After delay the second three-layer network appliance of execution is in the operation of major state, if transceiver 100 receives three layers The heartbeat message of agreement is protected, then the second three-layer network appliance is switched into standby state by major state.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program production of upper implementation The form of product.
The present invention is with reference to method according to embodiments of the present invention, equipment(System)And the flow of computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Although having been described for the alternative embodiment of the present invention, those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So be intended to be construed to include can for appended claims Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without departing from this hair to the embodiment of the present invention The spirit and scope of bright embodiment.So, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention And its within the scope of equivalent technologies, then the present invention is also intended to comprising including these changes and modification.

Claims (18)

1. a kind of network equipment is arrived the switching method of major state by standby state, it is characterised in that applied to including three-layer network with In the networking of two layers of looped network, Multiple Spanning Tree Protocol MSTP is deployed in two layers of looped network, the in the three-layer network the 1st Layer network device connects the two-layer network device in two layers of looped network and runs three-layer protection agreement, in the three-layer network The second three-layer network appliance connect two-layer network device and operation three-layer protection agreement in two layers of looped network, described the One three-layer network appliance is in major state, and second three-layer network appliance is in standby state, and methods described includes:
After second three-layer network appliance receives change in topology TC messages, by second three-layer network appliance by standby state Switch to the standby main delay state of liter;
If second three-layer network appliance does not receive the heartbeat message of the three-layer protection agreement in the first setting time, Second three-layer network appliance is main state by the main delay state switching of standby liter;
Wherein, the TC messages are sent by the edge port of two layers of looped network;Or
The TC messages are sent by the port blocked of two layers of looped network;Or
The TC messages are that the port for being changed into normal UP states from disconnecting DOWN states is sent.
2. the method as described in claim 1, it is characterised in that the three-layer protection agreement includes Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
3. method as claimed in claim 1 or 2, it is characterised in that switch second three-layer network appliance by standby state After the standby main delay state of liter, in addition to:
If second three-layer network appliance receives the heartbeat message of the three-layer protection agreement or in the second setting time Interior two-way converting detection BFD testing result is UP states, and second three-layer network appliance is cut by the standby main delay state of liter It is changed to standby state.
4. a kind of network equipment is arrived the switching method of major state by standby state, it is characterised in that applied to including three-layer network with In the networking of two layers of looped network, Multiple Spanning Tree Protocol MSTP is deployed in two layers of looped network, the in the three-layer network the 1st Layer network device connects the two-layer network device in two layers of looped network and runs three-layer protection agreement, in the three-layer network The second three-layer network appliance connect two-layer network device and operation three-layer protection agreement in two layers of looped network, described the One three-layer network appliance is in major state, and second three-layer network appliance is in standby state, and methods described includes:
Cause second three-layer network appliance by standby shape in two-way converting detection BFD testing result to disconnect DOWN states After state switching is main state, when second three-layer network appliance receives change in topology TC messages, delay performs described second Three-layer network appliance is in the operation of major state;
If second three-layer network appliance does not receive the heartbeat message of the three-layer protection agreement in the 3rd setting time, Perform the operation that second three-layer network appliance is in major state;
Wherein, the TC messages are sent by the edge port of two layers of looped network;Or
The TC messages are sent by the port blocked of two layers of looped network;Or
The TC messages are that the port for being changed into normal UP states from disconnecting DOWN states is sent.
5. method as claimed in claim 4, it is characterised in that the three-layer protection agreement includes Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
6. the method as described in claim 4 or 5, it is characterised in that delay performs second three-layer network appliance and is in master After the operation of state, in addition to:
If receiving the heartbeat message of the three-layer protection agreement, second three-layer network appliance is switched to by major state Standby state.
7. a kind of network equipment is arrived the switching device of major state by standby state, it is characterised in that applied to including three-layer network with The second three-layer network appliance in the networking of two layers of looped network, Multiple Spanning Tree Protocol MSTP is deployed in two layers of looped network, it is described 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 association Discuss, second three-layer network appliance in the three-layer network connects the two-layer network device in two layers of looped network and transported Row three-layer protection agreement, first three-layer network appliance are in major state, and second three-layer network appliance is in standby state, Described device includes:
Receiving unit, for receiving change in topology TC messages;
Switch unit, for after the receiving unit receives the TC messages, by second three-layer network appliance by standby State switches to the standby main delay state of liter;And if the receiving unit does not receive described three layers in the first setting time The heartbeat message of agreement is protected, second three-layer network appliance is main state by the main delay state switching of standby liter;
Wherein, the TC messages are sent by the edge port of two layers of looped network;Or
The TC messages are sent by the port blocked of two layers of looped network;Or
The TC messages are that the port for being changed into normal UP states from disconnecting DOWN states is sent.
8. device as claimed in claim 7, it is characterised in that the three-layer protection agreement includes Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
9. device as claimed in claim 7 or 8, it is characterised in that the switch unit, be additionally operable to:
After second three-layer network appliance is switched into the standby main delay state of liter by standby state, if the receiving unit connects Receive the heartbeat message of the three-layer protection agreement or two-way converting detection BFD testing result is in the second setting time UP states, second three-layer network appliance is switched into standby state by the standby main delay state of liter.
10. a kind of network equipment is arrived the switching device of major state by standby state, it is characterised in that applied to including three-layer network with The second three-layer network appliance in the networking of two layers of looped network, Multiple Spanning Tree Protocol MSTP is deployed in two layers of looped network, it is described 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 association Discuss, second three-layer network appliance in the three-layer network connects the two-layer network device in two layers of looped network and transported Row three-layer protection agreement, first three-layer network appliance are in major state, and second three-layer network appliance is in standby state, Described device includes:
Receiving unit, for receiving change in topology TC messages;
Switch unit, for causing described two or three layer in two-way converting detection BFD testing result to disconnect DOWN states After the network equipment is main state by standby state switching, when the receiving unit receives the TC messages, delay performs described the Two three-layer network appliances are in the operation of major state;If the receiving unit does not receive described three layers in the 3rd setting time The heartbeat message of agreement is protected, performs the operation that second three-layer network appliance is in major state;
Wherein, the TC messages are sent by the edge port of two layers of looped network;Or
The TC messages are sent by the port blocked of two layers of looped network;Or
The TC messages are that the port for being changed into normal UP states from disconnecting DOWN states is sent.
11. device as claimed in claim 10, it is characterised in that the three-layer protection agreement includes Virtual Router Redundacy Protocol VRRP and/or Protocol Independent Multicast PIM.
12. the device as described in claim 10 or 11, it is characterised in that the switch unit, be additionally operable to:
After delay execution second three-layer network appliance is in the operation of major state, if the receiving unit receives institute The heartbeat message of three-layer protection agreement is stated, then second three-layer network appliance is switched into standby state by major state.
A kind of 13. second three-layer network appliance, it is characterised in that applied in the networking including three-layer network and two layers of looped network, Multiple Spanning Tree Protocol MSTP is deployed in two layers of looped network, described in the first three-layer network appliance connection in the three-layer network Two-layer network device in two layers of looped network and operation three-layer protection agreement, second three-layer network in the three-layer network Equipment connects the two-layer network device in two layers of looped network and operation three-layer protection agreement, first three-layer network appliance In major state, second three-layer network appliance is in standby state, and second three-layer network appliance includes:
Transceiver, for receiving change in topology TC messages;
Processor, for after the transceiver receives the TC messages, by second three-layer network appliance by standby state Switch to the standby main delay state of liter;If the transceiver does not receive the heart of the three-layer protection agreement in the first setting time Message is jumped, second three-layer network appliance is main state by the main delay state switching of standby liter;
Wherein, the TC messages are sent by the edge port of two layers of looped network;Or
The TC messages are sent by the port blocked of two layers of looped network;Or
The TC messages are that the port for being changed into normal UP states from disconnecting DOWN states is sent.
14. the second three-layer network appliance as claimed in claim 13, it is characterised in that the three-layer protection agreement includes virtual Route redundancy protocol VRRP and/or Protocol Independent Multicast PIM.
15. the second three-layer network appliance as described in claim 13 or 14, it is characterised in that the processor, be additionally operable to:
After second three-layer network appliance is switched into the standby main delay state of liter by standby state, if the transceiver receives The heartbeat message of the three-layer protection agreement or the testing result that two-way converting detects BFD in the second setting time are UP shapes State, second three-layer network appliance is switched into standby state by the standby main delay state of liter.
A kind of 16. second three-layer network appliance, it is characterised in that applied in the networking including three-layer network and two layers of looped network, Multiple Spanning Tree Protocol MSTP is deployed in two layers of looped network, described in the first three-layer network appliance connection in the three-layer network Two-layer network device in two layers of looped network and operation three-layer protection agreement, second three-layer network in the three-layer network Equipment connects the two-layer network device in two layers of looped network and operation three-layer protection agreement, first three-layer network appliance In major state, second three-layer network appliance is in standby state, and second three-layer network appliance includes:
Transceiver, for receiving change in topology TC messages;
Processor, for causing second three-layer network in two-way converting detection BFD testing result to disconnect DOWN states After network equipment is main state by standby state switching, when the transceiver receives the TC messages, delay performs the described 2nd 3 Layer network device is in the operation of major state;If the transceiver does not receive the three-layer protection association in the 3rd setting time The heartbeat message of view, perform the operation that second three-layer network appliance is in major state;
Wherein, the TC messages are sent by the edge port of two layers of looped network;Or
The TC messages are sent by the port blocked of two layers of looped network;Or
The TC messages are that the port for being changed into normal UP states from disconnecting DOWN states is sent.
17. the second three-layer network appliance as claimed in claim 16, it is characterised in that the three-layer protection agreement includes virtual Route redundancy protocol VRRP and/or Protocol Independent Multicast PIM.
18. the second three-layer network appliance as described in claim 16 or 17, it is characterised in that the processor, be additionally operable to:
Performed in delay after second three-layer network appliance be in the operation of major state, if described in the transceiver receives The heartbeat message of three-layer protection agreement, then second three-layer network appliance is switched into 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 CN103441940A (en) 2013-12-11
CN103441940B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105162699B (en) * 2015-07-31 2018-09-18 广州供电局有限公司 dynamic routing protocol optimization method and system
CN108430039B (en) * 2017-01-20 2021-12-14 迈普通信技术股份有限公司 Multicast optimization method, multicast equipment and system
US10680944B2 (en) * 2018-01-19 2020-06-09 Juniper Networks, Inc. Arbitrating mastership between redundant control planes of a virtual node
CN112751754B (en) 2019-10-29 2022-05-13 华为技术有限公司 Method and equipment for selecting port switched to working state during dual-homing access
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

Citations (3)

* 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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7990852B1 (en) * 2008-08-14 2011-08-02 Tellabs San Jose, Inc. Methods and apparatus for improving network communication using BFD and VRRP tracking system
KR101591102B1 (en) * 2010-01-07 2016-02-02 삼성전자주식회사 Method for router of virtual router redundancy protocol and communication system therefor

Patent Citations (3)

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

Also Published As

Publication number Publication date
CN103441940A (en) 2013-12-11

Similar Documents

Publication Publication Date Title
CN103441940B (en) The network equipment is by the switching method, device and the network equipment for state to major state
CN104426731B (en) The method and apparatus that a kind of spanning tree calculates
CN101924654B (en) Point-to-multipoint service-based path switching method and system
CN101557343B (en) Detecting and protecting method of double-layer loop in VRRP topological network
CN104104570A (en) Aggregation processing method in IRF (Intelligent Resilient Framework) system and device
CN103746881B (en) Neighbor state detection method and device in EVI networks
EP2911355B1 (en) Method and device for flow path negotiation in link aggregation group
CN104767680B (en) It route the method and apparatus being switched fast
EP2775676B1 (en) Policy based routing method and device
CN106664248A (en) Method and controller for routing data packets in a software defined network
CN103581025B (en) Method and system for processing routing information and equipment
CN104518936B (en) Link dynamic aggregation method and apparatus
CN107948041A (en) The method and apparatus for building the more gateways living of VXLAN centralizations
CN104980302A (en) STP-based method for removing redundancy link under SDN framework
CN105357095A (en) Looped network link fault handling system and method based on bidirectional routing
WO2016124117A1 (en) Method, switching device and network controller for protecting links in software-defined network (sdn)
CN104702498B (en) A kind of method and device reducing equipment room light connects quantity by harmonious protection
CN104702431B (en) A kind of method and device of Virtual Private Network double break protection
CN107592259A (en) A kind of flow switch method in VRRP protections scene
EP2858302B1 (en) Connectivity check method of service stream link, related apparatus and system
CN104125079B (en) A kind of method and device for determining two-node cluster hot backup configuration information
CN103178976A (en) Method for multicast tree establishment and fault restoration
CN105763413A (en) Method and device for controlling network port
US8514746B1 (en) Priority inversion with spanning tree protocol to trigger path switching
CN103973498B (en) A kind of many home network active-standby path systems of selection and equipment

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